/* ============================================================
   АНО «Центр современных технологий» — лендинг
   Дизайн по образцу ano-cst.ru: тёмный фон #242424, белый текст,
   кремовые карточки, оранжевый акцент, шрифт Montserrat
   ============================================================ */

:root {
  color-scheme: dark;

  --bg: #242424;
  --bg2: #2b2b2b;
  --card: #303030;
  --card2: #383838;
  --cream: #fbfbf0;
  --cream-dark: #1f2013;

  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);

  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);

  --orange: #f7752b;
  --orange-hover: #ff8a45;

  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: min(1160px, 92%); margin: 0 auto; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; }

a { color: inherit; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--orange);
  color: #241305;
  box-shadow: 0 10px 26px rgba(247, 117, 43, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--orange-hover); box-shadow: 0 14px 32px rgba(247, 117, 43, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--orange); transform: translateY(-2px); }

.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(36, 36, 36, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a:not(.nav-cta) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
  transition: color 0.2s ease;
}
.nav > a:not(.nav-cta):hover { color: var(--text); }
.nav-cta { margin-left: 8px; padding: 10px 20px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 90px 0 70px;
  background:
    linear-gradient(rgba(20, 20, 20, 0.72), rgba(36, 36, 36, 0.9)),
    url("../assets/brand/hero-bg.jpg") center 40% / cover no-repeat,
    var(--bg);
}

.hero-org {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(247, 117, 43, 0.5);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  max-width: 20ch;
}

.hero-city {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 56ch; margin-bottom: 34px; }

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

/* ---------- Секции ---------- */
.section { padding: 90px 0; }
.section-dark { background: var(--bg2); }

.section-head { max-width: 760px; margin-bottom: 46px; }

.section-tag {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  text-transform: uppercase;
  font-weight: 800;
}

/* О нас — кремовые карточки как на оригинале */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.about-card {
  background: var(--cream);
  color: var(--cream-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.about-icon { font-size: 1.9rem; margin-bottom: 14px; }
.about-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.about-card p { color: rgba(31, 32, 19, 0.75); font-size: 0.97rem; }

/* Направление деятельности */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.area-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.area-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }

.area-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--card2); }
.area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.area-card:hover .area-media img { transform: scale(1.05); }

.area-body { padding: 20px 22px 24px; }
.area-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--orange); }
.area-body p { color: var(--muted); font-size: 0.92rem; }

/* Гранты */
.grants-grid { max-width: 860px; }
.grants-copy h2 { margin-bottom: 18px; }
.grants-copy p { color: var(--muted); font-size: 1.03rem; margin-bottom: 14px; }
.grants-copy p strong { color: var(--text); }
.grants-copy a { color: var(--orange); font-weight: 600; text-decoration: none; }
.grants-copy a:hover { text-decoration: underline; }

.grants-img {
  border-radius: var(--radius);
  margin: 24px 0 14px;
  border: 1px solid var(--line);
}

.grants-note {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.grants-note a { color: var(--orange); text-decoration: none; border-bottom: 1px dashed rgba(247, 117, 43, 0.55); }
.grants-note a:hover { border-bottom-style: solid; }

/* Проекты */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }

.project-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--card2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-media img { transform: scale(1.05); }

.project-body { padding: 22px 24px 26px; }
.project-body h3 { font-size: 1.08rem; margin-bottom: 10px; color: var(--orange); }
.project-body p { color: var(--muted); font-size: 0.94rem; }

/* Мероприятия со школьниками */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.event-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.event-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }

.event-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--card2); }
.event-media img { width: 100%; height: 100%; object-fit: cover; }

.event-body { padding: 20px 22px 24px; }
.event-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--orange); }
.event-body p { color: var(--muted); font-size: 0.93rem; }

/* Мероприятия со школьниками: текст + мозаичная галерея */
.school-copy { max-width: 860px; margin-bottom: 40px; }
.school-copy p { color: var(--muted); font-size: 1.03rem; margin-bottom: 14px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}

.mosaic-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card2);
}
.mosaic-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.mosaic-item:hover img { transform: scale(1.05); }

/* раскладка: большая + 2 мелкие, зеркальный блок, снова большая + 2 мелкие */
.mosaic-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic-item:nth-child(2) { grid-column: 3; grid-row: 1; }
.mosaic-item:nth-child(3) { grid-column: 3; grid-row: 2; }
.mosaic-item:nth-child(4) { grid-column: 1; grid-row: 3; }
.mosaic-item:nth-child(5) { grid-column: 1; grid-row: 4; }
.mosaic-item:nth-child(6) { grid-column: 2 / 4; grid-row: 3 / 5; }
.mosaic-item:nth-child(7) { grid-column: 1 / 3; grid-row: 5 / 7; }
.mosaic-item:nth-child(8) { grid-column: 3; grid-row: 5; }
.mosaic-item:nth-child(9) { grid-column: 3; grid-row: 6; }

/* Мероприятия для молодых специалистов: карусель фотографий */
.photo-carousel { position: relative; }

.photo-track .photo-item {
  flex: 0 0 calc((100% - 40px) / 3);
  aspect-ratio: 4 / 3;
}

/* Фотосетки (волонтёры) */
.photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.photo-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--card2);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-item:hover img { transform: scale(1.06); }

/* Директор */
.director-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: start;
}

.director-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.director-photo img { width: 100%; display: block; }

.director-bio h2 { margin-bottom: 14px; }
.director-greet { font-size: 1.15rem; color: var(--orange); font-weight: 600; margin-bottom: 12px; }
.director-bio p { color: var(--muted); margin-bottom: 14px; font-size: 1rem; }
.director-bio p strong { color: var(--text); }

/* Новости — карусель: 3 карточки на экран, автопрокрутка по кругу */
.news-carousel { position: relative; }

.news-viewport { overflow: hidden; padding: 6px 0 4px; }

.news-track {
  display: flex;
  gap: 20px;
  transition: transform 0.65s ease;
  will-change: transform;
}
.news-track.no-anim { transition: none; }

.news-track .news-card {
  flex: 0 0 calc((100% - 40px) / 3);
  margin: 0;
}

.carousel-arrow {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(36, 36, 36, 0.85);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding-bottom: 4px;
}
.carousel-arrow:hover { background: var(--orange); border-color: var(--orange); color: #241305; }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}
.carousel-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot:hover { background: rgba(255, 255, 255, 0.5); }
.carousel-dot.active { background: var(--orange); transform: scale(1.25); }

.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.news-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--card2); }
.news-media img { width: 100%; height: 100%; object-fit: cover; }

.news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }

.news-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

.news-body h3 { font-size: 1.02rem; }

.news-text { color: var(--muted); font-size: 0.92rem; flex-grow: 1; min-height: 0; }
.news-text p { margin-bottom: 8px; }
.news-text a { color: var(--orange); }

/* длинные новости сворачиваются, разворачиваются кнопкой */
.news-text.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--orange);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(247, 117, 43, 0.5);
}
.news-toggle:hover { color: var(--orange-hover); }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: start; }

.contact-copy h2 { margin-bottom: 14px; }
.contact-copy > p { color: var(--muted); margin-bottom: 22px; max-width: 48ch; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.contact-list a { color: var(--text); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--orange); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.contact-form input, .contact-form textarea, .contact-form select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--orange); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.6) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.6) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.contact-form select option { background: var(--bg); color: var(--text); }

.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--orange); font-weight: 700; }
.form-title { font-size: 1.15rem; margin-bottom: 2px; }

/* Форма записи в CRM */
.form-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-form .field-error { border-color: #e5484d; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}
.consent input { width: auto; margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.consent a { color: var(--orange); }

.form-success {
  background: rgba(74, 178, 93, 0.1);
  border: 1px solid rgba(74, 178, 93, 0.45);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.form-success p { color: var(--muted); font-size: 0.95rem; }
.form-success p:first-child { color: #6fd67f; font-size: 1.1rem; }
.form-success a { color: var(--orange); font-weight: 600; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Страница политики конфиденциальности */
.policy { max-width: 860px; }
.policy h1 { font-size: clamp(1.4rem, 3vw, 2rem); text-transform: none; margin-bottom: 10px; }
.policy h2 { font-size: 1.15rem; text-transform: none; margin: 26px 0 10px; color: var(--orange); }
.policy p { color: var(--muted); margin-bottom: 10px; }
.policy ul { margin: 0 0 12px 22px; }
.policy li { color: var(--muted); margin-bottom: 6px; }
.policy a { color: var(--orange); font-weight: 600; }
.policy-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

/* Уведомление о cookie-файлах */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(36, 36, 36, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cookie-bar p { color: var(--muted); font-size: 0.88rem; margin: 0; flex-grow: 1; }
.cookie-bar a { color: var(--orange); font-weight: 600; }
.cookie-bar .btn { flex-shrink: 0; padding: 9px 22px; }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
}

/* Подвал */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }

.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }

.footer-brand { display: flex; gap: 16px; align-items: center; max-width: 360px; }
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px 10px;
  box-sizing: content-box;
}
.footer-tag { color: var(--muted); font-size: 0.88rem; }

.footer-legal { color: var(--muted); font-size: 0.88rem; text-align: right; }
.footer-legal a { color: var(--orange); text-decoration: none; font-weight: 600; }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- Анимации появления ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .event-grid { grid-template-columns: repeat(2, 1fr); }
  .news-track .news-card { flex-basis: calc((100% - 20px) / 2); }
  .photo-track .photo-item { flex-basis: calc((100% - 20px) / 2); }
  .mosaic { grid-auto-rows: 150px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .director-grid { grid-template-columns: 300px 1fr; gap: 30px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 60px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: min(320px, 84vw);
    height: calc(100vh - 60px);
    background: var(--bg2);
    border-left: 1px solid var(--line);
    padding: 24px;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav.open { transform: translateX(0); visibility: visible; transition: transform 0.3s ease; }
  .nav > a:not(.nav-cta) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 16px; }
  .burger { display: flex; }

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

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

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .about-grid, .area-grid, .project-grid, .event-grid { grid-template-columns: 1fr; }
  .news-track .news-card { flex-basis: 100%; }
  .photo-track .photo-item { flex-basis: 100%; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .director-grid { grid-template-columns: 1fr; }
  .director-photo { max-width: 380px; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .mosaic-item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .mosaic-item:nth-child(2) { grid-column: auto; grid-row: auto; }
  .mosaic-item:nth-child(3) { grid-column: auto; grid-row: auto; }
  .mosaic-item:nth-child(4) { grid-column: auto; grid-row: auto; }
  .mosaic-item:nth-child(5) { grid-column: auto; grid-row: auto; }
  .mosaic-item:nth-child(6) { grid-column: 1 / 3; grid-row: auto; }
  .mosaic-item:nth-child(7) { grid-column: 1 / 3; grid-row: auto; }
  .mosaic-item:nth-child(8) { grid-column: auto; grid-row: auto; }
  .mosaic-item:nth-child(9) { grid-column: auto; grid-row: auto; }

  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1.4rem; }

  .logo-img { height: 42px; }
  .footer-logo { height: 52px; padding: 3px 8px; }
  .footer-legal { text-align: left; }
  .footer-inner { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* атрибут hidden обязан скрывать всегда — перебивает display:flex и т.п. */
[hidden] { display: none !important; }
