/* ЯРемонт — стили сайта */
:root {
  --ink: #111a24;
  --muted: #5e6b78;
  --navy: #0d1b2a;
  --navy-2: #172b40;
  --yellow: #ffd42a;
  --yellow-dark: #e8b900;
  --yellow-soft: #fff6d4;
  --bg: #f5f7f9;
  --white: #fff;
  --line: #e1e7ed;
  --green: #148049;
  --green-soft: #e7f6ee;
  --red: #c0392b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(13, 27, 42, .09);
  --shadow-sm: 0 6px 22px rgba(13, 27, 42, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--yellow); padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 84px 0; }
.section--tight { padding: 58px 0; }
.section--bg { background: var(--bg); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c7d2de; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.section--navy .section-head p { color: #c7d2de; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .11em; color: #8a6b00; background: var(--yellow-soft);
  padding: 6px 12px; border-radius: 100px; margin-bottom: 16px;
}
.section--navy .eyebrow { background: rgba(255, 212, 42, .16); color: var(--yellow); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.accent { color: var(--yellow-dark); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .18s, background .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: #1c1a00; box-shadow: 0 10px 24px rgba(255, 212, 42, .28); }
.btn--primary:hover { background: #ffdc55; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--outline { border-color: #cfd8e2; color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.09); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Шапка */
.topbar { background: var(--navy); color: #d5dee8; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { text-decoration: none; color: #fff; font-weight: 650; }
.topbar a:hover { color: var(--yellow); }
.topbar__left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dot { width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: middle; }

.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.logo__mark { width: 42px; height: 42px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; font-weight: 900; font-size: 1.35rem; color: var(--navy); box-shadow: 0 6px 14px rgba(255,212,42,.35); }
.logo__text { line-height: 1.1; }
.logo__name { font-weight: 850; font-size: 1.25rem; letter-spacing: -.03em; }
.logo__sub { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .94rem; color: #33404d; }
.nav a:hover { color: #9b7800; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { text-decoration: none; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.header__phone:hover { color: #9b7800; }
.burger { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: relative; }
.burger span::before { top: -6px; }
.burger span::after { top: 4px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: -2px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #f7f9fb 0%, #fff 52%, #fff8e1 100%); padding: 64px 0 72px; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,212,42,.28), transparent 68%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; position: relative; }
.hero__content { max-width: 620px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { position: relative; white-space: nowrap; }
.hero__lead { font-size: 1.12rem; color: #455361; max-width: 560px; margin-bottom: 24px; }
.hero__bullets { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.hero__bullets li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.check { flex: none; width: 21px; height: 21px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: .78rem; font-weight: 900; margin-top: 3px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero__note { font-size: .87rem; color: var(--muted); }
.hero__visual { position: relative; }
.hero__photo { width: 100%; border-radius: 26px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.5; object-fit: cover; object-position: center; }
.hero__badge { position: absolute; left: -22px; bottom: 24px; background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); max-width: 235px; font-size: .92rem; line-height: 1.35; }
.hero__badge strong { color: var(--yellow); display: block; font-size: 1.18rem; }

/* Формы */
.lead-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; border: 1px solid var(--line); }
.lead-card--compact { padding: 22px; }
.lead-card__title { font-size: 1.22rem; font-weight: 800; margin-bottom: 4px; }
.lead-card__sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.form-grid { display: grid; gap: 12px; }
.form-grid--two { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .83rem; font-weight: 700; color: #455361; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 11px; border: 1px solid #d6dee6;
  background: #fbfcfd; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow-dark); box-shadow: 0 0 0 3px rgba(255,212,42,.22); outline: none; }
.field input.is-invalid { border-color: var(--red); }
.form-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin-top: 12px; font-size: .9rem; font-weight: 650; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { color: var(--green); }
.form-status--err { color: var(--red); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Полосы доверия */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; display: flex; gap: 13px; align-items: flex-start; }
.trust__icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--yellow-soft); display: grid; place-items: center; color: #8a6b00; }
.trust__icon svg { width: 21px; height: 21px; }
.trust__title { font-weight: 800; font-size: .95rem; margin-bottom: 2px; }
.trust__text { font-size: .84rem; color: var(--muted); line-height: 1.4; }

/* Карточки услуг */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f0d675; }
.card__icon { width: 48px; height: 48px; border-radius: 13px; background: var(--yellow-soft); display: grid; place-items: center; color: #8a6b00; margin-bottom: 16px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; }
.card__price { font-weight: 800; }
.card__link { color: #8a6b00; font-weight: 750; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; right: 20px; font-weight: 900; font-size: 1.6rem; color: #edf1f5; }
.step h3 { position: relative; z-index: 1; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Бренды */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands span { border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; background: #fff; font-weight: 700; font-size: .9rem; }

/* Цены и таблицы */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: #f7f9fb; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { white-space: nowrap; font-weight: 800; text-align: right; }
.price-table tbody tr:hover { background: #fffdf3; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.note { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* Детальные страницы услуг */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.layout__side { position: sticky; top: 100px; }
.page-hero { background: linear-gradient(115deg, #f6f8fa, #fff9e6); padding: 48px 0 54px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: 14px; }
.page-hero p { font-size: 1.08rem; color: #455361; max-width: 780px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: #8a6b00; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 38px; margin-bottom: 16px; }
.prose h3 { margin-top: 24px; }
.prose li { margin-bottom: 8px; }
.symptom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; list-style: none; padding: 0; }
.symptom-grid li { display: flex; gap: 9px; align-items: flex-start; }
.symptom-grid li::before { content: "•"; color: var(--yellow-dark); font-size: 1.4rem; line-height: 1; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.pill-list li { background: var(--bg); border-radius: 100px; padding: 7px 14px; font-size: .9rem; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq details[open] { border-color: #f0d675; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 750; padding: 16px 34px 16px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: #8a6b00; }
.faq details[open] summary::after { content: "−"; }
.faq__answer { padding: 0 10px 18px 0; color: #455361; }

/* CTA */
.cta { position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: auto -120px -220px auto; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(255,212,42,.14), transparent 68%); }
.cta__grid { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; position: relative; z-index: 1; }
.cta h2 { max-width: 620px; }
.cta__contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.cta__contacts a { text-decoration: none; font-weight: 700; }
.cta__contacts a:hover { color: var(--yellow); }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--yellow-soft); display: grid; place-items: center; color: #8a6b00; }
.contact-row__icon svg { width: 19px; height: 19px; }
.contact-row__label { font-size: .8rem; color: var(--muted); }
.contact-row__value { font-weight: 750; }
.contact-row a { text-decoration: none; }
.contact-row a:hover { color: #8a6b00; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--bg); }
.map iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Блог и статьи */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post__date { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.post h3 { margin-bottom: 8px; }
.post p { color: var(--muted); font-size: .92rem; }
.post__more { margin-top: auto; color: #8a6b00; font-weight: 750; }
.article { max-width: 800px; }
.article__meta { color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
.article blockquote { border-left: 4px solid var(--yellow); background: var(--yellow-soft); padding: 14px 20px; margin: 24px 0; border-radius: 0 12px 12px 0; }

/* Подвал */
.footer { background: var(--navy); color: #d6dfe8; padding: 56px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; color: #c5d0dc; font-size: .92rem; }
.footer a:hover { color: var(--yellow); }
.footer__phone { color: #fff !important; font-size: 1.15rem !important; font-weight: 800; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #9dacbb; }
.footer .logo__sub { color: #9dacbb; }

/* Модальное окно и мобильная панель */
dialog.modal { border: none; border-radius: 20px; padding: 0; width: min(480px, calc(100% - 32px)); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
dialog.modal::backdrop { background: rgba(9, 18, 28, .66); backdrop-filter: blur(3px); }
.modal__inner { padding: 28px; position: relative; }
.modal__close { position: absolute; top: 14px; right: 14px; border: none; background: var(--bg); border-radius: 10px; width: 34px; height: 34px; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.mobile-bar { display: none; }

/* Адаптив */
@media (max-width: 1050px) {
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
  .header__phone { display: none; }
  .hero__grid { gap: 32px; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .cta__grid { grid-template-columns: 1fr 360px; gap: 28px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__actions .btn { display: none; }
  .mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(13,27,42,.12); padding: 14px 0 20px; }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a { display: block; padding: 11px 20px; text-decoration: none; font-weight: 650; }
  .mobile-menu a:hover { background: var(--bg); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-height: 380px; }
  .hero__badge { left: 14px; }
  .cards, .posts { grid-template-columns: repeat(2, 1fr); }
  .trust, .steps { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .layout__side { position: static; }
  .cta__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 58px 0; }
  .topbar__left span:first-child, .topbar__left .dot { display: none; }
  .topbar__inner { justify-content: center; }
  h1 { font-size: 2.05rem; }
  .hero { padding: 42px 0 52px; }
  .hero__photo { aspect-ratio: 16/11; }
  .hero__badge { position: static; margin-top: 12px; max-width: none; }
  .cards, .posts, .trust, .steps, .symptom-grid, .contacts-grid, .form-grid--two { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 12px 12px; font-size: .92rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(13,27,42,.1); }
  .mobile-bar .btn { flex: 1; min-height: 44px; }
  body { padding-bottom: 68px; }
  .map iframe { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .header, .footer, .mobile-bar, .cta, .hero__visual, .lead-card { display: none !important; }
  body { color: #000; }
}
