/* Шахматная школа «Четыре офицера» — главная.
   Токены собраны с прежнего сайта на Тильде: оранжевый #ffa635, текст #1d1d1d,
   коричневый подвал #4c2100, заголовки героя #643409. */

:root {
  --orange: #ffa635;
  --orange-deep: #da4d43;
  --ink: #1d1d1d;
  --brown: #4c2100;
  --brown-text: #643409;
  --grey-line: #c9c9c9;
  --tint: #fdf1e1;
  --btn: linear-gradient(90deg, #ffa635 0%, #da4d43 100%);
  --wrap: 1200px;
  --nav-h: 55px;
}

* { box-sizing: border-box; }

/* Браузер не наследует шрифт в элементах формы: <button> и <input> берут свой
   Arial. Из-за этого кнопки-<button> в шапке и в герое отрисовывались Arial'ом,
   а соседние кнопки-<a> — шрифтом сайта. */
button, input, select, textarea { font-family: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
  margin: 0;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }

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

/* ——— общие заголовки секций ——— */
.h2 {
  margin: 0;
  font-size: 45px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}
.rule {
  width: 200px; height: 2px; margin: 12px auto 0;
  background: var(--orange); border-radius: 10px;
}
.section { padding: 60px 0; }
.section--tight { padding: 40px 0; }

/* ——— кнопки ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 55px; padding: 0 28px;
  font-size: 20px; line-height: 1.2; color: #fff; text-align: center;
  background-image: var(--btn);
  border: 0; border-radius: 30px; cursor: pointer;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .88; }
.btn--wide { width: 397px; max-width: 100%; }
.btn--sm { min-height: 55px; font-size: 16px; padding: 0 20px; }

/* ——— шапка ——— */
.topbar { background: #fff; }
.topbar__in {
  display: flex; align-items: center; gap: 28px;
  min-height: 100px; padding-top: 5px; padding-bottom: 5px;
}
.topbar__logo { flex: 0 0 auto; }
.topbar__logo img { width: 84px; height: auto; }
/* Фирменный блок «логотип + название». Капс здесь не случайность, а пара к
   капсу на кнопке справа: два якоря по краям, спокойные контакты между ними.
   Так было на прежнем сайте, и именно это держало ряд. Трогать начертание
   названия в отрыве от кнопки нельзя — разваливается. */
.topbar__name {
  font-size: 16px; font-weight: 600; line-height: 1.3;
  text-transform: uppercase; max-width: 190px;
}
.topbar__contacts { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.contact { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; white-space: nowrap; }
.contact img { width: 30px; height: 30px; }
.topbar__cta { flex: 0 0 auto; }
.topbar__cta .btn {
  width: 320px; padding: 0 16px;
  font-size: 13px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ——— навигация ——— */
.nav {
  position: sticky; top: 0; z-index: 900;
  background: var(--orange);
}
.nav__in {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav a {
  font-size: 20px; color: var(--ink); line-height: 1.2;
  padding: 6px 4px;
}
.nav a:hover { opacity: .7; }

/* бургер и мобильное меню */
.burger {
  display: none; position: fixed; top: 15px; right: 15px; z-index: 1200;
  width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(60, 40, 20, .5);
}
.burger span {
  display: block; width: 22px; height: 2px; margin: 4px auto;
  background: #fff; transition: transform .25s ease, opacity .25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobmenu {
  position: fixed; inset: 0 0 0 auto; z-index: 1100;
  width: 260px; max-width: 80vw; padding: 70px 28px 28px;
  background: #0d0d0d; color: #fff;
  transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.mobmenu.is-open { transform: translateX(0); }
.mobmenu a { display: block; font-size: 18px; padding: 10px 0; }
.mobmenu__phone { margin-top: auto; font-size: 16px; }
.mobmenu__fade {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.mobmenu__fade.is-open { opacity: 1; pointer-events: auto; }

/* ——— герой ——— */
.hero {
  position: relative; overflow: hidden;
  min-height: 500px; display: flex; align-items: center;
  background-image: linear-gradient(90deg, #fed7a2 37%, #c6c6c6 100%);
}
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background: url(../img/hero-girl.webp) 82% 36% / cover no-repeat;
  /* Фото растворяется в градиенте, а не приставляется к нему встык — как было на Тильде */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.2) 18%,
                      rgba(0,0,0,.6) 38%, rgba(0,0,0,.9) 58%, #000 72%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.2) 18%,
                      rgba(0,0,0,.6) 38%, rgba(0,0,0,.9) 58%, #000 72%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-top: 45px; padding-bottom: 45px; }
.hero__title {
  margin: 0; max-width: 660px;
  font-size: 55px; font-weight: 600; line-height: 1.3; color: var(--brown-text);
}
.hero__list {
  margin: 28px 0 0; max-width: 560px;
  font-size: 20px; color: var(--brown-text);
}
.hero__list span { display: block; }
.hero__cta { margin-top: 36px; }

/* ——— четыре пронумерованные карточки ——— */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 50px; }
.card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 24px;
  border: 1px solid var(--orange); border-radius: 10px;
}
.card__num {
  flex: 0 0 auto; width: 50px;
  font-size: 80px; font-weight: 600; line-height: 1.2; color: var(--orange);
  text-align: center;
}
.card__text { font-size: 20px; line-height: 1.3; padding-top: 14px; }

/* ——— оранжевая полоса с заявкой ——— */
.lead {
  position: relative; padding: 60px 0;
  color: #fff;
  background: url(../img/pattern-orange.webp) center / cover no-repeat;
}
.lead > *, .tour > * { position: relative; z-index: 2; }
.lead::before, .tour::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(255, 184, 60, .9);
}
.lead__title { font-size: 45px; font-weight: 600; text-align: center; margin: 0 0 40px; }
.lead__contacts {
  display: flex; justify-content: center; align-items: center; gap: 60px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.lead__contacts a { display: inline-flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 600; }
.lead__contacts img { width: 35px; height: 35px; }
.leadform {
  display: grid; grid-template-columns: 1fr 1fr 200px; gap: 20px;
  max-width: 863px; margin: 0 auto;
}
.leadform input {
  height: 50px; padding: 0 18px;
  font-family: inherit; font-size: 18px; color: #000;
  background: #fff; border: 0; border-radius: 10px;
}
.leadform button {
  height: 50px; border: 0; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 20px; color: #fff; background: var(--orange);
  transition: opacity .2s ease;
}
.leadform button:hover { opacity: .85; }
/* ——— лист выбора у номера MAX (только телефон) ——— */
.sheet {
  position: fixed; inset: 0; z-index: 1450; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .45);
}
.sheet.is-open { display: flex; }
.sheet__box {
  width: 100%; max-width: 460px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: #f2f2f2; border-radius: 16px 16px 0 0;
  animation: sheet-up .22s ease-out;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet__title {
  padding: 10px 0 14px; text-align: center;
  font-size: 15px; color: #777;
}
.sheet__act, .sheet__cancel {
  display: block; width: 100%; margin-bottom: 8px; padding: 16px 12px;
  font-family: inherit; font-size: 18px; text-align: center; color: var(--ink);
  background: #fff; border: 0; border-radius: 12px; cursor: pointer;
}
.sheet__act--max { color: #d25f17; font-weight: 600; }
.sheet__cancel { margin-bottom: 0; color: #777; }

/* ——— согласие на обработку данных ——— */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.4; text-align: left; cursor: pointer;
}
.consent input {
  flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0;
  accent-color: var(--orange); cursor: pointer;
}
.consent a { text-decoration: underline; }
.leadform .consent { grid-column: 1 / -1; justify-content: center; color: #fff; }
.leadform .consent input { accent-color: #fff; }
.modal__form .consent { margin-top: 4px; }
.consent.is-missed input { outline: 2px solid var(--orange-deep); outline-offset: 2px; }

/* ——— «шахматы научат» ——— */
.skills {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px;
  margin-top: 50px; align-items: start;
}
.skill {
  border: 1px solid var(--orange); border-radius: 5px; overflow: hidden;
  background: #fff;
}
.skill img { width: 100%; height: 200px; object-fit: cover; }
.skill__cap { padding: 18px 10px; text-align: center; font-size: 20px; line-height: 1.3; }
.skills__text { font-size: 20px; line-height: 1.3; text-align: center; align-self: center; padding: 0 6px; }

.skills > :nth-child(1) { grid-area: 1 / 1; }
.skills > :nth-child(2) { grid-area: 1 / 2; }
.skills > :nth-child(3) { grid-area: 2 / 2; }
.skills > :nth-child(4) { grid-area: 2 / 1; }
.skills > :nth-child(5) { grid-area: 1 / 3; }
.skills > :nth-child(6) { grid-area: 1 / 4; }
.skills > :nth-child(7) { grid-area: 2 / 4; }
.skills > :nth-child(8) { grid-area: 2 / 3; }

/* ——— плитки «вас ждут» ——— */
/* Тёплая подложка: раньше цветное пятно здесь держал блок с видео, теперь его нет,
   и три светлые секции шли подряд */
#about { background: var(--tint); }
.tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 50px; border: 1px solid var(--orange);
}
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; min-height: 307px; padding: 30px 24px; text-align: center;
  font-size: 20px; font-weight: 600; line-height: 1.55;
}
.tile img { width: 100px; height: 100px; object-fit: contain; }
.tile--orange { background: var(--orange); color: #fff; }
.tile--white { background: #fff; color: var(--orange); }
.tiles > :nth-child(1) { grid-area: 1 / 1; }
.tiles > :nth-child(2) { grid-area: 2 / 1; }
.tiles > :nth-child(3) { grid-area: 2 / 2; }
.tiles > :nth-child(4) { grid-area: 1 / 2; }


/* ——— «обучаем более 10 лет» ——— */
.about { position: relative; }
.about__grid {
  display: grid; grid-template-columns: 558px minmax(0, 1fr); gap: 60px;
  align-items: start; margin-top: 40px;
}
.about__logo { position: absolute; top: 20px; right: 20px; width: 200px; }
.slider { position: relative; border: 1px solid var(--orange); border-radius: 5px; overflow: hidden; }
.slider__track { display: flex; transition: transform .35s ease; }
.slider__track img { flex: 0 0 100%; width: 100%; height: 415px; object-fit: cover; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: #555; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 12px; }
.slider__arrow--next { right: 12px; }
.checklist { list-style: none; margin: 0 0 36px; padding: 0; }
.checklist li {
  display: flex; align-items: center; gap: 22px;
  min-height: 60px; font-size: 20px; color: #000;
}
.checklist img { width: 30px; height: 30px; flex: 0 0 auto; }

/* ——— турниры ——— */
.tour {
  position: relative; padding: 60px 0; color: #fff;
  background: url(../img/pattern-orange.webp) center / cover no-repeat;
}
.tour .h2 { font-size: 51px; font-weight: 400; }
.tour__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 636px; gap: 60px;
  align-items: start; margin-top: 50px;
}
.tour__label { font-size: 20px; text-transform: uppercase; margin: 0 0 30px; }
.tour__list { list-style: none; margin: 0 0 40px; padding: 0; }
.tour__list li { font-size: 20px; line-height: 1.3; margin-bottom: 30px; }
.tour__photo { border-radius: 5px; overflow: hidden; }
.tour__photo img { width: 100%; height: 528px; object-fit: cover; }

/* ——— галерея достижений ——— */
.lead-text { margin: 20px auto 0; max-width: 700px; text-align: center; font-size: 20px; }
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  margin-top: 40px;
}
.gallery button {
  padding: 0; border: 0; background: none; cursor: pointer; display: block;
}
.gallery img { width: 100%; height: 190px; object-fit: cover; }

/* лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 1300; display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .9); padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; background: none; cursor: pointer;
  color: #fff; font-size: 40px; line-height: 1; padding: 10px;
}
.lightbox__close { top: 10px; right: 16px; }
.lightbox__nav--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ——— стоимость ——— */
/* Тот же тёплый тон, что под «вас ждут»: последний светлый участок перед подвалом */
#prices { background: var(--tint); }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; margin-top: 45px; }
.price {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 16px 30px 40px;
  background: #fff;
  border: 1px solid var(--orange); border-radius: 5px;
}
.price img { width: 250px; height: 250px; border-radius: 50%; object-fit: cover; }
.price__title { margin: 30px 0 0; font-size: 25px; font-weight: 400; line-height: 1.3; }
.price__sum { margin: 14px 0 20px; font-size: 30px; font-weight: 600; line-height: 1.3; color: var(--orange); }
.price__list { list-style: none; margin: 0 0 30px; padding: 0; font-size: 16px; line-height: 1.55; }
.price__list li:last-child { font-weight: 700; }
.price .btn { margin-top: auto; }

/* ——— адреса и подвал ——— */
.contacts { background: var(--brown); color: #fff; padding: 60px 0 40px; }
.contacts .h2 { color: #fff; }
.map {
  margin: 45px auto 0; max-width: 1040px; height: 518px; overflow: hidden;
}
.map iframe, .map > div { width: 100% !important; height: 100% !important; }
.branches {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 30px; row-gap: 0;
  grid-template-rows: auto auto auto;
  margin-top: 55px;
}
/* Названия филиалов разной длины — без подсетки фото и адреса разъезжаются по высоте */
.branch { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.branch__title { font-size: 25px; color: var(--orange); text-align: center; margin: 0 0 10px; line-height: 1.3; align-self: end; }
.branch img { width: 100%; height: 133px; object-fit: cover; }
.branch__addr { font-size: 16px; margin-top: 10px; align-self: start; }
.footer {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 30px;
  margin-top: 55px; font-size: 16px;
}
.footer__phones div { margin-bottom: 8px; }
.footer__links { display: flex; align-items: center; gap: 26px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; }
.footer__links img { width: 25px; height: 25px; }
.footer__privacy { text-decoration: underline; }

/* ——— попап заявки ——— */
.modal {
  position: fixed; inset: 0; z-index: 1400; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .55);
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative; width: 560px; max-width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 50px 40px; background: #fff; text-align: center;
}
.modal__close {
  position: absolute; top: 6px; right: 12px;
  border: 0; background: none; color: #b5b5b5; font-size: 34px; line-height: 1; cursor: pointer;
}
.modal__close:hover { color: #777; }
.modal__title { margin: 0 0 30px; font-size: 30px; font-weight: 600; line-height: 1.3; color: #d25f17; }
.modal__form { display: grid; gap: 16px; }
.modal__form input {
  height: 50px; padding: 0 18px;
  font-family: inherit; font-size: 16px; color: #000;
  border: 1px solid var(--grey-line); border-radius: 15px;
}
.modal__form button {
  height: 60px; margin-top: 8px; border: 0; border-radius: 5px; cursor: pointer;
  font-family: inherit; font-size: 16px; color: #fff; background: var(--orange);
  transition: opacity .2s ease;
}
.modal__form button:hover { opacity: .85; }
.form__error { color: #da4d43; font-size: 15px; min-height: 20px; }
.form__done { display: none; font-size: 20px; line-height: 1.5; }
.form__done a { color: #d25f17; text-decoration: underline; }
.is-sent .modal__form { display: none; }
.is-sent .form__done { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ——————————————————— адаптив ——————————————————— */
@media (max-width: 1199px) {
  .nav { display: none; }
  .burger { display: block; }
  .h2, .lead__title { font-size: 35px; }
  .tour .h2 { font-size: 35px; }
  .hero__title { font-size: 35px; }
  .hero { min-height: 540px; }
  .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .about__logo { width: 150px; }
  .tour__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .tour__photo img { height: 420px; }
  .slider__track img { height: 340px; }
  .topbar__contacts { gap: 18px; }
  .topbar__in { gap: 18px; }
  .card__num { font-size: 60px; width: 44px; }
}

@media (max-width: 959px) {
  body { font-size: 18px; }
  .topbar__in { flex-wrap: wrap; min-height: 0; padding: 14px 20px; gap: 14px 20px; }
  .topbar__name { font-size: 14px; max-width: 170px; }
  .topbar__contacts { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 12px 24px; }
  .topbar__cta { width: 100%; }
  .topbar__cta .btn { width: 100%; }
  .hero { min-height: 0; }
  .hero__photo {
    position: static; width: 100%; height: 300px;
    background-position: center 40%;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero { display: flex; flex-direction: column-reverse; }
  .hero__in { padding: 40px 20px 30px; }
  .hero__title, .hero__list { max-width: none; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills > * { grid-area: auto !important; }
  .tiles { grid-template-columns: 1fr; }
  .tiles > * { grid-area: auto !important; }
  .about__grid { grid-template-columns: 1fr; }
  .about__logo { position: static; width: 140px; margin: 0 auto 10px; }
  .tour__grid { grid-template-columns: 1fr; }
  .tour__photo img { height: 360px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prices { grid-template-columns: 1fr; gap: 28px; }
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; row-gap: 26px; }
  .map { height: 380px; }
  .leadform { grid-template-columns: 1fr; }
  .lead__contacts { flex-direction: column; gap: 22px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section { padding: 45px 0; }
}

@media (max-width: 639px) {
  .h2, .lead__title, .tour .h2 { font-size: 30px; }
  .skills { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour__photo img { height: 280px; }
  .slider__track img { height: 260px; }
  .btn { min-height: 50px; font-size: 16px; border-radius: 20px; }
  .btn--wide { width: 100%; }
}

@media (max-width: 479px) {
  body { font-size: 16px; }
  .h2, .lead__title, .tour .h2, .hero__title { font-size: 25px; }
  .card__num { font-size: 50px; width: 36px; }
  .card__text, .skill__cap, .skills__text, .tile, .checklist li, .tour__list li,
  .lead__contacts a, .lead-text, .hero__list { font-size: 16px; }
  .price__title { font-size: 20px; }
  .price__sum { font-size: 25px; }
  .price img { width: 200px; height: 200px; }
  .branch__title { font-size: 20px; }
  .modal__box { padding: 36px 22px; }
  .modal__title { font-size: 22px; }
  .btn { border-radius: 15px; min-height: 45px; }
  .gallery img { height: 140px; }
  .map { height: 260px; }
}

/* ——— страница «Дополнительные услуги» ——— */
.dop-intro { background: var(--tint); padding: 55px 0 45px; }
.dop-intro__row {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  margin-top: 28px;
}
.dop-lead {
  max-width: 660px; margin: 0;
  font-size: 20px; line-height: 1.5; text-align: center;
}
.dop-intro__hero { flex: 0 0 auto; width: 200px; height: auto; }
.dop-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.dop-cards--spaced { margin-top: 45px; }
.dop-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--orange); border-radius: 8px; overflow: hidden; background: #fff;
}
/* Кадр 3:2 — как фотографии обрезаны, без дополнительного среза по высоте */
.dop-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.dop-card__body { padding: 22px 28px 26px; }
.dop-card__body h3 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.25; }
.dop-card__age {
  display: inline-block; margin: 8px 0 0;
  font-size: 16px; color: var(--orange); font-weight: 600;
}
.dop-card__body p { margin: 0; font-size: 18px; line-height: 1.45; }
.dop-out { padding: 45px 0; }
.dop-out__text {
  max-width: 720px; margin: 0 auto;
  font-size: 20px; line-height: 1.5; text-align: center;
}
.dop-out__cta { margin-top: 36px; text-align: center; }
.dop-foot { padding: 40px 0 35px; }
.dop-foot .footer { margin-top: 0; }

@media (max-width: 959px) {
  .dop-intro__row { flex-direction: column; gap: 22px; }
  .dop-intro__hero { width: 150px; order: -1; }
  .dop-cards { grid-template-columns: 1fr; gap: 26px; }
  .dop-card__body { padding: 20px 22px 24px; }
  .dop-card__body h3 { font-size: 24px; }
  .dop-lead, .dop-out__text { font-size: 18px; }
}
@media (max-width: 479px) {
  .dop-card__body h3 { font-size: 21px; }
  .dop-card__body p { font-size: 16px; }
  .dop-lead, .dop-out__text { font-size: 16px; }
}
