/* ─── Доктор Сажа · оновлений світлий стиль ─────────────────── */
:root {
  --red: #e0252b;
  --red-dark: #b81b21;
  --navy: #101a33;
  --navy-soft: #1c2a4d;
  --ink: #23283a;
  --muted: #6b7183;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 26, 51, 0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 0;
}
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(224, 37, 43, .35); }
.btn--red:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); color: #fff; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.1rem; line-height: 1.1; }
.logo svg { flex: 0 0 auto; }
.logo b { color: var(--red); }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.langs { display: flex; gap: 6px; margin-left: 12px; }
.langs a {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  padding: 4px 8px; border-radius: 8px; color: var(--muted); border: 1px solid var(--line);
}
.langs a[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.header-phone { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(224, 37, 43, .14), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(16, 26, 51, .10), transparent 55%),
    var(--bg-soft);
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero-in { max-width: 760px; }
.hero .price {
  display: inline-block; background: var(--red); color: #fff;
  font-weight: 800; border-radius: 10px; padding: 4px 14px; font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  transform: rotate(-1deg);
}
.hero p.sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Переваги */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.benefit .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(224, 37, 43, .1); color: var(--red); }
.benefit:nth-child(2) .ico { background: rgba(16, 26, 51, .08); color: var(--navy); }
.benefit:nth-child(3) .ico { background: rgba(240, 180, 20, .15); color: #a07a00; }
.benefit:nth-child(4) .ico { background: rgba(40, 160, 80, .12); color: #1d7a3e; }
.benefit p { color: var(--muted); font-size: .95rem; margin: 0; }
.benefit .num { font-size: 1.9rem; font-weight: 800; color: var(--navy); }

/* Послуги */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.price-card h3 { display: flex; align-items: center; gap: 10px; }
.price-card h3 svg { color: var(--red); }
.price-card p { color: var(--muted); font-size: .97rem; }
.also { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; padding: 0; margin: 18px 0 0; list-style: none; }
.also li { padding-left: 26px; position: relative; color: var(--ink); font-weight: 500; }
.also li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* Роботи */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: .88rem; font-weight: 600; color: var(--ink); background: #fff;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { color: var(--muted); font-weight: 500; }
.chip[aria-current="true"] small { color: #c7cddc; }

.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.work-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-3px); }
.work-card .thumb { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-card .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; margin-top: auto; }
.work-card h3 { font-size: 1rem; margin: 0; }
.work-card h3 a { color: var(--navy); }
.work-card h3 a:hover { color: var(--red); }
.brand-badge { display: inline-block; background: rgba(16,26,51,.07); color: var(--navy); border-radius: 6px; padding: 2px 8px; font-size: .78rem; font-weight: 700; }

/* Сторінка роботи */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 26px 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.work-text { max-width: 760px; color: var(--ink); }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 22px;
  list-style: none; position: relative; padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--red); font-weight: 700;
}
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding: 0 22px 20px; color: var(--ink); }
.faq .answer p { margin: 0 0 10px; }

/* Контакти */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact-card .big { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.contact-card ul { margin: 0; padding: 0; list-style: none; }
.contact-card li { padding: 3px 0; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; }
.cities span { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.cities span.struck { text-decoration: line-through; color: var(--muted); opacity: .65; }

/* CTA-банер */
.cta-banner {
  background: linear-gradient(120deg, var(--navy), var(--navy-soft));
  color: #fff; border-radius: 20px; padding: 44px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 24px;
}
.cta-banner h2 { color: #fff; margin: 0 0 6px; }
.cta-banner p { color: #c3c9da; margin: 0; }
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Футер */
.footer { background: var(--navy); color: #aab2c8; margin-top: 72px; }
.footer-in { padding: 44px 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer a { color: #aab2c8; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .85rem; }

/* Пагінація */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.pager [aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }

@media (max-width: 760px) {
  .header-in { flex-wrap: wrap; padding: 10px 0; }
  .nav { order: 3; width: 100%; gap: 14px; }
  .header-phone { display: none; }
  .section { padding: 44px 0; }
  .hero { padding: 56px 0 48px; }
  .cta-banner { padding: 30px 22px; }
}
