/* ==========================================================================
   DINIS Ferris Wheel — design system
   B2B engineering feel: confident type, calm palette, generous rhythm.
   The builder writes /assets/css/tokens.css from content/site.json and links it
   AFTER this file, so brand tokens (ink, accent, radius, max width) win.
   ========================================================================== */

:root {
  /* brand + neutrals (tokens.css overrides the ones it defines) */
  --ink: #0e1b2a;
  --ink-soft: #3d4c5e;
  --line: #e2e8ee;
  --line-strong: #c8d3dd;
  --bg: #ffffff;
  --bg-soft: #f4f8fa;
  --accent: #0fa3b1;      /* bright brand teal — decorative */
  --accent-dark: #0b7a85; /* accessible teal — text + filled buttons */
  --accent-darker: #08656e;
  --accent-ink: #ffffff;
  --accent-soft: #ddf3f5;

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --font: "Segoe UI", "Microsoft YaHei", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(14, 27, 42, 0.06), 0 2px 8px rgba(14, 27, 42, 0.06);
  --shadow: 0 2px 4px rgba(14, 27, 42, 0.06), 0 12px 28px rgba(14, 27, 42, 0.10);
  --shadow-lg: 0 12px 32px rgba(14, 27, 42, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 136px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-dark); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 0.55em;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 3.6vw, 48px); }
h2 { font-size: clamp(22px, 2.5vw, 31px); margin-top: 1.75em; }
h3 { font-size: clamp(17px, 1.7vw, 21px); margin-top: 1.25em; }
h4 { font-size: 16px; margin-top: 1.1em; }
p { margin: 0 0 1.05em; }
.lead { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); max-width: 68ch; }

::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; left: 14px; top: 14px; width: auto; height: auto; margin: 0;
  padding: 10px 16px; clip: auto; background: #fff; color: var(--ink);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 80;
}

/* buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--accent-dark);
  border-radius: var(--radius); background: var(--accent-dark); color: var(--accent-ink);
  font-weight: 600; font-size: 15.5px; line-height: 1; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--accent-darker); border-color: var(--accent-darker);
  color: var(--accent-ink); text-decoration: none; transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink); box-shadow: none; }
.hero .btn-ghost, .cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero .btn-ghost:hover, .cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }

/* top utility bar -------------------------------------------------------- */
.topbar { background: var(--ink); color: #c7d3df; font-size: 13px; }
.topbar .wrap {
  display: flex; gap: 16px; justify-content: space-between; min-height: 40px;
  align-items: center; flex-wrap: wrap;
}
.topbar a { color: #e8eef4; display: inline-flex; align-items: center; min-height: 28px; }
.topbar a:hover { color: #fff; }
.tb-contacts { display: inline-flex; flex-wrap: wrap; gap: 18px; }
.topbar .langs { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.topbar .langs a {
  font-weight: 600; padding: 0 9px; border-radius: 999px; border: 1px solid transparent;
  min-height: 26px;
}
.topbar .langs a:hover { border-color: rgba(255, 255, 255, 0.35); text-decoration: none; }

/* header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled { border-color: transparent; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 15.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--ink-soft); font-weight: 500; max-width: 240px; }

.main-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; padding: 11px 13px; color: var(--ink); font-weight: 600;
  font-size: 14.5px; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav-list > li > a:hover { background: var(--bg-soft); text-decoration: none; color: var(--accent-dark); }
.nav-list > li.is-active > a { color: var(--accent-dark); }
.nav-list > li.is-active > a::after {
  content: ""; display: block; height: 2px; margin: 3px 1px 0; border-radius: 2px;
  background: var(--accent);
}

/* dropdown panel --------------------------------------------------------- */
.sub {
  margin: 0; padding: 10px; position: absolute; left: 0; top: calc(100% + 8px);
  min-width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; z-index: 50;
}
.nav-list > li.has-sub:hover > .sub,
.nav-list > li.has-sub:focus-within > .sub { display: block; }
.nav-list > li:last-child > .sub { left: auto; right: 0; }
.sub-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sub-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.sub-title:hover { color: var(--accent-dark); }
.sub-desc { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-list a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-size: 14px; }
.sub-list a:hover { background: var(--accent-soft); color: var(--accent-darker); text-decoration: none; }

/* mega menu -------------------------------------------------------------- */
.mega {
  margin: 0; padding: 18px 20px 20px; position: absolute; right: 0; top: calc(100% + 8px);
  width: 900px; max-width: calc(100vw - 80px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; z-index: 50;
}
.nav-list > li.has-mega:hover > .mega,
.nav-list > li.has-mega:focus-within > .mega { display: block; }
.mega-head { padding: 0 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.mega-title { font-weight: 700; font-size: 16px; color: var(--ink); }
.mega-title:hover { color: var(--accent-dark); }
.mega-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.mega-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 22px; }
.mega-col h4 {
  margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col a { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: var(--radius-sm); color: var(--ink); font-size: 14px; }
.mega-col a:hover { background: var(--accent-soft); color: var(--accent-darker); text-decoration: none; }

/* bridge the hover gap between the trigger and its dropdown panel */
.nav-list > li.has-sub::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px;
}

.sub-toggle { display: none; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); width: 44px; height: 44px; font-size: 21px; cursor: pointer;
  color: var(--ink);
}
.btn-quote { margin-left: 8px; white-space: nowrap; }

/* inline search ---------------------------------------------------------- */
.site-search { margin-left: 6px; position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.site-search input {
  width: 44px; height: 44px; padding: 0 0 0 40px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4c5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")
    no-repeat 12px center / 18px 18px;
  font-size: 15px; color: var(--ink); cursor: pointer; transition: width 0.22s ease, border-color 0.22s ease;
}
.site-search input:focus {
  width: 280px; cursor: text; outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 163, 177, 0.18);
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 70;
}
.header-inner:focus-within .main-nav { visibility: hidden; }
.search-results {
  position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-height: 62vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px;
}
.search-results a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-size: 14px; }
.search-results a:hover, .search-results a.is-active { background: var(--accent-soft); color: var(--accent-darker); text-decoration: none; }
.search-empty { padding: 9px 12px; margin: 0; color: var(--ink-soft); font-size: 14px; }

.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); z-index: 70; }

/* hero ------------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--ink); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9, 17, 26, 0.18) 0%, rgba(9, 17, 26, 0.5) 72%, rgba(9, 17, 26, 0.72) 100%);
}
.hero-inner { padding: 108px 24px 94px; max-width: var(--maxw); margin: 0 auto; }
.hero-inner > * { animation: hero-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.2s; }
.hero h1 { color: #fff; max-width: 22ch; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45); }
.hero .lead { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; font-weight: 700;
  color: var(--accent-dark); margin-bottom: 12px;
}
.hero .eyebrow { color: #7fd8e0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-facts {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px 34px; margin: 34px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-facts strong { display: block; font-size: 27px; line-height: 1.08; color: #fff; }
.hero-facts span { font-size: 13px; color: rgba(255, 255, 255, 0.78); }

.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding: 50px 24px 42px; }
.page-head h1 { color: var(--ink); margin-bottom: 12px; }
.page-head .lead { margin-bottom: 0; }

/* breadcrumbs ------------------------------------------------------------ */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); display: inline-flex; align-items: center; min-height: 26px; }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs .sep { color: var(--line-strong); }
.crumbs .current { color: var(--ink); font-weight: 600; }

/* sections and body copy ------------------------------------------------- */
.section { padding: 68px 0; }
.section.band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.content { max-width: 920px; }
.content > *:first-child { margin-top: 0; }
.section-head { max-width: 860px; margin-bottom: 10px; }
.section-head h2 { margin-top: 0; }
.section-head .lead { margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: 10px; }

/* stats strip ------------------------------------------------------------ */
.stats {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stats li { background: #fff; padding: 20px 22px; }
.stats strong {
  display: block; font-size: 27px; line-height: 1.12; color: var(--accent-dark);
  letter-spacing: -0.01em;
}
.stats span { font-size: 13px; color: var(--ink-soft); }

ul.blocks, ol.blocks { padding-left: 24px; margin: 0 0 1.2em; }
ul.blocks li, ol.blocks li { margin-bottom: 8px; }

ul.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
ul.checklist .tick {
  position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent);
}
ul.checklist .tick::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* tables ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
table caption {
  caption-side: top; text-align: left; font-weight: 700; padding: 14px 16px;
  color: var(--ink); background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
th, td { border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
thead th { background: var(--ink); color: #fff; font-weight: 600; border-bottom: none; }
tbody tr:nth-child(even) { background: #f7fafb; }
tbody tr:hover { background: var(--accent-soft); }
table.specs th[scope="row"] { width: 36%; background: var(--bg-soft); font-weight: 600; }
table.specs td { color: var(--ink-soft); }

/* card grids ------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column; color: inherit; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .card-media { overflow: hidden; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform 0.45s ease; }
.card:hover img { transform: scale(1.045); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card h3 { margin: 0 0 8px; }
.card h3::after { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--accent); margin-top: 9px; transition: width 0.2s ease; }
.card:hover h3::after { width: 54px; }
.card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; flex: 1; }
.card-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card-meta li {
  font-size: 12.5px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px; color: var(--ink-soft);
}

/* feature grid ------------------------------------------------------------ */
.grid.features { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent-darker); display: flex; align-items: center; justify-content: center;
  margin-bottom: 15px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* certification / trust badges ------------------------------------------- */
.badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0;
}
.badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); background: #fff;
}
.badges li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;
}

/* steps ------------------------------------------------------------------ */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.5em; }
ol.steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; }
ol.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent-dark); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-sm);
}
ol.steps li::after {
  content: ""; position: absolute; left: 22px; top: 50px; bottom: 6px; width: 2px;
  background: var(--line);
}
ol.steps li:last-child::after { display: none; }
ol.steps h3 { margin: 8px 0 4px; }
ol.steps p { color: var(--ink-soft); margin-bottom: 0; }

/* FAQ -------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; margin-bottom: 1.5em; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; color: var(--accent-dark); font-weight: 700;
  font-size: 20px; line-height: 1; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-soft); }
.faq-a p:last-child { margin-bottom: 0; }

/* gallery ---------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 1.5em; }
.gallery figure, figure.wide { margin: 0 0 1.4em; }
.gallery figure { cursor: zoom-in; }
.gallery img, figure.wide img { border-radius: var(--radius); width: 100%; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.gallery figure:hover img { transform: scale(1.025); box-shadow: var(--shadow); }
figcaption { font-size: 13.5px; color: var(--ink-soft); padding-top: 9px; }

/* CTA -------------------------------------------------------------------- */
.cta {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between;
  background-color: var(--ink);
  background-image: linear-gradient(120deg, var(--ink) 0%, #14303c 100%);
  color: #fff; border-radius: var(--radius); padding: 36px 38px; margin: 0 0 1.5em;
  border-left: 4px solid var(--accent);
}
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { color: rgba(255, 255, 255, 0.84); margin: 0; max-width: 56ch; }

blockquote {
  margin: 0 0 1.5em; padding: 20px 24px; border-left: 4px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote p { margin-bottom: 6px; }
blockquote cite { display: block; font-size: 13.5px; color: var(--ink-soft); font-style: normal; }
.note {
  background: var(--accent-soft); border: 1px solid #c9e9ec; border-radius: var(--radius);
  padding: 15px 19px; font-size: 15px; color: var(--ink);
}

/* table of contents ------------------------------------------------------ */
.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 0 0 1.5em;
}
.toc h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc li { font-size: 15px; }
.toc li.toc-2 { font-weight: 600; }
.toc li.toc-3 { padding-left: 18px; color: var(--ink-soft); }
.toc a { color: inherit; display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; margin-left: -8px; border-radius: 6px; }
.toc a:hover { color: var(--accent-darker); text-decoration: none; }
.toc a.is-active { color: var(--accent-darker); background: var(--accent-soft); }

/* calculator ------------------------------------------------------------- */
.calculator {
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
  background: #fff; padding: 24px 26px; margin: 0 0 1.5em; box-shadow: var(--shadow-sm);
}
.calculator h3 { margin: 0 0 6px; }
.calculator p { color: var(--ink-soft); font-size: 15px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.calc-grid label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.calc-grid input {
  width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-size: 16px; color: var(--ink); background: #fff;
}
.calc-grid input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 163, 177, 0.18); }
.calculator output {
  display: block; margin-top: 8px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft); font-weight: 700; color: var(--accent-darker);
  border: 1px solid #c9e9ec;
}

/* related articles ------------------------------------------------------- */
.related { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px 24px; margin: 0 0 1.5em; }
.related h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 12px 0; border-top: 1px solid var(--line); }
.related li:first-child { border-top: none; padding-top: 0; }
.related a { font-weight: 600; display: inline-flex; align-items: center; min-height: 26px; }
.related span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }

/* link grid --------------------------------------------------------------- */
.grid.linkgrid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.linkcard {
  display: flex; flex-direction: column; gap: 5px; padding: 21px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.linkcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.linkcard h3 {
  margin: 0; font-size: 16.5px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.linkcard h3::after {
  content: "\2192"; color: var(--accent-dark); font-weight: 700; transition: transform 0.2s ease;
}
.linkcard:hover h3::after { transform: translateX(4px); }
.linkcard p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* footer ----------------------------------------------------------------- */
.site-footer {
  background: #0e1720;
  color: #aebcc9;
  padding: 64px 0 0;
  font-size: 14.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 36px 44px;
  align-items: start;
}
.foot-brand { max-width: 360px; }
.site-footer .foot-brand-name {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}
.site-footer .foot-brand-name a { color: #fff; }
.site-footer .foot-brand-name a:hover { color: #fff; text-decoration: none; }
.site-footer h3 {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.foot-blurb { color: #a8b6c4; line-height: 1.7; margin: 0 0 20px; }
.site-footer a { color: #aebcc9; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.foot-col a { display: inline-block; line-height: 1.45; }
.foot-contact {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.7;
  color: #8193a5;
  margin: 0;
}
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  padding: 20px 0 28px;
  font-size: 12.5px;
  color: #748699;
}
.foot-base a { color: #a8b6c4; }
.foot-base a:hover { color: #fff; }
.foot-legal { display: flex; gap: 20px; }

/* floating actions ------------------------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 26px; z-index: 45; background: #25d366; color: #08301a;
  font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow);
}
.wa-float:hover { text-decoration: none; filter: brightness(1.05); }
.to-top {
  position: fixed; right: 20px; bottom: 82px; z-index: 44; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow);
  font-size: 20px; opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { color: var(--accent-dark); border-color: var(--accent); text-decoration: none; }
.mobile-bar { display: none; }

/* lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 15, 23, 0.9); padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: min(1080px, 92vw); margin: 0; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: #d6e2ec; text-align: center; }
.lightbox button {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 24px; cursor: pointer; line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.2); }

/* scroll reveal ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes drawer-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes drawer-in-rtl {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* responsive ------------------------------------------------------------- */
@media (max-width: 1480px) {
  .brand-text small { display: none; }
}

@media (max-width: 1120px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 1360px) {
  .header-inner { gap: 10px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px); background: #fff;
    display: none; z-index: 60; padding: 76px 20px 30px; overflow-y: auto;
    box-shadow: 12px 0 40px rgba(14, 27, 42, 0.2); margin-left: 0;
  }
  .main-nav.is-open { display: block; animation: drawer-in 0.24s ease; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(14, 27, 42, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list > li > a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .nav-list > li.is-active > a::after { display: none; }
  .nav-list > li.has-sub::after { content: none; }
  .sub { position: static; display: none; border: none; box-shadow: none; padding: 2px 0 10px 16px; }
  .nav-list > li.has-sub.is-open > .sub { display: block; }
  .sub-head { border: none; margin: 0; padding: 4px 0 6px; }
  .mega {
    position: static; display: none; width: auto; max-width: none; border: none;
    box-shadow: none; padding: 2px 0 12px 16px;
  }
  .nav-list > li.has-mega.is-open > .mega { display: block; }
  .mega-head { border: none; margin: 0; padding: 4px 0 8px; }
  .mega-cols { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mega-col h4 { margin: 8px 0 4px; }
  .mega-col a { padding: 8px 8px; }
  .sub-toggle {
    display: block; position: absolute; right: 0; top: 5px; width: 42px; height: 42px;
    background: none; border: none; font-size: 20px; color: var(--accent-dark); cursor: pointer;
  }
}

@media (max-width: 1080px) {
  .wrap { padding: 0 18px; }
  html { scroll-padding-top: 122px; }
  .site-search input { width: 42px; }
  .site-search input:focus { width: 220px; }
  .header-inner:focus-within .brand,
  .header-inner:focus-within .nav-toggle { visibility: hidden; }
  .btn-quote { display: none; }
  .hero-inner { padding: 76px 22px 66px; }
  .hero-facts { gap: 20px 24px; }
  .hero-facts strong { font-size: 23px; }
  .section { padding: 44px 0; }
  .page-head .wrap { padding: 42px 18px 34px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .foot-grid > * { min-width: 0; }
  .site-footer li { margin-bottom: 4px; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 26px; }
  .foot-base { padding: 18px 0 26px; }
  .topbar { font-size: 12.5px; }
  .topbar .wrap { gap: 12px; justify-content: center; min-height: 34px; }
  .tb-contacts { display: none; }
  .to-top { bottom: 78px; right: 16px; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 46; background: #fff; border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 58px;
    font-weight: 600; color: var(--ink); border-right: 1px solid var(--line); font-size: 15px;
  }
  .mobile-bar a:last-child { border-right: none; }
  .mobile-bar a.strong { background: var(--accent-dark); color: var(--accent-ink); }
  body { padding-bottom: 58px; }
  .cta { padding: 28px 26px; }
  ol.steps li { padding-left: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-inner > * { animation: none !important; }
}

/* RTL (Arabic) mirroring ------------------------------------------------- */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .main-nav { left: auto; right: 0; }
html[dir="rtl"] .main-nav.is-open { animation-name: drawer-in-rtl; }
html[dir="rtl"] .btn-quote { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .site-search { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .sub { left: auto; right: 0; }
html[dir="rtl"] .crumbs .sep { transform: scaleX(-1); }
html[dir="rtl"] ul.checklist li { padding-left: 0; padding-right: 32px; }
html[dir="rtl"] ul.checklist .tick { left: auto; right: 0; }
html[dir="rtl"] ol.steps li { padding: 0 64px 26px 0; }
html[dir="rtl"] ol.steps li::before { left: auto; right: 0; }
html[dir="rtl"] ol.steps li::after { left: auto; right: 22px; }
html[dir="rtl"] blockquote { border-left: none; border-right: 4px solid var(--accent); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
html[dir="rtl"] .faq summary::after { float: left; }
html[dir="rtl"] th, html[dir="rtl"] td { text-align: right; }
html[dir="rtl"] .sub-toggle { right: auto; left: 0; }
html[dir="rtl"] .toc li.toc-3 { padding-left: 0; padding-right: 18px; }
