@font-face {
  font-family: "Cormorant";
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
  src: url("assets/fonts/Cormorant-cyrillic.woff2") format("woff2");
}

@font-face {
  font-family: "Raleway";
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
  src: url("assets/fonts/Raleway-cyrillic.woff2") format("woff2");
}

:root {
  --red: #9c0612;
  --red-2: #8d1317;
  --red-dark: #6e040d;
  --ink: #222222;
  --muted: #777777;
  --cream: #f6f2ed;
  --paper: #fefdfc;
  --line: rgba(156, 6, 18, 0.55);
  --radius: 20px;
  --display: "Cormorant", "Times New Roman", Georgia, serif;
  --text: "Raleway", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--text);
  line-height: 1.35;
  background: var(--paper);
}

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

picture {
  display: block;
}

.state-card picture,
.program-grid picture,
.bonus-grid picture,
.author picture {
  display: contents;
}

.hero__media {
  display: block;
}

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

.container {
  width: min(100% - 40px, 1000px);
  margin-inline: auto;
}

.section {
  padding: 70px 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

h2 {
  color: var(--red);
  font-size: clamp(34px, 4.2vw, 48px);
  text-align: center;
}

.cards h2,
.tariffs h2 {
  color: var(--red);
}

.program h2,
.traps h2,
.author h2,
.footer h2,
.bonus h3 {
  color: var(--red-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.hero {
  position: relative;
  min-height: clamp(630px, 70vh, 760px);
  overflow: hidden;
  color: #fff;
  background: #180b07;
}

.hero__media,
.hero__media img,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 50% 20%;
}

.hero__shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 40px));
  margin-left: auto;
  margin-right: max(40px, calc((100vw - 1200px) / 2 + 70px));
  padding-top: 34px;
  text-align: center;
}

.hero__date {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
}

.hero__date-pill {
  padding: 10px 26px;
  border-radius: 999px;
  background: #ead9c3;
}

.hero__label {
  margin: 0 0 14px;
  font-size: 16px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(52px, 6.5vw, 96px);
  line-height: 0.95;
}

.hero__tag {
  max-width: 510px;
  margin: 22px auto 28px;
  padding: 18px 32px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero__text {
  max-width: 420px;
  margin: 0 auto 30px;
  font-size: 15px;
}

.btn--hero {
  width: min(100%, 465px);
}

.cards {
  margin-top: -1px;
  border-radius: 24px 24px 0 0;
  background: var(--cream);
}

.hint {
  width: min(100%, 480px);
  margin: 22px auto 34px;
  padding: 14px 22px;
  border: 1px solid #d9d6d2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  text-align: center;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, clamp(220px, 18vw, 280px));
  justify-content: center;
  gap: clamp(24px, 3vw, 56px);
  width: min(100% - 40px, 1320px);
  margin: 70px auto 0;
  padding: 64px 0 80px;
}

.state-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  outline: none;
  cursor: pointer;
}

.state-card__badge {
  position: absolute;
  top: -36px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -16px) scale(0.85);
  opacity: 0;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(156, 6, 18, 0.35);
}

.state-card:hover .state-card__badge,
.state-card:focus-visible .state-card__badge,
.state-card:focus-within .state-card__badge {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.state-card--top {
  transform: translateY(-48px);
}

.state-card--bottom {
  transform: translateY(48px);
}

.state-card__image,
.state-card__text {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  transition: opacity 260ms ease, transform 260ms ease;
}

.state-card__image {
  box-shadow: 0 16px 40px rgba(50, 25, 20, 0.12);
}

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

.state-card__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px 22px 26px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(50, 25, 20, 0.15);
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.state-card__num {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.state-card__text h3 {
  margin: 0 0 10px;
  color: var(--red);
  font-family: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.state-card__text p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.state-card__text ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.state-card__text ul li {
  padding-left: 2px;
}

.state-card:hover .state-card__image,
.state-card:focus-visible .state-card__image,
.state-card:focus-within .state-card__image {
  opacity: 0;
  transform: scale(1.02);
}

.state-card:hover .state-card__text,
.state-card:focus-visible .state-card__text,
.state-card:focus-within .state-card__text {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.program {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.program__sub {
  margin: 18px 0 34px;
  font-weight: 700;
  text-align: center;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.program-grid article,
.program-grid img {
  min-height: 150px;
  border-radius: 10px;
}

.program-grid article {
  padding: 24px;
  border: 1px solid rgba(166, 6, 20, 0.55);
  background: #f6f6f5;
}

.program-grid i {
  color: var(--red);
  font-size: 30px;
  font-style: normal;
  line-height: 1;
}

.program-grid p {
  margin: 18px 0 0;
  font-size: 15px;
}

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

.bonus {
  position: relative;
  margin-top: 54px;
  padding: 34px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f3f3f2;
  text-align: center;
}

.bonus__dot {
  position: absolute;
  top: -18px;
  left: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  transform: translateX(-50%);
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.bonus h3 {
  margin: 0 0 26px;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 300;
  text-transform: uppercase;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bonus-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 160px;
  padding: 18px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  text-align: left;
}

.bonus-grid img {
  width: 135px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}

.bonus-grid p {
  margin: 0;
  font-size: 15px;
}

.bonus-grid span {
  position: absolute;
  top: 16px;
  right: 18px;
  opacity: 0.45;
}

.bonus__note {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--muted);
}

.tariffs {
  background: #fefdfc;
}

.tariffs__box {
  padding: 44px 66px;
  border-radius: 18px;
  background: image-set(url("assets/fast/tariffs-bg.webp") type("image/webp"), url("assets/fast/tariffs-bg.jpg") type("image/jpeg")) center / cover no-repeat;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px;
  margin-top: 34px;
}

.tariff {
  display: grid;
  min-height: 420px;
  padding: 34px 42px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(40, 30, 25, 0.12);
}

.tariff h3 {
  margin: 0 0 24px;
  padding: 14px;
  border-radius: 8px;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
  background: rgba(156, 6, 18, 0.08);
}

.tariff:nth-child(2) h3 {
  background: var(--red);
  color: #fff;
}

.tariff ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.tariff li {
  margin: 4px 0;
}

.tariff .off {
  color: #888;
  text-decoration: line-through;
}

.tariff small,
.tariff strong {
  display: block;
  color: var(--red);
  text-align: center;
}

.tariff small {
  text-decoration: line-through;
}

.tariff strong {
  margin-bottom: 18px;
  font-size: 24px;
  text-transform: uppercase;
}

.tariff .btn {
  align-self: end;
  width: 100%;
}

.traps {
  background: image-set(url("assets/fast/paper-bg.webp") type("image/webp"), url("assets/fast/paper-bg.jpg") type("image/jpeg")) center / cover repeat-y;
}

.traps h2 {
  max-width: 760px;
  text-align: left;
}

.traps__lead {
  margin: 20px 0 32px;
  font-size: 17px;
}

.trap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.trap-grid article {
  min-height: 160px;
  padding: 24px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
}

.trap-grid .trap-dark {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), image-set(url("assets/fast/trap-dark.webp") type("image/webp"), url("assets/fast/trap-dark.jpg") type("image/jpeg")) center / cover no-repeat;
}

.trap-grid h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
}

.trap-grid p {
  margin: 0;
}

.author {
  border-radius: 24px 24px 0 0;
  background: var(--cream);
}

.author__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 70px;
  align-items: center;
}

.author img {
  width: min(100%, 420px);
  height: auto;
  margin-inline: auto;
}

.author__label {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.author h2 {
  text-align: left;
}

.author__info {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid rgba(166, 6, 20, 0.35);
  border-radius: 8px;
  background: #fff;
}

.author__red {
  margin: 0 0 24px;
  padding: 24px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-style: italic;
  font-weight: 700;
}

.author__quote {
  color: var(--red);
  font-style: italic;
  font-weight: 700;
}

.footer {
  padding: 62px 0 48px;
  background: var(--cream);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.footer h2 {
  margin-bottom: 22px;
  text-align: left;
}

.footer__links {
  display: grid;
  gap: 13px;
  align-content: start;
  text-decoration: underline;
}

.footer__legal {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 860px) {
  .hero {
    min-height: 656px;
  }

  .hero__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76));
  }

  .hero__media img {
    object-position: center top;
  }

  .hero__content {
    width: min(100% - 36px, 330px);
    margin: 0 auto;
    padding-top: 30px;
  }

  .hero h1 {
    margin-top: 190px;
    font-size: 52px;
  }

  .hero__date {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .hero__date span {
    padding: 10px 18px;
  }

  .hero__label {
    font-size: 13px;
  }

  .hero__tag {
    padding: 11px 18px;
    font-size: 12px;
  }

  .hero__text {
    font-size: 13px;
  }

  .section {
    padding: 50px 0;
  }

  .container {
    width: min(100% - 28px, 520px);
  }

  h2 {
    font-size: 34px;
  }

  .program-grid,
  .bonus-grid,
  .tariff-grid,
  .trap-grid,
  .author__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .card-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
    padding: 0;
  }

  .state-card,
  .state-card--top,
  .state-card--bottom {
    width: 100%;
    height: auto;
    transform: none;
  }

  .state-card picture {
    display: block;
  }

  .state-card__image,
  .state-card__text {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .state-card__image {
    display: block;
    aspect-ratio: 1;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
  }

  .state-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
  }

  .state-card__badge {
    display: none;
  }

  .state-card__text {
    background: #fff;
    border-radius: 0 0 14px 14px;
    padding: 18px 20px 22px;
    box-shadow: 0 16px 40px rgba(50, 25, 20, 0.08);
  }

  .program-grid img {
    min-height: 160px;
  }

  .bonus {
    padding: 28px 18px;
  }

  .bonus-grid article {
    grid-template-columns: 1fr;
  }

  .bonus-grid img {
    width: 100%;
    height: 120px;
  }

  .tariffs__box {
    padding: 34px 18px;
  }

  .tariff {
    min-height: 0;
    padding: 24px;
  }

  .traps h2,
  .author h2,
  .footer h2,
  .footer__legal {
    text-align: left;
  }

  .author__grid {
    gap: 28px;
  }

  .author img {
    max-width: 310px;
  }

  .footer__legal {
    grid-column: auto;
  }
}

/* ─── Tablet / small desktop: 861 — 1100 ──────────────────── */
@media (min-width: 861px) and (max-width: 1100px) {
  .container {
    width: min(100% - 32px, 880px);
  }

  .card-row {
    grid-template-columns: repeat(2, minmax(280px, 360px));
    gap: 80px 40px;
    width: min(100% - 40px, 820px);
    padding: 48px 0 64px;
  }

  .state-card--top,
  .state-card--bottom {
    transform: none;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-grid img {
    grid-column: span 2;
  }

  .bonus-grid {
    grid-template-columns: 1fr;
  }

  .author__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .author h2,
  .traps h2 {
    text-align: center;
  }
}

/* ─── Large desktop: 1280+ ──────────────────── */
@media (min-width: 1280px) {
  .container {
    width: min(100% - 40px, 1100px);
  }

  .hero__content {
    width: min(560px, calc(100% - 40px));
    margin-right: max(40px, calc((100vw - 1280px) / 2 + 80px));
  }
}

@media (min-width: 1681px) {
  .container {
    width: min(100% - 40px, 1200px);
  }

  .hero__content {
    margin-right: max(60px, calc((100vw - 1400px) / 2 + 100px));
  }
}

/* ─── Small phone: ≤480 ──────────────────── */
@media (max-width: 480px) {
  .section {
    padding: 40px 0;
  }

  .container {
    width: min(100% - 20px, 100%);
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    margin-top: 160px;
    font-size: 42px;
  }

  .hero__content {
    width: min(100% - 28px, 320px);
    padding-top: 24px;
  }

  .hero__tag {
    padding: 10px 16px;
    font-size: 11px;
  }

  .hero__text {
    font-size: 13px;
  }

  h2 {
    font-size: 28px;
  }

  .hint {
    padding: 12px 16px;
    font-size: 13px;
  }

  .bonus {
    padding: 24px 14px;
  }

  .bonus h3 {
    font-size: 22px;
  }

  .tariff {
    padding: 20px 18px;
  }

  .tariff h3 {
    font-size: 22px;
  }

  .trap-grid article {
    padding: 18px;
  }

  .trap-grid h3 {
    font-size: 18px;
  }

  .footer {
    padding: 40px 0 30px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero__date {
    font-size: 11px;
  }

  .hero__date span {
    padding: 8px 14px;
  }

  .btn {
    padding: 0 22px;
    font-size: 13px;
  }
}
