/* Talavto — Site 3 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #1a1a1e;
  --color-bg-light: #f4f4f5;
  --color-surface: #ffffff;
  --color-text: #18181b;
  --color-text-muted: #71717a;
  --color-hero-text: #ffffff;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-overlay: rgba(0, 0, 0, 0.72);
  --color-border: #e4e4e7;
  --color-error: #ef4444;
  --shadow-modal: 0 32px 80px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 220ms ease;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-primary-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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.logo {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo__dot {
  color: var(--color-primary);
  letter-spacing: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s ease, transform 8s ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 75% 50% at 50% 42%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 42%, transparent 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.38) 35%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.75) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 120px 24px 100px;
}

.hero__content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 720px);
  height: calc(100% + 48px);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-hero-text);
  margin-bottom: 24px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.hero__title-accent {
  font-weight: 300;
  font-style: italic;
  color: var(--color-primary);
  text-shadow: none;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

a.btn {
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn--hero {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
}

.btn--hero:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.45);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.modal-open {
  overflow: hidden;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), opacity 350ms ease;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
  background: var(--color-bg-light);
  color: var(--color-text);
}

.modal__header {
  margin-bottom: 28px;
  padding-right: 32px;
}

.modal__title {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.modal__subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.modal__progress {
  height: 3px;
  background: var(--color-border);
  border-radius: 100px;
  margin-bottom: 28px;
  overflow: hidden;
}

.modal__progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 100px;
  width: 25%;
  transition: width 400ms ease;
}

.quiz__step {
  display: none;
}

.quiz__step.is-active {
  display: block;
  animation: stepIn 350ms ease;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: opacity 1s ease;
  }

  .quiz__step.is-active {
    animation: none;
  }

  .modal__dialog {
    transition: none;
  }
}

.quiz__question {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

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

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}

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

.form-input::placeholder {
  color: #a1a1aa;
}

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

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

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

.quiz__option {
  cursor: pointer;
}

.quiz__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.quiz__option-label {
  display: block;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-light);
  transition: border-color var(--transition), background var(--transition);
}

.quiz__option input:checked + .quiz__option-label {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-primary);
}

.quiz__option input:focus-visible + .quiz__option-label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.quiz__option:hover .quiz__option-label {
  border-color: #d4d4d8;
}

.quiz__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz__nav {
  margin-top: 24px;
}

.quiz__consent {
  margin-top: 12px;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  text-align: center;
}

.quiz__consent a {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--color-bg);
  color: #a1a1aa;
  padding: 32px 0;
}

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

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

.footer__company {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e4e4e7;
}

.footer__requisites {
  font-size: 0.8125rem;
}

.footer__link {
  font-size: 0.875rem;
  color: #a1a1aa;
}

.footer__link:hover {
  color: #fff;
}

/* Subpages */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-light);
}

.page .header {
  position: sticky;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.page .logo {
  color: var(--color-text);
}

.page .logo__dot {
  color: var(--color-primary);
}

.page__main {
  flex: 1;
  padding: 48px 0 64px;
}

.page__top,
.page__header {
  margin-bottom: 32px;
}

.page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.page__back:hover {
  color: var(--color-primary);
}

.page__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  border: 1px solid var(--color-border);
}

.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.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;
}

.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-bg-light);
  font-weight: 600;
  color: var(--color-text);
}

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

.hero--thank {
  min-height: 100vh;
}

.hero--thank .hero__content {
  padding-bottom: 120px;
}

.hero--thank .hero__subtitle {
  margin-bottom: 0;
}

.thank-box {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.thank-box__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 800;
}

.thank-box__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.thank-box__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.thank-box .btn--primary {
  width: auto;
  padding-left: 32px;
  padding-right: 32px;
  border-radius: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero__content {
    padding-bottom: 80px;
  }

  .modal__dialog {
    padding: 28px 22px 24px;
  }

  .legal-content {
    padding: 28px 22px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .btn--hero {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn--hero: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;
}
