/* Elite Climate — стилі сайту
   Кольори з брендбука: помаранчевий F39344, синій 34519F, темно-сірий 191919. */

:root {
  --navy: #34519F;
  --navy-700: #2A4486;
  --navy-900: #16223F;
  --orange: #F39344;
  --orange-600: #E9812C;
  --ink: #191919;
  --text: #1F2433;
  --muted: #586174;
  --line: #DCE3EE;
  --frost: #EEF3FA;
  --white: #FFFFFF;
  --danger: #B42318;

  --font-display: "Unbounded", "Arial", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", "Arial", sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --wrap: 1240px;
  --gutter: 20px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

h1, h2, h3, h4, .h3, .h4 {
  overflow-wrap: break-word;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 1.1rem + 2.9vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 500; }
.h4 { font-size: 1.1rem; font-weight: 500; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } body { font-size: 16px; } }

.icon { flex: none; }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 12px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  background: transparent; color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: var(--orange-600); color: var(--ink); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--frost); }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .94rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-strong { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; color: var(--ink); }
.link-strong:hover { color: var(--navy); }

/* ------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); }
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { flex: 0 1 auto; min-width: 0; display: block; }
.logo img { height: 40px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 4px; justify-content: center; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  color: var(--text); font-weight: 500; text-decoration: none;
}
.main-nav a:hover { background: var(--frost); color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--navy); }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
}
.nav-toggle-close { display: none; }

@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1.5px solid var(--line); border-radius: 12px; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--white); padding: 20px var(--gutter) 40px; overflow-y: auto;
    display: none;
  }
  .nav-open .main-nav { display: block; }
  .nav-open .nav-toggle-open { display: none; }
  .nav-open .nav-toggle-close { display: inline; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 16px 4px; font-size: 1.2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .nav-phone, .nav-messenger { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .logo img { height: auto; width: 100%; max-width: 230px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
}

/* ------------------------------------------------ sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-frost { background: var(--frost); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-more { margin: 28px 0 0; }

.page-head { padding: 28px 0 8px; }
.page-head h1 { margin-top: 8px; max-width: 22ch; }
.page-lead { color: var(--muted); font-size: 1.08rem; max-width: 68ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs span[aria-hidden], .crumbs > span:not([aria-current]) { color: #A3ABBA; }

/* ------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--frost) 0%, var(--white) 100%);
  padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.9rem); max-width: 14ch; margin-bottom: 20px; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 24px 0 0; font-size: .95rem; color: var(--muted); max-width: 52ch; padding-left: 14px; border-left: 3px solid var(--orange); }

.hero-visual { position: relative; min-height: 380px; }
.swirl-wrap { position: relative; max-width: 560px; margin-left: auto; }
.swirl { width: 100%; height: auto; display: block; }
.swirl-label {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); white-space: nowrap;
}
.swirl-label-warm { left: 4%; top: -6%; color: #A4501A; }
.swirl-label-warm .icon { color: var(--orange); }
.swirl-label-cool { right: 0; top: 30%; color: var(--navy); }
.hero-product {
  position: relative; z-index: 1; margin: -8% 0 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 18px 10px; width: min(300px, 56%);
}
.hero-product img { width: 100%; height: auto; }
.hero-product figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .swirl path:nth-of-type(1) { animation: swirl-in-warm 1.1s cubic-bezier(.2,.75,.25,1) both; }
  .swirl path:nth-of-type(2) { animation: swirl-in-cool 1.1s cubic-bezier(.2,.75,.25,1) .08s both; }
  .swirl-label { animation: fade-in .5s ease .8s both; }
  .hero-product { animation: fade-in .6s ease .5s both; }
}
@keyframes swirl-in-warm { from { transform: translateX(-9%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swirl-in-cool { from { transform: translateX(9%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; max-width: 520px; width: 100%; margin: 12px auto 24px; }
  .hero-title { max-width: 16ch; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .swirl-label { font-size: .8rem; padding: 6px 10px; }
  .hero-product { width: 58%; padding: 10px 12px 6px; bottom: -20px; }
}

/* ------------------------------------------------ tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 220px; padding: 24px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--text); text-decoration: none;
  transition: border-color .15s;
}
.tile:hover { border-color: var(--navy); color: var(--text); }
.tile:hover .tile-title { color: var(--navy); }
.tile-text { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.tile-title { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--ink); line-height: 1.2; }
.tile-desc { color: var(--muted); font-size: .95rem; }
.tile-meta { font-size: .92rem; color: var(--muted); }
.tile img { align-self: flex-end; max-height: 130px; width: auto; max-width: 75%; object-fit: contain; mix-blend-mode: multiply; }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: flex-end; background: var(--frost); border-color: var(--frost); }
.tile-wide .tile-title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.tile-wide img { max-height: 180px; max-width: 55%; }
.tile-business { background: var(--navy-900); border-color: var(--navy-900); }
.tile-business .tile-title { color: var(--white); }
.tile-business .tile-desc, .tile-business .tile-meta { color: rgba(255,255,255,.72); }
.tile-business:hover { border-color: var(--orange); }
.tile-business:hover .tile-title { color: var(--white); }
.tile-business img { mix-blend-mode: normal; border-radius: var(--r-sm); max-height: 110px; }

.tiles-home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .tiles-home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .tiles, .tiles-home { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .tile { min-height: 0; }
  .tile img { max-height: 110px; }
}

/* ------------------------------------------------ product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .15s;
}
.card:hover { border-color: #AFC0DE; }
.card-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 18px; background: var(--white); border-bottom: 1px solid #EEF1F6; }
.card-media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-kind { font-size: .84rem; color: var(--muted); margin: 0 0 4px; line-height: 1.35; }
.card-title { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; line-height: 1.35; margin: 0 0 10px; letter-spacing: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--navy); text-decoration: underline; }
.card-title a::after { content: none; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.facts li { font-size: .84rem; padding: 3px 9px; border-radius: 999px; background: var(--frost); color: var(--text); white-space: nowrap; }
.swatch-line { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #B9C2D2; flex: none; vertical-align: -3px; }
.swatch-w { background: #FFFFFF; }
.swatch-s { background: linear-gradient(135deg, #E4E7EC, #A7ADB8); }
.swatch-b { background: #1E1F22; border-color: #1E1F22; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { margin: 0; font-weight: 600; font-size: 1.22rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price span { font-size: .8em; font-weight: 500; color: var(--muted); }

.compare-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(185px, 1fr);
  gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
}
.compare-row .card { scroll-snap-align: start; }
@media (max-width: 600px) { .compare-row { grid-auto-columns: 78%; } }

/* ------------------------------------------------ calculator */
.calc-section { background: var(--navy-900); color: rgba(255,255,255,.86); }
.calc-section h2 { color: var(--white); }
.calc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.calc-intro p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 42ch; }
.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px);
}
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field > label, .calc-field > legend { font-weight: 500; color: var(--white); font-size: .95rem; margin-bottom: 8px; }
.calc-wide { grid-column: 1 / -1; }
.calc-range { display: flex; align-items: center; gap: 16px; }
.calc-range input { flex: 1; accent-color: var(--orange); height: 28px; }
.calc-range output { min-width: 72px; text-align: right; font-family: var(--font-display); font-size: 1.3rem; color: var(--white); }
.calc select, .calc input[type="number"] {
  height: 48px; border-radius: var(--r-sm); padding: 0 14px;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.22); color: var(--white);
}
.calc select option { color: var(--ink); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; height: 48px; border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,.22); font-weight: 500;
}
.seg input:checked + span { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.calc-result { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
.calc-need { font-size: 1.05rem; margin: 0 0 4px; }
.calc-need strong { font-family: var(--font-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); color: var(--orange); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.calc-rec { color: rgba(255,255,255,.8); margin-bottom: 18px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .calc { grid-template-columns: 1fr; } .calc-actions .btn { width: 100%; } }

/* ------------------------------------------------ services & steps */
.service-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.service-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.service-list h3 { margin-bottom: 8px; font-size: 1.1rem; }
.service-list h3 a { color: var(--ink); text-decoration: none; }
.service-list h3 a:hover { color: var(--navy); text-decoration: underline; }
.service-list p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .service-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-list { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--orange);
}
.steps li::after { content: ""; position: absolute; top: 18px; left: 44px; right: -12px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 22px 60px; }
  .steps li::after { top: 44px; bottom: 6px; left: 14px; right: auto; width: 2px; height: auto; }
}

/* ------------------------------------------------ faq, reviews, app */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 14px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 44px; margin: 0 0 20px; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }

.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.review blockquote { margin: 0 0 12px; }
.review figcaption { color: var(--muted); font-weight: 500; }

.app-block { background: var(--frost); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); }
.check-list { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--navy); margin-top: 3px; }
.store-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------ CTA + forms */
.cta-section { background: var(--navy); color: rgba(255,255,255,.88); }
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.8); }
.cta-grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cta-direct { font-size: 1.1rem; }
.cta-direct a { color: var(--white); font-weight: 600; white-space: nowrap; }
.messenger-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cta-form { background: var(--white); color: var(--text); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.cta-form p { color: var(--muted); }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

.lead-form { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: .93rem; color: var(--ink); }
.field input, .field textarea, .toolbar input, .toolbar select, .price-range input, .sort select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); padding: 0 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus, .price-range input:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(52,81,159,.2);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error, .form-error { color: var(--danger); font-size: .9rem; margin: 0; }
.form-legal { font-size: .82rem; color: var(--muted); margin: 0; }
.cta-form .form-legal a, .dialog-inner .form-legal a { color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #E6F4EA; color: #1E7B3C; margin-bottom: 12px; }
.form-success-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }
.cta-form .form-success p:not(.form-success-title) { color: var(--muted); }

/* ------------------------------------------------ dialog */
.order-dialog {
  width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0;
  border-radius: var(--r-lg); color: var(--text); overflow: auto;
  box-shadow: 0 24px 64px rgba(22, 34, 63, .28);
}
.order-dialog::backdrop { background: rgba(22, 34, 63, .55); }
.dialog-inner { position: relative; padding: 28px; }
.dialog-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: var(--frost); color: var(--ink);
}
.dialog-close:hover { background: var(--line); }
.dialog-title { font-size: 1.4rem; padding-right: 48px; margin-bottom: 8px; }
.dialog-lead { color: var(--muted); margin-bottom: 14px; }
.dialog-product { background: var(--frost); border-radius: var(--r-sm); padding: 10px 14px; font-weight: 500; font-size: .95rem; margin-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .order-dialog[open] { animation: dialog-in .2s ease-out; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body.dialog-open { overflow: hidden; }

/* ------------------------------------------------ catalog */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: thin; }
.cat-tabs a {
  flex: none; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; white-space: nowrap;
}
.cat-tabs a:hover { border-color: var(--navy); color: var(--navy); }
.cat-tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 6px; }
.filters-head { display: none; }
.filters-form { display: grid; gap: 22px; }
.filter-group legend { font-weight: 600; color: var(--ink); margin-bottom: 10px; font-size: .95rem; }
.filter-hint { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .check { position: relative; }
.chip input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; cursor: pointer; background: var(--white);
}
.chip span:hover { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span, .check input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.checks { display: grid; gap: 4px; }
.check span { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: .96rem; }
.check span::before {
  content: ""; width: 20px; height: 20px; flex: none; border: 1.5px solid #AEB8C9; border-radius: 6px; background: var(--white);
}
.check input:checked + span::before {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--navy);
}
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range label { flex: 1; }
.price-range input { min-height: 42px; padding: 0 10px; font-size: .92rem; }
.filters-apply { display: none; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.search { position: relative; flex: 1 1 260px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; min-height: 46px; }
.sort select { min-height: 46px; padding-right: 36px; width: auto; }
.filters-open { display: none; position: relative; min-height: 46px; }
.filters-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: .8rem; }
.results-count { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.empty { border: 1.5px dashed var(--line); border-radius: var(--r-lg); padding: 32px; text-align: center; }
.empty-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.empty p:not(.empty-title) { color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.card[hidden] { display: none; }

@media (max-width: 960px) {
  .catalog { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(360px, 88vw); max-height: none; top: 0;
    background: var(--white); padding: 0 20px 24px; transform: translateX(-102%);
    transition: transform .25s ease, visibility .25s; visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(22,34,63,.5); }
  .filters-backdrop[hidden] { display: none; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--white); padding: 16px 0; z-index: 1; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
  .filters-title { font-family: var(--font-display); font-size: 1.2rem; margin: 0; color: var(--ink); }
  .filters-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--frost); display: inline-flex; align-items: center; justify-content: center; }
  .filters-apply { display: inline-flex; position: sticky; bottom: 0; }
  .filters-open { display: inline-flex; order: 1; flex: 1 1 0; }
  .search { flex-basis: 100%; }
  .sort { order: 2; flex: 1 1 0; }
  .sort select { width: 100%; }
  body.filters-lock { overflow: hidden; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-media { padding: 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: .92rem; }
  .card-kind { font-size: .78rem; }
  .facts li { font-size: .76rem; padding: 2px 7px; }
  .price { font-size: 1.05rem; }
  .card-foot .btn { width: 100%; }
  .sort { flex: 1; }
  .sort select { width: 100%; }
}
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ product page */
.page-head-product { padding-bottom: 0; }
.product > *, .catalog > *, .hero-grid > *, .calc-grid > *, .cta-grid > *, .contacts > *, .faq-grid > * { min-width: 0; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.gallery-main {
  display: flex; align-items: center; justify-content: center; min-height: 360px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
}
.gallery-main img { max-height: 420px; width: auto; }
.gallery-empty { color: var(--muted); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 128px; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.thumb img { height: 64px; width: auto; object-fit: contain; }
.thumb span { font-size: .78rem; color: var(--muted); }
.thumb[aria-current="true"] { border-color: var(--navy); }
.product-kind { color: var(--muted); margin-bottom: 6px; }
.product-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin-bottom: 20px; overflow-wrap: anywhere; }
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 0 0 20px; }
.key-facts div { background: var(--white); padding: 12px 14px; }
.key-facts dt { font-size: .82rem; color: var(--muted); }
.key-facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.variant { margin-bottom: 18px; }
.variant-label { font-weight: 600; font-size: .93rem; margin-bottom: 8px; color: var(--ink); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-options a {
  min-width: 72px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .93rem;
}
.variant-options a:hover { border-color: var(--navy); color: var(--navy); }
.variant-options a[aria-current="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.variant-options .variant-color { min-width: 44px; padding: 0; }
.variant-options .variant-color[aria-current="true"] { background: var(--white); box-shadow: inset 0 0 0 2px var(--navy); }
.variant-color .swatch { width: 22px; height: 22px; }
.buy-box { background: var(--frost); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); margin: 8px 0 20px; }
.price-lg { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 600; }
.buy-note { font-size: .92rem; color: var(--muted); margin: 6px 0 0; }
.buy-note-strong { color: var(--text); font-weight: 500; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.product-desc { color: var(--muted); max-width: 60ch; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .gallery-main { min-height: 240px; } }
@media (max-width: 520px) { .buy-actions .btn { width: 100%; } .gallery-main { padding: 16px; } .thumb { width: calc(50% - 5px); } }

.table-scroll { overflow-x: auto; }
.kit-table { width: 100%; max-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.kit-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .88rem; padding: 10px 12px; border-bottom: 1.5px solid var(--line); }
.kit-table td { padding: 12px; border-bottom: 1px solid var(--line); }
.kit-table .num { text-align: right; white-space: nowrap; }
.specs-hint { color: var(--muted); font-size: .92rem; margin-top: -4px; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px 40px; }
.specs-title { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; letter-spacing: 0; margin-bottom: 8px; }
.specs dl { margin: 0; }
.specs dl div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .95rem; }
.specs dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .specs-grid { grid-template-columns: 1fr; } }
.grid-compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ------------------------------------------------ services, business, contacts */
.services-page { display: grid; }
.service { display: grid; grid-template-columns: 1fr 260px; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.service:first-child { border-top: 1px solid var(--line); }
.service p { color: var(--muted); margin: 0; max-width: 64ch; }
.service-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.service-price { font-weight: 600; color: var(--ink); margin: 0; }
@media (max-width: 700px) { .service { grid-template-columns: 1fr; } }

.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.biz { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.biz-media { display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: var(--r-md); }
.biz-media img { max-height: 150px; width: auto; object-fit: contain; }
.biz-body p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .biz-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .biz { grid-template-columns: 1fr; } .biz-media img { max-height: 120px; } }

.contacts { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 26px; }
.contact-item p { margin: 0 0 4px; }
.contact-big { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--ink); text-decoration: none; }
.contact-big:hover { color: var(--navy); }
.contact-form-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.map { margin-top: 40px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 28px; }
.prose p { color: var(--text); }

.notfound { text-align: left; }
.notfound-code { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; margin: 0 0 12px; color: var(--orange); }

/* ------------------------------------------------ footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 56px 0 24px; font-size: .96rem; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: auto; width: 100%; max-width: 280px; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer-title { color: var(--white); font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-phone { font-weight: 600; font-size: 1.05rem; }
.social-list { display: flex !important; gap: 10px !important; margin-top: 14px; }
.social-list a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.08); }
.social-list a:hover { background: rgba(255,255,255,.16); }
.social-list-dark { list-style: none; }
.social-list-dark a { background: var(--frost); color: var(--navy); }
.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,.12); font-size: .86rem; color: rgba(255,255,255,.55); }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ mobile bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 46px; padding: 0 10px; font-size: .95rem; }
  .mobile-bar .btn:only-child { grid-column: 1 / -1; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}
