/* R-Service — дизайн «Техно» (жовтень 2026) */
:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ink: #0e1621;
  --ink-soft: #2b3a4b;
  --muted: #5d6b7b;
  --line: #dde3ea;
  --line-strong: #c7d0da;
  --bg: #f4f6f8;
  --panel: #e9eef3;
  --white: #ffffff;
  --dark: #0e1621;
  --darker: #070c12;
  --accent: #14d38e;
  --accent-ink: #0a8f5f;
  --on-accent: #06281b;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 18px 40px -24px rgba(14, 22, 33, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* Верхня смуга і шапка */
.topbar { background: var(--darker); color: #9fb0c2; font-size: 14px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; }
.topbar span { margin: 0 6px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(14, 22, 33, .94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 800 22px/1 var(--font); }
.logo small { display: block; color: #8fa1b4; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.logo strong { font-size: 19px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #c4d0dc; font-weight: 600; font-size: 15px; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .btn-secondary { padding: 8px 12px; font-size: 14px; background: transparent; border-color: rgba(255, 255, 255, .24); color: #fff !important; }
.nav-viber { padding: 9px 14px; border: 2px solid rgba(255, 255, 255, .28); border-radius: 10px; color: #fff !important; font-size: 14px !important; font-weight: 700 !important; }
.cta-mini { padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent) !important; font-weight: 800 !important; }
.nav-toggle { display: none; border: 1px solid rgba(255, 255, 255, .24); background: transparent; color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 20px; }

/* Кнопки */
.btn, .btn-ghost, .btn-secondary, .pill-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 15px 24px; font: 700 16px/1 var(--font); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; }
.btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:hover, .cta-mini:hover, .pill-link:hover, .nav-viber:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary { border-color: var(--line); color: var(--ink) !important; background: #fff; }
.pill-link { border: 2px solid var(--line-strong); background: #fff; color: var(--ink); padding: 10px 16px; font-size: 15px; }

/* Хлібні крихти + перший екран (темний) */
.breadcrumbs { padding: 16px 0 0; color: #8fa1b4; font-size: 14px; position: relative; z-index: 1; }
.breadcrumbs a { color: #c4d0dc; }
main { background: var(--dark); }
main > :not(.breadcrumbs):not(.hero) { background: var(--bg); }
.hero { position: relative; z-index: 1; padding: 26px 0 64px; color: #f3f7fb; background: radial-gradient(1100px 480px at 85% 15%, #173247 0%, #0e1621 62%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.hero__content.card { background: transparent; border: 0; padding: 0; box-shadow: none; }
.hero__content h1 { margin: 10px 0 16px; font-size: clamp(34px, 4.8vw, 58px); font-weight: 800; letter-spacing: -.03em; }
.hero__content p { margin: 0; font-size: 19px; color: #a9b8c8; max-width: 34em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn { padding: 17px 28px; font-size: 17px; }
.hero .btn-ghost { color: #f3f7fb; border-color: rgba(255, 255, 255, .3); }
.eyebrow { color: var(--accent); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 800; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li { padding: 14px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.facts b { display: block; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; }
.facts span { font-size: 14px; color: #a9b8c8; }
.hero__media { display: flex; min-width: 0; }
.hero__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .7); }

/* Основний контент */
.content-wrap { position: relative; z-index: 1; padding: 56px 0 16px; }
.main-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; }
.content-card { padding: 36px; }
.content-card h2 { margin: 30px 0 12px; font-size: 30px; font-weight: 800; }
.content-card > h2:first-child { margin-top: 0; }
.content-card h3 { margin: 22px 0 8px; font-size: 21px; font-weight: 700; }
.content-card p { margin: 0 0 16px; color: var(--ink-soft); }
.content-card ul, .content-card ol { margin: 0 0 18px 20px; padding: 0; color: var(--ink-soft); }
.content-card li { margin-bottom: 8px; }
.content-card li::marker { color: var(--accent-ink); }
.notice { margin: 18px 0 0; padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--panel); border-radius: 10px; }
.content-section { margin-top: 8px; }

/* Ціни */
.price-list { list-style: none !important; margin: 0 0 6px !important; padding: 0 !important; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; margin: 0; border-top: 1px dashed var(--line); }
.price-list li:first-child { border-top: 0; }
.price-list span { color: var(--ink); }
.price-list b { white-space: nowrap; color: var(--accent-ink); font-weight: 800; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 6px; }
.price-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg); }
.price-col h3 { margin: 0 0 6px; font-size: 18px; }
.price-col h3 a { color: var(--ink); }
.price-col .price-list li { font-size: 15px; padding: 9px 0; }
.price-note { margin-top: 12px !important; font-size: 15px; color: var(--muted) !important; }

/* Бокова колонка і форма */
.sidebar { display: grid; gap: 20px; position: sticky; top: 92px; }
.contact-box, .lead-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.contact-box { background: var(--dark); color: #c4d0dc; border-color: var(--dark); }
.contact-box h2 { color: #fff; }
.contact-box strong { color: #fff; }
.contact-box a { color: var(--accent); font-weight: 700; }
.contact-box .pill-link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .24); }
.contact-box h2, .lead-form h2 { margin: 0 0 16px; font-size: 24px; font-weight: 800; }
.messenger-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lead-form label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.lead-form input, .lead-form textarea, .lead-form select { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font: inherit; color: var(--ink); }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: 3px solid rgba(20, 211, 142, .2); border-color: var(--accent-ink); }
.lead-form .btn { width: 100%; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; min-height: 22px; }

/* FAQ */
.faq details { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; }

/* Картки послуг */
.service-overview { position: relative; z-index: 1; padding: 40px 0 12px; }
.service-overview h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin: 0 0 22px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { margin: 0 0 8px; font-size: 20px; }
.service-card__body p { margin: 0 0 14px; color: var(--muted); font-size: 15px; flex: 1; }
.service-card__media { display: block; }
.service-card__media img, .service-card > img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.text-link { font-weight: 800; }

/* Як проходить ремонт */
.steps-section { padding: 64px 0 24px; }
.steps-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.steps-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; }
.steps-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps-section h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin: 0 0 24px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--dark); color: var(--accent); font-weight: 800; font-size: 18px; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }
.steps-note { margin-top: 22px; padding: 14px 18px; border-radius: var(--radius); background: var(--panel); font-size: 15px; }

/* Контакти і заявка */
.contact-section { position: relative; z-index: 1; padding: 16px 0 8px; }
.contact-layout { display: grid; gap: 20px; grid-template-columns: .85fr 1.15fr; }
.map-frame { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius-lg); }
.lead-section { padding: 40px 0 56px; }
.lead-band { display: grid; grid-template-columns: .95fr 1.05fr; gap: 32px; align-items: start; padding: 40px; background: var(--dark); color: #c4d0dc; border-radius: 22px; }
.lead-band h2 { margin: 8px 0 14px; font-size: 34px; font-weight: 800; color: #fff; }
.lead-band .lead-form { color: var(--ink); }
.lead-band .lead-form h2 { color: var(--ink); font-size: 24px; margin-top: 0; }

/* Футер */
.site-footer { background: var(--darker); color: #9fb0c2; margin-top: 24px; }
.site-footer a { color: #fff; }
.site-footer .pill-link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .24); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 24px; padding: 40px 0 24px; }
.footer-grid h3 { margin: 0 0 12px; color: #fff; font-size: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0 26px; font-size: 13px; color: #7d8ea0; }

/* Адаптивність */
@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .hero__grid, .main-grid, .lead-band, .contact-layout, .footer-grid, .steps-grid { grid-template-columns: 1fr; }
  .hero__grid { gap: 28px; }
  .hero__media img { aspect-ratio: 16 / 9; }
  .sidebar { position: static; }
  .steps-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; right: 16px; top: 72px; width: min(340px, calc(100% - 32px)); padding: 18px; background: var(--dark); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 14px; }
  .nav.open { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 24px, 1180px); }
  .topbar { display: none; }
  .hero { padding: 14px 0 40px; }
  .hero__content h1 { font-size: 34px; }
  .hero__content p { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .facts { gap: 8px; margin-top: 22px; }
  .facts li { padding: 10px; }
  .facts b { font-size: 16px; }
  .facts span { font-size: 12px; }
  .content-card, .lead-band, .contact-box, .lead-form { padding: 22px; }
  .lead-band h2, .service-overview h2, .content-card h2 { font-size: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .logo small { display: none; }
}

/* Службові */
.force-mobile .container { width: min(420px, calc(100% - 24px)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form button:disabled { opacity: .6; cursor: wait; }

/* Сторінка 404 */
.nav--static { display: flex !important; position: static !important; width: auto !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; flex-direction: row !important; gap: 10px; }
.not-found { min-height: calc(100vh - 160px); display: flex; align-items: center; padding: 48px 0; }
.not-found .hero__grid { align-items: start; }
.not-found__ru { margin-top: 12px !important; font-size: 15px !important; }
.not-found__ru a { color: var(--accent); }
.not-found__links { display: grid; gap: 10px; }
.not-found__links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #f3f7fb; font-weight: 700; transition: background .15s, border-color .15s; }
.not-found__links a:hover { text-decoration: none; background: rgba(20, 211, 142, .12); border-color: rgba(20, 211, 142, .5); }
.not-found__links span { color: var(--accent); font-weight: 800; white-space: nowrap; }
.not-found-page .site-footer { margin-top: 0; }
@media (max-width: 640px) { .not-found { min-height: 0; padding: 24px 0 40px; } .nav--static .nav-viber { display: none; } }

/* Посилання в тексті статті */
.inline-link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(10, 143, 95, .35); text-underline-offset: 3px; }
.inline-link:hover { text-decoration-color: var(--accent-ink); }

/* Закріплена панель дзвінка на телефоні */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(14, 22, 33, .96); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, .1); }
  .mobile-cta .btn { padding: 14px 10px; font-size: 16px; }
  .mobile-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
