/* УДОМА — стили сайта. Цвета, размеры и отступы меняются в :root. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Фирменные цвета по логотипу */
  --graphite: #2f3035;
  --graphite-deep: #1e1f23;
  --graphite-soft: #3a3b41;
  --yellow: #e6b113;
  --yellow-hover: #f2c232;
  --beige: #edeae1;
  --milk: #f7f5f0;
  --white: #ffffff;

  --text-dark: #1e1f23;
  --text-dark-muted: #55565c;
  --text-light: #f4f1ea;
  --text-light-muted: #bdbab2;
  --line-light: #dcd8cc;
  --line-dark: #45464d;

  --font: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2rem, 1.3rem + 3.6vw, 3.6rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  --fs-h3: 1.2rem;
  --fs-body: 1rem;
  --fs-small: 0.9rem;

  --container: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --bar-h: 72px;
  --section-pad: clamp(56px, 8vw, 104px);
  --tap: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-dark);
  background: var(--graphite-deep);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--graphite-deep); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-lg { min-height: 54px; padding: 14px 26px; }
.btn-accent { background: var(--yellow); color: var(--graphite-deep); }
.btn-accent:hover { background: var(--yellow-hover); }
.btn-ghost { background: transparent; color: var(--text-light); border-color: rgba(244, 241, 234, .45); }
.btn-ghost:hover { border-color: var(--text-light); background: rgba(244, 241, 234, .08); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--yellow); }
.eyebrow-dark { color: var(--text-dark-muted); }
.muted { color: var(--text-light-muted); font-size: var(--fs-small); }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 31, 35, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--text-light);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 78px; height: auto; }
.brand-sub { font-size: .72rem; line-height: 1.2; color: var(--text-light-muted); font-weight: 600; letter-spacing: .02em; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: var(--tap); min-width: var(--tap); padding: 0 14px;
  background: transparent; color: var(--text-light);
  border: 1px solid var(--line-dark); border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px;
  text-decoration: none; font-weight: 600; border-radius: 8px; color: var(--text-light);
}
.site-nav a:hover { color: var(--yellow); }
.nav-phone { white-space: nowrap; }
.header-cta { display: none; }

/* Мобильное меню: только при включённом JS; без JS ссылки видны всегда */
@media (max-width: 959px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--graphite-deep); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 20px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { min-height: 52px; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; padding: 0 4px; }
  .js .nav-phone { color: var(--yellow) !important; border-bottom: 0 !important; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .header-cta { display: inline-flex; }
  .nav-phone { margin-left: 8px; }
}

/* Первый экран */
.hero { background: var(--graphite-deep); color: var(--text-light); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 48px; }
.hero h1 { max-width: 14ch; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--text-light-muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-actions .btn { flex: 1 1 220px; }
.hero-facts { list-style: none; display: grid; gap: 8px; font-size: var(--fs-small); color: var(--text-light-muted); }
.hero-facts strong { color: var(--text-light); }
.hero-facts a { color: var(--text-light); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.hero-media { margin: 0; order: -1; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.hero-media picture { height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  border-radius: inherit;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 88px; }
  .hero-media { order: 0; aspect-ratio: 4 / 5; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Секции */
.section { padding: var(--section-pad) 0; }
.section-light { background: var(--milk); color: var(--text-dark); }
.section-milk { background: var(--beige); color: var(--text-dark); }
.section-dark { background: var(--graphite); color: var(--text-light); }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-lead { font-size: 1.08rem; color: var(--text-dark-muted); }
.section-dark .section-lead { color: var(--text-light-muted); }

/* Услуги */
.services { display: grid; gap: 20px; }
/* 5 карточек: на планшете первая во всю ширину, на компьютере 2 широкие + 3 узкие */
@media (min-width: 700px) and (max-width: 1099px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .service:first-child > picture img { height: 100%; aspect-ratio: auto; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .service { grid-column: span 2; }
  .service:nth-child(-n+2) { grid-column: span 3; }
  .service:nth-child(-n+2) > picture img { aspect-ratio: 16 / 9; }
}
.service {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden;
}
.service > picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.service-task { color: var(--text-dark-muted); }
.service-list { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; font-size: .95rem; }
.service-list li { position: relative; padding-left: 20px; }
.service-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); transform: rotate(45deg); }
.note { font-size: var(--fs-small); color: var(--text-dark-muted); border-left: 3px solid var(--yellow); padding-left: 10px; }
.why { background: var(--milk); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.why-title { font-weight: 700; margin: 0 0 8px; }
.why-list { list-style: none; display: grid; gap: 8px; font-size: var(--fs-small); color: var(--text-dark-muted); }
.why-list b { color: var(--text-dark); }
.price { margin-top: auto; font-weight: 800; font-size: 1.3rem; padding-top: 14px; border-top: 1px solid var(--line-light); }
.price span { display: block; font-size: var(--fs-small); font-weight: 500; color: var(--text-dark-muted); }
.price-table-wrap { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-light); overflow-x: auto; margin-bottom: 8px; }
.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.price-table th, .price-table td { padding: 8px 4px; border-bottom: 1px solid var(--line-light); text-align: right; vertical-align: bottom; }
.price-table thead th { font-size: .78rem; font-weight: 600; color: var(--text-dark-muted); line-height: 1.25; }
.price-table th:first-child { text-align: left; padding-left: 0; }
.price-table tbody th { font-weight: 700; }
.price-table caption, .price-table th { hyphens: manual; }
@media (max-width: 380px) { .service-body { padding-left: 16px; padding-right: 16px; } .price-table { font-size: .82rem; } .price-table thead th { font-size: .72rem; } }
.price-table td { white-space: nowrap; font-weight: 600; }
.price-table td:last-child, .price-table th:last-child { padding-right: 0; }
.service-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap);
  font-weight: 700; text-decoration: none; color: var(--text-dark);
  border-bottom: 2px solid var(--yellow);
}
.service-link::after { content: "→"; transition: transform .2s var(--ease); }
.service-link:hover::after { transform: translateX(4px); }

.extras { margin-top: 48px; background: var(--graphite); color: var(--text-light); border-radius: var(--radius); padding: 28px 22px; }
@media (min-width: 768px) { .extras { padding: 36px 40px; } }
.extras-list { list-style: none; display: grid; gap: 0 40px; margin-bottom: 18px; }
@media (min-width: 768px) { .extras-list { grid-template-columns: 1fr 1fr; } }
.extras-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.extras-list b { white-space: nowrap; color: var(--yellow); font-weight: 700; }
.extras-honest { border-left: 3px solid var(--yellow); padding: 2px 0 2px 16px; }
.extras-honest p { margin: 0 0 6px; color: var(--text-light-muted); }
.extras-honest p:last-child { margin-bottom: 0; }
.extras-honest .extras-honest-title { color: var(--yellow); font-weight: 700; }

/* Наши работы */

.cases { display: grid; gap: 28px; }
@media (min-width: 700px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; } }
.case-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.case-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.case p { margin: 0 0 .3em; color: var(--text-light-muted); font-size: .95rem; }
.case b { color: var(--text-light); }
.case .case-tag { color: var(--yellow); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .25em; }

/* Как мы работаем */
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 24px 22px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 18px; color: var(--graphite);
  text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 8px;
}
.steps p { color: var(--text-dark-muted); margin: 0; }

/* Вопросы */
.faq-grid { display: grid; gap: 12px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq details:first-child { border-top: 1px solid var(--line-light); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 0; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--graphite); color: var(--text-light); font-weight: 700; transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "−"; background: var(--yellow); color: var(--graphite-deep); }
.faq details p { color: var(--text-dark-muted); padding-bottom: 16px; margin: 0; max-width: 40rem; }

/* Контакты */
.chosen { background: rgba(230, 177, 19, .14); border: 1px solid rgba(230, 177, 19, .5); color: var(--text-light); border-radius: var(--radius-sm); padding: 12px 16px; }
.contact-card { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; margin-top: 16px; background: rgba(0, 0, 0, .12); }
.contacts-head { max-width: 720px; }
.contacts-cards { display: grid; gap: 16px; margin-top: 12px; }
.contacts-cards .contact-card { margin-top: 0; display: flex; flex-direction: column; align-items: flex-start; }
.contacts-cards .contact-card > .btn-block, .contacts-cards .contact-actions { align-self: stretch; }
.contacts-cards .contact-card > .contact-actions, .contacts-cards .contact-card > .btn:last-child { margin-top: auto; }
@media (min-width: 768px) { .contacts-cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
.contact-label { font-size: var(--fs-small); color: var(--text-light-muted); margin: 0 0 4px; font-weight: 600; }
.contact-phone { display: inline-block; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 800; text-decoration: none; margin-bottom: 16px; }
.contact-phone:hover { color: var(--yellow); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn { flex: 1 1 200px; white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.copy-status { min-height: 1.4em; margin: 10px 0 0; font-size: var(--fs-small); color: var(--yellow); }
.contact-text { color: var(--text-light-muted); margin-bottom: 14px; }
.btn-block { width: 100%; }
.contact-address { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }

/* Подвал */
.site-footer { background: var(--graphite-deep); color: var(--text-light-muted); padding: 40px 0; font-size: var(--fs-small); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer-inner img { width: 72px; }
.footer-inner p { margin: 0 0 4px; }
.footer-inner b { color: var(--text-light); }
.footer-inner a { color: var(--text-light); text-decoration: none; font-weight: 700; }
.footer-copy { margin-left: auto !important; }

/* Нижняя панель на телефоне */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(30, 31, 35, .96); border-top: 1px solid var(--line-dark);
    transition: transform .25s var(--ease);
  }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .footer-copy { margin-left: 0 !important; }
}

/* Появление блоков: только с JS и без ограничения анимации */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Страница политики */
.doc { background: var(--milk); color: var(--text-dark); padding: 40px 0 64px; }
.doc-inner { max-width: 860px; }
.doc h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.4rem); margin-bottom: .3em; }
.doc h2 { font-size: 1.25rem; margin: 1.8em 0 .6em; }
.doc p, .doc li { color: var(--text-dark); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .35em; }
.doc a { color: var(--text-dark); font-weight: 600; }
.doc-meta { color: var(--text-dark-muted); font-size: var(--fs-small); }
.fill { background: #fff1bf; border: 1px dashed #b88a00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.doc-card { display: grid; gap: 4px 20px; margin: 0; padding: 18px 20px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-sm); }
.doc-card dt { font-size: var(--fs-small); color: var(--text-dark-muted); margin-top: 8px; }
.doc-card dd { margin: 0; }
@media (min-width: 700px) { .doc-card { grid-template-columns: 240px 1fr; } .doc-card dt { margin-top: 0; } }
.doc-table-wrap { overflow-x: auto; margin: 0 0 1em; }
.doc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; background: var(--white); }
.doc-table th, .doc-table td { border: 1px solid var(--line-light); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc-table th { background: var(--beige); }
.doc-back { margin-left: auto; color: var(--text-light); border-color: var(--line-dark); }
.contact-legal { font-size: var(--fs-small); color: var(--text-light-muted); margin: 12px 0 0; }
.contact-legal a, .footer-legal a { color: var(--text-light); }
.footer-inner a.footer-vk { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.footer-vk .vk-icon { color: var(--yellow); flex: none; transition: color .2s; }
.footer-vk:hover .vk-icon { color: var(--yellow-hover); }
.btn-vk .vk-icon { color: var(--yellow); flex: none; }
