/* ==========================================================================
   Штукатурка 05 — единая таблица стилей
   Палитра и шрифты взяты с текущего сайта (Elementor kit 161)
   ========================================================================== */

:root {
    --gold: #EAA824;
    --gold-hover: #d4941a;
    --gold-light: #FFD700;
    --brown: #3D2612;
    --brown-dark: #2B1A0B;
    --secondary: #54595F;
    --text: #7A7A7A;
    --line: #E6E6E6;
    --bg-soft: #F7F7F7;
    --white: #fff;

    --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
    --font-text: 'Roboto', 'Segoe UI', sans-serif;
    --font-accent: 'Roboto Slab', Georgia, serif;

    --radius: 15px;
    --radius-sm: 8px;
    --container: 1232px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .15);
    --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

img, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-hover); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--brown);
    margin: 0 0 20px;
    line-height: 1.25;
}
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; }
p { margin: 0 0 18px; }
ul { margin: 0 0 18px; padding-left: 20px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; position: relative; }
.section--tight { padding: 50px 0; }
.section--brown { background: var(--brown); color: rgba(255, 255, 255, .85); }
.section--brown h1, .section--brown h2, .section--brown h3, .section--brown h4 { color: #fff; }
/* белые карточки внутри коричневой секции: возвращаем тёмный текст,
   иначе он остаётся белым и пропадает на белом фоне */
.section--brown .card, .section--brown .price-card { color: var(--text); }
.section--brown .card p, .section--brown .price-card li { color: var(--text); }
.section--brown .card h3, .section--brown .price-card__title { color: var(--brown); }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* ------- кнопки ------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: center;
    transition: background var(--transition), transform var(--transition);
}
.btn:hover { background: var(--gold-hover); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: #fff; }
.btn--brown { background: var(--brown); }
.btn--brown:hover { background: var(--brown-dark); }

/* ------- шапка ------- */
.site-header {
    position: sticky;
    top: 0;
    /* выше затемнения (.nav-overlay, 110): иначе мобильное меню оказывается
       под затемнением — его не видно и по нему нельзя нажать */
    z-index: 130;
    background: var(--brown);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.site-header .nav__link { color: rgba(255, 255, 255, .88); }
.site-header .nav__link:hover, .site-header .nav__link.is-active { color: var(--gold); }
.site-header .burger span, .site-header .burger span::before, .site-header .burger span::after { background: #fff; }

.site-header--light { background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.site-header--light .nav__link { color: var(--secondary); }
.site-header--light .nav__link:hover, .site-header--light .nav__link.is-active { color: var(--gold); }
.site-header--light .burger span, .site-header--light .burger span::before, .site-header--light .burger span::after { background: var(--brown); }

/* ------- «шапка» внутренней страницы ------- */
.page-hero {
    background: linear-gradient(rgba(61, 38, 18, .82), rgba(61, 38, 18, .82)) center/cover no-repeat, var(--brown);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    /* одинаковая высота на всех страницах, текст по центру по вертикали */
    min-height: 380px;
    display: flex;
    align-items: center;
}
.page-hero > .container { width: 100%; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero__sub { font-size: 17px; }
.page-hero h1 { color: #fff; margin-bottom: 18px; }
.page-hero__sub { max-width: 900px; margin: 0 auto; color: rgba(255, 255, 255, .88); font-size: 17px; }
.page-hero .breadcrumbs { text-align: left; padding: 0 0 18px; }
/* hero с фотографией: текст слева, фото справа */
.page-hero--photo { text-align: left; }
.page-hero--photo h1 { max-width: 780px; }
.page-hero--photo .page-hero__sub { margin: 0; max-width: 640px; }
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 84px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 68px; height: 68px; object-fit: contain; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.nav__link {
    position: relative;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    padding: 6px 0;
    white-space: nowrap;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.nav__link:hover, .nav__link.is-active { color: var(--gold); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header-phone {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 40px;
    background: var(--gold);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.header-phone:hover { background: var(--gold-hover); color: #fff; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; position: relative; z-index: 150; }
.burger span, .burger span::before, .burger span::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--brown); content: '';
    transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.burger span { top: 21px; }
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }
/* меню открыто: бургер превращается в крестик и остаётся поверх белой панели,
   поэтому линии всегда тёмные — белые на белом были бы не видны */
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before,
body.menu-open .burger span::after { top: 0; background: var(--brown); }
body.menu-open .burger span::before { transform: rotate(45deg); }
body.menu-open .burger span::after { transform: rotate(-45deg); }

/* ------- герой ------- */
.hero {
    position: relative;
    color: #fff;
    background: var(--brown) url('../img/hero-bg.jpg') center/cover no-repeat;
    padding: 70px 0 80px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 20, 25, .92) 0%, rgba(20, 20, 25, .75) 45%, rgba(20, 20, 25, .45) 100%);
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 50px;
    align-items: center;
}
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 22px; }
.hero__sub { color: rgba(255, 255, 255, .9); font-family: var(--font-accent); font-size: 18px; margin-bottom: 26px; }
.hero__list { list-style: none; padding: 0; margin: 0 0 32px; }
.hero__list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
}
.hero__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23EAA824' d='M173.9 439.4 7.5 273c-10-10-10-26.2 0-36.2l36.2-36.2c10-10 26.2-10 36.2 0L192 312.7 432.1 72.6c10-10 26.2-10 36.2 0l36.2 36.2c10 10 10 26.2 0 36.2l-294.4 294.4c-10 10-26.2 10-36.2 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero-form {
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(2px);
}
.hero-form__title {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 22px;
    line-height: 1.35;
}

/* ------- формы ------- */
.field { margin-bottom: 14px; }
.field input, .field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: var(--radius-sm);
    font-family: var(--font-text);
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus {
    outline: 0;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(234, 168, 36, .18);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12px; color: rgba(255, 255, 255, .6); margin: 10px 0 0; text-align: center; }
.form-note--dark { color: var(--text); }
.form-status { margin-top: 12px; font-size: 14px; text-align: center; }
.form-status.is-error { color: #e04b4b; }
.form-status.is-ok { color: #2f9e5f; }

/* ------- карточки ------- */
.cards { display: grid; gap: 30px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 26px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .04);
}
.card__icon { width: 54px; height: 54px; margin: 0 auto 18px; color: var(--gold); }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; font-size: 15px; }
.section--brown .card h3 { color: var(--brown); }
.section--brown .card p { color: var(--text); }

/* ------- разделители-фигуры ------- */
.shape { position: absolute; left: 0; width: 100%; line-height: 0; pointer-events: none; }
.shape svg { width: 100%; height: 70px; }
.shape--top { top: -1px; }
.shape--bottom { bottom: -1px; transform: rotate(180deg); }
.shape--top svg path, .shape--bottom svg path { fill: var(--brown); }
.section--brown .shape svg path { fill: var(--brown); }

/* ------- калькулятор ------- */
.calc-wrap { max-width: 620px; margin: 0 auto; }
.calc {
    background: var(--brown);
    color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    box-shadow: var(--shadow-lg);
}
.calc__left, .calc__right { padding: 30px; }
.calc__right { background: rgba(0, 0, 0, .22); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.calc h3 { color: var(--gold-light); font-size: 20px; margin-bottom: 18px; }
.calc__group { margin-bottom: 22px; }
.calc__group label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 13px; margin-bottom: 10px; color: #fff; }
.calc input[type="range"] { width: 100%; accent-color: var(--gold-light); cursor: pointer; }
.calc__radios { display: flex; flex-direction: column; gap: 10px; }
.calc__radios label { display: flex; align-items: center; gap: 8px; font-family: var(--font-text); font-weight: 400; font-size: 14px; margin: 0; cursor: pointer; }
.calc__radios input { accent-color: var(--gold-light); }
.calc__total-label { font-size: 14px; margin-bottom: 8px; color: rgba(255, 255, 255, .85); }
.calc__total { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--gold-light); }

/* ------- тарифы ------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.price-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.price-card--featured { border: 3px solid var(--gold); transform: translateY(-14px); }
.price-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 10px;
}
.price-card__price { font-family: var(--font-heading); font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1; }
.price-card__unit { display: block; font-size: 14px; font-weight: 400; color: var(--text); margin-top: 6px; }
.price-card__list { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; flex: 1 1 auto; }
.price-card__list li { position: relative; padding: 0 0 12px 24px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.price-card__list li:last-child { border-bottom: 0; margin-bottom: 0; }
.price-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ------- галерея ------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery a:hover img { transform: scale(1.06); }

/* ------- видео ------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.videos video { width: 100%; border-radius: var(--radius); background: #000; }

/* ------- документы ------- */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.doc-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 26px;
    text-align: center;
    box-shadow: var(--shadow);
}
.doc-card__icon { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--gold); }
.doc-card a { font-family: var(--font-heading); font-weight: 600; color: var(--brown); }
.doc-card a:hover { color: var(--gold); }
.doc-card p { font-size: 14px; margin: 10px 0 0; }

/* ------- аккордеон FAQ ------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq__item[open] { box-shadow: var(--shadow); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--brown);
    cursor: pointer;
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 24px;
    line-height: 1;
    color: var(--gold);
    transition: transform var(--transition);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px; font-size: 15px; }
.faq__a p:last-child { margin-bottom: 0; }

/* ------- контакты ------- */
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 26px;
    text-align: center;
    box-shadow: var(--shadow);
}
.contact-card__icon { width: 52px; height: 52px; margin: 0 auto 18px; color: #fff; background: var(--gold); border-radius: 50%; padding: 14px; }
.contact-card h3 { font-size: 18px; margin-bottom: 10px; }
.contact-card a { font-weight: 500; }
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 380px; border: 0; }

/* ------- подвал ------- */
.site-footer { background: var(--brown); color: rgba(255, 255, 255, .8); padding: 70px 0 30px; position: relative; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--gold); }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 40px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; font-size: 15px; }
.footer-form .field input, .footer-form .field textarea { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.footer-form .field input::placeholder, .footer-form .field textarea::placeholder { color: rgba(255, 255, 255, .5); }
.footer-bottom {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

/* ------- лайтбокс ------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 12, 4, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox__close {
    position: absolute;
    top: 18px; right: 24px;
    width: 46px; height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
}
.lightbox__close:hover { background: var(--gold); }
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 30px;
    line-height: 1;
}
.lightbox__nav:hover { background: var(--gold); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* ------- служебное ------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.breadcrumbs { font-size: 13px; color: var(--text); padding: 18px 0 0; }
.breadcrumbs a { color: var(--text); }
.lead { font-size: 18px; color: var(--secondary); }

/* ------- адаптив ------- */
@media (max-width: 1100px) {
    .cards--5 { grid-template-columns: repeat(3, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .videos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; gap: 36px; }
    .cards--3, .pricing, .docs, .contacts-grid { grid-template-columns: 1fr; }
    .price-card--featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .calc { grid-template-columns: 1fr; }
    .map iframe { height: 300px; }
}

@media (max-width: 860px) {
    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(320px, 86vw);
        background: #fff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
        padding: 90px 24px 24px;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 120;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
    .nav__link { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav__link::after { display: none; }
    /* панель меню белая — ссылки должны быть тёмными, иначе белый текст на белом фоне */
    .site-header .nav__link,
    .site-header--light .nav__link { color: var(--secondary); }
    .site-header .nav__link:hover,
    .site-header .nav__link.is-active,
    .site-header--light .nav__link:hover,
    .site-header--light .nav__link.is-active { color: var(--gold); }
    /* порядок в шапке на телефоне: логотип — телефон — бургер */
    .logo { order: 1; }
    .header-phone {
        order: 2;
        display: inline-flex;
        margin-left: auto;
        padding: 11px 18px;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: .2px;
        border-radius: 40px;
        box-shadow: 0 4px 14px rgba(234, 168, 36, .35);
    }
    .burger { display: block; order: 3; margin-left: 10px; }
    .nav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 110; }
    .nav-overlay.is-open { opacity: 1; visibility: visible; }
    .cards--5, .cards--4, .cards--3, .cards--2 { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .videos { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .page-hero { min-height: 320px; padding: 34px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
    .cards--5, .cards--4, .cards--3, .cards--2 { grid-template-columns: 1fr; }
    .hero { padding: 44px 0 56px; }
    .hero-form { padding: 22px; }
    .site-header__inner { min-height: 70px; }
    .logo img { width: 56px; height: 56px; }
    /* на узких экранах телефон чуть компактнее, но остаётся крупным */
    .header-phone { padding: 10px 14px; font-size: 16px; letter-spacing: 0; }
    .burger { margin-left: 6px; }
    .shape svg { height: 40px; }
    .page-hero { min-height: 270px; padding: 28px 0; }
}

@media (max-width: 400px) {
    .header-phone { padding: 9px 12px; font-size: 15px; }
    .logo img { width: 48px; height: 48px; }
    .site-header__inner { padding: 0 12px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
