:root {
      --bg: #f3f7fc;
      --bg-soft: #eef3f9;
      --surface: rgba(255, 255, 255, 0.82);
      --surface-solid: #ffffff;
      --text: #16243a;
      --text-soft: #5d6b80;
      --primary: #0f4c81;
      --primary-strong: #0b3559;
      --primary-soft: #eaf5ff;
      --accent: #22c55e;
      --accent-soft: #ecfdf3;
      --border: rgba(115, 137, 166, 0.22);
      --shadow-lg: 0 24px 80px rgba(15, 30, 58, 0.16);
      --shadow-md: 0 14px 40px rgba(15, 30, 58, 0.10);
      --shadow-sm: 0 8px 24px rgba(15, 30, 58, 0.07);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 16px;
      --maxw: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.18), transparent 30%),
        linear-gradient(180deg, #eff5fb 0%, #f8fafd 100%);
    }

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

    .container {
      width: min(var(--maxw), calc(100% - 32px));
      margin: 0 auto;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(14px);
      background: rgba(10, 19, 34, 0.74);
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .topbar-inner {
      min-height: 78px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px 24px;
      flex-wrap: wrap;
      padding: 12px 0;
    }

    .brand {
      text-decoration: none;
      color: #fff;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .brand-title {
      font-weight: 800;
      font-size: 20px;
      letter-spacing: 0.01em;
    }

    .brand-subtitle {
      color: rgba(255,255,255,0.72);
      font-size: 12px;
    }

    .nav {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .nav a {
      text-decoration: none;
      color: rgba(255,255,255,0.94);
      padding: 10px 14px;
      border-radius: 999px;
      font-size: 14px;
      transition: background 0.18s ease, transform 0.18s ease;
    }

    .nav a:hover {
      background: rgba(255,255,255,0.10);
      transform: translateY(-1px);
    }

    .hero {
      position: relative;
      color: white;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(8, 14, 26, 0.28) 0%, rgba(8, 14, 26, 0.82) 100%),
        linear-gradient(120deg, rgba(15, 76, 129, 0.76), rgba(10, 28, 52, 0.90)),
        url('perekop.jpg') center/cover no-repeat;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.26), transparent 34%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.14), transparent 28%);
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      min-height: min(880px, calc(100vh - 78px));
      display: grid;
      grid-template-columns: 1.4fr 0.9fr;
      gap: 28px;
      align-items: end;
      padding: 88px 0 76px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.16);
      font-size: 14px;
      margin-bottom: 22px;
    }

    h1 {
      margin: 0 0 18px;
      font-size: clamp(38px, 5vw, 68px);
      line-height: 0.98;
      letter-spacing: -0.04em;
      max-width: 780px;
    }

    .hero-copy {
      max-width: 760px;
      color: rgba(255,255,255,0.92);
      font-size: 18px;
      line-height: 1.7;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 30px;
    }

    .btn {
      min-height: 50px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 0 18px;
      border-radius: 14px;
      text-decoration: none;
      font-weight: 800;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .btn:hover { transform: translateY(-1px); }

    .btn-primary {
      color: #0d2036;
      background: white;
      box-shadow: var(--shadow-lg);
    }

    .btn-secondary {
      color: white;
      border: 1px solid rgba(255,255,255,0.22);
      background: rgba(255,255,255,0.08);
    }

    .hero-meta {
      margin-top: 36px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      max-width: 760px;
    }

    .hero-stat {
      border-radius: 18px;
      padding: 18px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      backdrop-filter: blur(8px);
    }

    .hero-stat strong {
      display: block;
      font-size: 26px;
      margin-bottom: 6px;
    }

    .hero-stat span {
      color: rgba(255,255,255,0.78);
      font-size: 14px;
      line-height: 1.5;
    }

    .hero-panel {
      border-radius: var(--radius-xl);
      padding: 24px;
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.16);
      box-shadow: var(--shadow-lg);
      backdrop-filter: blur(12px);
    }

    .hero-panel h3 {
      margin: 0 0 10px;
      font-size: 20px;
    }

    .hero-panel p {
      margin: 0 0 18px;
      color: rgba(255,255,255,0.82);
      line-height: 1.6;
    }

    .quick-list {
      display: grid;
      gap: 12px;
    }

    .quick-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 16px 18px;
      border-radius: 16px;
      text-decoration: none;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: white;
      transition: transform 0.18s ease, background 0.18s ease;
    }

    .quick-link:hover {
      transform: translateY(-1px);
      background: rgba(255,255,255,0.14);
    }

    .quick-link small {
      display: block;
      color: rgba(255,255,255,0.68);
      margin-top: 4px;
      line-height: 1.45;
    }

    main {
      position: relative;
      z-index: 2;
      margin-top: -42px;
    }

    section { padding: 46px 0; }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 20px;
      flex-wrap: wrap;
      margin-bottom: 24px;
    }

    .label {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      background: var(--primary-soft);
      color: var(--primary);
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 14px;
    }

    .section-head h2 {
      margin: 0;
      font-size: clamp(28px, 4vw, 42px);
      line-height: 1.06;
      color: #0f1d33;
    }

    .section-head p {
      margin: 0;
      max-width: 720px;
      color: var(--text-soft);
      line-height: 1.68;
    }

    .glass-card {
      padding: 30px;
      border-radius: var(--radius-xl);
      background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.84));
      border: 1px solid var(--border);
      box-shadow: var(--shadow-md);
    }

    .grid {
      display: grid;
      gap: 22px;
    }

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

    .card {
      background: var(--surface-solid);
      border-radius: var(--radius-lg);
      padding: 24px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
    }

    .card h3 {
      margin: 0 0 10px;
      font-size: 20px;
      color: #0f1d33;
    }

    .card p,
    .card li {
      color: var(--text-soft);
      line-height: 1.68;
    }

    .cards-compact .card {
      min-height: 100%;
    }

    .feature-icon {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      display: inline-grid;
      place-items: center;
      background: linear-gradient(180deg, #edf7ff, #deefff);
      color: var(--primary);
      font-weight: 800;
      margin-bottom: 14px;
    }

    .list-block {
      display: grid;
      gap: 16px;
    }

    .doc-link,
    .plan-card,
    .contact-item,
    .cta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 18px 20px;
      border-radius: 18px;
      text-decoration: none;
      color: var(--text);
      background: var(--surface-solid);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .doc-link:hover,
    .plan-card:hover,
    .cta-row:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
    }

    .doc-title,
    .plan-title,
    .contact-name {
      font-weight: 800;
      margin-bottom: 4px;
    }

    .doc-sub,
    .plan-sub,
    .contact-sub,
    .muted {
      color: var(--text-soft);
      font-size: 14px;
      line-height: 1.6;
    }

    .arrow {
      white-space: nowrap;
      color: var(--primary);
      font-weight: 800;
    }

    .plans-preview {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      margin-top: 8px;
    }

    .preview-thumb {
      overflow: hidden;
      border-radius: 18px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
      background: #fff;
    }

    .preview-thumb img {
      aspect-ratio: 4 / 3;
      object-fit: cover;
      width: 100%;
    }

    .preview-caption {
      padding: 14px 16px;
      font-weight: 700;
      color: #17324d;
    }

    .rules-box {
      padding: 30px;
      border-radius: var(--radius-xl);
      color: white;
      background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.18), transparent 30%),
        linear-gradient(180deg, #0f1d33, #122544);
      box-shadow: var(--shadow-lg);
    }

    .rules-box p {
      color: rgba(255,255,255,0.82);
      line-height: 1.68;
    }

    .rules-box ul {
      margin: 18px 0 0;
      padding-left: 20px;
      display: grid;
      gap: 12px;
    }

    .rules-box li {
      color: rgba(255,255,255,0.92);
      line-height: 1.6;
    }

    .contacts-grid {
      display: grid;
      gap: 16px;
    }

    .contact-item {
      align-items: flex-start;
    }

    .contact-phone a {
      color: var(--primary);
      font-weight: 800;
      text-decoration: none;
    }

    .contact-phone a:hover { text-decoration: underline; }

    .cta-box {
      margin-top: 18px;
      padding: 22px;
      border-radius: 20px;
      background: linear-gradient(180deg, #f5fbff, #eef6fd);
      border: 1px solid rgba(162, 177, 201, 0.22);
    }

    .cta-box h3 {
      margin: 0 0 8px;
      font-size: 22px;
      color: #0f1d33;
    }

    .cta-box p {
      margin: 0 0 16px;
      color: var(--text-soft);
      line-height: 1.65;
    }

    .footer {
      padding: 42px 0 56px;
      color: #66758b;
      font-size: 14px;
    }

    .footer-box {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      padding: 22px 24px;
      border-radius: 20px;
      background: rgba(255,255,255,0.82);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
    }

    @media (max-width: 1040px) {
      .hero-inner,
      .grid-3,
      .grid-2,
      .plans-preview,
      .hero-meta {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 760px) {
      .topbar-inner { align-items: flex-start; }
      .nav { width: 100%; }
      .nav a { padding: 9px 12px; font-size: 13px; }
      .hero-inner {
        min-height: auto;
        padding: 64px 0 56px;
      }
      .hero-actions {
        flex-direction: column;
      }
      .btn { width: 100%; }
      .glass-card,
      .rules-box,
      .card,
      .hero-panel,
      .cta-box { padding: 22px; }
      .doc-link,
      .plan-card,
      .contact-item,
      .cta-row { padding: 16px; }
    }

.label-on-dark {
  background: rgba(125,211,252,0.14);
  color: #d7f1ff;
}

.rules-title {
  margin: 0 0 12px;
  color: white;
}

.plans-grid {
  align-items: stretch;
}

.plan-card-vertical {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.plan-preview {
  aspect-ratio: 4 / 3;
  background: #dfe8f3;
  overflow: hidden;
}

.plan-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plan-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.plans-note {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .plan-content {
    flex-direction: column;
    align-items: flex-start;
  }
}



.footer-dev {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-right {
  display: flex;
  align-items: center;
}

.dev-block {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(115, 137, 166, 0.16);
  box-shadow: 0 10px 28px rgba(15, 30, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dev-block:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 16px 36px rgba(15, 30, 58, 0.14);
}

.dev-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 30, 58, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dev-block:hover .dev-logo {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 14px 30px rgba(15, 30, 58, 0.18);
}

.dev-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dev-title {
  font-size: 12px;
  color: rgba(102, 117, 139, 0.95);
  letter-spacing: 0.01em;
}

.dev-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  color: #17324d;
  transition: color 0.2s ease;
}

.dev-block:hover .dev-name {
  color: #0f4c81;
}

.dev-meta {
  font-size: 13px;
  color: #55657b;
}
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  text-decoration: none;
  color: white;

  background: linear-gradient(180deg, #0f4c81, #0b3559);
  border: none;
  box-shadow: 0 10px 30px rgba(15, 30, 58, 0.35);

  opacity: 0;
  pointer-events: none;

  transition: all 0.2s ease;
  z-index: 100;
}

.scroll-top:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #125892, #0b3559);
}

@media (max-width: 760px) {
  .footer-dev {
    align-items: flex-start;
  }

  .dev-block {
    width: 100%;
  }

  .dev-name {
    font-size: 17px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}

}
