/* Рыжий Кот — стили сайта. Mobile-first, без внешних шрифтов и библиотек. */

:root {
  --c-bg: #fbf8f4;
  --c-surface: #ffffff;
  --c-surface-2: #f4eee7;
  --c-text: #1f1a16;
  --c-muted: #5f554d;
  --c-line: #e7ded4;
  --c-input: #9a8c80;
  --c-accent: #f7760f;         /* фирменный рыжий из логотипа: иконки, акценты */
  --c-accent-strong: #c8500a;  /* кнопки и ссылки (контраст с белым ≥ 4.5:1) */
  --c-accent-hover: #a8430a;
  --c-accent-soft: #fdebdb;
  --c-accent-ink: #7a3306;
  --c-dark: #1e1814;
  --c-on-dark: #f7f1ea;
  --c-on-dark-muted: #c9bdb1;
  --c-error: #b42318;
  --c-success: #1e7b3a;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(31, 26, 22, .05), 0 10px 30px rgba(31, 26, 22, .06);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 76px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
html:has(dialog[open]), body.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; hyphens: manual; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

a { color: var(--c-accent-strong); text-underline-offset: .15em; }
a:hover { color: var(--c-accent-hover); }
a[href^="tel:"] { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--c-dark); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 8px; color: #fff; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--c-accent-strong); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; color: var(--c-text); border-color: #fff; }
.btn--outline { background: transparent; color: var(--c-accent-strong); border-color: currentColor; }
.btn--outline:hover { background: var(--c-accent-strong); color: #fff; border-color: var(--c-accent-strong); }
.btn--sm { min-height: 42px; padding: .5em 1.1em; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: .8em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--c-text);
  cursor: pointer; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--c-accent-soft); color: var(--c-accent-strong); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 244, .97);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.header.is-scrolled { border-color: var(--c-line); box-shadow: 0 4px 18px rgba(31, 26, 22, .06); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--c-text); text-decoration: none; }
.logo:hover { color: var(--c-text); }
.logo__mark { width: 44px; height: 42px; flex: none; object-fit: contain; }
.logo__name { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.1; color: var(--c-accent); }
.logo__tag { display: block; font-size: .75rem; line-height: 1.25; color: var(--c-muted); }
/* Живой кот: сердечко бьётся двойным ударом раз в 4 с; при наведении — чаще и выпускает второе сердечко */
.logo__mark--live { overflow: visible; }
.logo__heart, .logo__bubble { transform-box: fill-box; transform-origin: 50% 60%; }
.logo__heart { animation: heart-beat 4s ease-in-out infinite; }
.logo__bubble { opacity: 0; }
.logo:hover .logo__heart, .logo:focus-visible .logo__heart { animation-duration: 1.1s; }
.logo:hover .logo__bubble, .logo:focus-visible .logo__bubble { animation: heart-float 1.6s ease-out infinite; }
@keyframes heart-beat {
  0%, 30%, 100% { transform: scale(1); }
  8% { transform: scale(1.28); }
  15% { transform: scale(1); }
  22% { transform: scale(1.18); }
}
@keyframes heart-float {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(6px, -22px) scale(.9); }
}
.logo--light, .logo--light:hover { color: var(--c-on-dark); }
.logo--light .logo__tag { color: var(--c-on-dark-muted); }

.header__actions { display: flex; align-items: center; gap: 4px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border-radius: 999px; color: var(--c-text); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header__phone .icon { color: var(--c-accent-strong); }
.header__phone:hover { color: var(--c-accent-strong); }
.header__phone-num, .header__cta { display: none; }
.icon-btn--vk { color: #0077ff; }

.nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0;
  overflow-y: auto;
  padding: 16px var(--gutter) 32px;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.nav.is-open { display: block; }
.nav__link {
  display: block; padding: 14px 4px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text); font-size: 1.15rem; font-weight: 700; text-decoration: none;
}
.nav__link:hover { color: var(--c-accent-strong); }
.nav__extra { display: grid; gap: 4px; margin-top: 20px; }
.nav__phone { padding: 6px 4px; color: var(--c-text); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.nav__extra .btn { margin-top: 12px; }

@media (min-width: 560px) {
  .header__phone-num { display: inline; }
}
@media (min-width: 768px) {
  .header__cta { display: inline-flex; margin-left: 8px; }
  .logo__mark { width: 52px; height: 50px; }
  .logo__name { font-size: 1.3rem; }
}
@media (min-width: 1100px) {
  .burger, .nav__extra { display: none; }
  .nav { display: block; position: static; padding: 0; overflow: visible; background: none; border: 0; }
  .nav__list { display: flex; gap: 4px; }
  .nav__link { padding: 8px 12px; border: 0; border-radius: 999px; font-size: 1rem; font-weight: 600; }
  .nav__link:hover { background: var(--c-accent-soft); }
  .header__inner { gap: 20px; }
  .logo { margin-right: 0; }
  .header__actions { margin-left: auto; }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--c-dark); color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
/* Мягкое «живое» свечение: три размытых пятна медленно плывут, циклы 19–31 с, без стыка (0% = 100%) */
.hero__glow { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hero__glow span {
  position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform;
  animation: glow-drift 23s ease-in-out infinite;
}
.hero__glow span:nth-child(1) { width: 60vmax; height: 60vmax; right: -18vmax; top: -22vmax; background: radial-gradient(closest-side, rgba(247, 118, 15, .8), rgba(247, 118, 15, 0)); }
.hero__glow span:nth-child(2) { width: 44vmax; height: 44vmax; right: 12%; bottom: -24vmax; background: radial-gradient(closest-side, rgba(255, 176, 74, .55), rgba(255, 176, 74, 0)); animation-duration: 31s; animation-delay: -9s; }
.hero__glow span:nth-child(3) { width: 34vmax; height: 34vmax; left: 30%; top: 10%; background: radial-gradient(closest-side, rgba(227, 19, 33, .32), rgba(227, 19, 33, 0)); animation-duration: 19s; animation-delay: -5s; }
.hero__glow.is-paused span { animation-play-state: paused; }
@keyframes glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-12vmax, 7vmax, 0) scale(1.18); }
  66% { transform: translate3d(7vmax, -5vmax, 0) scale(.88); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 15, 12, .9) 0%, rgba(20, 15, 12, .7) 55%, rgba(20, 15, 12, .3) 100%);
}
.hero__inner {
  display: grid; gap: 28px;
  padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(48px, 8vw, 100px);
}
.hero__eyebrow { margin-bottom: 1em; font-size: .9rem; font-weight: 600; color: #f7b06a; }
.hero__title { max-width: 18ch; margin-bottom: .45em; font-size: clamp(2rem, 1.1rem + 3.8vw, 3.7rem); }
.hero__lead { max-width: 36em; margin-bottom: 1.8em; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: #efe6dd; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: grid; gap: 12px; max-width: 820px; margin-top: clamp(4px, 2vw, 24px); }
.hero__facts li {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  color: #e9ded3; font-size: .95rem; line-height: 1.35;
}
.hero__facts strong { display: block; font-size: 1.6rem; line-height: 1.2; color: #fff; }

@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}
@media (min-width: 640px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--c-surface-2); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__lead { margin: 0; font-size: 1.1rem; color: var(--c-muted); }
.eyebrow {
  margin: 0 0 .75em;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-accent-strong);
}
.subhead { margin: clamp(48px, 6vw, 72px) 0 24px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }

/* ---------- Услуги ---------- */
.services { display: grid; gap: 20px; }
.service {
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow);
}
.service__media { position: relative; aspect-ratio: 16 / 10; background: var(--c-surface-2); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__icon {
  position: absolute; left: 20px; bottom: -24px;
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--c-accent); color: #fff;
  box-shadow: 0 8px 20px rgba(240, 124, 30, .35);
}
.service__body { display: flex; flex: 1; flex-direction: column; padding: 38px 22px 22px; }
.service__title { margin-bottom: .4em; }
.service__text { color: var(--c-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags li {
  padding: 4px 10px; border-radius: 999px;
  background: var(--c-accent-soft); color: var(--c-accent-ink);
  font-size: .85rem; line-height: 1.4;
}
.service__more { margin-bottom: 20px; }
.service__more summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--c-accent-strong); font-weight: 700; cursor: pointer; list-style: none;
}
.service__more summary::-webkit-details-marker { display: none; }
.service__more summary::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform .2s;
}
.service__more[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.service__more p { margin: 4px 0 0; color: var(--c-muted); font-size: .95rem; }
.service__btn { align-self: flex-start; margin-top: auto; }

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:last-child { grid-column: 1 / -1; }
  .service:last-child .service__media { aspect-ratio: 21 / 8; }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .service, .service:last-child { grid-column: span 2; }
  .service:nth-child(n + 4) { grid-column: span 3; }
  .service:last-child .service__media { aspect-ratio: 16 / 8; }
  .service:nth-child(4) .service__media { aspect-ratio: 16 / 8; }
}

/* ---------- Этапы ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative; padding: 24px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  position: absolute; top: 18px; right: 22px;
  font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--c-accent-soft);
}
.step__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-strong);
}
.step__title { font-size: 1.15rem; }
.step p { margin: 0; color: var(--c-muted); }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- О компании ---------- */
.about { display: grid; gap: 32px; }
.about__text p { color: var(--c-muted); font-size: 1.05rem; }
.about__text .about__accent {
  margin: 0; padding: 14px 18px;
  border-left: 4px solid var(--c-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--c-accent-soft); color: var(--c-accent-ink); font-weight: 700;
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; }
.stat {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--c-dark); color: var(--c-on-dark-muted);
  font-size: .95rem; line-height: 1.35;
}
.stat strong { display: block; margin-bottom: 6px; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); line-height: 1; color: var(--c-accent); }

@media (min-width: 960px) {
  .about { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
}

.features { display: grid; gap: 16px; }
.feature {
  display: flex; gap: 16px; padding: 22px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface);
}
.feature__icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-strong);
}
.feature h4 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--c-muted); font-size: .95rem; }

@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }

.geo {
  display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--c-dark); color: var(--c-on-dark);
}
.geo__intro h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.geo__intro p { margin: 0; color: var(--c-on-dark-muted); }
.geo__regions { display: grid; gap: 24px; }
.geo__region h4 {
  margin-bottom: 8px;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-on-dark-muted);
}
.geo__list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 1.05rem;
}
.geo__list .icon { width: 18px; height: 18px; color: var(--c-accent); }
.geo__list .is-main { font-weight: 800; }

@media (min-width: 560px) { .geo__regions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .geo { grid-template-columns: 1fr 1.3fr; align-items: center; gap: 48px; } }

/* ---------- Портфолио ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--c-line); border-radius: 999px;
  background: var(--c-surface); color: var(--c-text);
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--c-accent-strong); color: var(--c-accent-strong); }
.filter[aria-pressed="true"] { border-color: var(--c-dark); background: var(--c-dark); color: #fff; }

.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.works__item[hidden] { display: none; }
.work {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--c-line);
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work:hover img { transform: scale(1.04); }
.work__caption {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(20, 15, 12, .85));
  color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3;
}

@media (min-width: 768px) {
  .works { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .work__caption { font-size: .95rem; padding: 36px 16px 14px; }
}
@media (min-width: 1100px) { .works { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Лайтбокс ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(15, 11, 9, .95); color: #fff;
}
.lightbox::backdrop { background: rgba(15, 11, 9, .95); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 20px; }
.lightbox__count { font-size: .95rem; color: var(--c-on-dark-muted); }
.lightbox .icon-btn { color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.lightbox__figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 0; margin: 0; padding: 0 12px 20px;
}
.lightbox__img { max-width: 100%; max-height: calc(100% - 48px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox__caption { margin-top: 12px; text-align: center; font-weight: 600; }
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; background: rgba(255, 255, 255, .1);
}
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (max-width: 640px) {
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__figure { padding-bottom: 84px; }
}

/* ---------- Отзывы ---------- */
.reviews { display: grid; gap: 16px; }
.reviews:empty { display: none; }
.review {
  display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 24px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface);
}
.review[hidden] { display: none; }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__quote { width: 32px; height: 32px; color: var(--c-accent); }
.review__stars { display: inline-flex; gap: 2px; color: #f5a524; }
.review__stars .icon { width: 20px; height: 20px; }
.review__stars .is-off { color: var(--c-line); }
.review__text { flex: 1; margin: 0; white-space: pre-line; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.review__avatar {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px;
  border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-strong);
  font-weight: 800; font-size: 1.2rem;
}
.review__name { display: block; font-weight: 700; line-height: 1.3; }
.review__meta { display: block; color: var(--c-muted); font-size: .85rem; line-height: 1.35; }
.review__avatar .icon { width: 26px; height: 26px; }
.reviews-more { display: flex; margin: 28px auto 0; }
.reviews-cta { margin: 28px 0 0; text-align: center; color: var(--c-muted); }
.reviews-cta[hidden] { display: none; }
.reviews-cta a { font-weight: 700; }
.reviews-more[hidden] { display: none; }

.reviews-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 680px; margin: 0 auto; padding: clamp(28px, 5vw, 48px);
  border: 2px dashed var(--c-line); border-radius: var(--radius-lg);
  text-align: center; color: var(--c-muted);
}
.reviews-empty[hidden] { display: none; }
.reviews-empty .icon { width: 40px; height: 40px; color: var(--c-accent); }
.reviews-empty p { margin: 0; }

@media (min-width: 720px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 8px; }
.faq details { border-bottom: 1px solid #d9cec2; }
.faq details:first-child { border-top: 1px solid #d9cec2; }
.faq summary {
  position: relative; padding: 20px 48px 20px 0;
  font-size: 1.08rem; font-weight: 700; line-height: 1.35;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--c-accent-strong); border-bottom: 2px solid var(--c-accent-strong);
  transform: rotate(45deg); transition: transform .2s, margin .2s;
}
.faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq summary:hover { color: var(--c-accent-strong); }
.faq__answer { padding: 0 0 20px; color: var(--c-muted); }
.faq__answer p { margin: 0; }

@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
  .faq-layout .section__head { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 40px; }
.contact-list { display: grid; gap: 20px; margin-bottom: 28px; }
.contact { display: flex; gap: 14px; align-items: flex-start; }
.contact__icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-strong);
}
.contact__icon .icon { width: 22px; height: 22px; }
.contact__icon--vk { color: #0077ff; background: #e6f0ff; }
.contact__label { display: block; margin-bottom: 2px; color: var(--c-muted); font-size: .85rem; }
.contact__value { display: block; color: var(--c-text); font-weight: 600; }
a.contact__value { text-decoration: none; }
a.contact__value:hover { color: var(--c-accent-strong); }
.contact__phone {
  display: block; padding: 2px 0;
  color: var(--c-text); font-size: 1.2rem; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.contact__phone:hover { color: var(--c-accent-strong); }
.contact__note { display: block; color: var(--c-muted); font-size: .95rem; }

.map {
  position: relative; overflow: hidden;
  width: 100%; height: 320px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface-2);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center; color: var(--c-muted); font-weight: 600; text-decoration: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(31, 26, 22, .05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(31, 26, 22, .05) 39px 40px);
}
.map__placeholder .icon { width: 36px; height: 36px; color: var(--c-accent-strong); }
.map.is-loaded .map__placeholder { display: none; }

@media (min-width: 960px) {
  .contacts { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .map { max-width: 600px; }
}

.form-card {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  background: var(--c-surface); box-shadow: var(--shadow);
}
.form-card__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin-bottom: .35em; }
.form-card__text { color: var(--c-muted); }

/* ---------- Формы ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 6px; font-size: .95rem; font-weight: 600; }
.req { color: var(--c-accent-strong); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--c-input); border-radius: 12px;
  background: #fff; color: var(--c-text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a7d72; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--c-accent-strong); box-shadow: 0 0 0 4px rgba(240, 124, 30, .22);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--c-error); }
.field__error { margin: 6px 0 0; color: var(--c-error); font-size: .85rem; line-height: 1.35; }
.field__error:empty { display: none; }

.field--check { margin: 4px 0 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--c-muted); font-size: .88rem; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-accent-strong); cursor: pointer; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 12px 0 0; font-size: .95rem; line-height: 1.45; }
.form__status:empty { display: none; }
.form__status.is-success {
  padding: 12px 14px; border-radius: 12px;
  background: #e8f5ec; color: var(--c-success); font-weight: 600;
}
.form__status.is-error {
  padding: 12px 14px; border-radius: 12px;
  background: #fdecea; color: var(--c-error);
}
.form__status a { color: inherit; font-weight: 700; }

/* ---------- Модальное окно ---------- */
.modal {
  width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; overflow: auto;
  border: 0; border-radius: var(--radius-lg);
  background: var(--c-surface); color: var(--c-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}
.modal::backdrop { background: rgba(20, 15, 12, .6); }
.modal__inner { position: relative; padding: 28px 22px 22px; }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal__title { padding-right: 44px; font-size: 1.6rem; }
.modal__service { margin-bottom: .5em; color: var(--c-accent-strong); font-weight: 700; }
.modal__text { color: var(--c-muted); }

/* ---------- Подвал ---------- */
.footer { padding: 56px 0 24px; background: var(--c-dark); color: var(--c-on-dark-muted); font-size: .95rem; }
.footer a { color: var(--c-on-dark); text-decoration: none; }
.footer a:hover { color: #f7a04a; }
.footer__grid { display: grid; gap: 32px; }
.footer__slogan { margin: 20px 0 4px; font-size: 1.2rem; font-weight: 800; line-height: 1.35; color: var(--c-on-dark); }
.footer .footer__star { color: var(--c-accent); }
.footer__note { margin: 0; font-size: .85rem; }
.footer__title { margin-bottom: 12px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-on-dark); }
.footer__address { margin-bottom: 10px; }
.footer__list li { padding: 3px 0; }
.footer__list a { display: inline-block; padding: 2px 0; font-weight: 600; }
.footer__vk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.footer__vk .icon { color: #4d9bff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); }

@media (max-width: 639px) { .footer { padding-bottom: 88px; } }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Плавающая кнопка ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 56px; height: 56px; padding: 0 16px;
  border-radius: 999px;
  background: var(--c-accent-strong); color: #fff;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 28px rgba(200, 80, 10, .45);
  transition: transform .3s ease, opacity .3s ease, background-color .2s;
}
.fab:hover { background: var(--c-accent-hover); color: #fff; }
.fab.is-hidden { opacity: 0; transform: translateY(calc(100% + 24px)); pointer-events: none; }
.fab__label { display: none; }
@media (min-width: 640px) {
  .fab { right: 24px; bottom: 24px; padding: 0 22px 0 18px; }
  .fab__label { display: inline; }
}

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface); box-shadow: 0 12px 36px rgba(31, 26, 22, .18);
  font-size: .88rem; line-height: 1.45; color: var(--c-muted);
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 240px; margin: 0; }
body.has-cookie .fab { display: none; }
@media (min-width: 640px) {
  .cookie { left: auto; right: 24px; bottom: 24px; max-width: 420px; }
}

/* ---------- Внутренние страницы (политика, согласие, 404) ---------- */
.doc { padding: clamp(40px, 6vw, 72px) 0; }
.doc .container { max-width: calc(860px + var(--gutter) * 2); }
.doc h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.doc h2 { margin-top: 1.6em; font-size: 1.3rem; }
.doc p, .doc li { color: #3d3530; }
.doc ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.doc li { margin-bottom: .35em; }
.doc__meta { color: var(--c-muted); font-size: .95rem; }
.doc__fill { padding: 0 4px; border-radius: 4px; background: #fff3c4; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 700; text-decoration: none; }

.not-found { display: grid; place-items: center; min-height: calc(100vh - var(--header-h)); padding: 48px 0; text-align: center; }
.not-found__code { margin: 0; font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; color: var(--c-accent); }
.not-found .btn { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
