/* ============================================================
   Сказка напрокат — стили лендинга
   ============================================================ */

:root {
  --cream: #FBF6EE;
  --cream-2: #F3EADB;
  --paper: #FFFDF8;
  --pine: #1E4636;
  --pine-2: #2B5A46;
  --pine-3: #17382C;
  --gold: #C6A15B;
  --gold-2: #E3C68D;
  --gold-deep: #9A7736;
  --berry: #A6405A;
  --ink: #2A2A26;
  --muted: #6F6A60;
  --line: rgba(30, 70, 54, 0.12);
  --line-gold: rgba(198, 161, 91, 0.35);
  --shadow-sm: 0 6px 18px -12px rgba(30, 70, 54, 0.35);
  --shadow-md: 0 24px 50px -28px rgba(30, 70, 54, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1160px;
  --header-h: 78px;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pine);
  line-height: 1.15;
}

p {
  margin: 0;
}

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

button {
  font: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--gold-2);
  color: var(--pine-3);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--pine);
  color: var(--paper);
  font-weight: 700;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ============ Кнопки ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn--primary {
  background: var(--pine);
  color: var(--paper);
  box-shadow: 0 12px 26px -14px rgba(30, 70, 54, 0.8);
}

.btn--primary:hover {
  background: var(--pine-3);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(30, 70, 54, 0.8);
}

.btn--ghost {
  background: transparent;
  color: var(--pine);
  border-color: rgba(30, 70, 54, 0.24);
}

.btn--ghost:hover {
  border-color: var(--pine);
  background: rgba(30, 70, 54, 0.05);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold-2);
  color: var(--pine-3);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6);
}

.btn--gold:hover {
  background: #f0d9af;
  transform: translateY(-2px);
}

.btn--card {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: transparent;
  border-color: var(--line-gold);
  color: var(--pine);
  font-size: 14px;
}

.btn--card:hover {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--paper);
}

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

/* ============ Шапка ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(30, 70, 54, 0.7);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--pine);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--gold-2);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.logo em {
  font-style: italic;
  color: var(--berry);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--pine);
  background: rgba(30, 70, 54, 0.06);
}

.nav__cta {
  margin-left: 12px;
  padding: 12px 20px;
  font-size: 14px;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.6);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--pine);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Первый экран ============ */

.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(760px 540px at 88% -10%, rgba(198, 161, 91, 0.22), transparent 62%),
    radial-gradient(620px 480px at -6% 96%, rgba(166, 64, 90, 0.08), transparent 60%),
    var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(30, 70, 54, 0.12) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(600px 420px at 78% 18%, #000, transparent 75%);
  mask-image: radial-gradient(600px 420px at 78% 18%, #000, transparent 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero__title {
  margin: 18px 0;
  font-size: clamp(3.1rem, 6.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--pine-3);
}

.hero__title em {
  position: relative;
  font-style: italic;
  color: var(--berry);
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.04em;
  height: 0.07em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent);
  opacity: 0.6;
}

.hero__subtitle {
  max-width: 30ch;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--pine);
}

.hero__text {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--pine-2);
  font-size: 13.5px;
  font-weight: 700;
}

.hero__points svg {
  width: 14px;
  height: 14px;
  color: var(--gold-deep);
}

.hero__collage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 540px;
  height: 500px;
  justify-self: end;
}

.hero__collage::before {
  content: "✦";
  position: absolute;
  top: -18px;
  left: -16px;
  color: var(--gold);
  font-size: 26px;
  opacity: 0.8;
}

.hero__collage::after {
  content: "✦";
  position: absolute;
  right: -8px;
  bottom: -6px;
  color: var(--berry);
  font-size: 16px;
  opacity: 0.6;
}

.photo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.photo--main {
  grid-row: 1 / span 2;
  transform: rotate(-1.2deg);
}

.photo--fox { transform: rotate(1.6deg); }
.photo--snow { transform: rotate(-1deg); }

.photo__scene {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--ph-a), var(--ph-b));
}

.photo__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.55;
}

.photo__scene::after {
  content: "";
  position: absolute;
  left: -25%;
  bottom: -25%;
  width: 150%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.6), transparent 70%);
}

.photo--main .photo__scene { --ph-a: #f7edde; --ph-b: #e9d2b2; }
.photo--fox .photo__scene { --ph-a: #fbeae0; --ph-b: #f0ccb4; }
.photo--snow .photo__scene { --ph-a: #eaf3f6; --ph-b: #cfe4eb; }

.photo__emoji {
  position: relative;
  z-index: 2;
  font-size: clamp(56px, 6vw, 92px);
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(30, 70, 54, 0.18));
}

.photo--fox .photo__emoji,
.photo--snow .photo__emoji {
  font-size: clamp(38px, 4vw, 54px);
}

.photo-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 5px 9px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--pine);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ============ Общие секции ============ */

.section {
  position: relative;
  padding: 88px 0;
}

.section--tint {
  background: var(--cream-2);
  border-top: 1px solid rgba(30, 70, 54, 0.07);
  border-bottom: 1px solid rgba(30, 70, 54, 0.07);
}

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

.section--pine {
  overflow: hidden;
  background: linear-gradient(160deg, #204b3a, var(--pine-3));
  color: var(--cream);
}

.section--pine::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.24), transparent 65%);
  pointer-events: none;
}

.section--pine::after {
  content: "✦";
  position: absolute;
  left: 6%;
  bottom: 8%;
  color: rgba(227, 198, 141, 0.25);
  font-size: 28px;
}

.section--pine .container {
  position: relative;
  z-index: 1;
}

.section__head {
  max-width: 680px;
  margin: 0 auto 46px;
  text-align: center;
}

.section__head--left {
  max-width: 720px;
  margin: 0 0 38px;
  text-align: left;
}

.section__head h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -0.015em;
}

.section__lead {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16.5px;
}

.section__head--left .section__lead {
  margin-left: 0;
}

/* ============ Каталог ============ */

.catalog__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 780px;
  margin-top: 36px;
  padding: 16px 20px;
  border: 1px dashed rgba(198, 161, 91, 0.45);
  border-radius: 14px;
  background: rgba(198, 161, 91, 0.08);
  color: var(--muted);
  font-size: 13.5px;
}

.catalog__note span {
  color: var(--gold-deep);
  line-height: 1.4;
}

.category + .category {
  margin-top: 54px;
}

.category__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.category__head h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  letter-spacing: -0.01em;
}

.category__count {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  gap: 22px;
}

.cards--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.costume-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.costume-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-md);
}

.costume-card__media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1.17;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--ph-a), var(--ph-b));
}

.costume-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.6px);
  background-size: 20px 20px;
  opacity: 0.55;
  pointer-events: none;
}

.costume-card__media::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 75%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.65), transparent 70%);
  pointer-events: none;
}

.media--bunny { --ph-a: #f8eee1; --ph-b: #ebd5b8; }
.media--fox { --ph-a: #fbeadf; --ph-b: #f0c9ae; }
.media--bear { --ph-a: #f1e8db; --ph-b: #dcc6a9; }
.media--tiger { --ph-a: #fbebd2; --ph-b: #f1d19e; }
.media--gnome { --ph-a: #ede8f1; --ph-b: #d6c9df; }
.media--snow { --ph-a: #eaf2f5; --ph-b: #cfe3ea; }
.media--snowmaiden { --ph-a: #f6ebf1; --ph-b: #e0c9da; }

.costume-card__emoji {
  position: relative;
  z-index: 2;
  font-size: clamp(46px, 4.2vw, 64px);
  line-height: 1;
  filter: drop-shadow(0 8px 14px rgba(30, 70, 54, 0.18));
  transition: transform 0.5s var(--ease);
}

.costume-card:hover .costume-card__emoji {
  transform: translateY(-4px) scale(1.07);
}

.costume-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px 8px 7px;
}

.costume-card__title {
  font-size: 1.35rem;
  line-height: 1.2;
}

.costume-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--pine);
}

.costume-card__price strong {
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.costume-card__price span {
  color: var(--muted);
  font-size: 12.5px;
}

.costume-card__deposit {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(30, 70, 54, 0.045);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.costume-card .btn--card {
  margin-top: auto;
}

/* ============ Преимущества ============ */

.advantages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.advantage {
  position: relative;
  overflow: hidden;
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.advantage::after {
  content: "✦";
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--gold);
  font-size: 14px;
  opacity: 0.45;
}

.advantage__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border: 1px solid rgba(198, 161, 91, 0.32);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(198, 161, 91, 0.22), rgba(198, 161, 91, 0.06));
  color: var(--gold-deep);
}

.advantage__icon svg {
  width: 26px;
  height: 26px;
}

.advantage h3 {
  margin-bottom: 9px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.advantage p {
  color: var(--muted);
  font-size: 15px;
}

/* ============ Как проходит аренда ============ */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1020px;
  margin: 0 auto;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 16%;
  left: 16%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  opacity: 0.55;
}

.step {
  position: relative;
  padding: 0 10px;
  text-align: center;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 10px 22px -14px rgba(30, 70, 54, 0.55);
  color: var(--pine);
  font-family: var(--font-display);
  font-size: 22px;
}

.step h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 17.5px;
  font-weight: 800;
}

.step p {
  max-width: 32ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14.5px;
}

/* ============ Форма заявки ============ */

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.form-intro .eyebrow {
  color: var(--gold-2);
}

.form-intro h2 {
  margin: 14px 0 16px;
  color: var(--paper);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -0.015em;
}

.form-intro__text {
  max-width: 42ch;
  color: rgba(251, 246, 238, 0.74);
  font-size: 16px;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(227, 198, 141, 0.4);
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 800;
  transition: color 0.2s, border-color 0.2s;
}

.tg-link:hover {
  color: #f4e3be;
  border-bottom-color: #f4e3be;
}

.tg-link svg {
  width: 18px;
  height: 18px;
}

.form-intro__note {
  max-width: 40ch;
  margin-top: 22px;
  padding-left: 12px;
  border-left: 2px solid rgba(227, 198, 141, 0.45);
  color: rgba(251, 246, 238, 0.55);
  font-size: 12.5px;
  line-height: 1.6;
}

.form-card {
  padding: 32px;
  border: 1px solid rgba(255, 253, 248, 0.6);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.6);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--pine);
  font-size: 13px;
  font-weight: 800;
}

.req {
  color: var(--berry);
}

.field input:not([type="checkbox"]),
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(30, 70, 54, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4636' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.field input::placeholder {
  color: #a6a196;
}

.field input:not([type="checkbox"]):focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.16);
}

.field.is-invalid input:not([type="checkbox"]),
.field.is-invalid select {
  border-color: #c2453f;
  box-shadow: 0 0 0 4px rgba(194, 69, 63, 0.1);
}

.field__error {
  display: none;
  margin-top: 6px;
  color: #b03a34;
  font-size: 12.5px;
  font-weight: 600;
}

.field.is-invalid .field__error {
  display: block;
}

.field--check {
  margin-top: 4px;
}

.field .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  accent-color: var(--pine);
  cursor: pointer;
}

.form-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 8px;
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(198, 161, 91, 0.4);
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.14);
  color: var(--pine);
}

.form-success__icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
}

.form-success p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14.5px;
}

.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.form-success__actions .btn {
  padding: 13px 20px;
  font-size: 14px;
}

/* ============ Контакты ============ */

.contact-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 30px 34px;
  border-radius: 24px;
  background: linear-gradient(140deg, #224e3c, #183a2d);
  box-shadow: var(--shadow-md);
  color: var(--cream);
}

.contact-band::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.28), transparent 68%);
  pointer-events: none;
}

.contact-band__left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-band__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(227, 198, 141, 0.28);
  border-radius: 50%;
  background: rgba(227, 198, 141, 0.14);
  color: var(--gold-2);
}

.contact-band__icon svg {
  width: 26px;
  height: 26px;
}

.contact-band h3 {
  margin-bottom: 3px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
}

.contact-band__text {
  color: rgba(251, 246, 238, 0.72);
  font-size: 14px;
}

.contact-band__link {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold-2);
  font-size: 14.5px;
  font-weight: 800;
}

.contact-band__link:hover {
  color: #f4e3be;
}

.contact-band > .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border: 1px solid rgba(198, 161, 91, 0.28);
  border-radius: 12px;
  background: rgba(198, 161, 91, 0.12);
  color: var(--gold-deep);
}

.contact-card__icon svg {
  width: 21px;
  height: 21px;
}

.contact-card__label {
  color: var(--gold-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card__value {
  color: var(--pine);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.contact-card__note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

/* ============ Подвал ============ */

.footer {
  padding: 58px 0 26px;
  background: var(--pine-3);
  color: rgba(251, 246, 238, 0.72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr;
  gap: 36px;
  padding-bottom: 38px;
}

.logo--footer {
  color: var(--paper);
  font-size: 21px;
}

.logo--footer .logo__mark {
  border: 1px solid rgba(227, 198, 141, 0.28);
  background: rgba(227, 198, 141, 0.14);
  color: var(--gold-2);
}

.logo--footer em {
  color: var(--gold-2);
}

.footer__about {
  max-width: 32ch;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.footer h4 {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
}

.footer__links a {
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--paper);
}

.footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-size: 15.5px;
  font-weight: 800;
}

.footer__tg svg {
  width: 18px;
  height: 18px;
  color: var(--gold-2);
}

.footer__tg:hover {
  color: var(--gold-2);
}

.footer__note {
  max-width: 34ch;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.8;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(227, 198, 141, 0.15);
  font-size: 12.5px;
  opacity: 0.72;
}

.footer__bottom a {
  color: var(--gold-2);
}

.footer__bottom a:hover {
  color: #f4e3be;
}

/* ============ Плавающая кнопка Telegram ============ */

.tg-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(227, 198, 141, 0.38);
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 16px 32px -12px rgba(23, 56, 44, 0.7);
  color: var(--gold-2);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.tg-float:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--pine-2);
}

.tg-float svg {
  width: 24px;
  height: 24px;
}

/* ============ Анимации появления ============ */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cards .reveal:nth-child(2) { transition-delay: 0.07s; }
.cards .reveal:nth-child(3) { transition-delay: 0.14s; }
.cards .reveal:nth-child(4) { transition-delay: 0.21s; }
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }

.form-card.is-highlighted {
  animation: cardPulse 1.2s var(--ease);
}

@keyframes cardPulse {
  0%, 100% { box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.6); }
  35% { box-shadow: 0 0 0 6px rgba(227, 198, 141, 0.32), 0 34px 80px -34px rgba(0, 0, 0, 0.6); }
}

/* ============ Адаптивность ============ */

@media (max-width: 1100px) {
  .cards--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__inner {
    gap: 40px;
  }

  .hero__collage {
    height: 470px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .header__inner {
    min-height: 68px;
  }

  .logo {
    font-size: 19px;
  }

  .logo__mark {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 12px;
    left: 12px;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    padding: 12px 14px;
    font-size: 15px;
  }

  .nav__cta {
    margin: 8px 0 0;
    padding: 13px 18px;
    font-size: 14.5px;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero__content {
    max-width: 640px;
  }

  .hero__collage {
    justify-self: center;
    max-width: 560px;
    height: 440px;
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .form-intro {
    max-width: 580px;
  }

  .section {
    padding: 76px 0;
  }
}

@media (max-width: 860px) {
  .cards--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantages {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

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

  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .cards--three .costume-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 11px);
  }
}

@media (max-width: 780px) {
  .contact-band {
    flex-direction: column;
    align-items: stretch;
    padding: 26px 24px;
  }

  .contact-band > .btn {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 420px;
  }

  .steps::before {
    display: none;
  }

  .step {
    padding: 0;
  }

  .step p {
    max-width: 38ch;
  }
}

@media (max-width: 640px) {
  .cards--four,
  .cards--three {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .section {
    padding: 64px 0;
  }

  .section__head {
    margin-bottom: 34px;
  }

  .hero {
    padding: 44px 0 60px;
  }

  .hero__title {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
  }

  .hero__collage {
    height: 350px;
    gap: 12px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .photo__emoji {
    font-size: 54px;
  }

  .photo--fox .photo__emoji,
  .photo--snow .photo__emoji {
    font-size: 36px;
  }

  .photo-label {
    padding: 4px 7px;
    font-size: 9px;
  }

  .form-card {
    padding: 24px 20px;
  }

  .form-success h3 {
    font-size: 1.45rem;
  }

  .contact-band {
    padding: 24px 20px;
  }

  .contact-band__left {
    align-items: flex-start;
    gap: 14px;
  }

  .contact-band__icon {
    width: 46px;
    height: 46px;
  }

  .contact-band__icon svg {
    width: 22px;
    height: 22px;
  }

  .footer {
    padding-top: 46px;
  }

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

  .footer__grid > div:first-child {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 18px;
  }

  .hero__collage {
    height: 310px;
  }

  .hero__points {
    gap: 8px;
  }

  .hero__points li {
    font-size: 12.5px;
    padding: 8px 12px;
  }

  .field input,
  .field select {
    font-size: 16px;
  }

  .tg-float {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
