/* 
  Mobile-First CSS 
  Цветовая палитра взята с макетов: бежевый фон, винно-бордовый текст, оливковые и терракотовые акценты.
*/

:root {
    --bg-color: #FDFBF7; /* Светло-кремовый фон */
    --text-primary: #512231; /* Темно-бордовый / винный */
    --text-secondary: #7A4C5B; /* Приглушенный бордовый */
    --accent-color: #6B273D; /* Цвет кнопок и акцентов */
    --card-bg: #FFFFFF;
    --border-color: #EADCD6;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-cursive: 'Caveat', cursive; /* Замена рукописного шрифта */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Контейнер Taplink (Mobile First -> Desktop) */
.taplink-container {
    width: 100%;
    max-width: 500px; /* Ограничение ширины для ПК */
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Типографика */
.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--text-primary);
}

.cursive-subtitle {
    font-family: var(--font-cursive);
    text-transform: lowercase;
    font-size: 36px;
    color: var(--accent-color);
    font-style: italic;
    font-weight: 500;
}

p {
    margin-bottom: 15px;
}

/* Кнопки */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.btn:hover, .btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

.btn-small {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 20px;
}

.btn-icon {
    margin-right: 8px;
    font-size: 20px;
}

/* Блок 1: Hero */
.hero-block {
    position: relative;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.hero-photo-placeholder {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #EAE0D8;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 2px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 15px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 600;
}

.cursive-title {
    font-family: var(--font-cursive);
    font-size: 48px;
    color: var(--accent-color);
    font-weight: 500;
}

.hero-quote {
    border-left: 2px solid var(--accent-color);
    padding-left: 15px;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

/* Карточки (Блоки 2 и 4) */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.card-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-content p {
    font-size: 13px;
    margin-bottom: 0;
}

/* Цитата-баннер */
.quote-banner {
    background-color: #F1E8E2;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 40px;
}

.cursive-accent {
    font-family: var(--font-cursive);
    font-size: 38px;
    color: var(--accent-color);
}

/* Блок 3: С чем помогаю (Список) */
.help-list {
    list-style: none;
    margin-bottom: 40px;
}

.help-list li {
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: 30px;
    margin-bottom: 10px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    position: relative;
    padding-left: 45px;
}

.help-list li::before {
    content: "•";
    position: absolute;
    left: 20px;
    color: var(--accent-color);
    font-size: 20px;
    line-height: 1;
}

/* Форматы консультаций */
.info-alert {
    background-color: rgba(107, 39, 61, 0.05);
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

.card-format {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
}

.format-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.format-header h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.format-header h3 span {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-secondary);
}

.price {
    background-color: #F1E8E2;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    color: var(--accent-color);
}

.duration, .location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

/* Образование (Таймлайн) */
.timeline-section {
    margin-bottom: 30px;
}

.timeline-title {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
}

.timeline {
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline li {
    position: relative;
    margin-bottom: 20px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
}

.year {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Научная деятельность (Аккордеон) */
.science-intro {
    font-size: 14px;
    margin-bottom: 20px;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--card-bg);
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    font-size: 13px;
}

.accordion-content.active {
    padding: 0 20px 20px 20px;
    max-height: 1500px;
}

.accordion-content ul, .publications-list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.accordion-content li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 30px 0;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* Анимация появления */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   HERO V2 — только главный экран.
   Тексты — отдельные HTML-элементы. Для перемещения меняй
   значения --hero-*-top / --hero-*-left / --hero-*-width.
   Остальные разделы сайта этим блоком не затрагиваются.
   ========================================================== */
.hero-block {
    --hero-subtitle-top: 5.8%;
    --hero-subtitle-left: 10.8%;
    --hero-name-top: 19.5%;
    --hero-name-left: 8.5%;
    --hero-quote-top: 36.5%;
    --hero-quote-left: 9.2%;
    --hero-quote-width: 37%;
    --hero-button-bottom: 7.2%;

    position: relative;
    isolation: isolate;
    width: calc(100% + 40px);
    aspect-ratio: 941 / 1672;
    min-height: 630px;
    height: auto;
    margin: -20px -20px 30px;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #F7F0EA;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-text {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-subtitle {
    position: absolute;
    top: var(--hero-subtitle-top);
    left: var(--hero-subtitle-left);
    width: 76%;
    margin: 0;
    padding: 0 0 0 17px;
    border-left: 2px solid #492129;
    color: #635448;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(21px, 5.3vw, 27px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: none;
}

.hero-name {
    position: absolute;
    top: var(--hero-name-top);
    left: var(--hero-name-left);
    width: 90%;
    margin: 0;
    color: #635448;
    font-family: 'Bodoni Moda', 'Times New Roman', serif;
    font-size: clamp(40px, 10.8vw, 56px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.hero-surname,
.hero-script {
    display: block;
}

.hero-surname {
    white-space: nowrap;
}

.hero-script {
    margin-top: 5px;
    margin-left: -2px;
    color: #642E40;
    font-family: 'Pinyon Script', 'Brush Script MT', cursive;
    font-size: clamp(46px, 12.6vw, 64px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.hero-quote {
    position: absolute;
    top: var(--hero-quote-top);
    left: var(--hero-quote-left);
    width: var(--hero-quote-width);
    max-width: 235px;
    margin: 0;
    padding: 0 0 0 14px;
    border-left: 2px solid #492129;
    color: #635448;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(17px, 4.5vw, 22px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: 0;
}

.hero-quote p {
    margin: 0;
}

.hero-cta {
    position: absolute;
    left: 10%;
    bottom: var(--hero-button-bottom);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    min-height: 82px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 100px;
    background: linear-gradient(180deg, #96364F 0%, #843F51 45%, #681D35 100%);
    box-shadow: 0 7px 18px rgba(73, 33, 41, 0.12);
    color: #FFF9F7;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(21px, 5.7vw, 29px);
    font-weight: 400;
    line-height: 1.02;
    text-align: center;
    text-decoration: none;
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
    filter: brightness(1.035);
    box-shadow: 0 10px 22px rgba(73, 33, 41, 0.18);
}

.hero-cta:active {
    transform: scale(0.985);
}

.hero-cta-icon {
    display: flex;
    flex: 0 0 66px;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding-right: 12px;
}

.hero-cta-icon svg {
    display: block;
    width: 48px;
    height: 48px;
    fill: none;
    stroke: #FFF9F7;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-cta-divider {
    display: block;
    flex: 0 0 1px;
    align-self: center;
    height: 58px;
    margin-right: 15px;
    background: rgba(255, 249, 247, 0.78);
}

.hero-cta-label {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding-right: 5px;
    white-space: nowrap;
}

.hero-cta-label span {
    display: block;
}

@media (max-width: 360px) {
    .hero-block {
        min-height: 610px;
        --hero-quote-width: 39%;
    }

    .hero-subtitle {
        padding-left: 12px;
        font-size: 20px;
    }

    .hero-name {
        font-size: 39px;
    }

    .hero-script {
        font-size: 43px;
    }

    .hero-quote {
        font-size: 16px;
        padding-left: 10px;
    }

    .hero-cta {
        width: 84%;
        left: 8%;
        min-height: 74px;
        font-size: 20px;
    }

    .hero-cta-icon {
        flex-basis: 54px;
        padding-right: 8px;
    }

    .hero-cta-icon svg {
        width: 42px;
        height: 42px;
    }

    .hero-cta-divider {
        height: 52px;
        margin-right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cta {
        transition: none;
    }
}
