/* ==========================================================================
   Langų klinika — Design System
   Profesionalus langų remontas | LT / RU / PL
   ========================================================================== */

:root {
  /* Brand — "clinic" trust blue */
  --primary: #0c63b4;
  --primary-dark: #084a89;
  --primary-darker: #06325c;
  --primary-light: #e8f2fc;
  --primary-100: #d4e7f9;

  /* Accent — high-CRO warm orange (CTAs) */
  --accent: #ff7a18;
  --accent-dark: #ec6606;
  --accent-light: #fff1e6;

  /* Health green (trust ticks) */
  --green: #16a571;
  --green-light: #e6f7f0;

  /* Neutrals */
  --ink: #12222f;
  --body: #3c4d5b;
  --muted: #6b7c8a;
  --line: #e4ebf1;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-soft-2: #eef4fa;

  --star: #ffb400;

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius & shadow */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(12, 99, 180, .06);
  --shadow: 0 10px 30px rgba(12, 53, 92, .08);
  --shadow-lg: 0 24px 60px rgba(12, 53, 92, .14);
  --shadow-accent: 0 12px 26px rgba(255, 122, 24, .32);

  /* Layout */
  --container: 1180px;
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin-bottom: 1rem; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-light);
  padding: 7px 15px; border-radius: 100px; margin-bottom: 18px;
}
.section-head { max-width: 720px; margin: 0 auto 50px; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 16px 28px; border-radius: 100px; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap; text-align: center;
}
.btn svg { width: 19px; height: 19px; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary-100); }
.btn--ghost:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn--white { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow); }
.btn--white:hover { transform: translateY(-2px); color: var(--primary-darker); }
.btn--lg { padding: 19px 36px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }
.btn--phone { background: var(--green); color: #fff; }
.btn--phone:hover { background: #128a5e; color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.24rem; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; flex: 0 0 auto; }
.logo:hover { color: var(--ink); }
.logo span { line-height: 1.1; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.logo__mark svg { width: 24px; height: 24px; }
.logo small { display: block; font-size: .67rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.nav a { color: var(--body); font-weight: 600; font-size: .91rem; padding: 9px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--primary); background: var(--primary-light); }
.nav a.active { color: var(--primary); }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 1rem; white-space: nowrap; flex: 0 0 auto; }
.header__phone:hover { color: var(--primary); }
.header__phone svg { width: 20px; height: 20px; color: var(--green); }

/* Dropdown */
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 264px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .18s ease;
}
.nav__item:hover .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { display: block; padding: 9px 12px; font-size: .92rem; border-radius: 8px; }
.nav__caret { display: inline-block; margin-left: 3px; font-size: .7em; opacity: .6; }

/* Lang switcher */
.lang { display: flex; gap: 3px; align-items: center; }
.lang a {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; color: var(--muted);
  padding: 5px 8px; border-radius: 7px; letter-spacing: .03em;
}
.lang a.active { color: #fff; background: var(--primary); }
.lang a:hover:not(.active) { background: var(--primary-light); color: var(--primary); }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; background: var(--bg-soft); }
.burger span { width: 21px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(170deg, var(--primary-light) 0%, #fff 62%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(12,99,180,.12), transparent 70%); border-radius: 50%;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: clamp(48px, 6vw, 88px) 0; position: relative; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { color: var(--primary); position: relative; white-space: nowrap; }
.hero__sub { font-size: 1.18rem; color: var(--body); max-width: 540px; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero__trust div { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.hero__trust svg { width: 22px; height: 22px; color: var(--green); flex: 0 0 auto; }

/* Hero form card */
.hero__form {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 30px; border: 1px solid var(--line); position: relative;
}
.hero__form-badge {
  position: absolute; top: -14px; left: 30px; background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 6px 14px; border-radius: 100px; box-shadow: var(--shadow-accent);
}
.hero__form h3 { margin-bottom: 4px; }
.hero__form p.small { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-soft); color: var(--ink); transition: border .16s, background .16s; font-size: .98rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-light);
}
.field textarea { resize: vertical; min-height: 92px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: center; }
.form-msg { padding: 13px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; margin-top: 12px; display: none; }
.form-msg.ok { display: block; background: var(--green-light); color: #0d6b48; }
.form-msg.err { display: block; background: #fdecec; color: #c0392b; }

/* ---------- Trust bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--primary); letter-spacing: -.03em; line-height: 1; }
.stat__lbl { font-size: .95rem; color: var(--muted); margin-top: 8px; font-weight: 500; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 9px; font-size: 1.22rem; }
.card p { font-size: .97rem; color: var(--muted); margin-bottom: 16px; }
.card__link { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.card__link svg { width: 16px; height: 16px; transition: transform .16s; }
.card:hover .card__link svg { transform: translateX(4px); }
.card--price .price { font-size: 1.05rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }

/* Feature (why us) */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon { width: 50px; height: 50px; border-radius: 13px; background: var(--green-light); color: var(--green); display: grid; place-items: center; flex: 0 0 auto; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h4 { margin-bottom: 5px; }
.feature p { font-size: .94rem; color: var(--muted); margin-bottom: 0; }

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step__num {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  background: #fff; color: var(--primary); border: 2px solid var(--primary-100);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; position: relative; z-index: 2;
}
.step h4 { margin-bottom: 7px; }
.step p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }
.steps--line .step:not(:last-child)::after {
  content: ""; position: absolute; top: 29px; left: 60%; width: 80%; height: 2px;
  background: var(--primary-100); z-index: 1;
}

/* ---------- Split / image blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { display: grid; gap: 13px; margin: 22px 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checklist svg { width: 23px; height: 23px; color: var(--green); flex: 0 0 auto; margin-top: 1px; }
.media-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--primary-light); aspect-ratio: 4/3; display: grid; place-items: center; }
.media-frame svg { width: 40%; height: 40%; color: var(--primary); opacity: .35; }

/* ---------- Testimonials ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.review__stars { color: var(--star); margin-bottom: 12px; display: flex; gap: 2px; }
.review__stars svg { width: 18px; height: 18px; }
.review p { color: var(--body); font-size: .98rem; }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.review__who b { color: var(--ink); display: block; font-size: .95rem; }
.review__who span { font-size: .84rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -80px; right: -60px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%); border-radius: 50%; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 560px; }
.cta-band__row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; position: relative; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq__q { width: 100%; text-align: left; padding: 20px 22px; font-weight: 700; color: var(--ink); font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q:hover { color: var(--primary); }
.faq__q .ic { width: 24px; height: 24px; flex: 0 0 auto; color: var(--primary); transition: transform .2s; }
.faq__item.open .faq__q .ic { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 22px; }
.faq__a p { color: var(--muted); margin: 0 0 18px; }
.faq__item.open .faq__a { max-height: 420px; }

/* ---------- City / link grids ---------- */
.taglist { display: flex; flex-wrap: wrap; gap: 10px; }
.taglist a {
  background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 100px;
  font-size: .92rem; font-weight: 600; color: var(--body);
}
.taglist a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.col-links { columns: 4; column-gap: 28px; }
.col-links a { display: block; padding: 7px 0; font-size: .94rem; color: var(--body); break-inside: avoid; }
.col-links a:hover { color: var(--primary); }

/* ---------- Article (service/city pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 36px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p { color: var(--body); }
.prose ul { margin: 0 0 18px; display: grid; gap: 10px; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; }
.prose ul li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 10px; flex: 0 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { opacity: .5; }

.pagehero { background: linear-gradient(170deg, var(--primary-light), #fff); padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.pagehero h1 { margin-bottom: 14px; max-width: 760px; }
.pagehero p { font-size: 1.12rem; color: var(--body); max-width: 660px; margin-bottom: 0; }

.sidebar-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-card h3 { margin-bottom: 6px; }

.layout-2col { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }

/* price table */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--primary); color: #fff; font-weight: 700; font-size: .95rem; }
.price-table td:last-child { font-weight: 800; color: var(--accent); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--bg-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--primary-darker); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .95rem; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo small { color: rgba(255,255,255,.6); }
.footer__contact div { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; }
.footer__contact svg { width: 19px; height: 19px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: rgba(255,255,255,.55); }

/* ---------- Floating mobile call ---------- */
.float-call { display: none; position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 90; }

/* ---------- Utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 24px; }
.hide-mobile { }
.text-accent { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .layout-2col { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps--line .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .col-links { columns: 2; }
  .sidebar-card { position: static; }
}
@media (max-width: 1320px) {
  .header .logo small { display: none; }
}
@media (max-width: 1200px) {
  .nav, .header__phone span { display: none; }
  .burger { display: flex; }
  .header__cta .btn--accent { display: none; }
  .float-call { display: block; }
  body .mobile-nav { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--3, .grid--4, .grid--2, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .steps { grid-template-columns: 1fr; }
  .col-links { columns: 1; }
  .hero__form { padding: 22px; }
  .cta-band__row { flex-direction: column; align-items: stretch; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav { display: none; position: fixed; inset: var(--header-h) 0 0; background: #fff; z-index: 99; padding: 24px 22px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 14px 4px; font-size: 1.1rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 20px; }
.mobile-nav__lang { display: flex; gap: 8px; margin-top: 22px; }
.mobile-nav__lang a { border: 1px solid var(--line); border-radius: 8px; text-align: center; flex: 1; border-bottom: 1px solid var(--line); }
