/* Токены оформления — единственный источник: web/tokens.css */
@import url("../web/tokens.css");

/* ---------- Reset / Base ---------- */

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: top var(--t);
}
.skip-link:focus { top: 16px; }

.grad {
  background: linear-gradient(100deg, var(--accent-2) 0%, var(--accent) 45%, #ff4d6d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; pointer-events: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { box-shadow: 0 18px 44px rgba(255, 107, 26, .44); }

.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--paper-3);
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.section--dark .btn--ghost,
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid rgba(255, 107, 26, .38);
}
.btn--outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn--glass {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .22);
}
.btn--glass:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn:disabled,
.btn:disabled:hover {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--sm { padding: 10px 18px; font-size: 14.5px; }
.btn--lg { padding: 17px 34px; font-size: 17px; }
.btn--block { width: 100%; }

.btn__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__label { opacity: .8; }

@keyframes spin { to { transform: rotate(360deg); } }

.link-accent {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1.5px solid rgba(255, 107, 26, .4);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.link-accent:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(15, 20, 25, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--t), background var(--t), border-color var(--t),
              box-shadow var(--t);
}
.header.is-scrolled {
  height: 68px;
  background: rgba(15, 20, 25, .94);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
  display: grid;
  place-items: center;
  transition: transform var(--t-slow);
}
.logo:hover .logo__mark { transform: rotate(90deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
}
.logo__text small { color: var(--text-light-dim); font-size: 11.5px; font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-light-dim);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header__actions { display: flex; align-items: center; gap: 8px; }

.header__phone-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.header__phone-icon:hover { background: var(--accent); border-color: var(--accent); }

.header__auth { display: flex; align-items: center; gap: 8px; }
.header__login {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-light-dim);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.header__login:hover { color: #fff; background: rgba(255, 255, 255, .07); }

/* Пока проверяем cookie-сессию, гостевые кнопки неактивны: иначе клиент
   нажмёт «Войти», уже будучи авторизованным. */
.header.is-auth-pending .header__auth {
  opacity: .55;
  pointer-events: none;
}

.header__user { display: flex; align-items: center; gap: 6px; min-width: 0; }
.header__user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.header__user-name:hover,
.header__user-name:focus-visible {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}
.header__logout {
  padding: 8px 6px;
  color: var(--text-light-dim);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.header__logout:hover { color: var(--accent-2); }

.header__actions .btn--sm { padding: 9px 14px; font-size: 13.5px; }
.header__callback { flex-shrink: 0; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--t), opacity var(--t-fast);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 88px;
  color: var(--text-light);
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(255, 107, 26, .22), transparent 62%),
    radial-gradient(760px 520px at 4% 100%, rgba(76, 111, 255, .14), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero__inner { position: relative; display: block; }

.hero__top {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 40px;
}
.hero__intro { min-width: 0; }
.hero__aside { min-width: 0; }

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(33, 197, 110, .13);
  border: 1px solid rgba(33, 197, 110, .3);
  color: #b9f5d4;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 26px;
}
.badge strong { color: #fff; }
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(33, 197, 110, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(33, 197, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 197, 110, 0); }
}

.hero__title {
  font-size: clamp(36px, 5.1vw, 66px);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin-bottom: 24px;
}

.hero__lead {
  max-width: 640px;
  color: var(--text-light-dim);
  font-size: 17.5px;
  line-height: 1.62;
  margin-bottom: 22px;
}
.hero__lead strong { color: #fff; }

.hero__points {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  max-width: none;
}
.hero__point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 14.5px;
  color: var(--text-light-dim);
  line-height: 1.4;
}
.hero__point-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 1px solid transparent;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }

.hero__trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--a);
  border: 2.5px solid var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.avatars span:first-child { margin-left: 0; }
.hero__trust-text { display: flex; flex-direction: column; line-height: 1.35; }
.hero__trust-text span { color: var(--text-light-dim); font-size: 14px; }
.hero__trust-text strong { color: #fff; }

.stars { color: var(--star); font-size: 17px; letter-spacing: 2px; line-height: 1; }
.stars--sm { font-size: 14px; letter-spacing: 1px; }

/* Hero quick card */

.quickcard {
  position: relative;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}
.quickcard::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 143, 60, .55), transparent 45%, transparent 60%, rgba(76, 111, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.quickcard__head { margin-bottom: 22px; }
.quickcard__head h2 { color: #fff; font-size: 25px; margin-bottom: 7px; }
.quickcard__head p { color: var(--text-light-dim); font-size: 14.5px; line-height: 1.45; }

.quickform { display: grid; gap: 16px; }
.quickform .field input,
.quickform .select select {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.quickform .field input::placeholder { color: rgba(255, 255, 255, .34); }
.quickform .field input:focus,
.quickform .select select:focus {
  background: rgba(255, 255, 255, .1);
  border-color: var(--accent);
}
.quickform .field label { color: var(--text-light-dim); }

.quickcard__policy {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-light-dim);
  text-align: center;
}
.quickcard__policy a { color: var(--accent-2); border-bottom: 1px solid rgba(255, 143, 60, .4); }

.quickcard__done {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 14px 0 6px;
}
.quickcard__done[hidden] { display: none; }
.quickcard__done-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(33, 197, 110, .15);
  border: 1px solid rgba(33, 197, 110, .4);
  color: var(--success);
}
.quickcard__done p { color: var(--text-light-dim); font-size: 14.5px; }
.quickcard__done strong { color: #fff; }
.quickcard__done .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); margin-top: 6px; }

/* Hero stats */

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 76px;
  padding: 34px 40px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}
.stat { display: flex; flex-direction: column; gap: 5px; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, .12);
}
.stat__num {
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--text-light-dim); font-size: 14px; line-height: 1.35; }

/* ---------- Sections ---------- */

.section { padding: 104px 0; position: relative; }
.section--light { background: var(--paper-2); color: var(--text-dark); }
.section--dark { background: var(--ink); color: var(--text-light); }
.section--dark .section__sub { color: var(--text-light-dim); }
.section--stats { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%); }

.section__head { max-width: 720px; margin-bottom: 56px; }
.section__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section__title { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; margin-bottom: 16px; }
.section__sub { color: var(--text-mid); font-size: 17.5px; line-height: 1.62; }
.section--dark .section__title { color: #fff; }

/* ---------- Advantage cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  padding: 32px 30px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--paper-3);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 107, 26, .3);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background var(--t), color var(--t), transform var(--t);
}
.card:hover .card__icon { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-mid); font-size: 15.5px; line-height: 1.6; }

/* ---------- Tabs + pricing ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 4px;
}
.tab {
  padding: 12px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text-light-dim);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--t-fast);
}
.tab:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tab.is-active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 107, 26, .3);
}

.pricing__panel { display: none; }
.pricing__panel.is-active { display: block; animation: fadeUp .4s var(--ease); }
.pricing__panel[hidden] { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.price-list { display: grid; gap: 14px; }

.price-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.price-item:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 107, 26, .35);
  transform: translateX(4px);
}
.price-item__info h3 { color: #fff; font-size: 19px; margin-bottom: 7px; }
.price-item__info p { color: var(--text-light-dim); font-size: 14.5px; line-height: 1.55; }
.price-item__time {
  display: inline-block;
  margin-top: 11px;
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  color: var(--text-light-dim);
  font-size: 12.5px;
  font-weight: 600;
}
.price-item__cost {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  text-align: right;
}
.price-item__cost strong {
  color: var(--accent-2);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.price-item__note { font-size: 12px; color: var(--success); font-weight: 600; max-width: 190px; }

.pricing__foot {
  margin-top: 34px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: rgba(255, 107, 26, .09);
  border: 1px solid rgba(255, 107, 26, .24);
  color: var(--text-light-dim);
  font-size: 15.5px;
  text-align: center;
}

.pricing__status {
  margin-top: 18px;
  color: var(--text-light-dim);
  font-size: 14px;
  text-align: center;
}

.pricing__status[hidden] { display: none; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--paper-3);
  transition: transform var(--t), box-shadow var(--t);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step__num {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-mid); font-size: 15px; line-height: 1.6; }

.steps { position: relative; }
.step::after {
  content: "";
  position: absolute;
  top: 56px;
  right: -14px;
  width: 9px;
  height: 9px;
  border-top: 2px dashed var(--paper-3);
  border-right: 2px dashed var(--paper-3);
  transform: rotate(45deg);
}
.step:last-child::after { display: none; }

/* ---------- Guarantee stats ---------- */

.gstats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.gstat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color var(--t), transform var(--t);
}
.gstat:hover { border-color: rgba(255, 107, 26, .4); transform: translateY(-4px); }
.gstat__num {
  color: var(--accent-2);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gstat__label { color: var(--text-light-dim); font-size: 14.5px; line-height: 1.4; }

.warranty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.warranty__item {
  padding: 28px 26px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, .03);
}
.warranty__item h3 { color: #fff; font-size: 18px; margin-bottom: 9px; }
.warranty__item p { color: var(--text-light-dim); font-size: 14.5px; line-height: 1.6; }

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.review {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--paper-3);
  transition: transform var(--t), box-shadow var(--t);
}
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.review__head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--paper-3);
}
.review__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
.review__head > div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.review__head strong { font-size: 15.5px; }
.review__meta { color: var(--text-dim); font-size: 13px; }
.review__head .stars { margin-left: auto; }
.review p { color: var(--text-mid); font-size: 15.5px; line-height: 1.65; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq__item {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.faq__item.is-open { border-color: rgba(255, 107, 26, .4); background: rgba(255, 255, 255, .06); }
.faq__item h3 { margin: 0; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 26px;
  color: #fff;
  font-size: 17.5px;
  font-weight: 700;
  text-align: left;
  transition: color var(--t-fast);
}
.faq__q:hover { color: var(--accent-2); }
.faq__icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background var(--t), transform var(--t);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-2);
  transform: translate(-50%, -50%);
  transition: transform var(--t), opacity var(--t);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--accent); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(0); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > p {
  overflow: hidden;
  color: var(--text-light-dim);
  font-size: 15.5px;
  line-height: 1.68;
  padding: 0 26px;
}
.faq__item.is-open .faq__a > p { padding-bottom: 24px; }

/* ---------- Booking ---------- */

.section--booking {
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(255, 107, 26, .18), transparent 62%),
    linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 55%, #0b0f13 100%);
  color: var(--text-light);
  overflow: hidden;
}

.booking {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.booking__info .section__title { color: #fff; }
.booking__info .section__sub { color: var(--text-light-dim); }

.booking__list { display: grid; gap: 13px; margin: 34px 0 38px; }
.booking__list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-light-dim);
  font-size: 16px;
  line-height: 1.5;
}
.booking__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(33, 197, 110, .16);
  border: 1px solid rgba(33, 197, 110, .45);
}
.booking__list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.booking__contacts { display: flex; flex-wrap: wrap; gap: 14px; }
.booking__contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.booking__contact:hover { border-color: var(--accent); background: rgba(255, 107, 26, .1); transform: translateY(-2px); }
.booking__contact-label { color: var(--text-light-dim); font-size: 12.5px; font-weight: 600; }
.booking__contact strong { color: #fff; font-size: 17px; font-weight: 800; }

.booking__form-wrap {
  padding: 38px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.booking-teaser {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}
.booking-teaser .section__title { color: #fff; }
.booking-teaser .section__sub {
  max-width: 700px;
  margin: 0 auto 28px;
  color: var(--text-light-dim);
}
.booking-teaser .booking__list {
  max-width: 540px;
  margin: 0 auto 30px;
  text-align: left;
}
.booking-teaser .booking__contacts { justify-content: center; }
.booking-teaser .booking__contacts .btn { min-width: 210px; }

/* ---------- Fields ---------- */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: -.005em;
}
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1.5px solid var(--paper-3);
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #a8b3be; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, .13);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); background: #fef4f4; }
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .13); }

.field__error {
  display: none;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.field.has-error .field__error { display: block; }
.field__error--check { display: none; margin-top: -10px; }
.field__error--check.is-shown { display: block; }

.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }

input[type="date"] { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 20px;
  cursor: pointer;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox__mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--paper-2);
  border: 1.5px solid var(--paper-3);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.checkbox__mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  opacity: 0;
  transform: rotate(45deg) scale(.7);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.checkbox input:checked + .checkbox__mark {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox input:checked + .checkbox__mark::after { opacity: 1; transform: rotate(45deg) scale(1); }
.checkbox input:focus-visible + .checkbox__mark { outline: 3px solid var(--accent); outline-offset: 3px; }
.checkbox__text { font-size: 14px; line-height: 1.5; color: var(--text-mid); }
.checkbox__text a { color: var(--accent); border-bottom: 1px solid rgba(255, 107, 26, .4); }

/* ---------- Booking form extras ---------- */

.bform__submit { min-height: 60px; }

.bform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.bform__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}

.bform__alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fef4f4;
  border: 1px solid rgba(229, 72, 77, .35);
  color: #b3282c;
  font-size: 14.5px;
  font-weight: 600;
}
.bform__alert[hidden] { display: none; }
.bform__alert::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.bform__success { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 14px 0; }
.bform__success[hidden] { display: none; }
.bform__success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(33, 197, 110, .13);
  border: 2px solid rgba(33, 197, 110, .4);
  color: var(--success);
  animation: pop .45s var(--ease);
}
@keyframes pop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.bform__success h3 { font-size: 27px; }
.bform__success p { color: var(--text-mid); font-size: 16px; max-width: 400px; }

.bform__ticket {
  display: grid;
  gap: 1px;
  width: 100%;
  max-width: 420px;
  margin: 6px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-3);
  border: 1px solid var(--paper-3);
}
.bform__ticket > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  background: var(--paper-2);
}
.bform__ticket span { color: var(--text-dim); font-size: 13.5px; font-weight: 600; }
.bform__ticket strong { font-size: 14.5px; text-align: right; }
.bform__success .btn--ghost { color: var(--text-dark); border-color: var(--paper-3); }
.bform__success .btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Contacts ---------- */

.contacts { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: start; }
.contacts__info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-card {
  display: flex;
  gap: 15px;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 26, .4); background: rgba(255, 255, 255, .06); }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 107, 26, .13);
  border: 1px solid rgba(255, 107, 26, .28);
  color: var(--accent-2);
}
.contact-card h3 { color: #fff; font-size: 16.5px; margin-bottom: 8px; }
.contact-card p { color: var(--text-light-dim); font-size: 14.5px; line-height: 1.6; }
.contact-card p strong { color: var(--success); }
.contact-card a:not([href^="http"]):hover { color: var(--accent-2); }

.map-embed {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #182029, #10161c);
  border: 1px solid rgba(255, 255, 255, .1);
}
.map-embed__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-embed__road {
  position: absolute;
  background: rgba(255, 255, 255, .07);
  border-radius: 4px;
}
.map-embed__road--a { top: 34%; left: -10%; width: 130%; height: 22px; transform: rotate(-7deg); }
.map-embed__road--b { top: 62%; left: -10%; width: 130%; height: 14px; transform: rotate(4deg); }
.map-embed__road--c { top: 10%; left: 38%; width: 18px; height: 110%; transform: rotate(6deg); }

.map-embed__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -100%);
  color: var(--accent);
  animation: floatY 3s ease-in-out infinite;
}
.map-embed__pin span {
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
}
.map-embed__pin::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  width: 34px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 107, 26, .3);
  transform: translateX(-50%);
  filter: blur(4px);
}
@keyframes floatY {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, -112%); }
}
.map-embed__cap {
  margin-top: 14px;
  color: var(--text-light-dim);
  font-size: 13.5px;
  text-align: center;
}

/* ---------- Footer ---------- */

.footer { padding: 76px 0 34px; background: #0a0e12; color: var(--text-light-dim); border-top: 1px solid rgba(255, 255, 255, .07); }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 44px;
  padding-bottom: 44px;
}
.footer__about { margin-top: 20px; font-size: 14.5px; line-height: 1.65; max-width: 380px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h3 { color: #fff; font-size: 15.5px; margin-bottom: 6px; letter-spacing: .01em; }
.footer__col a { font-size: 14.5px; transition: color var(--t-fast), transform var(--t-fast); width: fit-content; }
.footer__col a:hover { color: var(--accent-2); transform: translateX(3px); }
.footer__col p { font-size: 14.5px; line-height: 1.6; }

.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text-light-dim);
  transition: all var(--t-fast);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13.5px;
}
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer__legal a:hover { color: var(--accent-2); }

/* ---------- Mobile CTA ---------- */

.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: #fff;
  font-size: 16.5px;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(255, 107, 26, .42);
  transform: translateY(140%);
  transition: transform var(--t-slow);
}
.mobile-cta.is-visible { transform: none; }

/* ---------- To top ---------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(15, 20, 25, .9);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--accent-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity var(--t), transform var(--t), visibility var(--t),
              background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.to-top:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.to-top:active { transform: scale(.96); }
.to-top svg { width: 28px; height: 28px; }

/* ---------- Modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(8, 11, 14, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade .2s var(--ease);
}
.modal[hidden] { display: none; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 34px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: #131a22;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  color: var(--text-light);
  animation: modalIn .26s var(--ease);
}
.modal__dialog--callback { max-width: 460px; }
.modal__dialog--auth { max-width: 560px; }
.modal__dialog:focus,
.modal__dialog:focus-visible { outline: none; }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--text-light-dim);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.modal__close:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: rotate(90deg); }

.modal__head { padding-right: 46px; margin-bottom: 24px; }
.modal__head h2 { color: #fff; font-size: clamp(22px, 3.2vw, 27px); margin-bottom: 8px; }
.modal__head p { color: var(--text-light-dim); font-size: 14.5px; line-height: 1.5; }

.modal__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--text-light-dim);
  font-size: 13.5px;
  text-align: center;
}
.modal__foot a { color: var(--accent-2); font-weight: 700; }
.modal__foot a:hover { color: #fff; }

.modal .field input,
.modal .field select {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.modal .field input::placeholder { color: rgba(255, 255, 255, .34); }
.modal .field input:focus,
.modal .field select:focus {
  background: rgba(255, 255, 255, .1);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, .16);
}
.modal .field label { color: var(--text-light-dim); }
.modal .field.has-error input,
.modal .field.has-error select { border-color: var(--danger); background: rgba(229, 72, 77, .1); }
.modal .field.has-error input:focus,
.modal .field.has-error select:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .14); }
.modal .select::after { border-color: var(--text-light-dim); }
.modal .field select option { background: #131a22; color: #fff; }
.modal .field:last-child { margin-bottom: 0; }

/* ---------- Auth forms ---------- */

.authform { display: grid; gap: 14px; }
.authform .field { margin-bottom: 0; }

.authform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.authform__note {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.authform__note a { color: var(--accent-2); border-bottom: 1px solid rgba(255, 143, 60, .4); }

.authform__switch {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--text-light-dim);
  font-size: 14px;
  text-align: center;
}

.authform__link {
  display: inline;
  padding: 0;
  color: var(--accent-2);
  font-size: inherit;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(255, 143, 60, .45);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.authform__link:hover { color: #fff; border-color: #fff; }
.authform__link--center { justify-self: center; margin-top: 4px; }

.authform__meta { display: flex; justify-content: flex-end; margin-top: -4px; }

.authform__alert {
  display: flex;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(229, 72, 77, .14);
  border: 1px solid rgba(229, 72, 77, .42);
  color: #ffb3b5;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}
.authform__alert[hidden] { display: none; }

.authform__lead { color: var(--text-light-dim); font-size: 14.5px; line-height: 1.55; }
.authform__hint { color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
.authform__hint--top { margin-top: -8px; margin-bottom: 2px; }

.authform__done {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 10px 0;
}
.authform__done[hidden] { display: none; }
.authform__done p { color: var(--text-light-dim); font-size: 14.5px; }
.authform__done strong { color: #fff; }

.field__hint {
  color: var(--text-light-dim);
  font-size: 12.5px;
  line-height: 1.4;
}
.field__hint[hidden] { display: none; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 400;
  max-width: min(92vw, 460px);
  transform: translate(-50%, 16px);
  padding: 13px 20px;
  border-radius: 12px;
  background: #0b0f13;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[hidden] { display: none; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .booking { grid-template-columns: 1fr; gap: 44px; }
  .contacts { grid-template-columns: 1fr; }
  .hero__top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .hero__bar { flex-direction: column; align-items: flex-start; gap: 22px; }
}

@media (max-width: 900px) {
  .header__auth,
  .header__user,
  .header__login { display: none; }
  .header__actions .btn { display: none; }
}

@media (max-width: 1399px) {
  .nav { display: none; }
  .burger { display: flex; margin-left: 0; }
  .header__actions { margin-left: auto; }
}

@media (min-width: 1400px) {
  .header__actions { margin-left: auto; }
  .nav { margin-left: 0; }
  .header__phone-icon { display: none; }
}
.nav.is-open {
  position: fixed;
  inset: var(--header-h) 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 18px var(--gutter) 28px;
  background: rgba(15, 20, 25, .99);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  animation: menuIn .28s var(--ease);
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
.nav.is-open a {
  padding: 15px 16px;
  font-size: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  border-radius: 0;
}
.nav.is-open a::after { display: none; }

.nav__mobile { display: none; }
.nav.is-open .nav__mobile {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.nav.is-open .nav__phone {
  padding: 12px 16px;
  border-bottom: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.nav__auth { display: flex; flex-direction: column; gap: 10px; }
.nav__user { padding: 0 4px; color: var(--text-light-dim); font-size: 14px; }
.nav__user strong { color: #fff; }
.nav__user-name { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
.nav__user-name:hover,
.nav__user-name:focus-visible { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.nav__caption { color: var(--text-dim); font-size: 12.5px; text-align: center; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .section { padding: 76px 0; }
  .hero { padding-top: calc(var(--header-h) + 52px); padding-bottom: 64px; }
  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
    margin-top: 56px;
    padding: 28px 26px;
  }
  .stat:nth-child(3)::before { display: none; }
  .contacts__info { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer__brand { grid-column: 1 / -1; }
  .booking__form-wrap { padding: 30px; }
  .step::after { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .mobile-cta { display: flex; }
  .footer { padding-bottom: 156px; }
  .header__phone { display: none; }
  .to-top {
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .to-top svg { width: 24px; height: 24px; }
  .hero__bar { align-items: stretch; }
  .modal { padding: 12px; }
  .modal__dialog {
    padding: 26px 20px;
    border-radius: var(--radius);
    max-height: calc(100dvh - 24px);
  }
  .authform__row { grid-template-columns: 1fr; }
  .toast { bottom: 84px; }
  .quickcard { padding: 26px 22px; }
  .price-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 22px;
  }
  .price-item:hover { transform: none; }
  .price-item__cost { align-items: stretch; width: 100%; text-align: left; }
  .price-item__cost strong { font-size: 21px; }
  .price-item__note { max-width: none; }
  .price-item__cost .btn { width: 100%; }
  .bform__grid { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 40px; }
  .faq__q { font-size: 16px; padding: 18px 20px; gap: 14px; }
  .faq__a > p { padding: 0 20px; font-size: 15px; }
  .faq__item.is-open .faq__a > p { padding-bottom: 20px; }
  .reviews, .cards, .warranty, .gstats { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .booking__contacts { width: 100%; }
  .booking__contact { flex: 1 1 180px; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .header__phone-icon { display: none; }
  .hero__stats { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .stat { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .footer__top { grid-template-columns: 1fr; }
  .bform__ticket > div { flex-direction: column; align-items: flex-start; gap: 3px; }
  .bform__ticket strong { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mobile-cta { transform: none; }
}

@media print {
  .header, .mobile-cta, .to-top, .hero__bg, .footer { display: none; }
  body { background: #fff; color: #000; }
}

/* ── «Все проекты»: возврат на лендинг AI-Проекты ───────────── */
.projects-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px 8px 10px;
  border: 1px solid rgba(128, 128, 128, .38);
  border-radius: 100px;
  background: rgba(128, 128, 128, .10);
  color: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.projects-back svg { flex-shrink: 0; }

/* Тёмные контексты (шапка и подвал лендинга) — светлая стрелка. */
.header .projects-back,
.footer .projects-back {
  color: rgba(255, 255, 255, .75);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
}
.header .projects-back:hover,
.header .projects-back:focus-visible,
.footer .projects-back:hover,
.footer .projects-back:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: rgba(255, 107, 26, .18);
}
.bw-header .projects-back,
.bw-footer .projects-back { color: var(--text-mid); }
.projects-back:hover,
.projects-back:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 107, 26, .12);
}
.header__inner > .projects-back { margin-right: 0; }
.footer__bottom > .projects-back { margin-bottom: 8px; }
.bw-footer .projects-back { margin-right: auto; }

@media (max-width: 1600px) {
  .projects-back span { display: none; }
  .projects-back { min-height: 36px; padding: 8px 11px; }
}

/* Кнопка «Все проекты» добавляет ширину в шапке: компенсируем плотностью. */
.header__inner { gap: 12px; }
@media (min-width: 1201px) {
  .nav a { padding-left: 9px; padding-right: 9px; }
}

/* ── Переключатель способа входа: телефон / e-mail ─────────── */
.authmode {
  display: inline-flex;
  gap: 3px;
  margin-top: 10px;
  padding: 3px;
  border-radius: 100px;
  background: rgba(128, 128, 128, .14);
}
.authmode__btn {
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--text-mid);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  transition: background var(--t-fast), color var(--t-fast);
}
.authmode__btn:hover { color: var(--accent); }
.authmode__btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 107, 26, .25);
}

@media print {
  .projects-back { display: none; }
  .authmode { display: none; }
}
