:root {
  --bg: #f4f7fb;
  --bg-soft: #eef4fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #61758b;
  --line: #d8e3f0;
  --primary: #1f6fff;
  --primary-dark: #124fbf;
  --primary-soft: #eaf2ff;
  --warning-bg: #fff7e8;
  --warning-border: #f3d28a;
  --warning-text: #7a560f;
  --success-bg: #e9f9ef;
  --success-border: #b7e6c5;
  --success-text: #166534;
  --error-bg: #fff0f0;
  --error-border: #f2c7c7;
  --error-text: #b42318;
  --shadow: 0 18px 40px rgba(16, 35, 63, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-image {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d9e3ef;
  box-shadow: 0 10px 22px rgba(16, 35, 63, 0.12);
  flex-shrink: 0;
  background: #fff;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #10233f;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 15px;
  font-weight: 700;
  color: #214165;
}

.nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #183556;
  border-radius: 2px;
  margin: 5px 0;
}

.hero-section {
  padding: 42px 0 34px;
  background:
    radial-gradient(circle at top right, rgba(31, 111, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
  align-items: stretch;
}

.hero-content,
.panel-card,
.info-card,
.faq-item,
.application-form,
.side-box,
.contact-card,
.timeline-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-content {
  padding: 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.12;
  color: #10233f;
}

.hero-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #495d74;
}

.hero-alert {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  min-height: 52px;
  border: none;
  border-radius: 16px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  box-shadow: 0 14px 28px rgba(31, 111, 255, 0.28);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid #cfe0ff;
}

.hero-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.hero-mini-card {
  background: #f8fbff;
  border: 1px solid #e1ebf7;
  border-radius: 18px;
  padding: 14px;
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 6px;
  color: #17345a;
}

.hero-mini-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.panel-card {
  padding: 26px;
}

.panel-card h3,
.info-card h3,
.timeline-body h3,
.side-box h3,
.contact-card h3 {
  margin-top: 0;
  color: #10233f;
}

.panel-steps {
  display: grid;
  gap: 14px;
}

.panel-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f7fbff;
  border: 1px solid #e1ebf7;
  border-radius: 18px;
  padding: 14px;
}

.panel-step p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-step-num {
  min-width: 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.panel-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.section {
  padding: 58px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 28px;
}

.section-head.center {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: 34px;
  color: #10233f;
}

.section-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  padding: 24px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-item {
  padding: 22px;
}

.faq-item h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #163154;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 22px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
}

.timeline-num {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.timeline-body p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  align-items: start;
}

.application-form {
  padding: 28px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  color: #183556;
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfdae8;
  border-radius: 16px;
  padding: 14px 15px;
  background: #fbfdff;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.12);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.region-info {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  line-height: 1.7;
  border: 1px solid #d9e6f5;
  background: #f8fbff;
  color: #284866;
}

.region-info.rf {
  background: #ecf7ff;
  border-color: #bfe1ff;
  color: #15507d;
}

.region-info.special {
  background: #fff7e8;
  border-color: #f3d28a;
  color: #7a560f;
}

.form-note {
  margin: 8px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f8fd;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.btn-submit {
  width: 100%;
}

.form-message {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  line-height: 1.6;
  font-weight: 700;
}

.form-message.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.form-message.error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.form-side {
  display: grid;
  gap: 14px;
}

.side-box {
  padding: 22px;
}

.side-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.side-box.accent {
  background: #edf5ff;
  border-color: #cfe0ff;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact-card {
  padding: 22px;
  text-align: center;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  background: #0f223d;
  color: #dbe7f7;
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-grid,
  .info-grid,
  .form-layout,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .header-inner {
    min-height: 72px;
    position: relative;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 15px 18px;
    border-bottom: 1px solid #eef3f8;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .timeline-num {
    width: 74px;
    height: 74px;
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .hero-section {
    padding: 22px 0 22px;
  }

  .section {
    padding: 42px 0;
  }

  .hero-content,
  .panel-card,
  .application-form,
  .side-box,
  .info-card,
  .faq-item,
  .contact-card,
  .timeline-item {
    padding: 18px;
    border-radius: 22px;
  }

  .brand-logo-image {
    width: 46px;
    height: 46px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .hero-text {
    font-size: 15px;
  }

  .section-head h2 {
    font-size: 25px;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .btn-submit {
    width: 100%;
  }

  .panel-step,
  .hero-mini-card {
    border-radius: 16px;
  }

  .contact-card {
    text-align: left;
  }

  .contact-icon {
    margin: 0 0 14px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}