:root {
  --blue: #0b6c9f;
  --blue-dark: #084b70;
  --teal: #12a8a0;
  --ink: #172632;
  --muted: #5b6b78;
  --line: #e3ebf1;
  --bg: #f5f9fb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(8, 75, 112, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

a, button { touch-action: manipulation; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 40px); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-img { display: block; height: 34px; width: auto; }
.footer-logo { height: 44px; }
.logo-mark { font-size: 24px; color: var(--teal); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand { font-weight: 700; letter-spacing: 0.06em; font-size: 19px; }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover { background: var(--bg); color: var(--blue-dark); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; line-height: 1; padding: 9px 4px; border-radius: 8px; }
.nav-caret:hover { background: var(--bg); color: var(--blue-dark); }
.dropdown { position: absolute; inset-block-start: calc(100% + 4px); inset-inline-start: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60; }
.nav-item.has-children:hover .dropdown,
.nav-item.has-children:focus-within .dropdown,
.nav-item.has-children.open .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--ink); font-size: 14px; }
.dropdown a:hover { background: var(--bg); color: var(--blue-dark); }

.header-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--ink); }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-small { padding: 9px 16px; font-size: 14px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: none; overflow: hidden; }
.lang.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 14px; color: var(--ink); font-size: 14px; }
.lang-menu a:hover { background: var(--bg); color: var(--blue-dark); }

/* Search */
.search { position: relative; }
.search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; cursor: pointer; }
.search-toggle:hover { background: var(--bg); color: var(--blue-dark); }
.search-panel { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px); width: min(380px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; z-index: 60; }
.search-panel[hidden] { display: none; }
.search-form input { width: 100%; font: inherit; font-size: 15px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); outline: none; background: #fff; color: var(--ink); }
.search-results { max-height: 320px; overflow: auto; }
.search-result { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus { background: var(--bg); color: var(--blue-dark); }
.search-result-title { display: block; font-weight: 600; font-size: 14px; margin: 0 0 2px; }
.search-result-desc { display: block; color: var(--muted); font-size: 13px; margin: 0; }
.search-empty { padding: 14px; color: var(--muted); font-size: 14px; }

/* Hero */
.hero { position: relative; color: #fff; background: #062b42; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 39, 59, 0.97) 0%, rgba(8, 75, 112, 0.85) 50%, rgba(8, 75, 112, 0.48) 100%); }
.hero-inner { position: relative; padding: 78px 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 7px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #d8f3f3; background: rgba(18, 168, 160, 0.16); border: 1px solid rgba(18, 168, 160, 0.45); border-radius: 999px; }
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(18, 168, 160, 0.25); }
.hero h1 { font-size: clamp(30px, 4.8vw, 52px); line-height: 1.08; margin: 0 0 18px; max-width: 820px; font-weight: 700; letter-spacing: -0.01em; }
.hero-sub { font-size: clamp(16px, 2vw, 20px); max-width: 680px; margin: 0 0 28px; color: rgba(255,255,255,0.92); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.fact { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 13px 17px; min-width: 138px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fact-value { font-weight: 700; font-size: 19px; color: #fff; }
.fact-label { font-size: 13px; color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .btn-primary { background: #fff; color: var(--blue-dark); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.hero .btn-primary:hover { background: #eaf4f8; color: var(--blue-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* Trust bar */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }
.trustbar-inner { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; justify-content: center; }
.trust-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); }
.trust-chip svg { color: var(--teal); flex: 0 0 auto; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; padding: 14px 0; width: min(1160px, 100% - 40px); margin-inline: auto; }
.breadcrumb span + span::before { content: "/"; margin-inline-end: 8px; color: var(--line); }

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 22px; }
.intro p { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0; }

.grid { display: grid; gap: 22px; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features-grid-3, .cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Section head + strength */
.section-head { max-width: 780px; margin: 0 0 30px; }
.section-head h2 { margin: 0 0 12px; }
.section-lead { font-size: 17px; color: var(--muted); margin: 0; }
.strength { background: linear-gradient(180deg, #fff, var(--bg)); }
.strength-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.strength-stat { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.strength-stat:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(8, 75, 112, 0.12); }
.strength-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; margin-bottom: 4px; }
.strength-value { font-size: 26px; font-weight: 700; color: var(--blue-dark); line-height: 1.1; }
.strength-label { font-size: 14px; color: var(--muted); }

.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(8, 75, 112, 0.14); color: var(--ink); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { margin: 0 0 8px; font-size: 18px; }
.card-body p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.card-more { font-weight: 600; font-size: 14px; color: var(--blue); }
.card-more::after { content: "→"; margin-inline-start: 5px; }
[dir="rtl"] .card-more::after { content: "←"; }

/* Stats */
.stats-band { background: var(--blue-dark); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 4px; }

/* Specs */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: start; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; background: var(--bg); font-weight: 600; color: var(--ink); }
.spec-note { color: var(--muted); font-size: 14px; margin-top: 12px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* List */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { padding-inline-start: 28px; position: relative; font-size: 16px; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--teal); font-weight: 700; }

/* Steps */
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps-list li { position: relative; padding: 18px 20px 18px 64px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.steps-list li::before { counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps-list h3 { margin: 0 0 4px; font-size: 17px; }
.steps-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: inline-end; color: var(--blue); font-weight: 700; font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* CTA */
.cta-box { text-align: center; background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; border-radius: 16px; padding: 44px 28px; }
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,0.92); max-width: 640px; margin-inline: auto; margin-bottom: 22px; }
.cta-box .btn-primary { background: #fff; color: var(--blue-dark); }
.cta-box .btn-primary:hover { background: #eaf4f8; }

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 680px; }
.section.contact .contact-form { margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.form-note { color: var(--muted); font-size: 13px; margin: 0; }
.form-error { color: #b3261e; font-size: 14px; }

/* Footer */
.footer { background: #10222f; color: #c9d7e0; margin-top: 60px; padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 36px 32px; align-items: start; padding-bottom: 34px; }
.footer h3 { color: #fff; font-size: 15px; margin: 0 0 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.footer-links a, .footer-links span { color: #c9d7e0; }
.footer-links a:hover { color: #fff; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-logo-link { display: inline-block; }
.footer-about { color: #c9d7e0; font-size: 14px; line-height: 1.7; margin: 0; max-width: 330px; }
.footer-contact { gap: 11px; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-contact .footer-contact-note { color: #9fb4c2; font-size: 14px; line-height: 1.55; max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #9fb4c2; flex-wrap: wrap; }
.footer-bottom a { color: #c9d7e0; }

/* RTL adjustments */
[dir="rtl"] .steps-list li { padding: 18px 64px 18px 20px; }
[dir="rtl"] .steps-list li::before { inset-inline-start: 18px; }

/* Mobile */
@media (max-width: 900px) {
  .container, .container.narrow, .breadcrumb { width: min(1160px, 100% - 32px); }
  .header-inner { gap: 12px; }
  .nav {
    position: fixed;
    inset-block-start: 68px;
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 16px 18px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(8, 75, 112, 0.16);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 8px; font-size: 16px; }
  .dropdown a { padding: 12px 14px; font-size: 15px; }
  .nav-item.has-children { flex-wrap: wrap; }
  .nav-item.has-children .nav-link { flex: 1; }
  .nav-caret { padding: 12px 14px; font-size: 14px; }
  .nav-item.has-children .dropdown { position: static; flex-basis: 100%; box-shadow: none; border: 0; padding: 0 0 0 14px; margin: 0 0 6px; min-width: 0; }
  [dir="rtl"] .nav-item.has-children .dropdown { padding: 0 14px 0 0; }
  .nav-item.has-children:hover .dropdown,
  .nav-item.has-children:focus-within .dropdown { display: none; }
  .nav-item.has-children.open .dropdown { display: block; }
  .header-tools { gap: 8px; }
  .header-tools .btn { display: none; }
  .search-toggle, .lang-btn, .menu-btn { min-height: 44px; }
  .search-toggle, .menu-btn { min-width: 44px; }
  .menu-btn { display: block; font-size: 26px; line-height: 1; border-radius: 8px; }
  .search-panel {
    position: fixed;
    inset-block-start: 68px;
    inset-inline: 0;
    width: auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .search-results { max-height: min(420px, 60vh); }
  .hero { min-height: 0; }
  .hero-inner { padding: 46px 0 52px; }
  .hero-facts { gap: 10px; margin-bottom: 22px; }
  .fact { min-width: 0; flex: 1 1 130px; padding: 10px 13px; }
  .section { padding: 40px 0; }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid-3, .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .spec-table { min-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .spec-table { min-width: 0; }
  .table-scroll { overflow-x: visible; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table { border: 0; }
  .spec-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .spec-table tr:last-child { border-bottom: 0; }
  .spec-table th {
    background: transparent;
    padding: 2px 0 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .spec-table td { padding: 0 0 10px; border-bottom: 0; font-size: 15px; }
}

@media (max-width: 560px) {
  .container, .container.narrow, .breadcrumb { width: min(1160px, 100% - 24px); }
  .header-inner { gap: 10px; }
  .header-tools { gap: 6px; }
  .logo-img { height: 26px; }
  .logo-text { display: none; }
  .lang-btn { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .hero .btn, .cta-box .btn, .contact-form .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 160px; }
  .section h2 { font-size: clamp(22px, 6.5vw, 28px); }
  .feature { padding: 18px; }
  .card img { height: 168px; }
  .card-body { padding: 15px 16px 17px; }
  .card-body h3 { font-size: 17px; }
  .strength-grid { grid-template-columns: 1fr; }
  .features-grid-3, .cards-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .stat-value { font-size: 22px; }
  .cta-box { padding: 34px 22px; }
  .steps-list li { padding: 16px 16px 16px 58px; }
  .steps-list li::before { width: 30px; height: 30px; inset-inline-start: 14px; top: 16px; }
  [dir="rtl"] .steps-list li { padding: 16px 58px 16px 16px; }
  .footer { padding-top: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer h3 { margin-bottom: 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
