/* СледVIN — единый визуальный поток */

:root {
  --ink: #14202b;
  --ink-soft: #3d4d5c;
  --muted: #6b7c8c;
  --line: rgba(20, 32, 43, 0.1);
  --paper: #f3f6f8;
  --paper-2: #e8eef2;
  --surface: rgba(255, 255, 255, 0.72);
  --teal: #0f766e;
  --teal-deep: #0b5c56;
  --teal-soft: #d7efeb;
  --amber: #c47a2c;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 24px 60px rgba(15, 35, 45, 0.12);
  --radius: 18px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(15, 118, 110, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(196, 122, 44, 0.1), transparent 55%),
    linear-gradient(180deg, #f7fafb 0%, var(--paper) 40%, #eef3f6 100%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

[hidden] {
  display: none !important;
}

.setup-banner {
  background: #1a2332;
  color: #f3f6f8;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.setup-banner code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.84em;
}

.setup-banner strong {
  color: #7de2d3;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 251, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(20, 32, 43, 0.05);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger i {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn-block {
  width: 100%;
}

/* Hero — full-bleed composition */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, 0.28) 0%, rgba(10, 18, 24, 0.55) 45%, rgba(10, 18, 24, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 18, 24, 0.55) 0%, rgba(10, 18, 24, 0.15) 55%, transparent 100%);
}

.hero-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  color: #f5f8fa;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.1rem;
  max-width: 12ch;
  animation: riseIn 0.9s ease both;
}

.hero-brand em {
  font-style: normal;
  color: #7de2d3;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
  animation: riseIn 0.9s ease 0.08s both;
}

.hero p.lead {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  color: rgba(245, 248, 250, 0.86);
  font-size: 1.05rem;
  animation: riseIn 0.9s ease 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s ease 0.24s both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flowing sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.7rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.55rem;
}

/* Check form band */
.check-band {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.check-shell {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  overflow: hidden;
}

.check-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
}

.check-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 20, 28, 0.65));
}

.check-visual figcaption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

label.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

label.field span.req {
  color: var(--amber);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.form-note {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.alert {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  display: none;
}

.alert.show {
  display: block;
}

.alert-error {
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #fecdca;
}

.alert-ok {
  background: #ecfdf3;
  color: var(--ok);
  border: 1px solid #abeFC6;
}

/* How it works — timeline, not cards */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.in-view {
  opacity: 1;
  transform: none;
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.step h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-copy ul {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.split-copy li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
}

.split-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}

.split-photo {
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.split-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

/* Prices — soft rows */
.price-list {
  display: grid;
  gap: 1rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.price-row:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 16px 40px rgba(20, 32, 43, 0.08);
}

.price-row.is-popular {
  background: linear-gradient(135deg, rgba(215, 239, 235, 0.95), rgba(255, 255, 255, 0.9));
  border-color: rgba(15, 118, 110, 0.35);
}

.price-row h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.price-row .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}

.price-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price-row ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.price-row ul li::before {
  content: "– ";
  color: var(--teal);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.disclaimer {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 65ch;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--teal);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0.2rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Contacts strip */
.contacts-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
  padding: 2rem 0 0;
}

.contacts-strip a.phone {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.meta-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(20, 32, 43, 0.03));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.site-footer p,
.site-footer li {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--teal-deep);
}

.legal-line {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Cookie */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 640px;
  margin: 0 auto;
  background: rgba(20, 32, 43, 0.94);
  color: #f3f6f8;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  display: none;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cookie.show {
  display: flex;
}

.cookie p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(243, 246, 248, 0.88);
}

.cookie a {
  color: #7de2d3;
}

/* Auth / cabinet pages */
.page-shell {
  padding: 2.5rem 0 4rem;
}

.panel {
  width: min(560px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.panel.wide {
  width: min(960px, 100%);
}

.panel h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.panel .sub {
  margin: 0 0 1.3rem;
  color: var(--ink-soft);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: var(--paper-2);
  padding: 0.35rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
}

.tabs button {
  border: none;
  background: transparent;
  border-radius: 11px;
  padding: 0.7rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}

.tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(20, 32, 43, 0.08);
}

.order-list {
  display: grid;
  gap: 0.9rem;
}

.order-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.order-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.order-item .meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-new {
  background: #eff8ff;
  color: #175cd3;
}
.badge-processing {
  background: #fffaeb;
  color: #b54708;
}
.badge-ready {
  background: #ecfdf3;
  color: #067647;
}
.badge-cancelled {
  background: #fef3f2;
  color: #b42318;
}

.result-box {
  margin-top: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink-soft);
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

.legal-page {
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin-top: 1.8rem;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(247, 250, 251, 0.96);
  backdrop-filter: blur(12px);
  padding: 1.25rem;
  z-index: 40;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.9rem 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .check-shell,
  .split,
  .price-row,
  .contacts-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-actions .btn-ghost.hide-sm {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .price-amount {
    font-size: 1.35rem;
  }

  .hero {
    min-height: 78vh;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
  }

  .container,
  .hero-inner {
    width: min(1120px, calc(100% - 1.5rem));
  }
}
