/* ==========================================================================
   ОтделкаПро — единая дизайн-система
   ========================================================================== */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f4f6f9;
  --c-bg-dark: #0e1524;
  --c-dark-2: #17203a;
  --c-text: #1a2233;
  --c-muted: #5c6880;
  --c-line: #e3e8ef;
  --c-primary: #14284b;
  --c-primary-600: #1d3a6b;
  --c-accent: #f2781f;
  --c-accent-600: #d9640c;
  --c-accent-soft: #fff2e6;
  --c-success: #1f9d55;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 10px 30px rgba(16, 24, 40, .10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .16);
  --container: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: .22s ease;
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 800; letter-spacing: -.015em; color: var(--c-primary); }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); }
p { color: var(--c-muted); }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-bg-dark); color: #c9d2e3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #9aa7c0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-accent); margin-bottom: 12px;
}
.lead { font-size: 1.09rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-accent);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 8px 20px rgba(242, 120, 31, .28);
}
.btn:hover { transform: translateY(-2px); background: var(--c-accent-600); box-shadow: 0 12px 26px rgba(242, 120, 31, .38); }
.btn:active { transform: translateY(0); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-primary); border: 2px solid var(--c-line); box-shadow: none; }
.btn--outline:hover { background: var(--c-bg-soft); border-color: var(--c-primary); color: var(--c-primary); }
.btn--ghost-light { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; border: 1px solid rgba(255,255,255,.28); box-shadow: none; }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 32px; font-size: 1.06rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.25rem; color: var(--c-primary); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  box-shadow: var(--shadow-sm);
}
.logo-text strong { color: var(--c-accent); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: .96rem;
  color: var(--c-text); transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: var(--c-bg-soft); }
.nav a.active { color: var(--c-accent); background: var(--c-accent-soft); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.header-phone:hover { color: var(--c-accent); }
.header-actions .btn { padding: 11px 20px; font-size: .93rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--c-line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-primary); transition: var(--transition); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0e1524 0%, #17233f 55%, #223358 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(242,120,31,.22), transparent 70%),
    radial-gradient(500px 320px at 10% 90%, rgba(70,120,220,.18), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: clamp(48px, 8vw, 104px) 0; }
.hero h1 { color: #fff; }
.hero .lead { color: #b9c4da; font-size: 1.15rem; max-width: 540px; margin-top: 20px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
  border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: .88rem; font-weight: 600; color: #e7ecf6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat span { font-size: .88rem; color: #9aa7c0; }

.hero-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.hero-card p { color: #9aa7c0; font-size: .92rem; margin-bottom: 18px; }

/* Forms ------------------------------------------------------------------ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--c-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm); background: #fff; transition: border var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(242,120,31,.14);
}
.field .error-msg { display: none; color: #d92d20; font-size: .8rem; margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d92d20; }
.field.invalid .error-msg { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--c-muted); margin: 4px 0 16px; }
.consent input { margin-top: 3px; flex: none; }
.consent a { color: var(--c-accent); text-decoration: underline; }

.form-note { font-size: .82rem; color: var(--c-muted); margin-top: 12px; }
.form-success {
  display: none; padding: 16px; border-radius: var(--radius-sm);
  background: #e9f8ef; border: 1px solid #b7e7c8; color: #146c3a; font-weight: 600;
}
.form-success.show { display: block; }

/* Cards ------------------------------------------------------------------ */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5dbe6; }
.card h3 { margin-bottom: 10px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--c-accent-soft); color: var(--c-accent); margin-bottom: 16px; font-size: 1.5rem;
}
.card-list { margin-top: 16px; }
.card-list li { position: relative; padding-left: 26px; margin-bottom: 7px; color: var(--c-muted); font-size: .95rem; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--c-accent);
}

/* Steps ------------------------------------------------------------------ */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 66px; padding-bottom: 30px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-600));
}
.step::after {
  content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; width: 2px; background: var(--c-line);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 6px; }

/* Projects/portfolio ----------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--c-line);
  background: #fff; cursor: pointer; font-weight: 600; font-size: .92rem; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.filter-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.work {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line);
  background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-img {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #20304f, #3a557f);
}
.work-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work:nth-child(3n+2) .work-img { background: linear-gradient(135deg, #6b4226, #b5763f); }
.work:nth-child(3n+3) .work-img { background: linear-gradient(135deg, #1f4d43, #3f8a74); }
.work-body { padding: 20px; }
.work-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--c-muted); }
.work-meta b { color: var(--c-primary); }

/* Price table ------------------------------------------------------------ */
.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: 15px 18px; text-align: left; border-bottom: 1px solid var(--c-line); font-size: .95rem; }
.price-table th { background: var(--c-primary); color: #fff; font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--c-accent); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--c-bg-soft); }

/* Calculator ------------------------------------------------------------- */
.calc {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start;
}
.calc-options { display: grid; gap: 10px; margin: 12px 0 20px; }
.calc-option {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}
.calc-option:hover { border-color: #cfd6e2; }
.calc-option input { accent-color: var(--c-accent); width: 18px; height: 18px; flex: none; }
.calc-option.selected { border-color: var(--c-accent); background: var(--c-accent-soft); }
.calc-option span { font-weight: 600; }
.calc-option small { display: block; color: var(--c-muted); font-weight: 400; }
.calc-result {
  background: var(--c-bg-dark); color: #fff; border-radius: var(--radius); padding: 30px;
  position: sticky; top: 90px;
}
.calc-result .eyebrow { color: var(--c-accent); }
.calc-total { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.1; margin: 6px 0 4px; }
.calc-detail { color: #9aa7c0; font-size: .92rem; margin-bottom: 20px; }
.range-row { margin-top: 18px; }
.range-row label { display: flex; justify-content: space-between; font-weight: 600; color: #e7ecf6; font-size: .92rem; margin-bottom: 8px; }
.range-row input[type=range] { width: 100%; accent-color: var(--c-accent); }

/* Trust / reviews -------------------------------------------------------- */
.review { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; height: 100%; box-shadow: var(--shadow-sm); }
.review-stars { color: #f2b01e; letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: var(--c-text); font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); flex: none; }
.review-author b { display: block; font-size: .95rem; }
.review-author small { color: var(--c-muted); }

/* FAQ -------------------------------------------------------------------- */
.faq-item { border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 20px; font-weight: 700; font-size: 1.02rem; color: var(--c-primary);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--c-accent); transition: transform var(--transition); font-weight: 400; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 20px 18px; }
.faq-item.open .faq-a { max-height: 400px; }

/* CTA banner ------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary), #24406f);
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 56px);
  color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-banner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(242,120,31,.18); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c3cde0; margin-top: 12px; }
.cta-banner .btn { position: relative; z-index: 1; }

/* Contacts --------------------------------------------------------------- */
.contact-card { display: flex; gap: 14px; align-items: flex-start; }
.contact-card .card-icon { margin: 0; flex: none; }
.contact-card b { display: block; font-size: 1.02rem; }
.contact-card a { color: var(--c-accent); font-weight: 700; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); min-height: 340px; background: var(--c-bg-soft); display: grid; place-items: center; color: var(--c-muted); text-align: center; padding: 20px; }

/* Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs { font-size: .86rem; color: var(--c-muted); padding: 18px 0 0; }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

/* Page hero (inner pages) ------------------------------------------------ */
.page-hero { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line); padding-bottom: clamp(36px, 5vw, 60px); }
.page-hero h1 { margin-top: 14px; }
.page-hero p { max-width: 640px; margin-top: 14px; font-size: 1.08rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--c-bg-dark); color: #94a1ba; padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #94a1ba; }
.site-footer a:hover { color: var(--c-accent); }
.footer-links li { margin-bottom: 9px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

/* Utilities -------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Reveal on scroll ------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px 20px 24px; gap: 4px; margin: 0;
    border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; max-height: calc(100vh - 74px); overflow: auto;
  }
  .nav-open .nav { transform: translateY(0); }
  .nav a { padding: 13px 14px; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .header-phone { font-size: .92rem; }
  .header-inner { justify-content: space-between; }
  .nav { margin-left: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { grid-template-columns: 1fr; }
  .price-table { display: block; overflow-x: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 24px; }
  .header-phone { display: none; }
  .calc { padding: 20px; }
  .section-head { margin-bottom: 28px; }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .cta-banner, .nav-toggle { display: none !important; }
}
