/* =========================================================
   ДИЗАЙН-СИСТЕМА — приют «Верный»
   Стиль: редакционный/документальный
   Заголовки: Fraunces (антиква с характером)
   Текст: Manrope (чистый гротеск)
   ========================================================= */

:root {
  /* Палитра */
  --bg:           #F5F1EA;   /* основной фон, тёплый off-white */
  --bg-alt:       #EBE5D9;   /* подложки, секции с акцентом */
  --bg-deep:      #1F1B16;   /* тёмный фон для подвала */
  --ink:          #1A1714;   /* основной текст */
  --ink-soft:     #4A4540;   /* второстепенный текст */
  --ink-mute:     #8A847C;   /* подписи, метаданные */
  --line:         #D9D2C4;   /* линии и границы */
  --accent:       #B14A2C;   /* терракотовый акцент */
  --accent-deep:  #8E3A22;
  --accent-soft:  #F4E3DA;   /* светлый фон под акцент */
  --white:        #FFFFFF;

  /* Типографика */
  --font-display: 'Fraunces', Georgia, serif;
  --font-text:    'Manrope', system-ui, sans-serif;

  /* Радиусы и тени */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.04), 0 2px 6px rgba(31, 27, 22, 0.04);
  --shadow:    0 4px 12px rgba(31, 27, 22, 0.06), 0 12px 32px rgba(31, 27, 22, 0.08);

  /* Контейнер */
  --container: 1240px;
  --gutter: 24px;
}

/* =========================================================
   БАЗА
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

em {
  font-style: italic;
  font-feature-settings: 'ss01';
  color: var(--accent);
}

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

/* =========================================================
   ТИПОГРАФИКА — служебные классы
   ========================================================= */

.eyebrow {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-mute);
}

.eyebrow--accent { color: var(--accent); }
.eyebrow--accent::before { background: var(--accent); }

.section__head {
  max-width: 720px;
  margin: 0 0 56px;
}

.section__head--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section__title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin: 0;
}

.section__lead {
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
}

.link-arrow {
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 14px; }

/* =========================================================
   КНОПКИ
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* =========================================================
   ЛОГО
   ========================================================= */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  border-radius: 50%;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.logo__text small {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.logo--light .logo__mark { background: var(--bg); color: var(--ink); }
.logo--light .logo__text  { color: var(--bg); }
.logo--light .logo__text small { color: rgba(245, 241, 234, 0.55); }

/* =========================================================
   ШАПКА
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav a:hover { color: var(--ink); }

.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav a:hover::after { transform: scaleX(1); }

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

.header__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s;
}

/* =========================================================
   ГЕРОЙ
   ========================================================= */

.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 28px;
}

.hero__lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 40px;
  max-width: 480px;
}

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

.hero__visual {
  position: relative;
}

.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__caption {
  position: absolute;
  left: -32px;
  bottom: 32px;
  background: var(--bg);
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__caption-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.hero__caption-meta {
  font-size: 13px;
  color: var(--ink-mute);
}

/* =========================================================
   ЦИФРЫ
   ========================================================= */

.stats {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* =========================================================
   ПУТИ УЧАСТИЯ
   ========================================================= */

.paths { padding: 120px 0; }

.paths__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.path-card {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s;
  position: relative;
}

.path-card:last-child { border-right: none; }

.path-card:hover {
  background: var(--bg-alt);
}

.path-card:hover .path-card__arrow {
  transform: translateX(8px);
  color: var(--accent);
}

.path-card__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.path-card h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.path-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.path-card__arrow {
  font-size: 22px;
  color: var(--ink);
  transition: transform 0.25s, color 0.25s;
  align-self: flex-start;
  margin-top: 8px;
}

/* =========================================================
   ПОДОПЕЧНЫЕ
   ========================================================= */

.dogs-preview { padding: 60px 0 120px; }

.dogs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.dog-card {
  display: flex;
  flex-direction: column;
}

.dog-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: block;
}

.dog-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.dog-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.dog-card__body {
  padding: 18px 0 0;
}

.dog-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
}

.dog-card__meta {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.dog-card__desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.5;
}

.dog-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}

.dog-card__link:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   СБОР
   ========================================================= */

.fundraiser { padding: 60px 0 120px; }

.fundraiser__card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
}

.fundraiser__content { padding: 56px 56px 56px; }

.fundraiser__content .eyebrow { color: rgba(245, 241, 234, 0.6); }
.fundraiser__content .eyebrow::before { background: var(--accent); }
.fundraiser__content .eyebrow--accent { color: var(--accent); }

.fundraiser__title {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  color: var(--bg);
  margin: 0 0 20px;
}

.fundraiser__desc {
  font-size: 16px;
  color: rgba(245, 241, 234, 0.75);
  margin: 0 0 32px;
  line-height: 1.55;
}

.progress { margin: 0 0 36px; }

.progress__bar {
  height: 6px;
  background: rgba(245, 241, 234, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.6s;
}

.progress__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.progress__row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress__label {
  font-size: 12px;
  color: rgba(245, 241, 234, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress__row strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--bg);
}

.fundraiser__content .btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.fundraiser__content .btn--primary:hover { background: var(--accent-deep); }

.fundraiser__photo { position: relative; min-height: 400px; }
.fundraiser__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* =========================================================
   ПРОЦЕСС
   ========================================================= */

.process {
  padding: 60px 0 140px;
  background: var(--bg-alt);
  margin: 60px 0 0;
}

.process__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: process;
}

.process__item {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.process__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 16px;
}

.process__item h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
}

.process__item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* =========================================================
   ПОДВАЛ
   ========================================================= */

.footer {
  background: var(--bg-deep);
  color: rgba(245, 241, 234, 0.7);
  padding: 80px 0 32px;
  margin-top: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}

.footer__brand p {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 241, 234, 0.55);
  max-width: 320px;
}

.footer__col h4 {
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-family: var(--font-text);
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 15px;
  color: rgba(245, 241, 234, 0.7);
  margin: 0 0 12px;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--bg); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(245, 241, 234, 0.45);
  flex-wrap: wrap;
  gap: 16px;
}

.footer__bottom a {
  color: rgba(245, 241, 234, 0.6);
  margin-left: 24px;
  transition: color 0.2s;
}

.footer__bottom a:hover { color: var(--bg); }

/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .paths__grid { grid-template-columns: repeat(2, 1fr); }
  .path-card:nth-child(2) { border-right: none; }
  .dogs-grid { grid-template-columns: repeat(2, 1fr); }
  .fundraiser__card { grid-template-columns: 1fr; }
  .fundraiser__photo { min-height: 320px; order: -1; }
  .fundraiser__content { padding: 40px; }
  .process__list { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }

  .hero { padding: 48px 0 60px; }
  .hero__title { font-size: 40px; }
  .hero__lead { font-size: 17px; }
  .hero__caption { left: 16px; bottom: 16px; padding: 12px 16px; }

  .stats__grid { grid-template-columns: 1fr; gap: 24px; }
  .stats { padding: 40px 0; }

  .paths { padding: 80px 0; }
  .paths__grid { grid-template-columns: 1fr; }
  .path-card { border-right: none; }

  .dogs-preview, .fundraiser { padding: 40px 0 80px; }
  .dogs-grid { grid-template-columns: 1fr; }

  .progress__row { grid-template-columns: 1fr; gap: 12px; }
  .fundraiser__content { padding: 32px 24px; }

  .process__list { grid-template-columns: 1fr; gap: 24px; }
  .process { padding: 40px 0 80px; }

  .footer { padding: 56px 0 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom a { margin-left: 0; margin-right: 20px; }

  .section__head { margin-bottom: 36px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}

/* Мобильное меню — открытое состояние */
.nav.is-open {
  display: flex;
  flex-direction: column;
  /* Жёстко привязываемся к viewport — даже если родитель имеет backdrop-filter */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  /* dvh учитывает реальную высоту с учётом адресной строки на iOS/Android */
  height: 100dvh;
  /* Полностью непрозрачный фон, чтобы текст страницы под ним не просвечивал */
  background-color: #F5F1EA;
  background-color: var(--bg);
  padding: 88px var(--gutter) 32px;
  font-size: 22px;
  gap: 4px;
  z-index: 60;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: navIn 0.2s ease;
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Пункты меню в открытом состоянии — крупные, с разделителями */
.nav.is-open a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.2s;
}

.nav.is-open a::before {
  content: '→';
  margin-right: 14px;
  color: var(--ink-mute);
  font-size: 22px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
}

.nav.is-open a:hover,
.nav.is-open a:active {
  color: var(--accent);
  padding-left: 8px;
}

.nav.is-open a:hover::before,
.nav.is-open a:active::before {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* Убираем подчёркивание-индикатор из общих стилей nav a */
.nav.is-open a::after { display: none; }

.nav.is-open a.is-active {
  color: var(--accent);
}

/* Блокируем прокрутку body, когда меню открыто */
body.menu-open {
  overflow: hidden;
}

/* Бургер в активном состоянии — превращается в крестик */
.burger.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
  opacity: 0;
}
.burger.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.burger span {
  transition: transform 0.25s, opacity 0.2s;
}

/* =========================================================
   СЛАЙДЕР В ГЕРОЕ
   ========================================================= */

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}

.hero-slider__track {
  position: absolute;
  inset: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Прогресс-полоска сверху — заполняется за время автопрокрутки */
.hero-slider__progress {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 3;
  pointer-events: none;
}

/* Кнопки навигации */
.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(245, 241, 234, 0.92);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s, background 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-slider:hover .hero-slider__nav,
.hero-slider:focus-within .hero-slider__nav {
  opacity: 1;
}

.hero-slider__nav:hover {
  background: var(--bg);
  transform: translateY(-50%) scale(1.06);
}

.hero-slider__nav--prev { left: 16px; }
.hero-slider__nav--next { right: 16px; }

/* Плашка с именем теперь — кликабельная карточка поверх фото в углу.
   Базовые позиционные стили заданы выше в .hero__caption.
   Здесь добавляем интерактивные свойства. */
.hero__caption {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 5;
}

.hero__caption:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero__caption:hover .hero__caption-name { color: var(--accent); }

.hero__caption-name { transition: color 0.2s; }

/* Точки-индикаторы поверх фото снизу по центру */
.hero-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  z-index: 4;
  background: rgba(245, 241, 234, 0.9);
  padding: 8px 12px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 23, 20, 0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
  padding: 0;
  border: none;
}

.hero-slider__dot:hover { background: rgba(26, 23, 20, 0.6); }

.hero-slider__dot.is-active {
  background: var(--ink);
  width: 24px;
  border-radius: 4px;
}

/* На мобильном кнопки навигации показываем сразу */
@media (max-width: 720px) {
  .hero-slider__nav { opacity: 1; width: 36px; height: 36px; }
  .hero-slider__nav--prev { left: 12px; }
  .hero-slider__nav--next { right: 12px; }
}

/* Уважаем настройку «уменьшить движение» — отключаем анимации */
@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide { transition: none; }
  .hero-slider__progress { display: none; }
}

/* =========================================================
   COOKIE-БАННЕР
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.cookie-banner__text {
  min-width: 0;
}

.cookie-banner__actions {
  flex-wrap: wrap;
}

.cookie-banner__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 4px;
}

.cookie-banner__text p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245, 241, 234, 0.75);
  margin: 0;
  max-width: 640px;
}

.cookie-banner__text a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cookie-banner__text a:hover { border-color: var(--accent); }

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Переопределяем стили кнопок для тёмного фона */
.cookie-banner__actions .btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.cookie-banner__actions .btn--primary:hover { background: var(--accent-deep); }

.cookie-banner__actions .btn--ghost {
  border-color: rgba(245, 241, 234, 0.3);
  color: var(--bg);
}
.cookie-banner__actions .btn--ghost:hover {
  border-color: var(--bg);
  background: rgba(245, 241, 234, 0.08);
  color: var(--bg);
}

@media (max-width: 720px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 18px;
  }
  .cookie-banner__actions {
    width: 100%;
    flex-direction: row;
  }
  .cookie-banner__actions .btn { flex: 1; }
}

/* =========================================================
   ЛОГОТИП — изображение
   ========================================================= */
.logo__img {
  display: block;
  height: 56px;       /* высота лого в шапке */
  width: auto;
  max-width: 200px;
  transition: transform 0.2s;
}

.logo:hover .logo__img { transform: scale(1.04); }

.logo--light .logo__img {
  height: 64px;       /* в подвале чуть крупнее */
}

@media (max-width: 720px) {
  .logo__img { height: 44px; }
  .logo--light .logo__img { height: 52px; }
}

/* Заглушка слайдера на главной, когда подопечных пока нет */
.hero-slider__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px;
  text-align: center;
  background: var(--bg-alt);
}

.hero-slider__placeholder img {
  max-width: 70%;
  max-height: 60%;
  object-fit: contain;
  opacity: 0.92;
}

.hero-slider__placeholder p {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
