/* ============================================================
   КиноАкадемия · Красногорск
   Статичный лендинг. Mobile-first.
   ============================================================ */

/* --- 1. Токены ------------------------------------------- */
:root {
  --ink:        #14110f;
  --ink-soft:   #3b342e;
  --muted:      #6f655b;
  --paper:      #faf7f2;
  --paper-2:    #f1ebe2;
  --line:       #e2d9cc;
  --accent:     #d94f16;
  --accent-dk:  #b23f0f;
  --accent-soft:#fdeee6;
  --dark:       #0e0c0b;
  --dark-2:     #1a1613;

  --ff-display: "Oswald", "Arial Narrow", sans-serif;
  --ff-text:    "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --pad: 20px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(20,17,15,.05), 0 8px 28px -12px rgba(20,17,15,.18);

  --header-h: 60px;
}

@media (min-width: 900px) { :root { --pad: 40px; --header-h: 72px; } }

/* --- 2. Сброс -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
/* height: auto обязателен. У картинок проставлены атрибуты width/height —
   без этого правила браузер считает height атрибутом в пикселях и растягивает
   изображение по вертикали, когда ширину ограничивает контейнер. */
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); font-weight: 600; line-height: 1.06; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* --- 3. Каркас ------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: 56px; scroll-margin-top: calc(var(--header-h) + 8px); }
@media (min-width: 900px) { .section { padding-block: 96px; } }
.section--dark { background: var(--dark); color: #f4efe8; }
.section--tint { background: var(--paper-2); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section--dark .eyebrow { color: #f0854f; }

h2.h2 { font-size: clamp(28px, 7vw, 52px); text-transform: uppercase; }
h3.h3 { font-size: clamp(19px, 4vw, 24px); text-transform: uppercase; }
.lede { font-size: clamp(16px, 3.6vw, 20px); color: var(--muted); max-width: 62ch; margin-top: 16px; }
.section--dark .lede { color: #b9ada0; }

/* --- 4. Кнопки ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  min-height: 52px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 22px -8px rgba(217,79,22,.7); }
.btn--primary:hover { background: var(--accent-dk); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
/* на тёмном фоне ghost-кнопка перекрашивается: иначе тёмный текст на тёмном фото */
.section--dark .btn--ghost,
.hero .btn--ghost,
.header .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: rgba(20,17,15,.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.header .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.btn--light { background: #fff; color: var(--dark); }
.btn--light:hover { background: #f0e9df; }
.btn--lg { padding: 19px 34px; font-size: 18px; min-height: 60px; }
.btn--block { width: 100%; }

/* --- 5. Шапка -------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(14,12,11,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #fff;
  transition: background-color .3s ease;
}
.header__in { display: flex; align-items: center; gap: 20px; width: 100%; }
.header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.header__logo img { height: 26px; width: auto; }
@media (min-width: 900px) { .header__logo img { height: 30px; } }
.nav { display: none; gap: 18px; }
@media (min-width: 1000px) { .nav { display: flex; } }
@media (min-width: 1220px) { .nav { gap: 26px; } }
.nav a {
  font-family: var(--ff-display); font-size: 14px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,.72); padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover, .nav a.is-active { color: #fff; border-color: var(--accent); }
.header .btn { min-height: 40px; padding: 10px 18px; font-size: 13px; }
@media (max-width: 479px) { .header .btn { padding: 10px 14px; font-size: 12px; } }

/* --- 6. Первый экран ------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding-block: 40px 44px;
}
@media (min-width: 900px) { .hero { min-height: min(760px, calc(100svh - var(--header-h))); align-items: center; } }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,8,7,.96) 0%, rgba(10,8,7,.82) 34%, rgba(10,8,7,.42) 66%, rgba(10,8,7,.55) 100%);
}
@media (min-width: 900px) {
  .hero__bg::after {
    background:
      linear-gradient(100deg, rgba(10,8,7,.94) 0%, rgba(10,8,7,.8) 42%, rgba(10,8,7,.15) 78%),
      linear-gradient(to top, rgba(10,8,7,.7), transparent 40%);
  }
}
.hero__in { position: relative; z-index: 2; width: 100%; }
.hero__body { max-width: 720px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 9.4vw, 74px);
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: #ff8a4d; }
.hero__marks {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; padding: 0; list-style: none;
}
.hero__marks li {
  font-family: var(--ff-display); font-size: 14px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 15px;
}
.hero__marks li.is-key { background: #fff; color: var(--dark); border-color: #fff; font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 599px) { .hero__cta .btn { flex: 1 1 100%; } }
.hero__urgent {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; font-size: 15px; color: #cfc3b6;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: #35d07f; flex: none;
  box-shadow: 0 0 0 0 rgba(53,208,127,.7); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 11px rgba(53,208,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,208,127,0); }
}

/* --- 7. Цифры -------------------------------------------- */
.stats { background: var(--dark-2); color: #fff; padding-block: 30px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 16px;
}
@media (min-width: 760px) { .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.stat__n {
  font-family: var(--ff-display); font-size: clamp(30px, 8vw, 46px); font-weight: 600; line-height: 1;
  color: #fff;
}
.stat__n small { font-size: .45em; color: #f0854f; margin-left: 2px; }
.stat__l { font-size: 13.5px; color: #a2968a; margin-top: 7px; line-height: 1.35; }

/* --- 8. Сетки карточек ----------------------------------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid--gap-lg { gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.section--dark .card { background: #171310; border-color: rgba(255,255,255,.1); box-shadow: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 20px 24px; flex: 1; }
.card__num {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--accent); display: block; margin-bottom: 10px;
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: 15.5px; color: var(--muted); }
.section--dark .card p { color: #a99d90; }

/* --- 9. Фильмы ------------------------------------------- */
.film { background: #171310; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); overflow: hidden; }
.player {
  position: relative; aspect-ratio: 16 / 9; background: #0a0808;
  border: 0; padding: 0; width: 100%; cursor: pointer; display: block; color: #fff;
  text-decoration: none;
}
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .25s ease, transform .5s ease; }
.player:hover img { opacity: .95; transform: scale(1.02); }
.player__play {
  position: absolute; inset: 0; margin: auto;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(217,79,22,.94);
  display: grid; place-items: center;
  box-shadow: 0 10px 34px -10px rgba(0,0,0,.8);
  transition: transform .2s ease;
}
.player:hover .player__play { transform: scale(1.08); }
.player__play svg { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.player__len {
  position: absolute; right: 12px; bottom: 12px;
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  background: rgba(0,0,0,.66); padding: 5px 9px; border-radius: 6px;
}
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__body { padding: 20px 20px 24px; color: #f4efe8; }
.film__meta {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #8d8177; margin-bottom: 9px;
}
.film__body p { font-size: 15px; color: #a99d90; }
.film__cast { margin-top: 16px; font-size: 14.5px; color: #a99d90; line-height: 1.5; }
.film__cast b {
  display: block; margin-bottom: 5px; color: #8d8177;
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.awards { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding: 0; list-style: none; }
.awards li {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #ffc48f; background: rgba(240,133,79,.14); border: 1px solid rgba(240,133,79,.3);
  padding: 5px 10px; border-radius: 999px;
}

/* --- 10. Год: сторителлинг ------------------------------- */
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.split--wide-l { }
@media (min-width: 900px) { .split--wide-l { grid-template-columns: 1.15fr .85fr; } }
.split__media img { border-radius: var(--r); width: 100%; }
.figure { margin: 0; }
.figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.topics { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.section--dark .topics { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
.topics li { background: var(--paper); padding: 16px 18px; }
.section--dark .topics li { background: var(--dark); }
@media (min-width: 900px) { .topics--2 { grid-template-columns: 1fr 1fr; } }
.topics b { display: block; font-family: var(--ff-display); font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.topics span { font-size: 14.5px; color: var(--muted); }
.section--dark .topics span { color: #a2968a; }

/* --- 10б. Итог года -------------------------------------- */
.outcome { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 560px) { .outcome { grid-template-columns: repeat(2, 1fr); } }
.outcome > div { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; }
.section--dark .outcome > div { background: #171310; border-color: rgba(255,255,255,.1); }
.outcome b { display: block; font-family: var(--ff-display); font-size: clamp(34px, 8vw, 46px); font-weight: 600; line-height: 1; color: var(--accent); }
.outcome span { display: block; margin-top: 9px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.section--dark .outcome span { color: #a2968a; }

/* --- 11. Расписание -------------------------------------- */
.sched { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 760px) { .sched { grid-template-columns: repeat(2, 1fr); } }
.sched__item { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; }
.sched__day { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sched__item h3 { margin: 10px 0 8px; }
.sched__item p { font-size: 15px; color: var(--muted); }

/* --- 11а. Новость / объявление --------------------------- */
.notice {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .notice { padding: 36px 38px; } }
.notice__date {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.notice .lede { margin-top: 14px; }
.notice__times { list-style: none; margin: 26px 0 22px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 620px) { .notice__times { grid-template-columns: repeat(2, 1fr); } }
.notice__times li { background: var(--paper-2); border-radius: 12px; padding: 16px 18px; }
.notice__times b {
  display: block; font-family: var(--ff-display); font-size: clamp(18px, 4.2vw, 23px);
  font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
}
.notice__times span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* --- 11б. Программа по месяцам --------------------------- */
.months { margin-top: 22px; border-top: 1px solid var(--line); }
.months details { border-bottom: 1px solid var(--line); }
.months summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 44px 18px 0;
  display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap;
}
.months summary::-webkit-details-marker { display: none; }
.months summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px; margin-top: -6px;
  background: linear-gradient(var(--accent),var(--accent)) center/100% 2px no-repeat,
              linear-gradient(var(--accent),var(--accent)) center/2px 100% no-repeat;
  transition: transform .25s ease;
}
.months details[open] summary::after { transform: rotate(45deg); }
.month__n {
  flex: none; font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.month__t { font-family: var(--ff-display); font-size: clamp(18px, 4.2vw, 25px); font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.month__lead { font-size: 15px; color: var(--muted); flex-basis: 100%; }
.month__body { padding: 0 0 26px; max-width: 80ch; }
.month__row { margin-bottom: 15px; font-size: 15.5px; color: var(--muted); }
.month__row b {
  display: block; margin-bottom: 5px; color: var(--ink);
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.rule {
  margin-top: 18px; padding: 15px 18px; background: #fff;
  border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; font-size: 15.5px;
}
.rule b {
  display: block; margin-bottom: 5px; color: var(--accent);
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}

/* --- 11в. Что получится к маю ---------------------------- */
.deliver { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .deliver { grid-template-columns: repeat(2, 1fr); } }
.deliver li {
  display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.deliver svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 2.5; }

.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.facts svg { width: 20px; height: 20px; flex: none; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 2; }

/* --- 12. Преподаватель ----------------------------------- */
.teacher__photo { border-radius: var(--r); overflow: hidden; }
.teacher__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.credits { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.credits li { display: flex; gap: 12px; font-size: 15.5px; color: var(--muted); }
.credits b { color: var(--ink); font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; padding-top: 3px; flex: none; width: 62px; }
.section--dark .credits b { color: #f4efe8; }

/* --- 12b. Мастер-классы ---------------------------------- */
.roles { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.roles li {
  font-family: var(--ff-display); font-size: 14px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 15px;
}
.section--dark .roles li { background: transparent; border-color: rgba(255,255,255,.28); color: #f4efe8; }

/* --- 13. Отзывы ------------------------------------------ */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.quote p { font-size: 16.5px; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote__ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--paper-2); flex: none; }
.quote__name { font-family: var(--ff-display); font-size: 16px; font-weight: 600; text-transform: uppercase; }
.quote__role { font-size: 13px; color: var(--muted); }

/* --- 14. Вопросы ----------------------------------------- */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--ff-display); font-size: clamp(17px, 4vw, 21px); font-weight: 500;
  text-transform: uppercase; letter-spacing: .005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px;
  margin-top: -7px;
  background: linear-gradient(var(--accent),var(--accent)) center/100% 2px no-repeat,
              linear-gradient(var(--accent),var(--accent)) center/2px 100% no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 74ch; }

/* --- 15. Запись + контакты ------------------------------- */
.signup { display: grid; gap: 34px; }
@media (min-width: 950px) { .signup { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.form { display: grid; gap: 14px; margin-top: 26px; }
.field label {
  display: block; font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #a2968a; margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%; padding: 15px 16px; font: inherit; font-size: 16px;
  background: rgba(255,255,255,.05); color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  transition: border-color .15s ease, background-color .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6f655b; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.08); }
.field--row { display: grid; gap: 14px; }
@media (min-width: 520px) { .field--row { grid-template-columns: 1fr 110px; } }
.form__note { font-size: 13px; color: #8d8177; }
.form__note a { color: #c9bdb0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 15px; padding: 14px 16px; border-radius: 10px; display: none; }
.form__status.is-ok { display: block; background: rgba(53,208,127,.14); border: 1px solid rgba(53,208,127,.4); color: #8ee6b6; }
.form__status.is-err { display: block; background: rgba(217,79,22,.14); border: 1px solid rgba(217,79,22,.45); color: #ffa376; }

.contacts { display: grid; gap: 12px; margin-top: 26px; }
.contact {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 12px; text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: border-color .15s ease, background-color .15s ease;
}
.contact:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.contact__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.08); }
.contact__ico svg { width: 19px; height: 19px; fill: #fff; }
.contact b { display: block; font-family: var(--ff-display); font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.contact span { font-size: 13.5px; color: #a2968a; }
.map { margin-top: 18px; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #171310; }
.map iframe { width: 100%; aspect-ratio: 16 / 10; height: auto; min-height: 260px; border: 0; display: block; }

/* --- 16. Галерея ----------------------------------------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.strip > * { scroll-snap-align: start; border-radius: 12px; overflow: hidden; }
/* object-position смещён выше центра: если фото не 3:2, обрезается низ,
   а лица остаются в кадре. Раньше на вертикальных фото срезало головы. */
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 38%; }
@media (min-width: 760px) { .strip { grid-auto-columns: 38%; } }
@media (min-width: 1100px) { .strip { grid-auto-columns: 27%; } }
/* лента фото внутри новости — карточка уже, поэтому кадры крупнее */
.strip--news { grid-auto-columns: 82%; }
@media (min-width: 760px) { .strip--news { grid-auto-columns: 46%; } }
@media (min-width: 1100px) { .strip--news { grid-auto-columns: 32%; } }

/* --- 17. Подвал ------------------------------------------ */
.footer { background: var(--dark); color: #8d8177; padding-block: 44px 40px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14.5px; }
.footer__top { display: grid; gap: 26px; }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; } }
.footer img.logo { height: 30px; width: auto; margin-bottom: 14px; }
.footer h4 { font-size: 13px; font-family: var(--ff-mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f4efe8; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; color: #a2968a; }
.footer a:hover { color: #fff; }
.footer__bot { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; }

/* --- 18. Плавающая кнопка -------------------------------- */
.fab {
  position: fixed; z-index: 70; left: 14px; right: 14px; bottom: 14px;
  display: flex; gap: 10px;
  transform: translateY(140%); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), opacity .3s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.fab.is-on { transform: none; opacity: 1; }
.fab .btn { flex: 1; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.fab .btn--tg { flex: 0 0 56px; padding: 0; background: #fff; color: var(--dark); }
.fab .btn--tg svg { width: 22px; height: 22px; fill: currentColor; }
@media (min-width: 1000px) { .fab { display: none; } }

/* --- 19. Заглушки (удалить после наполнения) ------------- */
.todo {
  border: 1px dashed var(--accent) !important;
  background: var(--accent-soft);
  color: var(--accent-dk);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .01em;
}
.section--dark .todo { background: rgba(217,79,22,.12); color: #ffab7d; }
.todo b { font-weight: 700; }

/* --- 20. Утилиты ----------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
