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

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

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

:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #102033;
  --muted: #53657a;
  --line: rgba(16, 32, 51, 0.1);
  --primary: #1557a0;
  --primary-deep: #0b2e59;
  --accent: #d91f26;
  --shadow: 0 20px 60px rgba(10, 26, 47, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(21, 87, 160, 0.1), transparent 30%),
    radial-gradient(circle at left bottom, rgba(217, 31, 38, 0.09), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
}

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

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

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

.skip-link {
  position: absolute;
  top: -48px;
  right: 16px;
  background: var(--primary-deep);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 251, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: min(270px, 48vw);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.site-footer a:hover,
.contact-cards a:hover {
  color: var(--primary);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary-deep);
  margin: 3px 0;
  border-radius: 999px;
}

.mobile-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 250px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.mobile-panel a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--muted);
}

.hero-section,
.platforms-section,
.advantages-section,
.services-section,
.about-section,
.policies-section,
.complaints-section,
.contact-section {
  padding: 88px 0;
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
}

.eyebrow,
.section-head span,
.about-panel span,
.policy-card span,
.contact-copy span,
.complaint-shell span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.eyebrow::before,
.section-head span::before,
.about-panel span::before,
.policy-card span::before,
.contact-copy span::before,
.complaint-shell span::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.3;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.5;
}

.hero-text,
.section-head p,
.info-card p,
.service-card p,
.about-panel p,
.mission-panel p,
.policy-card p,
.complaint-shell p,
.contact-copy p,
.contact-cards p,
.hero-metrics span,
.platform-card p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-text {
  margin-top: 22px;
  max-width: 680px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  box-shadow: 0 14px 30px rgba(11, 46, 89, 0.22);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-highlights li {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.94rem;
}

.hero-card,
.platform-card,
.info-card,
.service-card,
.about-panel,
.mission-panel,
.policy-card,
.complaint-shell,
.contact-cards article {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 34px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(217, 31, 38, 0.14), transparent 65%);
}

.hero-badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(21, 87, 160, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
}

.hero-mark {
  width: min(240px, 54%);
  margin: 28px 0 30px auto;
}

.hero-metrics {
  display: grid;
  gap: 16px;
}

.hero-metrics article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 32, 51, 0.08);
}

.hero-metrics strong,
.stats-grid strong {
  display: block;
  font-size: 1rem;
}

.section-head {
  max-width: 760px;
}

.platform-grid,
.advantage-grid,
.services-grid,
.policy-grid,
.stats-grid {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

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

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

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

.platform-card,
.info-card,
.service-card,
.policy-card,
.contact-cards article {
  border-radius: var(--radius-md);
  padding: 28px;
}

.platform-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 500;
}

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

.contact-grid {
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.about-panel,
.mission-panel,
.complaint-shell {
  border-radius: var(--radius-lg);
  padding: 34px;
}

.contact-copy {
  position: sticky;
  top: 118px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.contact-copy h2,
.inner-summary-card h2,
.form-card h2 {
  max-width: 14ch;
}

.contact-copy p {
  margin-top: 16px;
}

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

.stats-grid article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 32, 51, 0.08);
}

.stats-grid strong {
  font-size: 1.4rem;
  color: var(--primary-deep);
}

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

.complaint-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-cards article:last-child {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 28px 0 42px;
}

.inner-hero {
  padding: 76px 0 30px;
}

.inner-hero-grid,
.complaint-page-grid {
  display: grid;
  gap: 24px;
}

.inner-hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.inner-summary-card,
.content-card,
.form-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.summary-list {
  margin: 16px 0 0;
  padding: 0 18px 0 0;
  color: var(--muted);
}

.summary-list li + li {
  margin-top: 10px;
}

.complaint-page-section {
  padding: 22px 0 88px;
}

.complaint-page-grid {
  grid-template-columns: minmax(320px, 0.94fr) minmax(320px, 1.06fr);
  align-items: start;
}

.complaint-content {
  display: grid;
  gap: 22px;
}

.form-card {
  position: sticky;
  top: 118px;
}

.content-card h2,
.form-card h2 {
  margin-top: 12px;
}

.content-card p + p {
  margin-top: 14px;
}

.app-panel-text {
  margin-top: 16px;
  color: var(--muted);
}

.app-link-box {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.app-link-box .button {
  width: min(100%, 340px);
  justify-content: center;
  text-align: center;
  padding-inline: 20px;
  line-height: 1.5;
}

.form-card .form-note {
  margin-top: 16px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.topic-grid div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 32, 51, 0.08);
  color: var(--text);
}

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

.complaint-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.complaint-form input,
.complaint-form select,
.complaint-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  outline: none;
}

.complaint-form textarea {
  min-height: 180px;
  resize: vertical;
}

.complaint-form input:focus,
.complaint-form select:focus,
.complaint-form textarea:focus {
  border-color: rgba(21, 87, 160, 0.44);
  box-shadow: 0 0 0 4px rgba(21, 87, 160, 0.08);
}

.full-width {
  grid-column: 1 / -1;
}

.form-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(21, 87, 160, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .platform-grid,
  .advantage-grid,
  .services-grid,
  .policy-grid,
  .inner-hero-grid,
  .complaint-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(280px, 0.96fr) minmax(0, 1.04fr);
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero-section,
  .platforms-section,
  .advantages-section,
  .services-section,
  .about-section,
  .policies-section,
  .complaints-section,
  .contact-section {
    padding: 68px 0;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .platform-grid,
  .advantage-grid,
  .services-grid,
  .policy-grid,
  .about-grid,
  .contact-grid,
  .stats-grid,
  .inner-hero-grid,
  .complaint-page-grid,
  .topic-grid,
  .complaint-form {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards article:last-child {
    grid-column: auto;
  }

  .hero-card,
  .about-panel,
  .mission-panel,
  .complaint-shell {
    padding: 24px;
  }

  .complaint-shell,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-copy,
  .form-card {
    position: static;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-mark {
    width: min(190px, 62%);
  }

  .brand img {
    width: min(220px, 58vw);
  }
}
