:root {
    --bg: #0b0c0f;
    --bg2: #0f1116;
    --paper: #fbfbf7;
    --ink: #101216;
    --muted: #5f6672;
    --line: rgba(16, 18, 22, .10);

    --accent: #b08d57;
    --accent2: #d5c2a3;

    --radius: 18px;
    --shadow: 0 18px 60px rgba(0, 0, 0, .22);
    --shadow2: 0 12px 30px rgba(0, 0, 0, .12);
    --max: 1100px;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    opacity: .92
}

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

/* Layout */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px
}

.grid {
    display: grid;
    gap: 22px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: transparent;
    color: #fff;
    font-weight: 600;
    letter-spacing: .2px;
    gap: 10px;
    cursor: pointer;
    transition: transform .12s ease, opacity .12s ease, background .12s ease;
    user-select: none;
}

.btn:hover {
    transform: translateY(-1px)
}

.btn:active {
    transform: translateY(0)
}

.btn.primary {
    background: linear-gradient(180deg, rgba(176, 141, 87, 1) 0%, rgba(150, 118, 70, 1) 100%);
    border-color: rgba(176, 141, 87, .55);
    color: #0b0c0f;
}

.btn.ghost {
    border-color: rgba(16, 18, 22, .18);
    background: rgba(16, 18, 22, .02);
    color: var(--ink);
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 251, 247, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 220px;
}

.brand .name {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .2px;
}

.brand .tag {
    font-size: 12px;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding-left: 10px;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    font-size: 13px;
    color: rgba(16, 18, 22, .86);
    padding: 8px 10px;
    border-radius: 999px;
    transition: background .12s ease;
}

nav a:hover {
    background: rgba(16, 18, 22, .05)
}

.nav-toggle {
    display: none;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    color: #fff;
    background: radial-gradient(1100px 600px at 15% 10%, rgba(176, 141, 87, .35) 0%, rgba(176, 141, 87, 0) 65%),
    radial-gradient(900px 500px at 80% 0%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 0%)),
    url("/img/tsoy_back.jpg");
    background-size: cover;
    background-position: center;
    opacity: .26;
    pointer-events: none;
}

.hero .inner {
    position: relative;
    padding: 64px 0 44px;
}

.hero .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.kicker .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(176, 141, 87, .18);
}

h1 {
    margin: 14px 0 14px;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 54px;
    line-height: 1.02;
    letter-spacing: .2px;
}

.lead {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-meta {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}

.pill small {
    color: rgba(255, 255, 255, .64)
}

.portrait {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    box-shadow: var(--shadow);
}

.portrait .img {
    aspect-ratio: 4/5;
    width: 100%;
    object-fit: cover;
    object-position: center;
    background: #111;
}

.portrait .cap {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.portrait .cap a {
    color: rgba(255, 255, 255, .88);
    text-decoration: underline;
    text-underline-offset: 3px
}

/* Sections */
section {
    padding: 56px 0
}

.section-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 34px;
    margin: 0 0 10px;
    letter-spacing: .2px;
}

.section-sub {
    margin: 0 0 24px;
    color: var(--muted);
    max-width: 75ch;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.card.pad {
    padding: 22px
}

.card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    letter-spacing: .2px;
}

.muted {
    color: var(--muted)
}

.list {
    margin: 0;
    padding-left: 18px;
    color: rgba(16, 18, 22, .88);
}

.list li {
    margin: 6px 0
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(16, 18, 22, .02);
    font-size: 12px;
    color: rgba(16, 18, 22, .78);
}

.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.hr {
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

/* Steps */
.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step .n {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(176, 141, 87, .12);
    border: 1px solid rgba(176, 141, 87, .35);
    color: rgba(16, 18, 22, .88);
    font-weight: 700;
    flex: 0 0 auto;
}

.step p {
    margin: 4px 0 0;
    color: rgba(16, 18, 22, .78)
}

/* Reviews */
.reviews {
    position: relative;
}

.review {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.stars {
    letter-spacing: 2px;
    color: var(--accent)
}

.review .txt {
    color: rgba(16, 18, 22, .86)
}

.review .who {
    margin-top: auto;
    font-size: 13px;
    color: rgba(16, 18, 22, .70);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.review .who-top {
    /*margin-top: auto;*/
    font-size: 13px;
    color: rgba(16, 18, 22, .70);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Contact */
.contact-grid {
    grid-template-columns: 1fr 1fr
}

label {
    display: block;
    font-size: 12px;
    color: rgba(16, 18, 22, .75);
    margin: 0 0 6px
}

input, textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16, 18, 22, .14);
    outline: none;
    font: inherit;
    background: #fff;
}

input:focus, textarea:focus {
    border-color: rgba(176, 141, 87, .6);
    box-shadow: 0 0 0 4px rgba(176, 141, 87, .14);
}

textarea {
    min-height: 120px;
    resize: vertical
}

.row2 {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(16, 18, 22, .74);
    font-size: 12px;
    margin-top: 10px;
}

.consent input {
    width: auto;
    margin-top: 2px
}

.note {
    font-size: 12px;
    color: rgba(16, 18, 22, .62);
    margin: 10px 0 0;
}

.toast {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(176, 141, 87, .35);
    background: rgba(176, 141, 87, .10);
    color: rgba(16, 18, 22, .84);
    font-size: 13px;
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: rgba(16, 18, 22, .62);
    font-size: 12px;
}

.foot {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.foot a {
    text-decoration: underline;
    text-underline-offset: 3px
}

/* Back to top */
.topbtn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: none;
    border-radius: 999px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 18, 22, .14);
    background: #fff;
    box-shadow: var(--shadow2);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
    .hero .hero-grid {
        grid-template-columns:1fr;
        padding: 0 20px;
    }

    h1 {
        font-size: 42px
    }

    .portrait {
        max-width: 420px
    }

    .cols-3 {
        grid-template-columns:1fr
    }

    .cols-2 {
        grid-template-columns:1fr
    }

    .contact-grid {
        grid-template-columns:1fr
    }

    .brand .tag {
        display: none
    }

    nav {
        display: none
    }

    nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 0 14px;
    }

    nav a {
        padding: 10px 12px;
        border: 1px solid var(--line);
        background: #fff
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px
    }

    .topbar .row {
        align-items: flex-start
    }

    .row2 {
        grid-template-columns:1fr
    }
}

@media (min-width: 901px) {
    /* хедеру даем чуть больше места, не трогая общий layout */
    .topbar .wrap {
        max-width: 1440px;
    }

    .topbar .topbar-row {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }

    .topbar .brand {
        min-width: 0;
        flex: 0 1 auto;
    }

    .topbar #nav {
        margin-left: auto;
        display: flex;
        flex-wrap: nowrap;      /* главное: не переносить кнопки */
        align-items: center;
        justify-content: flex-end;
        gap: 4px;               /* уменьшаем расстояние между пунктами */
        min-width: 0;
    }

    .topbar #nav a {
        white-space: nowrap;    /* текст внутри кнопок не переносить */
        padding: 8px 8px;       /* компактнее */
        font-size: 12px;        /* компактнее */
    }

    .topbar #nav .badge {
        padding: 8px 9px;
    }

    .topbar .brand .tag {
        white-space: nowrap;
    }
}

.topbar .topbar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

/* бренд не должен иметь min-width (он сдвигает) */
.topbar .brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0; /* важно */
    width: auto;
}

/* чтобы кнопка выглядела так же, но без инлайна */
.topbar .topbar-cta {
    border-color: rgba(176, 141, 87, .45);
    background: rgba(176, 141, 87, .08);
}

/* mobile как у тебя */
@media (max-width: 900px) {
    .topbar #nav {
        margin-left: 0;
        width: 100%;
    }
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(220, 80, 80, .95);
}

.topbar .topbar-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 0;
    gap:14px;
}

/* desktop: nav вправо */
.topbar #nav{ margin-left:auto; }

/* ===== Mobile: показываем только бургер, nav скрыт до клика ===== */
@media (max-width: 900px){
    .topbar .topbar-row{
        flex-wrap:wrap;
        align-items:flex-start;
    }

    /* важно: перебиваем твой .topbar #nav {display:flex} */
    .topbar #nav{
        display:none;
        margin-left:0;
        width:100%;
    }

    .topbar #nav.open{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:6px;
        padding:10px 0 14px;
    }

    .topbar #nav a{
        padding:10px 12px;
        border:1px solid var(--line);
        background:#fff;
    }

    .topbar .nav-toggle{
        display:inline-flex;
        align-items:center;
        gap:8px;
        margin-left:auto;
    }
}

.read-more {
    display: inline-block;
    margin-top: 4px;
    font-size: .875em;
    color: var(--accent, #4a6cf7);
    white-space: nowrap;
}