/* SIA EVEN — стили всего сайта.
   Разделы: шрифты → цвета и основа → кнопки → шапка → блоки страниц → галерея → контакты → подвал → телефоны */

/* ===== Шрифты (лежат в папке fonts, браузер грузит только нужный алфавит) ===== */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url('fonts/cormorant-garamond-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Цвета и основа ===== */
:root {
    --ink: #1c1b19;          /* чёрный гранит: заголовки, тёмные блоки */
    --ink-2: #3b3834;        /* основной текст */
    --muted: #6e675f;        /* второстепенный текст */
    --line: #e3ddd3;         /* тонкие линии и рамки */
    --stone: #f1ede6;        /* светлый фон секций */
    --paper: #fbfaf7;        /* фон страницы */
    --white: #ffffff;
    --gold: #b39158;         /* акцент: кнопки, линии */
    --gold-light: #c6a671;
    --gold-text: #8a6a35;    /* золотой для текста на светлом фоне */

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --wrap: 1200px;
    --gutter: 24px;
    --section: clamp(56px, 8vw, 104px);
    --radius: 3px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;   /* обычные цифры: «1000», а не «1ooo» в шрифте заголовков */
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.005em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

p {
    margin: 0 0 1em;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--section) 0;
}

.section-alt {
    background: var(--stone);
}

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

.eyebrow a {
    text-decoration: none;
}

.eyebrow a:hover {
    text-decoration: underline;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 36px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.link-arrow {
    color: var(--gold-text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.link-arrow:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    top: 12px;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-sm {
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}

.btn-gold:hover {
    background: var(--gold-light);
}

.btn-dark {
    background: var(--ink);
    color: var(--white);
}

.btn-dark:hover {
    background: #34312d;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== Шапка ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 250, 247, 0.94);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 78px;
}

.brand {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-name {
    white-space: nowrap;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.brand-tag {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.main-nav a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--line);
}

.main-nav a.active {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone svg {
    color: var(--gold-text);
}

.lang-switch {
    display: flex;
    gap: 2px;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.lang-switch a[aria-current] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 5px;
}

/* ===== Главная: видео-обложка ===== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(86vh, 820px);
    padding: 80px 0;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(20, 19, 17, 0.86) 0%, rgba(20, 19, 17, 0.62) 55%, rgba(20, 19, 17, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero .eyebrow {
    color: var(--gold-light);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(3.2rem, 9vw, 6rem);
    letter-spacing: 0.04em;
}

.hero-lead {
    max-width: 600px;
    margin: 18px 0 34px;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 500;
    line-height: 1.4;
}

/* Цитата-абзацы под обложкой */
.statement {
    max-width: 820px;
    text-align: center;
}

.statement::before {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin: 0 auto 32px;
    background: var(--gold);
}

.statement p {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    font-weight: 500;
    line-height: 1.45;
}

.statement p:last-child {
    margin-bottom: 0;
}

/* Три факта о фирме */
.trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust li {
    padding-top: 20px;
    border-top: 1px solid var(--gold);
}

.trust-title {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.15;
}

.trust-text {
    color: var(--muted);
    font-size: 15px;
}

/* ===== Заголовок внутренних страниц ===== */
.page-hero {
    padding: clamp(48px, 7vw, 88px) 0;
    background: radial-gradient(ellipse at 85% 0%, #34302b 0%, var(--ink) 65%);
    color: var(--white);
}

.page-hero .eyebrow {
    color: var(--gold-light);
}

.page-hero h1 {
    max-width: 860px;
    color: var(--white);
}

.page-lead {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.page-price {
    display: inline-block;
    margin: 20px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid rgba(198, 166, 113, 0.5);
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 500;
}

/* ===== Карточки разделов галереи ===== */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* неполный последний ряд — по центру */
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cards li {
    flex: 0 1 calc((100% - 56px) / 3);
}

.card {
    display: block;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
    box-shadow: 0 18px 40px -22px rgba(28, 27, 25, 0.45);
    transform: translateY(-3px);
}

.card-img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--stone);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.card:hover .card-img img {
    transform: scale(1.04);
}

.card-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 20px;
}

.card-title {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
}

.card-link {
    color: var(--gold-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ===== Фото на страницах разделов ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    font: inherit;
    text-align: left;
    cursor: zoom-in;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.gallery-item:hover {
    box-shadow: 0 16px 36px -22px rgba(28, 27, 25, 0.5);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--stone);
    transition: transform 0.6s;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-num {
    position: relative;      /* поверх увеличенного фото */
    display: block;
    padding: 10px 14px;
    background: var(--white);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Просмотр фото на весь экран (создаётся в gallery.js) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 90px 70px;
    background: rgba(16, 15, 14, 0.95);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-align: center;
}

.lightbox-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s;
}

.lightbox-btn svg {
    display: block;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 16px;
    right: 16px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    margin-top: -27px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Кнопка «Наверх» (создаётся в gallery.js) */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: none;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.to-top.show {
    display: block;
}

/* ===== Призыв: позвонить / запросить цену ===== */
.cta-band {
    padding: clamp(48px, 6vw, 72px) 0;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}

.cta-band h2 {
    margin-bottom: 10px;
    color: var(--white);
}

.cta-band p {
    max-width: 560px;
    margin: 0;
}

/* ===== О нас ===== */
.prose {
    max-width: 780px;
}

.prose p {
    font-size: 1.1rem;
}

.prose .prose-lead {
    margin-bottom: 1.2em;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.6vw, 1.85rem);
    font-weight: 500;
    line-height: 1.4;
}

/* ===== Контакты ===== */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 32px;
    align-items: start;
}

.contact-card,
.form-card {
    padding: clamp(24px, 4vw, 40px);
    background: var(--white);
    border: 1px solid var(--line);
}

.contact-list {
    margin: 0 0 28px;
}

.contact-list div + div {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.contact-list dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-list dd {
    margin: 0;
    color: var(--ink);
}

.contact-list a {
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-big {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    white-space: nowrap;
}

.form-card h2 {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid #d5cdc1;
    border-radius: var(--radius);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;   /* 16px — iPhone не приближает страницу при вводе */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    outline: 2px solid rgba(179, 145, 88, 0.3);
    outline-offset: 0;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .btn {
    margin-top: 6px;
}

/* Сообщение после отправки формы */
.form-status {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 15px;
}

.form-status.ok {
    background: #e7f3e4;
    color: #1e5c1a;
    border: 1px solid #9fcf98;
}

.form-status.fail {
    background: #fbe8e6;
    color: #8a1f1f;
    border: 1px solid #e3a59f;
}

/* Ловушка для спам-ботов: скрыта от людей */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.map {
    border: 1px solid var(--line);
    background: var(--white);
}

.map iframe {
    display: block;
    width: 100%;
    height: 440px;
    border: 0;
}

/* ===== Подвал ===== */
.site-footer {
    padding-top: clamp(48px, 6vw, 72px);
    background: #141311;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--white);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: var(--gold-light);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 6px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

/* Панель «Позвонить / Запросить цену» внизу экрана — только на телефонах */
.mobile-cta {
    display: none;
}

/* ===== Планшеты ===== */
/* Средние экраны: шесть пунктов меню + кнопка в одну строку, номер телефона — в подвале и на кнопках */
@media (max-width: 1600px) and (min-width: 1181px) {
    .header-phone {
        display: none;
    }

    .main-nav {
        gap: 22px;
    }
}

@media (max-width: 1180px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px 20px;
        padding-top: 12px;
        padding-bottom: 6px;
    }

    .header-actions {
        margin-left: auto;
    }

    .main-nav {
        order: 5;
        width: 100%;
        margin-left: 0;
        gap: 24px;
    }

    .main-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 900px) {
    .cards li {
        flex-basis: calc((100% - 28px) / 2);
    }

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

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

/* ===== Телефоны ===== */
@media (max-width: 767px) {
    :root {
        --gutter: 18px;
    }

    body {
        font-size: 16px;
        padding-bottom: 76px;   /* место под нижнюю панель */
    }

    /* Шапка не прилипает — экран телефона и так маленький */
    .site-header {
        position: static;
    }

    .header-inner {
        min-height: 0;
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .brand {
        min-height: 44px;
        justify-content: center;
    }

    .brand-name {
        font-size: 25px;
    }

    .brand-tag {
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    /* Все ссылки — не меньше 44px по высоте, обычный текст — не меньше 16px */
    .eyebrow a,
    .link-arrow,
    .contact-list a,
    .site-footer a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .site-footer,
    .footer-bottom,
    .trust-text,
    .contact-form label,
    .lightbox-caption {
        font-size: 16px;
    }

    .site-footer li + li {
        margin-top: 0;
    }

    .header-actions {
        display: none;    /* вместо них — нижняя панель */
    }

    .lang-switch {
        margin-left: auto;
    }

    .lang-switch a {
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
    }

    /* Меню — кнопки-«таблетки» в два ряда */
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .main-nav a {
        padding: 0 16px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--white);
        font-size: 16px;
    }

    .main-nav a:hover {
        border-color: var(--line);
    }

    .main-nav a.active {
        border-color: var(--ink);
        background: var(--ink);
        color: var(--white);
    }

    .hero {
        min-height: 0;
        padding: 64px 0 56px;
    }

    .hero .actions .btn,
    .cta-band .actions .btn {
        flex: 1 1 100%;
    }

    .trust {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cards li {
        flex-basis: 100%;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-num {
        padding: 8px 10px;
        font-size: 16px;
        letter-spacing: 0.02em;
    }

    .contact-big {
        font-size: 1.75rem;
    }

    .map iframe {
        height: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(251, 250, 247, 0.97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    }

    .mobile-cta .btn {
        min-height: 50px;
        padding: 0 10px;
        font-size: 13px;
        letter-spacing: 0.04em;
    }

    .to-top {
        right: 14px;
        bottom: 88px;   /* над нижней панелью */
    }

    /* Просмотр фото: все кнопки внизу — в зоне большого пальца */
    .lightbox {
        padding: 16px 8px 150px;
    }

    .lightbox-caption {
        bottom: 96px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 24px;
        margin-top: 0;
        width: 58px;
        height: 58px;
    }

    .lightbox-close {
        right: auto;
        left: 50%;
        margin-left: -29px;
    }

    .lightbox-prev {
        left: 24px;
    }

    .lightbox-next {
        right: 24px;
    }
}

/* На сенсорных экранах нет наведения — без «залипающих» эффектов */
@media (hover: none) {
    .card:hover,
    .gallery-item:hover {
        transform: none;
        box-shadow: none;
    }

    .card:hover .card-img img,
    .gallery-item:hover img {
        transform: none;
    }
}

/* Для тех, у кого в системе отключена анимация */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
