/* ============ БАЗА ============ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    --beige-bg: #f4e8d9;
    --beige-light: #f8eee2;
    --dark-bg: #111316;
    --accent-gold: #d1b272;
    --text-main: #23201f;
    --text-muted: #7a736d;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.16);
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--beige-bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("../img/noise.png");
    background-size: 400px 400px;
    opacity: 0.08;              /* начни с 0.08–0.1 */
    mix-blend-mode: multiply;
    z-index: -1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 80px 0;
}

.section-kicker {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0 0 12px;
    font-weight: 500;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    letter-spacing: 0.03em;
    margin: 0;
    color: #18151a;
}

/* ============ REVEAL АНИМАЦИИ ============ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal-left {
    transform: translateX(-24px);
}

.reveal-right {
    transform: translateX(24px);
}

.reveal-up {
    transform: translateY(24px);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ============ КНОПКИ ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease,
                box-shadow 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #e8c47a, #c7a567);
    color: #231f20;
    box-shadow: 0 12px 26px rgba(155, 118, 52, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(155, 118, 52, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(172, 150, 110, 0.6);
    color: #3b342f;
}

.btn-outline:hover {
    background: #fff9f0;
}

/* ============ ШАПКА ============ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom,
        rgba(244, 232, 217, 0.95),
        rgba(244, 232, 217, 0.85));
    border-bottom: 1px solid rgba(196, 174, 140, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8c7c6b;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.nav a {
    position: relative;
    padding-bottom: 4px;
    color: #5a5149;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #f0c56b, #d1b272);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a.is-current {
    color: #3b342f;
    font-weight: 500;
}

.nav a.is-current::after {
    width: 100%;
}

.header-cta {
    font-size: 13px;
}

/* бургер */

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #4b423b;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* ============ HERO ============ */

.hero {
    padding: 72px 0 64px;
}

.hero-beige {
    background: radial-gradient(circle at top left,
        #f9f2e7 0,
        #f4e8d9 45%,
        #eddcc6 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 40px;
    align-items:                           center;
}

.hero-kicker {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    color: var(--accent-gold);
    margin: 0 0 10px;
}

.hero h1 {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-subtitle {
    margin: 0 0 22px;
    color: var(--text-muted);
    max-width: 460px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-pills span {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(214, 190, 152, 0.6);
    font-size: 13px;
    color: #6b625a;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hero-link {
    font-size: 14px;
    color: #6b5e4f;
}

.hero-link:hover {
    text-decoration: underline;
}

.hero-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #7b6f61;
}

.hero-bottom-links a:hover {
    text-decoration: underline;
}

.hero-photo-col {
    display: flex;
    justify-content: flex-end;
}

/* общий стиль для фото-карточек */

.hero-photo-wrap,
.about-photo-wrap,
.directions-photo-wrap,
.procedures-photo-wrap {
    border-radius: 32px;
    overflow: hidden;
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

/* hero фон под фото */
.hero-photo-wrap {
    background: #d9d0c6;
}

/* ============ ABOUT (тёмный блок) ============ */

.about-dark {
    background: radial-gradient(circle at top left,
        #1b1e22 0,
        #111316 50%,
        #090a0c 100%);
    color: #f5eee2;
    
}

.about-dark .section-kicker,
.procedures .section-kicker {
    position: relative;
    display: inline-block;   /* блок по ширине текста */
    padding-bottom: 6px;     /* место под линию */
}

/* бейджи доверия в блоке "О специалисте" */
.about-dark .trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    margin-bottom: 6px;
}

.about-dark .trust-badge {
    padding: 4px 12px; /* было 5px 14px */
    border-radius: 999px;
    border: 1px solid rgba(224, 195, 130, 0.7);
    font-size: 10px;   /* на 1px меньше, смотрится изящнее */
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #f7e7c5;
    background: transparent;
    white-space: nowrap;
}

/* линия под текстом */
.about-dark .section-kicker::after,
.procedures .section-kicker::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;               /* прямо под текстом */
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #f0c56b, #c7a567);
    opacity: 0.7;
}


.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 40px;
    align-items: center;
}

.about-inner h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #f7e7c5;
}

.about-text p {
    margin: 0 0 14px;
    color: #d4c7b2;
    line-height: 1.8;
    font-size: 15px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #c3a971;
}

.about-list li {
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(195, 169, 113, 0.4);
}

.about-photo {
    display: flex;
    justify-content: flex-end;
}

.about-photo-wrap {
    background: #131518;
}

/* ============ МОИ НАПРАВЛЕНИЯ ============ */

.directions {
    background: var(--beige-bg);
    color: #1f1a17;
}

.directions-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr);
    gap: 40px;
    align-items: flex-start;
}

.directions-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.directions-head {
    max-width: 620px;
}

.directions-head h2 {
    font-size: 30px;
    margin: 0 0 16px;
}

.directions-sub {
    margin: 0;
    color: var(--text-muted);
}

/* тёмная премиальная панель для "Мои направления" */
.directions-panel {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    border-radius: 32px;
    padding: 28px 28px;
    background: radial-gradient(circle at 8% 0%,
        #262830 0,
        #15161b 55%,
        #07080b 100%);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

/* лёгкие световые пятна, очень деликатно */
.directions-panel::before,
.directions-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.directions-panel::before {
    width: 360px;
    height: 360px;
    left: -140px;
    top: -160px;
    background: radial-gradient(circle at 30% 30%,
        rgba(245, 211, 168, 0.55),
        rgba(245, 211, 168, 0) 70%);
    opacity: 0.35;
}

.directions-panel::after {
    width: 260px;
    height: 260px;
    right: -130px;
    bottom: -150px;
    background: radial-gradient(circle at 50% 50%,
        rgba(245, 211, 168, 0.45),
        rgba(245, 211, 168, 0) 70%);
    opacity: 0.35;
}

.directions-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
/* внутри оставляем без дуг, чтобы не было "лишнего" декора */
.directions-cards::before,
.directions-cards::after {
    content: none;
}


/* карточки – как были: белые с мягкой тенью */
.dir-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(215, 192, 156, 0.7);
    box-shadow: var(--shadow-card);
    font-size: 14px;
    color: #7a6e61;
}

.dir-card h3 {
    font-size: 16px;
    margin: 0 0 6px;
    color: #27201c;
}

.dir-card p {
    margin: 0;
}

.directions-photo {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.directions-photo-wrap {
    background: #f2e4d4;
}

/* ============ ПРОЦЕДУРЫ (тёмный блок, фото слева) ============ */

.procedures {
    background: radial-gradient(circle at top right,
        #22242a 0,
        #111316 55%,
        #0b0c0f 100%);
    color: #f5eee2;
}

.procedures-inner {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 3fr);
    gap: 40px;
    align-items: center;
}

.procedures-photo {
    display: flex;
    justify-content: flex-start;
}

.procedures-photo-wrap {
    background: #101115;
}

.procedures-text h2 {
    font-size: 30px;
    margin: 0 0 18px;
    color: #f7e7c5;
}

.procedures-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.proc-pill {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(19, 18, 15, 0.96);
    border: 1px solid rgba(209, 178, 114, 0.6);
    font-size: 14px;
    color: #f4e7d6;
    box-shadow: var(--shadow-card);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.proc-pill:hover {
    background: rgba(24, 21, 18, 1);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.procedures-note {
    margin: 0 0 20px;
    color: #d8c8a8;
    font-size: 14px;
    line-height: 1.7;
}

/* ============ КОНТАКТЫ ============ */

.contacts {
    background: radial-gradient(circle at top left,
        #f4e8d9 0,
        #f7efe3 40%,
        #efe2cf 100%);
}

.contacts-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 40px;
    align-items: flex-start;
}

.contacts-sub {
    margin: 0 0 22px;
    color: var(--text-muted);
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9c7f55;
}

.contact-link {
    color: #23201f;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-text {
    color: #5f564c;
}

.contacts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contacts-side {
    display: flex;
    justify-content: flex-end;
}

/* карта */

.contacts-map {
    max-width: 340px;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(211, 184, 145, 0.7);
    box-shadow: var(--shadow-soft);
    background: #ddd;
    aspect-ratio: 4 / 3;
    min-height: 260px;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============ FOOTER ============ */

.site-footer {
    padding: 18px 0 26px;
    background: #f1e4d4;
    border-top: 1px solid rgba(196, 174, 140, 0.4);
    font-size: 13px;
    color: #746656;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.footer-note {
    opacity: 0.9;
}


/* единый стиль hover для всех фото-карточек */
.hero-photo-wrap,
.about-photo-wrap,
.directions-photo-wrap,
.procedures-photo-wrap,
.contacts-map {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-photo-wrap:hover,
.about-photo-wrap:hover,
.directions-photo-wrap:hover,
.procedures-photo-wrap:hover,
.contacts-map:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

/* ============ АДАПТИВ ============ */

@media (max-width: 960px) {
    .hero-inner,
    .about-inner,
    .directions-layout,
    .procedures-inner,
    .contacts-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-photo-col,
    .about-photo,
    .directions-photo,
    .procedures-photo,
    .contacts-side {
        justify-content: center;
    }

    .hero-photo-wrap,
    .about-photo-wrap,
    .directions-photo-wrap,
    .procedures-photo-wrap,
    .contacts-map {
        max-width: 360px;
    }

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 768px) {
    .header-cta {
        display: none;
    }

    .nav {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 12px 16px 16px;
        background: rgba(244, 232, 217, 0.97);
        border-bottom: 1px solid rgba(196, 174, 140, 0.4);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav {
        align-items: center;
        text-align: center;
    }

    .nav a {
        display: inline-block;
        padding: 8px 0;
    }

    .burger {
        display: inline-flex;
    }

    .hero-inner,
    .about-inner,
    .directions-layout,
    .procedures-inner,
    .contacts-inner {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 0;
    }

    .hero-inner {
        display: flex;             /* вместо grid на мобильном */
        flex-direction: column;
        gap: 24px;
    }

    .hero-photo-col {
        order: -1;                 /* фото первым */
        justify-content: center;
        margin-bottom: 12px;       /* немного воздуха под фото */
    }

    .hero-text-col {
        order: 2;                  /* текст после фото */
    }

    /* уменьшить отступы hero на мобиле */
    .hero {
        padding: 32px 0 40px;  /* верх 32, низ 40 — можно поиграть цифрами */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .directions-grid {
        grid-template-columns: 1fr;
    }
}
