:root {
  --white: #ffffff;
  --navy-900: #07132c;
  --navy-800: #0b1f45;
  --navy-700: #14346c;
  --gray-100: #f5f7fb;
  --gray-200: #e5e9f2;
  --gray-500: #6b7280;
  --text: #0f172a;
  --shadow-lg: 0 20px 50px rgba(7, 19, 44, 0.22);
  --shadow-md: 0 10px 28px rgba(7, 19, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--gray-100);
  scroll-behavior: smooth;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: min(1150px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.subpage-main {
  padding-top: 88px;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 84px;
}

.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 19, 44, 0.84), rgba(20, 52, 108, 0.7));
}

.sub-hero-services {
  background: url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
}

.sub-hero-about {
  background: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
}

.sub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #f8fafc;
}

.sub-hero-tag {
  display: inline-block;
  background: rgba(191, 219, 254, 0.2);
  color: #dbeafe;
  border: 1px solid rgba(191, 219, 254, 0.4);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.sub-hero-content h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.12;
}

.sub-hero-content p {
  margin: 0;
  color: #e2e8f0;
  font-size: 1.05rem;
  max-width: 62ch;
}

.sub-content {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.sub-services-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sub-services-grid .premium-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.premium-card {
  background: #ffffff;
  border: 1px solid #dbe4f3;
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.premium-card:hover {
  transform: translateY(-6px);
  border-color: #93c5fd;
  box-shadow: 0 18px 36px rgba(30, 64, 175, 0.15);
}

.premium-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
  color: #0b1f45;
}

.premium-card p {
  margin: 0 0 0.7rem;
  color: #475569;
}

.premium-card ul {
  margin: 0;
  padding-left: 1rem;
  color: #334155;
}

.premium-card li {
  margin-bottom: 0.28rem;
}

.premium-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 0.85rem;
  font-size: unset;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.premium-card .service-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.service-icon--car {
  color: #1d4ed8;
  background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 100%);
}

.service-icon--kasko {
  color: #0f766e;
  background: linear-gradient(145deg, #ccfbf1 0%, #f0fdfa 100%);
}

.service-icon--health {
  color: #be123c;
  background: linear-gradient(145deg, #ffe4e6 0%, #fff1f2 100%);
}

.service-icon--home {
  color: #b45309;
  background: linear-gradient(145deg, #ffedd5 0%, #fff7ed 100%);
}

.service-icon--dask {
  color: #7c3aed;
  background: linear-gradient(145deg, #ede9fe 0%, #f5f3ff 100%);
}

.service-icon--travel {
  color: #0369a1;
  background: linear-gradient(145deg, #e0f2fe 0%, #f0f9ff 100%);
}

.service-icon--foreign {
  color: #047857;
  background: linear-gradient(145deg, #d1fae5 0%, #ecfdf5 100%);
}

.highlight-box {
  background: linear-gradient(130deg, #0b1f45, #1e3a8a);
  color: #f8fafc;
  border-radius: 20px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.22);
}

.highlight-box h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.highlight-box p {
  margin: 0 0 1rem;
  color: #cbd5e1;
  max-width: 65ch;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.about-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.about-panel h2 {
  margin: 0 0 0.6rem;
  color: #0b1f45;
}

.about-panel p {
  margin: 0 0 0.7rem;
  color: #334155;
}

.value-list {
  margin: 0;
  padding-left: 1rem;
  color: #334155;
}

.value-list li {
  margin-bottom: 0.55rem;
}

.timeline {
  background: #ffffff;
  border: 1px solid #dbe4f3;
  border-radius: 20px;
  padding: clamp(1rem, 2.5vw, 1.8rem);
}

.timeline h2 {
  margin: 0 0 0.9rem;
  color: #0b1f45;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.timeline-item {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px solid #dbe4f3;
  border-radius: 14px;
  padding: 0.9rem;
}

.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.timeline-item h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 1rem;
  color: #0b1f45;
}

.timeline-item p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid #e2e8f0;
}

.header.scrolled {
  background: rgba(7, 19, 44, 0.78);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--navy-900);
  text-decoration: none;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.partner-logo-slot {
  border: 0;
  border-radius: 0;
  padding: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  background: transparent;
}

.partner-logo-slot img {
  width: 132px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #1d4ed8;
}

.menu-toggle {
  display: none;
  border: 1px solid #cbd5e1;
  background: transparent;
  color: #0f172a;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.header.scrolled .brand {
  color: #f8fafc;
}

.header.scrolled .nav-links a {
  color: #f8fafc;
}

.header.scrolled .nav-links a:hover {
  color: #bfdbfe;
}

.header.scrolled .menu-toggle {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  background-image: linear-gradient(125deg, rgba(7, 19, 44, 0.78), rgba(11, 31, 69, 0.62)),
    url("https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=1900&q=80");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(191, 219, 254, 0.22), transparent 44%);
  will-change: transform;
}

.hero-content {
  margin-top: 78px;
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
  font-size: 0.8rem;
}

h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero-text {
  margin: 0;
  color: #dbeafe;
  font-size: 1.05rem;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  padding: 0.85rem 1.12rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  box-shadow: 0 12px 28px rgba(96, 165, 250, 0.32);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.stats {
  margin-top: -48px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stat-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--navy-700);
}

.stat-card p {
  margin: 0.35rem 0 0;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  color: var(--navy-900);
}

.section-head p {
  margin: 0.55rem 0 0;
  color: var(--gray-500);
}

.services-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.service-card h3 {
  margin: 0 0 0.35rem;
}

.service-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.93rem;
}

.quote-area {
  background: linear-gradient(145deg, #0b1f45, #07132c);
}

.quote-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.quote-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
}

.quote-copy p {
  margin-top: 0.7rem;
  color: #dbeafe;
}

.quote-points {
  margin: 0.9rem 0 1rem;
  padding-left: 1rem;
  color: #dbeafe;
}

.quote-points li {
  margin-bottom: 0.35rem;
}

.contact-mini {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
}

.contact-mini span {
  color: #bfdbfe;
  font-size: 0.82rem;
}

.contact-mini strong {
  color: #ffffff;
  font-size: 1rem;
}

.quote-form {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 10px;
  padding: 0.72rem 0.75rem;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(96, 165, 250, 0.4);
  border-color: rgba(96, 165, 250, 0.9);
}

.form-note {
  min-height: 1rem;
  margin: 0.2rem 0 0;
  color: #dcfce7;
  font-size: 0.9rem;
}

.form-note.form-note-error {
  color: #fecaca;
}

.about {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.about-text {
  margin-top: 0.9rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
  max-width: 75ch;
}

.footer {
  background: #020817;
  color: #cbd5e1;
  padding: 2.2rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.footer h3,
.footer h4 {
  margin: 0 0 0.4rem;
  color: #f8fafc;
}

.footer p {
  margin: 0.3rem 0;
}

.socials {
  display: flex;
  gap: 0.55rem;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #0f172a;
  display: grid;
  place-items: center;
  border: 1px solid #1e293b;
}

.socials svg {
  width: 16px;
  fill: #cbd5e1;
}

.copyright {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #e2e8f0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .quote-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    right: 4vw;
    left: 4vw;
    display: none;
    flex-direction: column;
    padding: 0.9rem;
    border-radius: 12px;
    background: rgba(7, 19, 44, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .partner-logo-slot {
    display: none;
  }

  .sub-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sub-services-grid .premium-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .about-layout,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .sub-hero {
    padding: 90px 0 72px;
  }
}

@media (max-width: 560px) {
  .services-grid,
  .sub-services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88vh;
  }
}
