/* ===== Amatour — Кубок Азии, Сиде =====
   Фирменный стиль Amatour (Guidelines V1.0):
   Tomato Red #E71E2B, Forest Green #075025,
   Beau Blue #CBD3E3, Blueberry #3B2942, Black Rock #000000.
   Шрифт: GT Pressura LC (Light, Regular + Italic). Mobile-first. */

@font-face {
  font-family: 'GT Pressura';
  src: url('../fonts/GT-Pressura-LC-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT Pressura';
  src: url('../fonts/GT-Pressura-LC-Light-Italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'GT Pressura';
  src: url('../fonts/GT-Pressura-LC-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT Pressura';
  src: url('../fonts/GT-Pressura-LC-Regular-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --accent: #E71E2B;
  --accent-dark: #C4121E;
  --green: #075025;
  --navy: #3B2942;
  --beau: #CBD3E3;
  --text: #1a1a1f;
  --muted: #5d5d68;
  --bg: #ffffff;
  --bg-tint: #eef1f7;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(59, 41, 66, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'GT Pressura', system-ui, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
strong, b { font-weight: 400; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

h1 { font-size: clamp(28px, 6vw, 52px); font-weight: 400; line-height: 1.12; }
h2 { font-size: clamp(24px, 4.5vw, 38px); font-weight: 400; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 18px; font-weight: 400; }

.section { padding: 56px 0; }
.section--tinted { background: var(--bg-tint); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark .section__lead { color: rgba(255,255,255,.82); }
.section--accent { background: linear-gradient(160deg, #f4f6fa 0%, #fdeaec 100%); }
.section__lead { font-size: 17px; color: var(--muted); max-width: 720px; margin-bottom: 28px; }
.section__cta { margin-top: 32px; text-align: center; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--accent-dark); }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(231,30,43,.3); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn--outline:hover { transform: translateY(-2px); }
.btn--tg { background: #2aabee; color: #fff; }
.btn--tg:hover { background: #1f96d6; transform: translateY(-2px); }
.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59,41,66,.08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo-text { font-weight: 400; letter-spacing: .12em; color: var(--navy); font-size: 18px; }
.header__logo img { height: 32px; width: auto; display: block; }
.footer__logo { height: 36px; width: auto; margin-bottom: 4px; }
.header__nav { display: none; gap: 24px; }
.header__nav a { color: var(--text); text-decoration: none; font-weight: 400; font-size: 15px; }
.header__nav a:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(26,16,32,.9) 0%, rgba(59,41,66,.72) 55%, rgba(231,30,43,.4) 135%),
    url('../img/hero.jpg') center / cover no-repeat,
    linear-gradient(155deg, #241627 0%, #3B2942 45%, #E71E2B 130%);
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(203,211,227,.14), transparent 55%);
}
.hero__inner { position: relative; padding: 72px 20px 64px; }
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px; font-weight: 400;
  margin-bottom: 22px;
}
.hero__subtitle { font-size: 18px; margin: 18px 0 24px; color: rgba(255,255,255,.88); max-width: 640px; }
.hero__bullets { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; }
.hero__bullets li { padding-left: 30px; position: relative; font-weight: 400; font-size: 15px; }
.hero__bullets li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,.12);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Карточки ===== */
.cards { display: grid; gap: 18px; }
.card {
  background: #fff; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  border: 1px solid rgba(59,41,66,.06);
}
.card__icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== Формат ===== */
.format { display: grid; gap: 28px; align-items: center; }
.format__photo { border-radius: var(--radius); overflow: hidden; }
.format__photo img { width: 100%; height: auto; display: block; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { padding-left: 34px; position: relative; font-weight: 400; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
}

/* ===== Уровни ===== */
.levels { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: #eaf2ec; border: 1px solid rgba(7,80,37,.25);
  color: var(--green); border-radius: 999px;
  padding: 10px 18px; font-weight: 400; font-size: 14px;
}

/* ===== Галерея =====
   Пропорции вместо жёсткой высоты — фото не обрезаются полосами. */
.gallery { display: grid; gap: 14px; margin-top: 8px; grid-template-columns: 1fr 1fr; }
.gallery__item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4 / 3;
}
.gallery__item--big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery--3 { grid-template-columns: 1fr; }
.gallery--3 .gallery__item { aspect-ratio: 4 / 3; }
.gallery--3 .gallery__item img { object-position: center 25%; }

/* ===== Выгоды ===== */
.benefits { list-style: none; display: grid; gap: 14px; }
.benefits li {
  background: var(--bg-tint); border-radius: var(--radius);
  padding: 20px 24px; display: flex; flex-direction: column; gap: 4px;
}
.benefits strong { font-size: 22px; color: var(--accent-dark); }
.benefits span { color: var(--muted); font-size: 15px; }

/* ===== Шаги ===== */
.steps { list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  background: #fff; border: 1px solid rgba(59,41,66,.08);
  border-radius: var(--radius); padding: 24px 24px 24px 76px;
  position: relative; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 22px; top: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-weight: 400; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ===== Квиз ===== */
.quiz {
  background: #fff; border-radius: 20px;
  padding: 28px 22px; box-shadow: var(--shadow);
  max-width: 640px; margin: 0 auto;
}
.quiz__progress { height: 6px; background: #eef1f4; border-radius: 999px; margin-bottom: 26px; overflow: hidden; }
.quiz__bar { height: 100%; width: 14%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.quiz__q { display: block; font-size: 19px; font-weight: 400; margin-bottom: 16px; }
.quiz input[type="text"], .quiz input[type="tel"], .lead input {
  width: 100%; padding: 15px 18px;
  border: 2px solid #e3e9ee; border-radius: 12px;
  font-size: 16px; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.quiz input:focus, .lead input:focus { border-color: var(--accent); }
.quiz__options { display: grid; gap: 10px; }
.quiz__options button {
  padding: 14px 18px; text-align: left;
  border: 2px solid #e3e9ee; border-radius: 12px;
  background: #fff; font-size: 16px; font-weight: 400;
  font-family: inherit; cursor: pointer; transition: all .15s;
}
.quiz__options button:hover { border-color: var(--accent); }
.quiz__options button.selected { border-color: var(--accent); background: #fdeaec; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.quiz__back { background: none; border: none; color: var(--muted); font-weight: 400; font-size: 15px; cursor: pointer; font-family: inherit; }
.quiz__back:hover { color: var(--text); }
.quiz__success { text-align: center; padding: 24px 0; }
.quiz__success h3 { font-size: 22px; margin-bottom: 10px; color: var(--accent-dark); }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0; }
.field-error { border-color: #e05252 !important; }

/* ===== Форма заявки ===== */
.lead { display: grid; gap: 14px; max-width: 480px; }
.lead__success { color: #2e9e5b; font-weight: 400; }
.messengers { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff; border-radius: 14px;
  border: 1px solid rgba(59,41,66,.08);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer; font-weight: 400; font-size: 16px;
  padding: 18px 28px 18px 0;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 14px;
  font-size: 24px; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* ===== Подвал ===== */
.footer { background: var(--navy); color: #fff; padding: 36px 0; }
.footer .logo-text { color: #fff; }
.footer p { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 8px; }
.footer__inner { display: grid; gap: 22px; }
.footer__links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer .btn--outline { color: #fff; }

/* ===== Планшет ===== */
@media (min-width: 640px) {
  .cards--4 { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .gallery--3 { grid-template-columns: 1fr 1fr; }
  .quiz { padding: 36px; }
}

/* ===== Десктоп ===== */
@media (min-width: 960px) {
  .section { padding: 80px 0; }
  .header__nav { display: flex; }
  .hero__inner { padding: 110px 20px 96px; }
  .hero__bullets { grid-template-columns: 1fr 1fr; max-width: 760px; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .format { grid-template-columns: 1.1fr .9fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery__item { aspect-ratio: auto; min-height: 200px; }
  .gallery__item--big { grid-column: span 2; grid-row: span 2; }
  .gallery--3 { grid-template-columns: repeat(3, 1fr); }
  .gallery--3 .gallery__item { aspect-ratio: 4 / 3; min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
}
