/* ── Fonts ── */
@font-face {
  font-family: 'GT Eesti';
  src: url('/fonts/GTEestiProDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Eesti';
  src: url('/fonts/GTEestiProDisplay-UltraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Eesti';
  src: url('/fonts/GT-Eesti-LC-Display-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Eesti';
  src: url('/fonts/GT-Eesti-LC-Display-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --red: #C10005;
  --sber-green: #036860;
  --dark-green: #036860;
  --peach: #FFC7B6;
  --lime: #BCF67E;
  --orange: #F57C00;
  --dark: #1A1A1A;
  --white: #FFFFFF;
  --gray-bg: #F5F5F5;
  --radius: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'GT Eesti', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #3d2b1f 0%, #5c3d2e 30%, #8b6f5e 60%, #c4a882 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
}

.hero__cubes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.cube {
  position: absolute;
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.cube--1 { width: 200px; top: 5%; right: 6%; animation-delay: 0s; }
.cube--2 { width: 160px; bottom: 8%; left: 4%; animation-delay: 2s; }
.cube--3 { width: 120px; top: 35%; left: 12%; animation-delay: 4s; opacity: 0.25; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Horses */
.hero__horses {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.horse {
  position: absolute;
  font-size: 0;
  line-height: 0;
}
.horse img { width: 100%; height: auto; }
.horse--1 { width: 220px; bottom: 5%; right: 3%; animation: gallop1 4s ease-in-out infinite; opacity: 0.85; }
.horse--2 { width: 160px; bottom: 15%; right: 20%; animation: gallop2 5s ease-in-out infinite 0.5s; opacity: 0.65; }
.horse--3 { width: 120px; top: 15%; left: 5%; animation: gallop3 6s ease-in-out infinite 1s; opacity: 0.5; }
.horse--4 { width: 100px; top: 30%; right: 12%; animation: gallop1 4.5s ease-in-out infinite 1.5s; opacity: 0.4; }
.horse--5 { width: 80px; bottom: 25%; left: 12%; animation: gallop2 5.5s ease-in-out infinite 2s; opacity: 0.35; }

@keyframes gallop1 {
  0%, 100% { transform: translateY(0) scaleX(-1); }
  30% { transform: translateY(-35px) scaleX(-1); }
  50% { transform: translateY(-10px) scaleX(-1); }
  70% { transform: translateY(-30px) scaleX(-1); }
}
@keyframes gallop2 {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-25px) rotate(-3deg); }
  50% { transform: translateY(-5px); }
  75% { transform: translateY(-20px) rotate(2deg); }
}
@keyframes gallop3 {
  0%, 100% { transform: translateY(0) scaleX(-1); }
  40% { transform: translateY(-20px) scaleX(-1) rotate(-5deg); }
  60% { transform: translateY(-8px) scaleX(-1); }
  80% { transform: translateY(-15px) scaleX(-1) rotate(3deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
}

.hero__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero__logo--rosmol { height: 36px; }
.hero__logo--sber { height: 64px; }

.hero__label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--peach);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero__slogan {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.hero__info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
}
.hero__info-icon { font-size: 20px; }

.hero__cta {
  display: inline-block;
  padding: 18px 48px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-radius: 60px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(193,0,5,0.4);
}
.hero__cta:hover {
  background: #8B0003;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(193,0,5,0.5);
}

/* ── FORM SECTION ── */
.form-section {
  padding: 80px 20px;
  background: var(--gray-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-section__container {
  max-width: 560px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.form-section__title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--dark-green);
}

.form-section__subtitle {
  text-align: center;
  color: #666;
  font-size: 16px;
  margin-bottom: 32px;
}

/* ── FORM ── */
.reg-form__group {
  margin-bottom: 20px;
}
.reg-form__group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}
.reg-form__group input[type="text"],
.reg-form__group input[type="tel"],
.reg-form__group input[type="url"],
.reg-form__group input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  background: var(--white);
}
.reg-form__group input:focus {
  border-color: var(--sber-green);
}
.reg-form__group input.error {
  border-color: var(--red);
}

/* Checkbox */
.reg-form__group--checkbox {
  margin-top: 24px;
  margin-bottom: 24px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  display: none;
}
.checkbox-custom {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid #ccc;
  border-radius: 6px;
  position: relative;
  transition: all 0.2s;
  display: inline-block;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--sber-green);
  border-color: var(--sber-green);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 12px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.checkbox-label a {
  color: var(--sber-green);
  text-decoration: underline;
}

/* Error message */
.reg-form__error {
  background: #FFF3F3;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

/* Submit button */
.reg-form__submit {
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  margin-top: 8px;
}
.reg-form__submit:hover:not(:disabled) {
  background: #8B0003;
  transform: translateY(-1px);
}
.reg-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.reg-form__submit-loader {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SUCCESS ── */
.success-screen {
  text-align: center;
  padding: 20px 0;
}
.success-screen__icon { font-size: 64px; margin-bottom: 20px; }
.success-screen__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark-green);
  margin-bottom: 16px;
}
.success-screen__text {
  font-size: 18px;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.6;
}
.success-screen__vk-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #0077FF;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s;
  margin-bottom: 12px;
}
.success-screen__vk-btn:hover {
  background: #0066DD;
  transform: translateY(-1px);
}
.success-screen__countdown {
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
}
.success-screen__note {
  font-size: 14px;
  color: #888;
}

/* ── Partners Section ── */
.partners-section {
  padding: 60px 20px;
  background: var(--white);
  text-align: center;
}
.partners-section__label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 20px;
}
.partners-section__general {
  margin-bottom: 48px;
}
.partners-section__general-logo {
  height: 140px;
  opacity: 1;
}
.partners-section__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}
.partners-section__logo {
  height: 48px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.partners-section__logo:hover { opacity: 1; }
.partners-section__logo--round {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 24px 20px;
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 48px 16px; }
  .hero__title { font-size: 40px; }
  .hero__logos { gap: 16px; }
  .hero__logo--rosmol { height: 24px; }
  .hero__logo--sber { height: 48px; }
  .hero__label { font-size: 12px; letter-spacing: 2px; }
  .hero__slogan { font-size: 15px; margin-bottom: 28px; }
  .hero__info-item { font-size: 14px; }
  .hero__cta { padding: 14px 32px; font-size: 16px; width: 100%; text-align: center; }

  .form-section { padding: 32px 12px; }
  .form-section__container { padding: 24px 18px; }
  .form-section__title { font-size: 22px; }
  .form-section__subtitle { font-size: 14px; margin-bottom: 24px; }

  .reg-form__group input[type="text"],
  .reg-form__group input[type="tel"],
  .reg-form__group input[type="url"],
  .reg-form__group input[type="email"] { padding: 12px 14px; font-size: 15px; }

  .reg-form__submit { padding: 14px; font-size: 16px; }

  .success-screen__title { font-size: 22px; }
  .success-screen__text { font-size: 15px; }
  .success-screen__vk-btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 15px; }

  .partners-section { padding: 32px 16px; }
  .partners-section__general { margin-bottom: 32px; }
  .partners-section__general-logo { height: 100px; }
  .partners-section__grid { gap: 16px; }
  .partners-section__logo { height: 36px; }
  .partners-section__logo--round { height: 52px; width: 52px; }

  .cube--1 { width: 80px; top: 2%; right: 3%; }
  .cube--2 { width: 60px; bottom: 5%; left: 2%; }
  .cube--3 { display: none; }

  .horse--1 { width: 140px; bottom: 2%; right: 0; }
  .horse--2 { width: 100px; bottom: 10%; right: 15%; }
  .horse--3 { width: 70px; top: 10%; left: 3%; }
  .horse--4 { display: none; }
  .horse--5 { display: none; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 32px; }
  .form-section__container { padding: 20px 14px; }
  .form-section__title { font-size: 20px; }
}
