@font-face {
  font-family: "Vazirmatn";
  src: url("../font/Vazirmatn-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../font/Vazirmatn-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../font/Vazirmatn-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../font/Vazirmatn-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
      color-scheme: light;
      --page: #f4f7fb;
      --surface: #ffffff;
      --surface-soft: #f8fafc;
      --ink: #172b4d;
      --muted: #64748b;
      --line: #e2e8f0;
      --navy: #17365d;
      --navy-deep: #102744;
      --accent: #2870a8;
      --accent-soft: #eaf3fb;
      --shadow-sm: 0 5px 18px rgba(20, 44, 75, 0.06);
      --shadow-md: 0 18px 48px rgba(20, 44, 75, 0.10);
      --radius-lg: 22px;
      --radius-md: 15px;
      --content-width: 1160px;
    }

    * { box-sizing: border-box; }

    html { min-height: 100%; scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(ellipse at 90% 0%, rgba(216, 232, 247, 0.65), transparent 34rem),
        var(--page);
      color: var(--ink);
      font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
      text-align: right;
      line-height: 1.8;
    }

    a { color: inherit; }

    a:focus-visible {
      outline: 3px solid #75b7e5;
      outline-offset: 3px;
      border-radius: 7px;
    }

    .site-header {
      position: relative;
      z-index: 20;
      background: rgba(255, 255, 255, 0.94);
      border-bottom: 1px solid rgba(226, 232, 240, 0.95);
      box-shadow: 0 3px 16px rgba(20, 44, 75, 0.04);
      backdrop-filter: blur(12px);
    }

    .header-inner {
      width: min(calc(100% - 40px), var(--content-width));
      min-height: 78px;
      margin-inline: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .site-brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      flex: 0 0 auto;
      color: var(--navy-deep);
      font-size: 17px;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
    }

    .brand-mark {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border-radius: 13px;
      background: linear-gradient(145deg, #214c78, #153252);
      color: #fff;
      box-shadow: 0 6px 14px rgba(23, 54, 93, 0.18);
      font-size: 18px;
      line-height: 1;
    }

    .navbar { min-width: 0; }

    .navbar ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex-wrap: wrap;
      gap: 4px;
    }

    .navbar > ul > li { position: relative; }

    .navbar a {
      display: block;
      padding: 10px 12px;
      border-radius: 10px;
      color: #334155;
      font-size: 13px;
      font-weight: 600;
      line-height: 1.7;
      text-decoration: none;
      transition: background-color 160ms ease, color 160ms ease;
    }

    .navbar > ul > li > a:hover,
    .navbar > ul > li > a:focus-visible {
      color: var(--navy);
      background: var(--accent-soft);
      text-shadow: none;
      opacity: 1;
    }

    .dropdown { position: relative; }

    .dropdown > a[href="javascript:void(0)"]::after {
      content: "";
      display: inline-block;
      width: 6px;
      height: 6px;
      margin-inline-start: 8px;
      margin-bottom: 3px;
      border-left: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(-45deg);
      opacity: 0.65;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      top: calc(100% + 5px);
      right: 0;
      left: auto;
      min-width: 205px;
      padding: 7px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 13px;
      box-shadow: var(--shadow-md);
      z-index: 30;
      white-space: nowrap;
    }

    .dropdown-content a {
      padding: 9px 12px;
      border-radius: 8px;
      color: #334155;
      font-size: 12px;
      font-weight: 500;
      border-bottom: 0;
      text-align: right;
    }

    .dropdown-content a:hover,
    .dropdown-content a:focus-visible {
      background: var(--surface-soft);
      color: var(--accent);
      opacity: 1;
      text-shadow: none;
    }

    .dropdown .dropdown-content .dropdown { position: relative; }

    .dropdown .dropdown-content .dropdown-content {
      top: -7px;
      right: auto;
      left: calc(100% + 5px);
      transform: none;
    }

    @media (hover: hover) {
      .dropdown:hover > .dropdown-content,
      .dropdown:focus-within > .dropdown-content { display: block; }
      .dropdown .dropdown:hover > .dropdown-content,
      .dropdown .dropdown:focus-within > .dropdown-content { display: block; }
    }

    .dropdown.active > .dropdown-content { display: block; }

    .page-main {
      width: min(calc(100% - 40px), var(--content-width));
      margin: 42px auto 54px;
    }

    .hero {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
      align-items: center;
      gap: 28px;
      padding: clamp(28px, 5vw, 58px);
      border-radius: var(--radius-lg);
      color: #fff;
      background: linear-gradient(115deg, #102744 0%, #173d65 60%, #245a83 100%);
      box-shadow: 0 18px 45px rgba(16, 39, 68, 0.17);
    }

    .hero::before,
    .hero::after {
      content: "";
      position: absolute;
      z-index: -1;
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 50%;
      pointer-events: none;
    }

    .hero::before {
      width: 390px;
      height: 390px;
      inset-inline-end: -130px;
      top: -230px;
    }

    .hero::after {
      width: 270px;
      height: 270px;
      inset-inline-end: -65px;
      bottom: -205px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 15px;
      color: #c6d9eb;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .eyebrow::before {
      content: "";
      width: 22px;
      height: 2px;
      background: #8cc3e7;
      border-radius: 2px;
    }

    .hero h1 {
      max-width: 720px;
      margin: 0;
      color: #fff;
      font-size: clamp(27px, 4vw, 42px);
      font-weight: 700;
      line-height: 1.65;
      letter-spacing: -0.04em;
    }

    .hero-description {
      max-width: 650px;
      margin: 15px 0 0;
      color: #d8e5f0;
      font-size: 15px;
      line-height: 2.1;
    }

    .hero-aside {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 155px;
    }

    .hero-symbol {
      display: grid;
      place-items: center;
      width: 138px;
      height: 138px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 36px;
      background: rgba(255, 255, 255, 0.08);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
      transform: rotate(-5deg);
    }

    .hero-symbol svg {
      width: 78px;
      height: 78px;
      transform: rotate(5deg);
    }

    .section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
      margin: 38px 0 18px;
    }

    .section-heading h2 {
      margin: 0;
      color: var(--navy-deep);
      font-size: 21px;
      line-height: 1.6;
    }

    .section-heading p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

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

    .service-card {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 220px;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--surface);
      box-shadow: var(--shadow-sm);
      text-decoration: none;
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    .service-card:hover {
      transform: translateY(-4px);
      border-color: #c2d8e9;
      box-shadow: 0 14px 28px rgba(20, 44, 75, 0.09);
    }

    .service-icon {
      display: grid;
      place-items: center;
      width: 48px;
      height: 48px;
      margin-bottom: 19px;
      border-radius: 14px;
      color: var(--navy);
      background: var(--accent-soft);
    }

    .service-icon svg {
      width: 24px;
      height: 24px;
      stroke: currentColor;
    }

    .service-card h3 {
      margin: 0;
      color: var(--navy-deep);
      font-size: 16px;
      line-height: 1.8;
    }

    .service-card p {
      margin: 7px 0 18px;
      color: var(--muted);
      font-size: 12px;
      line-height: 2;
    }

    .service-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: auto;
      color: var(--accent);
      font-size: 12px;
      font-weight: 700;
    }

    .service-link::after {
      content: "←";
      font-size: 17px;
      transition: transform 180ms ease;
    }

    .service-card:hover .service-link::after { transform: translateX(-3px); }

    .page-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 22px 0 0;
      margin-top: 35px;
      border-top: 1px solid var(--line);
      color: #718096;
      font-size: 11px;
    }

    .page-footer p { margin: 0; }

    @media (max-width: 1050px) {
      .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-block: 14px;
      }

      .navbar { width: 100%; }
      .navbar ul { justify-content: flex-start; }
      .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 700px) {
      .header-inner,
      .page-main { width: min(calc(100% - 28px), var(--content-width)); }

      .header-inner { gap: 9px; }
      .navbar ul { gap: 2px; }
      .navbar a { padding: 8px 9px; font-size: 12px; }
      .dropdown-content { min-width: 190px; }
      .dropdown .dropdown-content .dropdown-content {
        right: 0;
        left: auto;
        top: 100%;
      }

      .page-main { margin-top: 24px; margin-bottom: 32px; }
      .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 28px 24px;
      }

      .hero h1 { font-size: clamp(25px, 7vw, 34px); }
      .hero-description { font-size: 13px; }
      .hero-aside { display: none; }
      .section-heading { margin-top: 28px; align-items: flex-start; }
      .section-heading h2 { font-size: 18px; }
      .service-grid { gap: 11px; }
      .service-card { min-height: 205px; padding: 17px; }
      .service-card h3 { font-size: 14px; }
      .page-footer { align-items: flex-start; flex-direction: column; }
    }

    @media (max-width: 420px) {
      .service-grid { grid-template-columns: minmax(0, 1fr); }
      .service-card { min-height: auto; }
      .service-icon { margin-bottom: 12px; }
      .dropdown-content { right: 0; left: auto; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
      }
    }
