/* =========================================================
   KAWA PRO 2 — оформление сайта
   Все цвета собраны здесь, в одном месте: поменяли тут —
   поменялось на всём сайте.
   ========================================================= */
:root {
  --coffee:    #2a1a12;  /* тёмный кофе — тексты, тёмные блоки */
  --coffee-2:  #3d2a1f;
  --crema:     #c8894a;  /* цвет пенки — кнопки и акценты */
  --crema-dk:  #a86d34;
  --milk:      #faf6f0;  /* фон страницы */
  --latte:     #f1e7da;  /* фон выделенных блоков */
  --text:      #2a1a12;
  --muted:     #6f5d50;
  --line:      #e4d7c7;
  --white:     #ffffff;
  --radius:    16px;
  --shadow:    0 10px 30px rgba(42, 26, 18, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--milk);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 780px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--crema-dk);
  margin-bottom: .6em;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .9em 1.5em; border-radius: 999px;
  background: var(--crema); color: var(--white);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 2px solid var(--crema);
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--crema-dk); border-color: var(--crema-dk); transform: translateY(-1px); }
.btn--small { padding: .55em 1.1em; font-size: .95rem; }
.btn--big { font-size: 1.3rem; padding: 1em 2em; }
.btn--ghost { background: transparent; color: var(--coffee); border-color: var(--coffee); }
.btn--ghost:hover { background: var(--coffee); color: var(--white); border-color: var(--coffee); }
.btn--ghost-light { background: transparent; color: var(--milk); border-color: rgba(250,246,240,.5); }
.btn--ghost-light:hover { background: var(--milk); color: var(--coffee); border-color: var(--milk); }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
/* Телефон и под ним «Заявка» */
.topbar__actions { display: flex; flex-direction: column; gap: 5px; }
.topbar__actions .btn--small { padding: .4em 1em; font-size: .88rem; }
.topbar__lead { border-width: 1.5px; }
.topbar__phones { display: flex; flex-direction: column; gap: 1px; }
.topbar__phone { text-decoration: none; font-size: .82rem; line-height: 1.35; white-space: nowrap; text-align: right; }
.topbar__phone .ph__place { color: var(--muted); font-weight: 600; }
.topbar__phone .ph__num { font-weight: 800; color: var(--coffee); }
.topbar__phone:hover .ph__num { color: var(--crema-dk); }

/* Два номера по точкам */
.phones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
/* Первый экран: номера табличкой — точки в одной колонке, номера в другой */
.phones--hero {
  display: grid; grid-template-columns: max-content max-content; align-items: baseline;
  gap: 6px 18px; margin: -14px 0 32px; padding: 14px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; width: max-content; max-width: 100%;
}
.phones--hero .phones__label { grid-column: 1 / -1; font-size: .9rem; }
.phones--hero .phones__item { display: contents; }
.phones--hero .ph__num { font-size: 1.15rem; letter-spacing: .01em; }
.phones--col { flex-direction: column; align-items: flex-start; gap: 8px; }
.phones__label { font-weight: 700; color: var(--muted); }
.phones__item { text-decoration: none; white-space: nowrap; }
.phones__item .ph__place { color: var(--muted); font-weight: 600; }
.phones__item .ph__num { font-weight: 800; color: var(--crema-dk); }
.phones__item:hover .ph__num { text-decoration: underline; }
.scope__note .phones { margin-top: 6px; }
.place__phone a { color: var(--milk); font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.btn--phone { flex-direction: column; gap: 0; line-height: 1.2; }
.btn--phone small { font-size: .72rem; font-weight: 600; opacity: .8; letter-spacing: .04em; }
.footer__phones { display: flex; flex-direction: column; gap: 4px; }
.footer__phones .ph__place { color: #cdbba8; font-weight: 500; }
.topbar__logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.topbar__icon { height: 38px; width: auto; }
.topbar__logo img { height: 36px; width: auto; }
.footer img { height: 34px; width: auto; margin-bottom: 12px; }
.topbar__nav { display: flex; gap: 22px; margin-left: auto; }
.topbar__nav a { text-decoration: none; font-weight: 600; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.topbar__nav a:hover { color: var(--coffee); }

/* ---------- Выбор языка ---------- */
.lang { display: flex; gap: 2px; background: var(--latte); border-radius: 999px; padding: 3px; }
.lang__item {
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-decoration: none;
  color: var(--muted); padding: .35em .6em; border-radius: 999px; line-height: 1;
}
a.lang__item:hover { color: var(--coffee); background: var(--white); }
.lang__item.is-current { background: var(--coffee); color: var(--milk); }
.footer__lang { display: flex; gap: 6px; }
.footer__lang .lang__item { color: #cdbba8; border: 1px solid rgba(250,246,240,.25); }
.footer__lang .lang__item.is-current { background: var(--crema); color: var(--white); border-color: var(--crema); }
.reviews__original { margin-top: 28px; }

/* ---------- Первый экран ---------- */
.hero { padding: 64px 0 56px; }
.hero__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 24px 28px; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 1.7rem; font-weight: 800; color: var(--coffee); }
.facts span { font-size: .88rem; color: var(--muted); max-width: 10em; line-height: 1.35; }

/* Рисунок на первом экране — без подложки, прямо на бумаге */
.hero__card { display: grid; place-items: center; }
.hero__art { width: 100%; height: auto; max-width: 420px; }
/* шестерёнка медленно вращается, пар поднимается */
.art__gear { transform-origin: 200px 190px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.st { animation: steam 3.2s ease-in-out infinite; }
.st1 { animation-delay: .5s; } .st2 { animation-delay: 1s; }
@keyframes steam {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  45% { opacity: 1; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) { .art__gear, .st { animation: none; } .st { opacity: .8; } }

/* ---------- Марки ---------- */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--white); }
.brands .wrap { display: flex; align-items: center; gap: 20px; }
.brands__title { margin: 0; font-weight: 700; color: var(--muted); white-space: nowrap; font-size: .9rem; }
.brands__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.brands__list li { font-weight: 700; color: var(--coffee-2); opacity: .75; }

/* ---------- Секции ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--latte); }
.section--dark { background: var(--coffee); color: var(--milk); }
.section--dark .eyebrow { color: var(--crema); }
.section__lead { color: var(--muted); max-width: 40em; font-size: 1.05rem; margin-bottom: 36px; }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.service p { color: var(--muted); font-size: .95rem; }
.service .price { margin: auto 0 0; font-weight: 800; font-size: 1.25rem; color: var(--coffee); }
.service--main { background: var(--coffee); color: var(--milk); border-color: var(--coffee); }
.service--main p { color: #d9c9b8; }
.service--main .price { color: var(--crema); }
.note { margin-top: 20px; color: var(--muted); font-size: .92rem; }

/* ---------- Порядок работ (из акта) ---------- */
/* Список работ раскрывается по кнопке: плавно «выезжает» вниз */
.scope__toggle { cursor: pointer; font: inherit; font-weight: 700; }
.scope__arrow { display: inline-block; transition: transform .3s; }
.scope__toggle[aria-expanded="true"] .scope__arrow { transform: rotate(180deg); }
.scope__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s ease; }
.scope__panel.is-open { grid-template-rows: 1fr; }
.scope__inner { overflow: hidden; }
.scope__panel .scope:first-child { margin-top: 28px; }
.scope__panel li { opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s; }
.scope__panel.is-open li { opacity: 1; transform: none; }
.scope__panel.is-open li:nth-child(n) { transition-delay: calc(var(--i, 0) * 20ms); }
@media (prefers-reduced-motion: reduce) {
  .scope__panel, .scope__panel li, .scope__arrow { transition: none; }
}

/* ---------- Шаги ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--milk); border-radius: var(--radius); padding: 26px 22px; }
.steps__n {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--crema); color: var(--white); font-weight: 800; margin-bottom: 16px;
}
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Почему мы ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.why__item { border-top: 3px solid var(--crema); padding-top: 18px; }
.why__item p { color: var(--muted); font-size: .95rem; }

/* ---------- Отзывы ---------- */
.stars { color: #e3a33b; letter-spacing: .08em; }
.ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rating { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.rating__place { font-weight: 700; color: var(--muted); margin-bottom: .2em; }
.rating__score { font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin-bottom: .1em; }
.rating__score .stars { font-size: 1.4rem; vertical-align: middle; }
.rating__count { color: var(--muted); }
.rating__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.praise__title { margin-top: 44px; }
.praise { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.praise li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .5em 1.1em; font-weight: 600;
}
.praise li::before { content: "✓ "; color: var(--crema-dk); font-weight: 800; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 36px; }
.reviews[hidden] { display: none; }
.review { margin: 0; background: var(--white); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; color: var(--text); white-space: pre-line; }
.review figcaption { margin-top: auto; color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- Заявка на ремонт ---------- */
.section--form { background: var(--latte); }
.form-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.form-intro__call { font-weight: 600; }
.form-intro__call a { color: var(--crema-dk); font-weight: 800; white-space: nowrap; }
.lead-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .92rem; }
.field[hidden] { display: none; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--text);
  background: var(--milk); border: 1.5px solid var(--line); border-radius: 12px; padding: .75em .9em;
  width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--crema); box-shadow: 0 0 0 3px rgba(200,137,74,.2);
}
.field.is-bad input, .field.is-bad textarea { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__consent { font-size: .82rem; color: var(--muted); margin: 0; }
.lead-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lead-form__actions .btn { cursor: pointer; font: inherit; font-weight: 800; font-size: 1.1rem; }
.lead-form__actions .btn[disabled] { opacity: .6; cursor: wait; }
.lead-form__status { margin: 0; font-weight: 700; }
.lead-form__status.is-ok { color: #2e7d32; }
.lead-form__status.is-err { color: #c0392b; }
.lead-form.is-sent .field, .lead-form.is-sent .lead-form__consent, .lead-form.is-sent .btn { display: none; }
.lead-form.is-sent .lead-form__status { font-size: 1.15rem; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.cta .btn.btn--light { background: var(--milk); color: var(--coffee); border-color: var(--milk); }
.cta .btn.btn--light:hover { background: var(--white); color: var(--coffee); border-color: var(--white); }

/* ---------- Адреса ---------- */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.place { background: var(--coffee-2); border-radius: var(--radius); padding: 26px; }
.place h3 { font-size: 1.5rem; }
.place__addr { color: #d9c9b8; }
.place__hours { font-weight: 700; color: var(--crema); }
.place__map { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #4a3326; margin-bottom: 18px; }
.place__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.place__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Вопросы ---------- */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--crema-dk); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- Призыв ---------- */
.cta { background: var(--crema); color: var(--white); padding: 72px 0; text-align: center; }
.cta p { font-size: 1.1rem; opacity: .92; }
.cta .btn { background: var(--coffee); border-color: var(--coffee); }
.cta .btn:hover { background: var(--coffee-2); }

/* ---------- Подвал ---------- */
.footer { background: var(--coffee); color: #cdbba8; padding: 48px 0 40px; font-size: .92rem; }
.footer__in { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 32px; align-items: start; }
.footer strong { color: var(--milk); }
.footer a { color: var(--milk); font-weight: 700; text-decoration: none; }
.footer__small { opacity: .7; }

/* ---------- Кнопка «позвонить» на телефоне ---------- */
.callbar { display: none; }

/* =========================================================
   Планшет и телефон
   ========================================================= */
/* Меню в шапке не помещается рядом с телефонами — на средних экранах прячем его */
@media (max-width: 1240px) {
  .topbar__nav { display: none; }
  .lang { margin-left: auto; }
}

@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps, .why, .reviews { grid-template-columns: repeat(2, 1fr); }
  .topbar__nav { display: none; }
  .lang { margin-left: auto; }
  .topbar__in .btn--small { margin-left: 0; }
}

@media (max-width: 720px) {
  .hero { padding: 36px 0 40px; }
  .hero__in { grid-template-columns: 1fr; gap: 32px; }
  .hero__card { max-width: 320px; width: 100%; margin: 0 auto; order: -1; aspect-ratio: 16 / 10; }
  .hero__art { max-width: 280px; }
  .hero__cta .btn { flex: 1 1 100%; }
  /* На телефоне: 1-я строка — логотип и языки, 2-я — кнопка «Заявка» во всю ширину.
     Номера телефонов — в нижней кнопке «Позвонить». */
  .topbar__in { flex-wrap: wrap; row-gap: 8px; }
  .topbar__actions { order: 3; flex: 1 1 100%; }
  .topbar__phones { display: none; }
  .topbar__lead { width: 100%; }
  html { scroll-padding-top: 120px; }
  .scope { columns: 1; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .brands .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section { padding: 56px 0; }
  .services, .steps, .why, .places, .ratings, .reviews, .form-wrap, .lead-form { grid-template-columns: 1fr; }
  .form-wrap { gap: 24px; }
  .lead-form { padding: 20px; }
  .footer__in { grid-template-columns: 1fr; }
  .btn--big { font-size: 1.15rem; width: 100%; }

  /* Постоянная кнопка внизу экрана: клиент звонит одним нажатием */
  .callbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    border-radius: 999px; box-shadow: 0 8px 24px rgba(42,26,18,.3);
  }
  .callbar__call { border-radius: 999px 0 0 999px; }
  .callbar__lead { border-radius: 0 999px 999px 0; }
  .callbar a {
    flex: 1; text-align: center; text-decoration: none; font-weight: 800; padding: 15px 8px;
  }
  .callbar a, .callbar button { flex: 1; font: inherit; font-weight: 800; border: 0; cursor: pointer; }
  .callbar__call { background: var(--crema); color: var(--white); font-weight: 800; padding: 15px 8px; }
  /* Меню с двумя номерами над кнопкой «Позвонить» */
  .callbar__menu {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 8px);
    background: var(--white); border-radius: 18px; box-shadow: 0 8px 24px rgba(42,26,18,.3);
    display: flex; flex-direction: column; padding: 6px;
  }
  .callbar__menu[hidden] { display: none; }
  .callbar__phone { color: var(--coffee); padding: 12px; border-radius: 12px; text-align: left !important;
    display: flex; justify-content: space-between; gap: 10px; }
  .callbar__phone + .callbar__phone { border-top: 1px solid var(--line); }
  .callbar__phone .ph__place { color: var(--muted); font-weight: 600; }
  .callbar__lead { background: var(--coffee); color: var(--milk); }
  body { padding-bottom: 76px; }
}
