/* Cocum public site. Plain CSS, no build step. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter/inter-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter/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: 100 900; font-display: swap; src: url('../fonts/inter/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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter/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 {
    --sand: #f7f1e8;
    --sand-deep: #efe5d6;
    --paper: #fffdf9;
    --ink: #2b2622;
    --ink-soft: #6b6159;
    --line: #e2d6c4;
    --terracotta: #b5573a;
    --terracotta-dark: #96442b;
    --olive: #5f6b4a;
    --bronze: #9a7b4f;
    --ok: #4f7a4a;
    --warn: #b07a1e;
    --off: #9a8f86;

    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --brand-green: #2E8B57;
    --brand-orange: #D9764B;

    --wrap: 1200px;
    --gutter: 24px;
    --radius: 14px;
}

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

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

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 650; line-height: 1.18; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.85rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 2.05rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--deep { background: var(--sand-deep); }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-bottom: 10px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
    font: 600 0.95rem var(--sans); text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--terracotta); color: #fff; }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--sand); }
.btn--small { padding: 8px 16px; font-size: 0.85rem; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #ece4d8; box-shadow: 0 1px 10px rgba(43,38,34,.04); }
.header__row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { text-decoration: none; display: flex; margin-right: auto; }
.logo__img { display: block; height: 32px; width: auto; }
.footer .logo__img { height: 38px; }
.flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: none; display: inline-block; vertical-align: middle; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { border-bottom-color: var(--terracotta); }
.header__phone { text-decoration: none; font-weight: 600; white-space: nowrap; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn--wa { background: #25a35a; }
.icon-btn--tg { background: #2f8fce; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; background: var(--paper); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(43,38,34,.16); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 260px; z-index: 5; }
.lang a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; }
.lang a:hover { background: var(--sand); }
.lang a.is-active { font-weight: 700; color: var(--terracotta-dark); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

/* Hero slider */
.hero { position: relative; background: var(--sand-deep); overflow: hidden; }
.hero__slide { display: none; position: relative; min-height: min(78vh, 720px); }
.hero__slide.is-active { display: flex; align-items: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,241,232,.92) 0%, rgba(247,241,232,.72) 38%, rgba(247,241,232,0) 66%); }
.hero__body { position: relative; padding-top: 64px; padding-bottom: 64px; width: 100%; }
.hero__text { max-width: 560px; }
.hero__text p { font-size: 1.2rem; color: var(--ink-soft); margin: 18px 0 30px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; }
.hero__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(43,38,34,.3); cursor: pointer; }
.hero__dot.is-active { background: var(--terracotta); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.stats > div { padding: 26px 28px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats__value { font-size: 1.45rem; font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; }
.stats__label { color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }
.stats--lift { margin-top: -46px; position: relative; z-index: 2; }

/* Two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; }
.split__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose { color: var(--ink-soft); font-size: 1.05rem; }
.prose p { white-space: pre-line; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature__num { font-size: 1.05rem; font-weight: 600; color: var(--bronze); line-height: 1; margin-bottom: 12px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--sand-deep); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { color: var(--ink-soft); font-size: 0.92rem; }
.card__price { font-size: 1.15rem; font-weight: 650; margin-top: auto; padding-top: 10px; }

/* Availability table */
.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th, .table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; background: var(--sand); }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table__code { font-weight: 600; text-decoration: none; }
.table__code:hover { color: var(--terracotta); }
.table tr.is-sold td { color: var(--off); }
.price { font-weight: 600; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.badge--available { background: #e4eede; color: var(--ok); }
.badge--reserved { background: #f6ead0; color: var(--warn); }
.badge--sold { background: #ece6df; color: var(--off); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { border-radius: 10px; overflow: hidden; display: block; position: relative; }
.gallery a[hidden] { display: none; }
.gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(43,38,34,.55); color: #fff; font-size: 1.4rem; font-weight: 600; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

/* Page head */
.page-head { padding: 56px 0 40px; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 720px; margin-top: 14px; }
.crumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.project-hero { position: relative; border-radius: var(--radius); overflow: hidden; }
.project-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: right center; }

/* Facts list */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Lead form */
.lead { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.lead__contacts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.lead__contacts a { text-decoration: none; font-weight: 600; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; font: inherit; color: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; border-color: transparent; }
.field__error { color: var(--terracotta-dark); font-size: 0.82rem; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: #e4eede; color: #35562f; border-radius: 10px; padding: 14px 16px; font-weight: 600; }
.notice--error { background: #f7e1da; color: var(--terracotta-dark); }
#lead-form { scroll-margin-top: 72px; }

/* Footer */
.footer { background: #fff; color: var(--ink-soft); padding: 56px 0 28px; font-size: 0.95rem; border-top: 1px solid #ece4d8; }
.footer a { text-decoration: none; color: var(--ink); }
.footer a:hover { color: var(--terracotta); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.5fr 1.3fr; gap: 40px; }
.footer ul.footer__menu { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer h3 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--ink-soft); font-size: 0.82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Floating messengers */
.float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; gap: 10px; }
.float .icon-btn { width: 52px; height: 52px; box-shadow: 0 6px 18px rgba(43,38,34,.25); }
.float .icon-btn svg { width: 26px; height: 26px; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.videos--single { grid-template-columns: minmax(0, 880px); }
.video { margin: 0; }
.video__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: #111; cursor: pointer; }
.video__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; opacity: .92; }
.video__frame:hover img { transform: scale(1.02); opacity: 1; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); }
.video figcaption { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }

/* News timeline (project page) */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.timeline__item { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 22px; padding: 0 0 30px; }
.timeline__item[hidden] { display: none; }
.timeline__item::before { content: ''; position: absolute; left: 116px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.timeline__item:last-of-type::before { bottom: 0; }
.timeline__body { position: relative; padding-left: 22px; }
.timeline__body::before { content: ''; position: absolute; left: -11px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px var(--paper); }
.timeline__date { color: var(--ink-soft); font-size: 0.9rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline__body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline__body p { color: var(--ink-soft); margin: 0 0 12px; }
.timeline__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 560px; margin-bottom: 12px; }
.timeline__photos a { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.timeline__photos a[hidden] { display: none; }
.timeline__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.timeline .videos { grid-template-columns: minmax(0, 560px); }
.timeline__more { margin: 0; }

/* Latest news (home page) */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-list a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; height: 100%; }
.news-list img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.news-list time { display: block; color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 2px; }
.news-list strong { font-weight: 600; }
.news-list a:hover strong { color: var(--terracotta); }

/* Documents */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 720px; }
.doc { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.doc__type, .doc-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 26px; padding: 0 6px; border-radius: 5px; font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: #c4302b; text-decoration: none; }
.doc__type--doc { background: #2b579a; }
.doc__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-icon:hover { opacity: .85; }

/* Text pages */
.article { max-width: 780px; font-size: 1.05rem; }
.article h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 28px 0 10px; }
.article p, .article li { color: #4a423c; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 8px; }
.article a { color: var(--terracotta-dark); }
.article blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--bronze); font-size: 1.1rem; font-style: italic; }

/* Map */
.map { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand-deep); overflow: hidden; }
.map__links { margin: 14px 0 0; }
.map iframe { width: 100%; height: 440px; border: 0; display: block; }

/* Team (contacts page): photo on the left, details on the right */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.member { display: flex; gap: 20px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.member__photo { width: 140px; height: 140px; flex: none; object-fit: cover; border-radius: 12px; background: var(--sand-deep); }
.member__photo--empty { display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 300; color: var(--bronze); }
.member__body { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.member__info { min-width: 0; display: grid; gap: 4px; }
.member h3 { font-size: 1.1rem; margin-bottom: 0; }
.member__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.member__langs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 150px; }
.member__langs .flag { width: 24px; height: 17px; }
.member__actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.member__actions .btn { justify-content: flex-start; }
.member__phone { margin-top: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.member__phone:hover, .member__email:hover { color: var(--terracotta); }
.member__email { font-size: 0.92rem; color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.btn--wa { background: #25a35a; color: #fff; }
.btn--wa:hover { background: #1e8a4b; }
.btn--wa svg, .btn--ghost svg { width: 16px; height: 16px; fill: currentColor; }

/* Cookie banner */
.cookie { position: fixed; left: 18px; bottom: 18px; z-index: 55; max-width: 520px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(43,38,34,.2); padding: 20px 22px; display: grid; gap: 14px; font-size: 0.9rem; }
.cookie[hidden] { display: none; }
.cookie__text { display: grid; gap: 4px; color: var(--ink-soft); }
.cookie__text strong { color: var(--ink); font-size: 1rem; }
.cookie__text a { color: var(--terracotta-dark); }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(20,17,15,.94); display: none; align-items: center; justify-content: center; padding: 56px 72px; touch-action: pan-y; user-select: none; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lightbox__btn { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font: 400 28px/1 var(--sans); transition: background .15s; }
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 14px; top: 12px; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: rgba(255,255,255,.8); font-size: 0.9rem; letter-spacing: .05em; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
body.has-lightbox { overflow: hidden; }

@media (max-width: 960px) {
    .nav, .header__phone { display: none; }
    .burger { display: block; }
    .nav.is-open { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--sand); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 18px; gap: 6px; }
    .split, .lead { grid-template-columns: 1fr; gap: 32px; }
    .features, .cards { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div:nth-child(3) { border-left: 0; }
    .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .team { grid-template-columns: 1fr; }
    .news-list { grid-template-columns: 1fr 1fr; }
    .videos { grid-template-columns: 1fr; }
    .hero__shade { background: linear-gradient(90deg, rgba(247,241,232,.94) 0%, rgba(247,241,232,.8) 60%, rgba(247,241,232,.45) 100%); }
}

@media (max-width: 620px) {
    :root { --gutter: 16px; }
    .section { padding: 52px 0; }
    .features, .cards, .gallery, .facts, .form__row, .footer__grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .hero__slide { min-height: 520px; }
    h1 { font-size: 1.4rem; overflow-wrap: break-word; }
    h2 { font-size: 1.3rem; }
    .logo__img { height: 25px; }
    .footer .logo__img { height: 29px; }
    .lightbox { padding: 52px 8px; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
    .lightbox__count { bottom: 22px; }
    .member { padding: 12px; gap: 14px; align-items: flex-start; }
    .member__photo { width: 96px; height: 96px; }
    .member__body { flex-direction: column; gap: 10px; }
    .member__side { align-items: flex-start; gap: 10px; }
    .member__langs { justify-content: flex-start; max-width: none; }
    .member__actions { flex-direction: row; flex-wrap: wrap; }
    .member__phone { margin-top: 6px; }
    .header__actions .icon-btn { display: none; }
    .header__row { gap: 12px; }
    .hero__text p { font-size: 1.05rem; }
    .stats > div { padding: 16px; min-width: 0; }
    .stats__value { font-size: 1.1rem; overflow-wrap: break-word; }
    .form { padding: 20px; }
    .timeline__item { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
    .timeline__item::before { left: 5px; top: 8px; }
    .timeline__body { padding-left: 0; }
    .timeline__body::before { left: -22px; top: -20px; }
    .timeline__photos { grid-template-columns: repeat(3, 1fr); }
    .timeline__photos a:nth-child(4) { display: none; }
    .news-list { grid-template-columns: 1fr; }
    .news-list a { flex-direction: row; align-items: center; }
    .news-list img { width: 110px; flex: none; }
    .doc { flex-wrap: wrap; }
    .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .map iframe { height: 340px; }
    .project-hero img { aspect-ratio: 4 / 3; }
}
