:root {
  --primary: #0b2c6b;
  --primary-2: #0a1f4a;
  --accent: #1dbf73;
  --accent-2: #17a864;
  --text: #0f172a;
  --muted: #5b6577;
  --bg: #f5f7fb;
  --card: #ffffff;
  --shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1200px;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
}

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

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-subtitle {
  color: var(--muted);
  max-width: 720px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-secondary {
  background: #fff;
  border: 1px solid #d6dbe6;
  color: var(--primary);
}

.btn-secondary:hover {
  border-color: var(--primary);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 44, 107, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

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

.logo img {
  width: 150px;
  height: auto;
}

.menu-toggle {
  display: none;
  background: #f1f4f9;
  border: 1px solid #dce3ef;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: #223353;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(11, 44, 107, 0.08);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.region-btn {
  border: 1px solid #d7dce5;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.hero {
  position: relative;
  overflow: hidden;
  background: #0a1f4a;
}

.hero img {
  width: 100%;
  height: clamp(260px, 32vw, 420px);
  object-fit: cover;
  filter: saturate(1.05);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 24, 56, 0.82) 0%, rgba(7, 24, 56, 0.45) 45%, rgba(7, 24, 56, 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero p {
  max-width: 640px;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
}

.search-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.toggle-group {
  display: inline-flex;
  background: #f3f6fb;
  padding: 4px;
  border-radius: 999px;
  gap: 6px;
}

.toggle-group input {
  display: none;
}

.toggle-group label {
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.toggle-group input:checked + label {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select {
  padding: 12px 14px;
  border: 1px solid #dbe1ec;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(29, 191, 115, 0.3);
  border-color: var(--accent);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}

.swap-btn {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.benefit-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(11, 44, 107, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.promo-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.promo-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.promo-card img {
  height: 100%;
  object-fit: cover;
}

.promo-content {
  padding: 24px;
  display: grid;
  gap: 10px;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.deal-card {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.deal-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(11, 44, 107, 0.2), rgba(29, 191, 115, 0.2));
}

.deal-body {
  padding: 16px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.deal-body h3 {
  font-size: 1.05rem;
}

.deal-price {
  font-weight: 700;
  color: var(--primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted);
}

.app-promo {
  background: #0b2c6b;
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.app-promo img {
  max-width: 320px;
  margin-left: auto;
}

.app-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card img {
  height: 170px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(11, 44, 107, 0.2), rgba(29, 191, 115, 0.2));
}

.blog-card-content {
  padding: 18px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.blog-card h3 {
  font-size: 1.1rem;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.article h2 {
  margin-top: 24px;
  color: var(--primary);
}

.article h3 {
  margin-top: 18px;
  color: var(--primary-2);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  background: #07142f;
  color: #e5e9f5;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand img {
  width: 140px;
  margin-bottom: 12px;
}

.footer-section button {
  display: none;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: #cdd5ea;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  font-size: 0.85rem;
  color: #b7c0da;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 47, 0.6);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  width: min(520px, 92vw);
  display: grid;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-close {
  background: #f1f4f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

.select {
  position: relative;
}

.select input {
  width: 100%;
}

.select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e7f1;
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 5;
}

.select.open .select-list {
  display: block;
}

.select-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-item:hover {
  background: #f4f6fb;
}

.notice {
  background: rgba(29, 191, 115, 0.12);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--primary-2);
  font-weight: 600;
}

.site-footer .notice {
  background: rgba(29, 191, 115, 0.18);
  color: #eaf6f0;
  border-left-color: #42d38e;
}

@media (max-width: 1100px) {
  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-card {
    grid-template-columns: 1fr;
  }

  .app-promo {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-promo img {
    margin: 0 auto;
  }

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

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;
    background: #fff;
    border-radius: 18px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: var(--shadow);
    display: none;
  }

  body.nav-open .nav-panel {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .search-card {
    margin-top: -32px;
    padding: 20px;
  }

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

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

  .swap-btn {
    right: 12px;
    top: 88px;
  }

  .promo-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .promo-card {
    min-width: 280px;
    scroll-snap-align: start;
  }

  .deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-section button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 0;
    cursor: pointer;
  }

  .footer-section .footer-links {
    display: none;
  }

  .footer-section.open .footer-links {
    display: grid;
  }
}

@media (max-width: 560px) {
  .deals-grid {
    grid-template-columns: 1fr;
  }

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

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