/* Shared stylesheet for the generated sub-pages and the hand-written legal
   pages. Same tokens as the landing page, but plain CSS with no build step —
   these are static HTML files that must render before any JavaScript. */
:root {
  --paper: #faf7f0;
  --surface: #ffffff;
  --panel: #f2eee4;
  --ink: #14241c;
  --ink-soft: #38463e;
  --muted: #66746b;
  --line: #e4ddcd;
  --primary: #0e9f6e;
  --primary-strong: #0a7a50;
  --primary-tint: #eaf7f1;
  --em-300: #4fc79a;
  --font-display: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

/* header */
.ph {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.ph__in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.ph__nav {
  display: flex;
  gap: 22px;
  margin-inline: auto;
}
.ph__nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.ph__nav a:hover {
  color: var(--primary-strong);
}
.ph__acts {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ph__login {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.ph__login:hover {
  color: var(--ink);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo img {
  border-radius: 8px;
}
.logo span {
  color: var(--primary-strong);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.btn:hover {
  background: #0c1c15;
}
.btn--em {
  background: var(--primary-strong);
}
.btn--em:hover {
  background: #096843;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: rgba(20, 36, 28, 0.05);
  border-color: var(--ink);
}
.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--line:hover {
  background: rgba(20, 36, 28, 0.05);
  border-color: var(--ink);
}
.btn--lg {
  padding: 13px 24px;
  font-size: 15.5px;
}

/* body */
main {
  padding: clamp(30px, 5vw, 52px) 0 clamp(48px, 7vw, 80px);
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumb a {
  color: var(--muted);
  text-decoration: none;
}
.crumb a:hover {
  color: var(--ink);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-strong);
}
h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.036em;
}
.lede {
  margin: 18px 0 0;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 62ch;
}
/* Section heading inside the body — smaller than h1, still the display face. */
.sec__h {
  margin: 48px 0 0;
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 700;
}

/* hero call to action */
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}
.trust li::before {
  content: '✓';
  margin-right: 7px;
  color: var(--primary-strong);
  font-weight: 700;
}

/* capability rows */
.pts {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.pt {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pt__ic {
  width: 19px;
  height: 19px;
  margin-top: 5px;
  color: var(--primary-strong);
}
.pt__ic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pt h2 {
  font-size: 17.5px;
  font-weight: 700;
}
.pt p {
  margin: 5px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 64ch;
}

/* index cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.card {
  display: block;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-decoration: none;
  transition:
    transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1),
    border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
}
.card h2,
.card h3 {
  font-size: 17.5px;
  font-weight: 700;
}
.card p {
  margin: 7px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.cards--sm {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 16px;
}
.cards--sm .card {
  padding: 18px 18px 20px;
}
.cards--sm p {
  font-size: 14px;
}
.card__go {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-strong);
}

/* closing CTA */
.cta2 {
  margin-top: 44px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 20px;
  background: var(--ink);
  color: #eef3f0;
  text-align: center;
}
.cta2 h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
}
.cta2 p {
  margin: 10px auto 0;
  color: #b9c6bf;
  max-width: 46ch;
  font-size: 15.5px;
}
.cta2__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.cta2 .btn--ghost {
  color: #eef3f0;
  border-color: rgba(255, 255, 255, 0.26);
}
.cta2 .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: #fff;
}

/* cross-links between solutions and modules */
.rels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.rel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--primary-tint);
  text-decoration: none;
  transition: border-color 0.18s ease;
}
.rel:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
}
.rel__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.rel__d {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.rel__go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-strong);
}

/* FAQ — <details> so it opens with no JavaScript at all */
.faq__list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.faq__i {
  border-bottom: 1px solid var(--line);
}
.faq__i summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
}
.faq__i summary::-webkit-details-marker {
  display: none;
}
.faq__i summary:hover {
  color: var(--primary-strong);
}
.faq__x {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
}
.faq__x::before,
.faq__x::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.6px;
  border-radius: 2px;
  background: var(--muted);
  transform: translateY(-50%);
}
.faq__x::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.18s ease;
}
.faq__i[open] .faq__x::after {
  transform: translateY(-50%) rotate(0deg);
}
.faq__i p {
  margin: 0 0 18px;
  max-width: 68ch;
  font-size: 15px;
  color: var(--muted);
}
.faq__more {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.faq__more a {
  color: var(--primary-strong);
  font-weight: 600;
}

/* the way out for someone whose case is not on the list */
.fallback {
  margin-top: 40px;
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line));
  border-radius: 18px;
  background: var(--primary-tint);
}
.fallback h2 {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 700;
}
.fallback p {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 15px;
  color: var(--ink-soft);
}
.fallback__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.fallback .btn--line {
  background: var(--surface);
}
.xlink {
  margin: 26px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.xlink a {
  color: var(--primary-strong);
  font-weight: 600;
}

/* neighbouring pages */
.siblings {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.siblings__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.siblings__h {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.siblings__all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-strong);
  text-decoration: none;
}
.siblings__note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.siblings__note a {
  color: var(--primary-strong);
  font-weight: 600;
}

/* ── Tariflər ────────────────────────────────────────────────────────── */
.tplans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.tplan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.tplan--hot {
  border-color: var(--primary);
  box-shadow: 0 10px 30px -18px rgba(14, 159, 110, 0.55);
}
.tplan__badge {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-strong);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
.tplan__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.tplan__p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.04em;
}
.tplan__p span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.tplan__note {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.tplan__f {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}
.tplan__f li {
  position: relative;
  padding-left: 20px;
  margin-top: 7px;
}
.tplan__f li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-strong);
  font-weight: 700;
}
.tplan .btn {
  margin-top: auto;
}

/* Wide tables scroll inside their own box — the page itself never does. */
.tablewrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.ttable {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.ttable th,
.ttable td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.ttable thead th {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--panel);
}
.ttable tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-soft);
}
.ttable tbody tr:last-child th,
.ttable tbody tr:last-child td {
  border-bottom: 0;
}

/* ── Bələdçi ─────────────────────────────────────────────────────────── */
/* Articles get a wider shell than the rest of the site, because they carry a
   permanent topic list beside the text. */
.wrap--wide {
  max-width: 1120px;
}
.gwrap {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.gside {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 8px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.gside__h {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.gside__g {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gside__gt {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.gside__g a {
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
}
.gside__g a:hover {
  background: var(--panel);
  color: var(--ink);
}
.gside__g a.is-on {
  background: var(--primary-tint);
  color: var(--primary-strong);
  font-weight: 600;
}
.garticle {
  min-width: 0;
}
.gsec {
  margin-top: 34px;
}
.gsec h2 {
  font-size: clamp(19px, 2.3vw, 23px);
  font-weight: 700;
}
.gsec p {
  margin: 10px 0 0;
  max-width: 68ch;
  color: var(--ink-soft);
}
.gsteps,
.glist {
  margin: 12px 0 0;
  padding-left: 0;
  max-width: 68ch;
  list-style: none;
  counter-reset: gstep;
}
.gsteps li,
.glist li {
  position: relative;
  padding-left: 34px;
  margin-top: 9px;
  color: var(--ink-soft);
}
.gsteps li::before {
  counter-increment: gstep;
  content: counter(gstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary-strong);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.glist li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}
.gnote {
  margin-top: 16px !important;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  background: var(--primary-tint);
  font-size: 14.5px;
}
.gnote b {
  color: var(--primary-strong);
}

/* previous / next topic */
.gnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.gnav__i {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
}
.gnav__i:hover {
  border-color: var(--ink);
}
.gnav__i span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.gnav__i b {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
}
.gnav__i--n {
  text-align: right;
}

.gsupport {
  margin-top: 40px;
  padding: clamp(22px, 3.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.gsupport h2 {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 700;
}
.gsupport p {
  margin: 10px 0 0;
  max-width: 60ch;
  font-size: 15px;
  color: var(--ink-soft);
}
.gsupport .btn--line {
  background: var(--surface);
}

/* index, grouped by area */
.ggroup {
  margin-top: 42px;
}
.ggroup__h {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 700;
}
.ggroup__d {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .gwrap {
    grid-template-columns: 1fr;
  }
  /* On a narrow screen the topic list belongs after the article, not above it —
     nobody scrolls past a menu to reach the page they already chose. */
  .gside {
    position: static;
    order: 2;
    max-height: none;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .gnav {
    grid-template-columns: 1fr;
  }
  .gnav__i--n {
    text-align: left;
  }
}

/* footer */
.pf {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding: 34px 0 40px;
  background: var(--panel);
}
.pf__in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 26px 20px;
}
.pf__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}
.pf__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.pf__col a {
  color: var(--muted);
  text-decoration: none;
}
.pf__col a:hover {
  color: var(--primary-strong);
}
.pf__base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.pf__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
}
.pf__links a {
  color: var(--muted);
  text-decoration: none;
}
.pf__links a:hover {
  color: var(--ink);
}

/* On a narrow screen the section links move to their own scrolling row rather
   than disappearing behind a menu button — these pages carry no JavaScript. */
@media (max-width: 860px) {
  .ph__in {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
    row-gap: 0;
  }
  .ph__acts {
    margin-left: auto;
  }
  .ph__nav {
    order: 3;
    width: 100%;
    margin-inline: 0;
    gap: 18px;
    padding: 4px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ph__nav::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 460px) {
  .ph__login {
    display: none;
  }
}

/* Language switch: two letters, not a menu. The one you are reading is inert. */
.ph__lang {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
}
.ph__lang:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.ph__langs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ph__langs .ph__lang {
  border: 0;
  padding: 4px 8px;
  border-radius: 8px;
}
.ph__lang.is-on {
  background: var(--ink);
  color: #fff;
}

/* ── Müraciət formu ────────────────────────────────────────────────────── */
.lead {
  margin-top: 44px;
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.lead .sec__h {
  margin-top: 0;
}
.lead__d {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 15px;
  color: var(--ink-soft);
}
.lead__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.lead__f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.lead__f--wide,
.lead__act,
.lead__note {
  grid-column: 1 / -1;
}
.lead__f input,
.lead__f select,
.lead__f textarea {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}
.lead__f input:focus,
.lead__f select:focus,
.lead__f textarea:focus {
  outline: 2px solid var(--primary-strong);
  outline-offset: 1px;
  border-color: transparent;
}
.lead__f textarea {
  resize: vertical;
  min-height: 76px;
}
/* Off-screen rather than display:none — some bots skip hidden inputs, and the
   point is that they DO fill this one. */
.lead__pot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.lead__msg {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-strong);
}
.lead__msg.is-bad {
  color: #b3261e;
}
.lead__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.lead__ok {
  margin-top: 22px;
  padding: 20px;
  border-radius: 14px;
  background: var(--primary-tint);
}
.lead__ok b {
  font-family: var(--font-display);
  font-size: 17px;
}
.lead__ok p {
  margin: 8px 0 0;
  max-width: 58ch;
  font-size: 15px;
  color: var(--ink-soft);
}
