:root {
  --bg: #f3f6fa;
  --bg-2: #e8eef5;
  --surface: #ffffff;
  --text: #152033;
  --muted: #5d6d80;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-2: #115e59;
  --line: #d5dee9;
  --danger: #b91c1c;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(21, 32, 51, 0.08);
  --header-h: 72px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #0d1219;
  --bg-2: #121a24;
  --surface: #171f2b;
  --text: #e8eef6;
  --muted: #98a9bb;
  --accent: #2dd4bf;
  --accent-soft: #134e4a;
  --accent-2: #99f6e4;
  --line: #2a3647;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(30, 58, 95, 0.1), transparent 50%),
    var(--bg);
  line-height: 1.55;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.brand { display: flex; gap: .75rem; align-items: center; color: inherit; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #1e3a5f);
  box-shadow: 0 8px 20px rgba(15, 118, 110, .28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: .78rem; }

.nav { display: none; gap: 1.1rem; }
.nav a { color: var(--muted); font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch {
  display: flex; flex-wrap: wrap; gap: .2rem; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; padding: .2rem;
  background: var(--surface);
}
.lang-link {
  font-size: .72rem; font-weight: 700; color: var(--muted); text-decoration: none;
  padding: .35rem .4rem; border-radius: 8px; line-height: 1;
}
.lang-link:hover { color: var(--text); text-decoration: none; }
.lang-link.is-active { background: var(--accent-soft); color: var(--accent-2); }
.rate-note { text-align: center; margin-top: 1.25rem; font-size: .9rem; }
html[dir="rtl"] .trust-bullets { padding-right: 1.1rem; padding-left: 0; }
html[dir="rtl"] .package-card ul { padding-right: 1.1rem; padding-left: 0; }
html[dir="rtl"] .float-messengers { right: auto; left: 1rem; }
html[dir="rtl"] .package-ribbon { right: auto; left: 12px; }
.nav-toggle, .theme-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
}
.nav.open { display: flex; flex-direction: column; position: absolute; inset: var(--header-h) 0 auto 0;
  background: var(--surface); padding: 1rem; border-bottom: 1px solid var(--line); gap: .85rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: 12px; padding: .8rem 1.15rem; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font-family: inherit; font-size: .95rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible, .theme-toggle:focus-visible, .nav-toggle:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(15,118,110,.25); }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
html[data-theme="dark"] .btn-primary { color: #042f2e; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-sm { padding: .55rem .9rem; font-size: .88rem; }
.btn-block { width: 100%; }

.hero { position: relative; padding: 3rem 0 2.5rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(15,118,110,.08)),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(21,32,51,.03) 48px, rgba(21,32,51,.03) 49px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; gap: 2rem; align-items: center;
}
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .02em; margin: 0 0 .75rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 40rem; }
.trust-bullets { padding-left: 1.1rem; color: var(--muted); }
.trust-bullets li { margin: .35rem 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.portrait-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 1rem; box-shadow: var(--shadow); max-width: 360px; margin-inline: auto;
}
.portrait { border-radius: 16px; width: 100%; height: auto; }
.portrait-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .85rem; color: var(--muted); }

.stats { padding: 0 0 1rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 1.2rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .9rem; }

.section { padding: 3.5rem 0; }
.section-alt { background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2rem; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head p { margin: 0; color: var(--muted); }

.services-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.service-card, .package-card, .case-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.service-card.is-featured, .package-card.is-featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 16px 40px rgba(15, 118, 110, .14);
}
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.service-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; text-transform: uppercase;
}
.badge {
  font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-2);
}
.service-card h3, .package-card h3, .case-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.service-card p, .package-card p, .case-card p { color: var(--muted); margin: 0 0 1rem; }
.service-price, .package-price { display: flex; gap: .5rem; align-items: baseline; margin-bottom: 1rem; }
.service-price span, .package-price span, .muted { color: var(--muted); }

.packages-grid { display: grid; gap: 1rem; }
.package-card { position: relative; }
.package-ribbon {
  position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: 700;
  background: var(--accent); color: #fff; padding: .25rem .55rem; border-radius: 999px;
}
html[data-theme="dark"] .package-ribbon { color: #042f2e; }
.package-card ul { padding-left: 1.1rem; margin: 0 0 1.2rem; color: var(--muted); }
.package-card li { margin: .3rem 0; }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
}
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow);
}
.steps span { color: var(--accent); font-weight: 800; }
.steps h3 { margin: .35rem 0; }
.steps p { margin: 0; color: var(--muted); }

.cases-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.case-result { color: var(--accent-2) !important; font-weight: 600; }
.stack-list {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.stack-list li {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: .45rem .85rem; font-weight: 600; font-size: .9rem;
}

.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; margin-bottom: .65rem;
}
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { color: var(--muted); margin: .7rem 0 0; }

.section-cta { padding-bottom: 4rem; }
.lead-grid { display: grid; gap: 2rem; }
.contact-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-chips a {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: .45rem .9rem; color: var(--text); font-weight: 600; text-decoration: none;
}
.lead-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.25rem; box-shadow: var(--shadow);
}
.form-row { margin-bottom: .9rem; }
.form-row.two { display: grid; gap: .75rem; }
.form-row label, .check { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-row input, .form-row select, .form-row textarea,
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem;
  background: var(--bg); color: var(--text); font: inherit;
}
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; color: var(--muted); margin: 1rem 0; }
.check input { width: auto; margin-top: .2rem; }
.hp { position: absolute; left: -10000px; opacity: 0; height: 0; width: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; background: var(--bg-2); }
.footer-grid { display: grid; gap: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-copy { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }

.float-messengers {
  position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 40;
}
.float-btn {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-weight: 800; text-decoration: none; box-shadow: var(--shadow);
}
.float-btn.wa { background: #128c7e; }
.float-btn.tg { background: #229ed9; }

.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  background: #0f172a; color: #fff; padding: .85rem 1.1rem; border-radius: 12px;
  box-shadow: var(--shadow); z-index: 60; max-width: min(92vw, 420px);
}
.toast.err { background: var(--danger); }

.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 1.5rem; font-size: 1.15rem; }
.legal p { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .package-card.is-featured { transform: translateY(-6px); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .lead-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
