/* =============================================================
   ПТБ — база: переменные, типографика, кнопки, шапка, футер
   ============================================================= */

:root {
    /* Палитра — тёплый минимализм */
    --bg:          #FAF6EE;
    --surface:     #ffffff;
    --ink:         #1a2530;
    --text:        #2A2520;
    --muted:       #7D7668;
    --line:        #E8E0D0;

    --navy:        #1a2530;
    --navy-hover:  #0e151c;
    --gold:        #B08A5A;
    --gold-hover:  #9A7548;
    --gold-light:  #F4EBD9;
    --water:       #4A6B7A;

    --font-heading: 'PT Sans Narrow', 'Arial Narrow', Arial, sans-serif;
    --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
}

/* ---- Сброс ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ---- Типографика ---- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
}
h1, h2 { font-weight: 700; }
h3, h4 { font-weight: 400; }
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: 24px; }

.eyebrow {
    font-family: var(--font-body);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

/* ---- Кнопки ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Золотая окантовка + мягкая дымка при hover */
.btn--gold-outline {
    color: var(--gold);
    background: transparent;
    border-color: var(--gold);
}
.btn--gold-outline:hover {
    background: rgba(184, 147, 94, 0.15);
    border-color: var(--gold-hover);
    color: var(--gold-hover);
}

/* Прозрачная белая — для тёмного фона (hero) */
.btn--ghost {
    color: #f4f0e6;
    background: transparent;
    border-color: rgba(244, 240, 230, 0.4);
}
.btn--ghost:hover {
    border-color: #f4f0e6;
    background: rgba(244, 240, 230, 0.1);
    color: #fff;
}

/* Контурная тёмная — для светлого фона */
.btn--outline-dark {
    color: var(--ink);
    background: transparent;
    border-color: var(--ink);
}
.btn--outline-dark:hover {
    background: var(--ink);
    color: #fff;
}

.btn--sm {
    min-height: 40px;
    padding: 0 20px;
    font-size: 12px;
}

/* ---- Шапка (grid: лого слева, nav по центру, гамбургер справа) ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 84px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}
.brand__mark {
    width: 42px;
    height: 42px;
    border: 2px solid var(--gold);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
}
.brand__text { display: flex; flex-direction: column; }
.brand__name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .1em;
    justify-self: center;
}
.nav a { color: var(--text); }
.nav a:hover { color: var(--gold); }

/* ---- Футер ---- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 0 30px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255, 255, 255, 0.65); }
.footer-grid a:hover { color: var(--gold-light); }
.footer-about { max-width: 300px; margin-bottom: 20px; }
.footer-link-gold { color: #C9A87A !important; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

/* =============================================================
   Мобильное меню (гамбургер + fullscreen overlay)
   ============================================================= */

.menu-toggle {
    display: none;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform .3s, opacity .3s;
    transform-origin: center;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(26, 37, 48, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}
body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
}
.mobile-menu__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: rgba(244, 240, 230, 0.85);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s;
}
.mobile-menu__close:hover { color: var(--gold-light); }
.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
    padding: 24px;
}
.mobile-menu__nav a {
    color: #f4f0e6;
    font-family: var(--font-heading);
    font-size: 30px;
    text-decoration: none;
    transition: color .2s;
    padding: 8px 4px;
}
.mobile-menu__nav a:hover { color: var(--gold-light); }
body.menu-open { overflow: hidden; }

/* =============================================================
   Медиазапросы
   ============================================================= */

@media (max-width: 1024px) {
    .nav { gap: 24px; font-size: 13px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: auto 1fr;
    }
    .nav { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu__nav a { font-size: 26px; }
    .brand__name { font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .btn { min-height: 44px; padding: 0 22px; font-size: 13px; }
}
