/* Автопрестиж — Site 2 (Europe, dark premium) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@400;500;600&display=swap');

:root {
  --color-bg: #08090c;
  --color-bg-elevated: #111318;
  --color-surface: #16181f;
  --color-surface-hover: #1c1f28;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-accent: rgba(201, 169, 98, 0.35);
  --color-text: #f4f4f5;
  --color-text-muted: #9ca3af;
  --color-accent: #c9a962;
  --color-accent-hover: #dbbe78;
  --color-accent-muted: rgba(201, 169, 98, 0.12);
  --color-success: #6ee7a0;
  --color-error: #f87171;
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 200ms ease;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 70% 55% at 10% 10%, rgba(201, 169, 98, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 50% 45% at 90% 80%, rgba(201, 169, 98, 0.08) 0%, transparent 52%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(201, 169, 98, 0.04) 0%, transparent 60%),
    #0c0d11;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo__img {
  height: 44px;
  width: auto;
  display: block;
}

.footer__logo .logo__img {
  height: 40px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1617531653332-bd46c24f2068?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: 70% center;
  opacity: 0.22;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 35%, rgba(201, 169, 98, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 45% 40% at 85% 55%, rgba(201, 169, 98, 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 35% 25% at 50% 0%, rgba(219, 190, 120, 0.08) 0%, transparent 70%),
    linear-gradient(105deg, rgba(12, 13, 17, 0.94) 0%, rgba(14, 15, 20, 0.84) 42%, rgba(16, 17, 24, 0.7) 68%, rgba(18, 19, 28, 0.52) 100%),
    linear-gradient(180deg, rgba(12, 13, 17, 0.35) 0%, transparent 42%, rgba(12, 13, 17, 0.78) 100%);
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 120px);
}

.hero__content {
  max-width: 520px;
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero__title-accent {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: rgba(244, 244, 245, 0.9);
}

.hero__benefits svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent);
}

/* Form card */
.form-card {
  background: rgba(22, 24, 31, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.35), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-card__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 28px;
  line-height: 1.25;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: #6b7280;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-border-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.form-input.is-error {
  border-color: var(--color-error);
}

.form-error {
  display: none;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--color-error);
}

.form-error.is-visible {
  display: block;
}

.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.budget-option {
  position: relative;
  cursor: pointer;
}

.budget-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.budget-option__label {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.budget-option input:checked + .budget-option__label {
  color: var(--color-text);
  background: var(--color-accent-muted);
  border-color: var(--color-border-accent);
}

.budget-option input:focus-visible + .budget-option__label {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.budget-option:hover .budget-option__label {
  border-color: rgba(255, 255, 255, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

a.btn {
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, #c9a962 0%, #b8944a 100%);
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(201, 169, 98, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #dbbe78 0%, #c9a962 100%);
  color: #0a0a0a;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201, 169, 98, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.form-consent {
  margin-top: 14px;
  font-size: 0.6875rem;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
}

.form-consent a {
  text-decoration: underline;
}

/* Footer */
.footer {
  position: relative;
  padding: 0 0 28px;
  background: var(--color-bg-elevated);
}

.footer__accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin-bottom: 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr auto;
  gap: 32px 48px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  font-size: 1.375rem;
}

.footer__direction {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer__company {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 12px;
}

.footer__requisites {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__requisites li {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer__requisites li span {
  color: var(--color-accent);
  font-weight: 500;
  margin-right: 4px;
}

.footer__nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.footer__link:hover {
  background: var(--color-accent-muted);
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.footer__copy {
  margin-top: 20px;
  font-size: 0.75rem;
  color: #4b5563;
  letter-spacing: 0.04em;
}

.footer--compact {
  margin-top: auto;
}

/* Legal page */
.page--legal main {
  padding-bottom: 64px;
}

.legal-hero {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.06) 0%, transparent 100%);
}

.legal-hero__inner {
  max-width: 720px;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.legal-breadcrumb a {
  color: var(--color-text-muted);
}

.legal-breadcrumb a:hover {
  color: var(--color-accent);
}

.legal-breadcrumb span:last-child {
  color: var(--color-accent);
}

.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

.legal-hero__lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 48px;
}

.legal-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.legal-aside__card {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.legal-aside__heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.legal-aside__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.legal-aside__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-aside__list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
}

.legal-aside__list dt {
  color: var(--color-text-muted);
}

.legal-aside__list dd {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
}

.legal-aside__text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-aside__phone {
  font-size: 0.9375rem;
  font-weight: 500;
}

.legal-content {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.legal-content > p:first-child {
  font-size: 1rem;
  color: var(--color-text);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 40px 0 16px;
  padding-left: 20px;
  border-left: 2px solid var(--color-accent);
  color: var(--color-text);
}

.legal-content h2:first-of-type {
  margin-top: 32px;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.875rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--color-border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
}

.legal-content td {
  color: var(--color-text-muted);
}

.legal-meta {
  margin-top: 48px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Thank page */
.page--thank {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thank-page {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 24px;
}

.thank-page__panel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.thank-page__aside {
  padding: 40px 36px;
  background: var(--color-bg-elevated);
  border-right: 1px solid var(--color-border);
}

.thank-page__logo {
  display: inline-block;
  margin-bottom: 40px;
}

.thank-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.thank-timeline__item {
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
  position: relative;
}

.thank-timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 4px;
  width: 1px;
  background: var(--color-border);
}

.thank-timeline__item.is-complete::after {
  background: var(--color-accent);
  opacity: 0.4;
}

.thank-timeline__dot {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
}

.thank-timeline__item.is-complete .thank-timeline__dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.thank-timeline__item.is-active .thank-timeline__dot {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-muted);
}

.thank-timeline__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thank-timeline__content strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.thank-timeline__content span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.thank-timeline__item.is-active .thank-timeline__content strong {
  color: var(--color-accent);
}

.thank-page__main {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thank-page__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.thank-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
}

.thank-page__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 360px;
}

.thank-page__btn {
  width: auto;
  align-self: flex-start;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .hero__content {
    max-width: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .legal-aside__card {
    flex: 1;
    min-width: 240px;
  }

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

  .footer__nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 32px 0 48px;
  }

  .form-card {
    padding: 28px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .thank-page__panel {
    grid-template-columns: 1fr;
  }

  .thank-page__aside {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 28px 24px;
  }

  .thank-page__logo {
    margin-bottom: 24px;
  }

  .thank-timeline {
    flex-direction: row;
    gap: 16px;
  }

  .thank-timeline__item {
    flex: 1;
    flex-direction: column;
    padding-bottom: 0;
    gap: 10px;
  }

  .thank-timeline__item:not(:last-child)::after {
    display: none;
  }

  .thank-page__main {
    padding: 32px 24px;
  }

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

  .footer__nav {
    justify-content: flex-start;
  }
}

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

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

  .btn--primary:hover {
    transform: none;
  }
}

/* intl-tel-input — Россия +7 */
.phone-field .iti {
  width: 100%;
}

.phone-field .iti--separate-dial-code .iti__selected-dial-code {
  color: var(--color-text);
}

.phone-field .iti__selected-country {
  color: var(--color-text);
}

.phone-field .iti--separate-dial-code input.form-input {
  padding-top: 14px;
  padding-bottom: 14px;
  padding-right: 16px;
}

.phone-field .iti--separate-dial-code .iti__selected-country {
  background: transparent;
}
