/* Dancing Stars — внешний вид сайта.
   Сначала правила для телефона, ниже — для планшета и компьютера. */

/* ---------- Цвета, шрифты, размеры (меняются в одном месте) ---------- */
:root {
  /* Цвета логотипа (facts.md) */
  --cream: #FBF3EE;     /* фон */
  --white: #FFFFFF;     /* фон чередующихся блоков */
  --navy: #14213D;      /* текст и главная кнопка */
  --lavender: #7B6CC4;  /* акценты */
  --lavender-soft: #EEEAF8; /* светлый лавандовый фон для плашек */
  --gold: #E0A43B;      /* только звёздочки и тонкие линии */
  --text-muted: #4A5368; /* второстепенный текст */

  /* Шрифты: если Google Fonts не загрузились, подставятся запасные */
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Отступы и скругления */
  --gutter: 20px;       /* поля по краям экрана на телефоне */
  --section-space: 64px;
  --radius: 20px;
  --max-width: 1120px;
  --header-height: 112px; /* высота закреплённой шапки на телефоне (с меню) */
}

/* ---------- Основа ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ---------- Текст ---------- */
h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
}

/* Заголовки плавно растут вместе с шириной экрана */
h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); }
h2 { font-size: clamp(2rem, 6.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 4.5vw, 1.75rem); }

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ---------- Раскладка ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

/* Пустые блоки-заготовки не занимают места, пока их не наполнили */
.section:empty {
  display: none;
}

/* ---------- Звёздочка ---------- */
.icon-star {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--gold);
}

/* ---------- Шапка (закреплена сверху) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 0 0;
  background: rgba(251, 243, 238, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(20, 33, 61, 0.08);
}

/* На телефоне: логотип, язык и кнопка записи в первой строке, меню во второй */
.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "brand lang cta"
    "nav   nav  nav";
  align-items: center;
  gap: 4px 6px;
}

.brand { grid-area: brand; }
.lang  { grid-area: lang; }
.nav   { grid-area: nav; }
.header__cta { grid-area: cta; }

/* При переходе по меню заголовок блока не прячется под шапкой */
section[id],
#locations {
  scroll-margin-top: var(--header-height);
}

/* ---------- Меню ---------- */
/* На телефоне пункты в одну строку, лишние листаются пальцем вбок.
   Правый край плавно растворяется: так видно, что дальше есть ещё пункты. */
.nav {
  margin: 0 calc(-1 * var(--gutter));
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  mask-image: linear-gradient(to right, #000 85%, transparent);
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav__list {
  display: flex;
  gap: 4px;
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav__list li:first-child a {
  padding-left: 0;
}

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

.nav a:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: -3px;
  border-radius: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand__name {
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Переключатель языка EN / RU ---------- */
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 61, 0.15);
  background: var(--white);
}

.lang__btn {
  min-width: 44px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: 700 0.8125rem var(--font-body);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang__btn[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

.lang__btn:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 2px;
}

/* ---------- Кнопка ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.24);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
}

.button__icon {
  width: 22px;
  height: 22px;
}

.button--full {
  width: 100%;
}

/* Маленькая кнопка для шапки, по высоте как переключатель языка */
.button--small {
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.8125rem;
  white-space: nowrap;
  box-shadow: none;
}

.button--small:hover {
  box-shadow: none;
}

.button--small .button__icon {
  width: 16px;
  height: 16px;
}

/* ---------- Первый экран ---------- */
.hero {
  padding: 0 0 var(--section-space);
}

.hero__inner {
  display: grid;
  gap: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--lavender);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.375rem, 10.5vw, 4.25rem);
  margin-bottom: 0.35em;
}

.hero .lead {
  margin-bottom: 20px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lavender-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Строка районов под подзаголовком */
.hero__areas {
  margin: -8px 0 20px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero__areas-label {
  color: var(--text-muted);
  font-weight: 400;
}

/* Надпись про пробное занятие прямо над кнопкой */
.hero__trial {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-weight: 700;
}

.hero .button {
  width: 100%;
}

.hero__note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Главное фото. На телефоне — первым, во всю ширину экрана, без полей по краям */
.hero__photo {
  order: -1;
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  margin: 0 calc(-1 * var(--gutter));
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
}

/* Место под фото, пока самого фото нет */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px dashed rgba(123, 108, 196, 0.45);
  background: var(--lavender-soft);
  color: var(--lavender);
  font-size: 0.875rem;
}

/* ---------- Общее для блоков ---------- */
/* Блоки чередуются: кремовый и белый фон.
   --surface — цвет карточек внутри блока: всегда противоположный фону,
   поэтому карточки видны на любом из двух фонов. */
.section {
  --surface: var(--white);
}

.section--white {
  --surface: var(--cream);
  background: var(--white);
}

.section__head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section__head h2 {
  text-wrap: balance;
}

.section__head .lead {
  margin: 0;
}

/* ---------- Почему мы: список со звёздочками ---------- */
.features {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
}

.feature__star {
  width: 20px;
  height: 20px;
  margin-top: 6px;
  color: var(--gold);
}

.feature h3 {
  margin-bottom: 0.25em;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Занятия для любого возраста ---------- */
.cards {
  display: grid;
  gap: 16px;
}

/* Карточки возрастов: на телефоне по две в ряд, чтобы блок был короче */
.cards--ages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.cards--ages .card {
  padding: 20px 16px;
}

.cards--ages h3 {
  font-size: 1.375rem;
}

.cards--ages p {
  font-size: 0.9375rem;
}

/* Подзаголовок внутри блока («Чему мы учим», «Выберите свой район») */
.subhead {
  margin-bottom: 20px;
}

.subhead__lead {
  margin: -8px 0 20px;
  color: var(--text-muted);
}

/* Направления: короткий список со звёздочками */
.styles {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.style {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
}

.style .icon-star {
  width: 16px;
  height: 16px;
  margin-top: 5px;
}

.style p {
  margin: 0;
  color: var(--text-muted);
}

.style .style__name {
  color: var(--navy);
  font-weight: 700;
}

.style__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lavender-soft);
  color: var(--lavender);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.card {
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.card h3 {
  margin-bottom: 0.3em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Фото / атмосфера ---------- */
/* На телефоне — лента во всю ширину экрана, листается пальцем,
   и каждое фото «защёлкивается» по краю. Следующее фото чуть видно справа:
   так понятно, что ленту можно листать. */
.gallery {
  display: flex;
  gap: 12px;
  margin: 0 calc(-1 * var(--gutter)) 24px;
  padding: 0 var(--gutter);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: 0 0 78%;
  scroll-snap-align: start;
}

.gallery__item img,
.gallery__item .photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Высокое фото: показываем верхнюю часть, где лица */
.gallery__img--top {
  object-position: 50% 30%;
}

/* Тренеры: высокие карточки 9:16, как сторис в Instagram */
.gallery--tall .gallery__item img {
  aspect-ratio: 9 / 16;
}

.coach {
  margin: 0;
}

.coach figcaption {
  padding: 14px 4px 0;
}

.coach p {
  margin: 0;
}

.coach .coach__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.coach .coach__role {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.coach .coach__fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lavender-soft);
  font-size: 0.8125rem;
  font-weight: 700;
}

.photo-placeholder span {
  padding: 0 16px;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--lavender);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Пометка [уточнить]: видна только в рабочей версии ---------- */
.todo {
  outline: 2px dashed var(--gold);
  outline-offset: 2px;
  background: rgba(224, 164, 59, 0.12);
}

/* Текст только для программ чтения с экрана (на странице не виден) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Карта районов (Google Мои карты) ---------- */
.map {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: var(--radius);
}

iframe.map {
  border: 0;
}

/* ---------- Районы: каждый — кнопка, открывает WhatsApp ---------- */
.locations {
  display: grid;
  gap: 10px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}

.location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  min-height: 60px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(20, 33, 61, 0.12);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.location:hover {
  border-color: var(--lavender);
}

.location:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 2px;
}

/* Значок чата справа подсказывает, что на район можно нажать */
.location__icon {
  width: 22px;
  height: 22px;
  margin-left: auto;
  color: var(--lavender);
}

.location__name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
}

.location__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lavender-soft);
  color: var(--lavender);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Пробное занятие ---------- */
.offers {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.offer {
  min-width: 0;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

/* Детское пробное — главное предложение, выделено тёмно-синим */
.offer--main {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.offer--main h3 {
  color: var(--white);
}

/* Текст под заголовком: светлый, чтобы читался на тёмно-синем */
.offer--main h3 + p {
  color: rgba(255, 255, 255, 0.82);
}

.offer h3 {
  margin-bottom: 0.3em;
}

.offer p {
  margin: 0;
  color: var(--text-muted);
}

.offer .offer__label {
  margin-bottom: 10px;
  color: var(--lavender);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer--main .offer__label {
  color: var(--gold);
}

/* Абонементы и что взять с собой: строки со звёздочками под карточками */
.info-list {
  display: grid;
  gap: 12px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.info-list .icon-star {
  margin-top: 7px;
}

/* ---------- Как записаться: 3 шага ---------- */
.steps__title {
  margin-bottom: 20px;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

.step .step__name {
  margin-top: 8px;
  color: var(--navy);
  font-weight: 700;
}

#trial .button {
  width: 100%;
}

/* ---------- Частые вопросы ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq__item {
  border-radius: 14px;
  background: var(--surface);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* Плюсик справа превращается в крестик, когда ответ открыт */
.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 2px;
  border-radius: 14px;
}

.faq__item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text-muted);
}

/* ---------- Подвал ---------- */
.footer {
  padding: 48px 0 40px;
  background: var(--navy);
  color: var(--white);
}

.footer__inner {
  display: grid;
  gap: 28px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer p {
  margin: 0;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.footer__tagline,
.footer__copy {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

.footer__links {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links li {
  display: grid;
  gap: 2px;
}

.footer__label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__links a {
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__links a:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
}

/* ---------- Узкий телефон: шапка компактнее, чтобы всё влезло в одну строку ---------- */
@media (max-width: 419px) {
  .header__inner {
    column-gap: 4px;
  }

  .brand {
    gap: 6px;
  }

  .brand__logo {
    width: 38px;
    height: 38px;
  }

  .brand__name {
    font-size: 1.125rem;
  }

  .lang__btn {
    min-width: 36px;
    min-height: 34px;
    padding: 0 8px;
  }

  .button--small {
    min-height: 40px;
    padding: 0 11px;
  }

  .button--small .button__icon {
    display: none;
  }
}

/* ---------- Планшет и компьютер ---------- */
@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section-space: 96px;
  }

  body {
    font-size: 17px;
  }
}

/* ---------- Широкий экран: шапка в одну строку (логотип, меню, язык) ---------- */
@media (min-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  .header {
    padding: 10px 0;
  }

  .header__inner {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "brand nav lang cta";
    gap: 8px;
  }

  .nav {
    margin: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .nav__list {
    width: auto;
    justify-content: center;
    padding: 0;
  }

  .nav__list li:first-child a {
    padding-left: 10px;
  }
}

@media (min-width: 768px) {

  .footer {
    padding: 64px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 32px 64px;
  }

  .footer__links {
    grid-auto-flow: column;
    gap: 48px;
  }

  .footer__copy {
    grid-column: 1 / -1;
  }

  .hero {
    padding-top: 40px;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
  }

  /* На компьютере фото справа от текста, со скруглёнными углами */
  .hero__photo {
    order: 0;
    width: 100%;
    margin: 0;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(20, 33, 61, 0.14);
  }

  .hero .button {
    width: auto;
  }

  .hero__note {
    text-align: left;
  }

  .section__head {
    margin-bottom: 48px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 56px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .card,
  .cards--ages .card {
    padding: 32px;
  }

  .styles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 56px;
  }

  /* На планшете и компьютере фото стоят сеткой по 3, без прокрутки */
  .gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 32px;
    padding: 0;
    overflow: visible;
  }

  .locations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .map {
    aspect-ratio: 21 / 9;
    margin-bottom: 20px;
  }

  .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .offer {
    padding: 36px 32px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  #trial .button {
    width: auto;
  }
}

/* Для тех, у кого в настройках телефона выключены анимации */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

/* ---------- Широкий компьютер ---------- */
@media (min-width: 1100px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
