
/* =============================================
   1. CSS VARIABLES
============================================= */
:root {
  --primary:     #2a2a72;
  --primary-mid: #3a3a8a;
  --gold:        #e69500;
  --white:       #fff;
  --dark:        #16163a;
  --gray:        #5a5a7a;
  --gray-light:  #f4f4f8;
  --shadow:      0 8px 32px rgba(42, 42, 114, 0.10);
}


/* =============================================
   2. RESET & BASE
============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}


/* =============================================
   3. LAYOUT
============================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-light {
  background: var(--gray-light);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}


/* =============================================
   4. HEADER & NAVIGATION
============================================= */
header {
  background: var(--primary);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(42, 42, 114, 0.18);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 48px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: color 0.25s;
}

.back-link:hover {
  color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}


/* =============================================
   5. HERO SECTION
============================================= */
.service-hero {
    background: linear-gradient(140deg, var(--primary) 0%, var(--primary-mid) 100%);
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center; 
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.service-hero .container {
  width: 100%;
  padding-top: 56px;
  padding-bottom: 56px;
}

/* Decorative "Aa" background text */
.typo-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: -20px;
  pointer-events: none;
}

/* Decorative circle */
.service-hero::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  top: -160px;
  right: -120px;
  pointer-events: none;
}

/* Hero icon */
.hero-icon {
  font-size: 4.4rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
  display: block;
  animation: lens 2.8s ease-in-out infinite;
}

/* Hero title */
.service-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Hero description */
.hero-desc {
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  opacity: 0.88;
  line-height: 1.78;
}

/* Tag badge */
.tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 16px;
}


/* =============================================
   6. SECTIONS & TITLES
============================================= */
.section {
  padding: 88px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 54px;
}

.section-title h2 {
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 38px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 10px auto 18px;
}

.section-title p {
  color: var(--gray);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.72;
}


/* =============================================
   7. MOSAIC GRID
============================================= */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mosaic-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 210px;
  transition: transform 0.3s;
}

.mosaic-item:hover {
  transform: scale(1.025);
}

.mosaic-item.wide {
  grid-column: span 2;
}

.mosaic-item:nth-child(1) { background: linear-gradient(140deg, var(--primary), var(--primary-mid)); }
.mosaic-item:nth-child(2) { background: linear-gradient(140deg, var(--primary-mid), #4a4aaa); }
.mosaic-item:nth-child(3) { background: linear-gradient(140deg, #1e1e58, var(--primary)); }
.mosaic-item:nth-child(4) { background: linear-gradient(140deg, var(--primary), #222268); }
.mosaic-item:nth-child(5) { background: linear-gradient(140deg, var(--primary-mid), #2a2a6a); }

.mosaic-bg-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.12);
}

.mosaic-label {
  position: relative;
  z-index: 1;
  padding: 22px;
  color: var(--white);
}

.mosaic-label h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.mosaic-label p {
  font-size: 0.88rem;
  opacity: 0.82;
  line-height: 1.55;
}


/* =============================================
   8. OFFER CARDS
============================================= */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 24px;
}

.offer-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary-mid);
  transition: transform 0.28s, box-shadow 0.28s;
}

.offer-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(42, 42, 114, 0.14);
}

.offer-card .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.offer-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.offer-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
}


/* =============================================
   9. PROCESS STEPS
============================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(42, 42, 114, 0.055);
  position: absolute;
  top: 8px;
  right: 13px;
  line-height: 1;
}

.step .step-icon {
  font-size: 1.85rem;
  color: var(--primary-mid);
  margin-bottom: 13px;
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.step p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.65;
}


/* =============================================
   10. TWO-COLUMN LAYOUT
============================================= */
.col-text h2 {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.32;
}

.col-text h2 em {
  font-style: normal;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 1px;
}

.col-text p {
  color: var(--gray);
  line-height: 1.82;
  margin-bottom: 20px;
  font-size: 0.97rem;
}

.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.check-list li i {
  color: var(--primary-mid);
  margin-top: 2px;
  flex-shrink: 0;
}


/* =============================================
   11. STAT CARD
============================================= */
.stat-card {
  background: linear-gradient(140deg, var(--primary), var(--primary-mid));
  border-radius: 18px;
  padding: 50px 38px;
  color: var(--white);
  text-align: center;
}

.stat-card .big-num {
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1;
}

.gold-line {
  width: 44px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto 14px;
}

.stat-card p {
  opacity: 0.82;
  font-size: 1rem;
  line-height: 1.65;
}



/* =============================================
   14. FOOTER
============================================= */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
  line-height: 1.65;
}

footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.25s;
}

footer a:hover {
  color: var(--white);
}


/* =============================================
   15. ANIMATIONS
============================================= */
@keyframes lens {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(0.92); }
}


/* =============================================
   16. MEDIA QUERIES
============================================= */

/* --- Desktop (1100px and below) --- */
@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* --- Tablet Landscape  --- */
@media (max-width: 900px) {
  .two-col          { grid-template-columns: 1fr; gap: 40px; }
  .section          { padding: 72px 0; }
  .section-title h2 { font-size: 2rem; }
  .service-hero h1  { font-size: 2.6rem; }

  
  .mosaic               { grid-template-columns: 1fr 1fr; }
  .mosaic-item.wide     { grid-column: span 1; }


}


@media (max-width: 820px) {

  /* Hero  */
  .service-hero {
    min-height: calc(100vh - 72px);
    align-items: center;
  }

  .service-hero .container {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .service-hero h1  { font-size: 2.4rem; }
  .hero-desc        { font-size: 1.08rem; line-height: 1.82; max-width: 88%; }
  .hero-icon        { font-size: 3.8rem; }

  /* Decorative text — scale down */
  .typo-bg          { font-size: 10rem; }

  /* Nav */
  .nav-list   { gap: 18px; }
  .nav-list a { font-size: 0.9rem; }

  /* Section titles */
  .section-title h2 { font-size: 1.85rem; }
  .section-title p  { font-size: 1rem; }

  /* Cards */
  .offer-grid   { grid-template-columns: repeat(2, 1fr); }
  .offer-card p { font-size: 0.95rem; line-height: 1.75; }

  /* Mosaic labels */
  .mosaic-label h3  { font-size: 0.97rem; }
  .mosaic-label p   { font-size: 0.86rem; }

  /* CTA */
  .cta-section h2 { font-size: 1.9rem; }
  .cta-section p  { font-size: 1rem; }
}

/* --- Mobile Large (600px and below) --- */
@media (max-width: 600px) {

  /* Nav hidden */
  .nav-list { display: none; }

  /* Hero */
  .service-hero h1  { font-size: 2rem; }
  .hero-desc        { font-size: 1rem; line-height: 1.78; max-width: 100%; }
  .hero-icon        { font-size: 3rem; }
  .typo-bg          { font-size: 6rem; }

  /* Mosaic — single column */
  .mosaic           { grid-template-columns: 1fr; }
  .mosaic-item.wide { grid-column: span 1; }

  /* Cards — single column */
  .offer-grid { grid-template-columns: 1fr; }

  /* Section */
  .section          { padding: 56px 0; }
  .section-title    { margin-bottom: 38px; }
  .section-title h2 { font-size: 1.7rem; }
  .section-title p  { font-size: 0.97rem; }

  /* Buttons stack */
  .btn-outline {
    margin-left: 0;
    margin-top: 12px;
    display: block;
  }
}

/* --- Mobile Small (400px and below) --- */
@media (max-width: 400px) {
  .service-hero h1  { font-size: 1.75rem; }
  .hero-desc        { font-size: 0.95rem; }
  .section-title h2 { font-size: 1.5rem; }
  .logo             { height: 38px; }
  .offer-card       { padding: 28px 20px; }
  .mosaic-item      { min-height: 170px; }
}