:root {
    --espresso: #1b1714;
    --espresso2: #241f1a;
    --cream: #f4efe6;
    --paper: #fbf8f2;
    --gold: #b39a63;
    --gold-2: #cab07a;
    --gold-deep: #8c7748;
    --ink: #23201c;
    --muted: #6f665b;
    --line: rgba(35, 32, 28, 0.12);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Manrope", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: #1b1714;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    padding: 16px 30px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.25s;
    text-transform: uppercase;
}

.btn:hover {
    background: #1b1714;
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: #1b1714;
    border-color: #fff;
}

.btn-sm {
    padding: 12px 22px;
    font-size: 13px;
}

.ph {
    position: relative;
    background: linear-gradient(135deg, #cdbfa6 0%, #b6a585 45%, #9c8c6c 100%);
    overflow: hidden;
    border-radius: 2px;
}

.ph::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(27, 23, 20, 0.55);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

.ph.dark {
    background: linear-gradient(135deg, #2f2922, #221d18 60%, #171310);
}

.ph.dark::after {
    color: rgba(255, 255, 255, 0.35);
}

.rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.rv.in {
    opacity: 1;
    transform: none;
}

.note {
    background: #fff6e0;
    border: 1px dashed var(--gold);
    color: #6b5a2e;
    font-size: 13px;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(27, 23, 20, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 24px;
}

.logo {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-phone {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: var(--espresso);
    overflow: hidden;
}

.hero .ph {
    position: absolute;
    inset: 0;
    border-radius: 0;
    opacity: 0.55;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(20, 17, 14, 0.95) 0%, rgba(20, 17, 14, 0.78) 45%, rgba(20, 17, 14, 0.35) 100%);
}

.hero .wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-inner {
    max-width: 640px;
    color: #fff;
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 68px);
    color: #fff;
    margin: 18px 0 22px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.82);
    max-width: 540px;
    margin-bottom: 34px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.chips {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 38px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.chip i {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex: none;
}

.stats {
    background: var(--espresso2);
    color: #fff;
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 46px 26px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat:last-child {
    border-right: none;
}

.stat .num {
    font-family: var(--serif);
    font-size: 46px;
    color: var(--gold);
    line-height: 1;
}

.stat .lbl {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

section.block {
    padding: 96px 0;
}

.head {
    max-width: 680px;
    margin-bottom: 50px;
}

.head h2 {
    font-size: clamp(30px, 3.6vw, 46px);
    margin: 14px 0 16px;
}

.head p {
    color: var(--muted);
    font-size: 17px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cat {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.cat .ph {
    height: 340px;
    transition: 0.5s;
}

.cat:hover .ph {
    transform: scale(1.05);
}

.cat-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px;
    background: linear-gradient(transparent, rgba(20, 17, 14, 0.85));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-label b {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
}

.cat-label .arr {
    color: var(--gold);
    font-size: 20px;
    transition: 0.3s;
}

.cat:hover .cat-label .arr {
    transform: translateX(6px);
}

.quiz {
    background: var(--espresso);
    color: #fff;
    text-align: center;
    padding: 84px 0;
}

.quiz h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    color: #fff;
    max-width: 760px;
    margin: 0 auto 18px;
}

.quiz p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 17px;
}

.why {
    background: var(--cream);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.why-item {
    padding: 38px 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.why-item .n {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--gold-deep);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.why-item h3 {
    font-size: 23px;
    margin: 16px 0 10px;
}

.why-item p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.step {
    padding: 0 24px 0 0;
    position: relative;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    right: 18px;
    left: 54px;
    height: 1px;
    background: var(--line);
}

.step .dot {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--espresso);
    color: var(--gold);
    font-family: var(--serif);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.step h3 {
    font-size: 19px;
    margin: 22px 0 8px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.step .t {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.gal {
    background: var(--cream);
}

.gal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
}

.gal-grid .ph {
    height: 100%;
    width: 100%;
}

.g-tall {
    grid-row: span 2;
}

.g-wide {
    grid-column: span 2;
}

.section-gallery-cta {
    text-align: center;
    margin-top: 34px;
}

.section-gallery-cta .btn-ghost {
    border-color: var(--ink);
    color: var(--ink);
}

.rev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rev {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.rev .ph {
    height: 230px;
    position: relative;
}

.rev .play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rev .play span {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--espresso);
    padding-left: 5px;
    font-size: 20px;
}

.rev .body {
    padding: 22px;
}

.rev .body .name {
    font-weight: 700;
    font-size: 15px;
}

.rev .body .city {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.rev .body p {
    font-size: 14px;
    color: #3c372f;
    line-height: 1.5;
}

.stars {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.inst {
    background: var(--espresso);
    color: #fff;
    padding: 60px 0;
}

.inst-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.inst h2 {
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    max-width: 480px;
}

.inst-pts {
    display: flex;
    gap: 38px;
    flex-wrap: wrap;
}

.inst-pt b {
    font-family: var(--serif);
    color: var(--gold);
    font-size: 30px;
    display: block;
}

.inst-pt span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.form-sec {
    background: var(--cream);
    padding: 96px 0;
}

.form-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 30px 80px -40px rgba(27, 23, 20, 0.5);
}

.form-left {
    background: var(--espresso);
    color: #fff;
    padding: 56px 50px;
}

.form-left h2 {
    color: #fff;
    font-size: 34px;
    margin: 14px 0 18px;
}

.form-left p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
}

.form-left ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-left li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.form-left li::before {
    content: "\2713";
    color: var(--gold);
    font-weight: 700;
}

.form-right {
    background: var(--paper);
    padding: 56px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.street23-form {
    width: 100%;
}

.field,
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.field label,
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    display: block;
    margin-bottom: 7px;
}

.field input,
.form-input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 16px;
    background: #fff;
    transition: 0.2s;
}

.field input:focus,
.form-input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-right .btn,
.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.form-submit {
    cursor: pointer;
}

.form-submit[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.consent,
.form-agreement {
    font-size: 12px;
    color: var(--muted);
    margin-top: 14px;
    line-height: 1.4;
}

.form-error {
    color: #b14f41;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.form-group.has-error .form-input {
    border-color: #b14f41;
}

.form-group.has-error .form-error {
    display: block;
}

.form-status {
    display: none;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    color: #47602d;
}

.form-status.is-error {
    color: #b14f41;
}

footer {
    background: var(--espresso2);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 30px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.6fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-logo {
    font-family: var(--serif);
    font-size: 26px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

.foot-logo span {
    color: var(--gold);
}

footer h4 {
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 700;
    font-family: var(--sans);
}

footer a {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

footer a:hover {
    color: var(--gold);
}

.show {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.show b {
    color: #fff;
    font-weight: 600;
}

.foot-bottom {
    padding-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.foot-phone {
    font-family: var(--serif);
    font-size: 26px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 900px) {
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 18px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-phone {
        display: none;
    }

    .stats-grid,
    .cat-grid,
    .why-grid,
    .steps,
    .gal-grid,
    .rev-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .form-card {
        grid-template-columns: 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr;
    }

    .g-wide,
    .g-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .gal-grid {
        grid-auto-rows: 160px;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 20px;
    }

    .stats-grid,
    .cat-grid,
    .why-grid,
    .steps,
    .rev-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }
}

/* Кнопка обратного звонка */
.callback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gold);
    color: var(--espresso);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 24px;
    border-radius: 2px; /* Соответствует .btn из вашего CSS */
    box-shadow: 0 10px 30px rgba(27, 23, 20, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.callback-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Эффект при наведении как у .btn */
.callback-btn:hover {
    background: var(--espresso);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(27, 23, 20, 0.35);
}

.callback-btn:hover svg {
    transform: rotate(-15deg);
}

/* Адаптация для мобильных устройств */
@media (max-width: 560px) {
    .callback-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 18px;
        font-size: 13px;
    }

    .callback-btn span {
        display: none; /* На очень маленьких экранах оставляем только иконку */
    }

    .callback-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%; /* Круглая кнопка для мобильных */
    }
}

/* Контейнер контента внутри Fancybox */
.thank-you-content {
    background: var(--paper);
    padding: 40px;
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    border-radius: 2px; /* Как у .btn и .cat */
    font-family: var(--sans);
}

.thank-you-icon {
    margin-bottom: 24px;
}

.thank-you-content h3 {
        font-family: var(--serif);
        font-size: 28px;
        color: var(--espresso);
        margin-bottom: 16px;
        line-height: 1.2;
}

.thank-you-content p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Кастомизация самого оверлея Fancybox (опционально) */
.fancybox-bg {
    background: rgba(27, 23, 20, 0.85); /* Ваш --espresso с прозрачностью */
    backdrop-filter: blur(5px);
}