/* ОконФорт shop: home page blocks (hero slider, directions, price tables, quiz...) and direction pages. */
.h-main { padding-bottom: 0; }
.h-sec { padding: 3rem 0; }
.h-sec--soft { background: #fff; }
.h-sec--navy { background: var(--navy); color: #fff; }
.h-h2 { font-family: var(--display); font-size: clamp(1.35rem, 3.6vw, 2rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 1rem; }
.h-head { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; justify-content: space-between; }
.h-more { font-weight: 750; color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; min-height: 32px; display: inline-flex; align-items: center; }

/* Hero slider */
.h-hero { padding-bottom: 1rem; }
.hs { position: relative; }
.hs__track { display: grid; border-radius: 26px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.hs__slide { grid-area: 1 / 1; position: relative; min-height: 520px; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; color: #fff; background: linear-gradient(135deg, #132238 0%, #1d3a5e 100%); }
.hs__slide.is-on { opacity: 1; visibility: visible; }
.hs__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs__slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(19, 34, 56, .92) 0%, rgba(19, 34, 56, .72) 45%, rgba(19, 34, 56, .1) 100%); pointer-events: none; }
.hs__art { position: absolute; right: 4%; top: 50%; translate: 0 -50%; width: min(46%, 420px); opacity: .95; }
.hs__art svg { width: 100%; height: auto; }
.hs__body { position: relative; z-index: 2; max-width: 600px; padding: 2.4rem 2rem 5rem; }
.hs__tag { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--accent); font-size: .875rem; font-weight: 800; letter-spacing: .04em; margin-bottom: .9rem; }
.hs__title { font-family: var(--display); font-size: clamp(1.55rem, 4.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .8rem; text-wrap: balance; }
.hs__text { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 48ch; }
.hs__price { margin: 0 0 1.2rem; }
.hs__price b { display: block; font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2rem); color: #ffb37a; }
.hs__price small { font-size: .82rem; color: rgba(255, 255, 255, .7); }
.hs__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.hs__cta .btn { color: #fff; }
.hs__cta .btn-primary { color: #fff; }
.hs__ctrl { position: absolute; right: 1.2rem; bottom: 1.1rem; z-index: 3; display: flex; align-items: center; gap: .5rem; padding: .35rem; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 16px rgba(15, 27, 45, .2); }
.hs__nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.hs__nav:hover { background: var(--paper); color: var(--accent-2); }
.hs__nav svg { width: 20px; height: 20px; }
.hs__dots { display: flex; gap: 0; }
.hs__dots button { width: 28px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.hs__dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; translate: -50% -50%; background: #c6d0db; transition: width .3s var(--ease), background .3s; }
.hs__dots button[aria-selected="true"]::after { width: 22px; border-radius: 5px; background: var(--accent); }
.hs__pause { min-height: 40px; padding: 0 .8rem; border: 0; border-left: 1px solid var(--line); background: none; font: 700 .8rem var(--font); color: var(--muted); cursor: pointer; border-radius: 0 999px 999px 0; }
@media (max-width: 759px) {
  .hs__slide { min-height: 560px; }
  .hs__slide::before { background: linear-gradient(0deg, rgba(19, 34, 56, .95) 0%, rgba(19, 34, 56, .85) 55%, rgba(19, 34, 56, .25) 100%); }
  .hs__body { padding: 1.6rem 1.2rem 5.2rem; max-width: none; }
  .hs__art { right: 50%; translate: 50% 0; top: 1.2rem; width: 46%; }
  .hs__ctrl { right: 50%; translate: 50% 0; bottom: .9rem; }
  .hs__text { font-size: .96rem; }
}
@media (prefers-reduced-motion: reduce) { .hs__slide { transition: none; } }

/* Direction cards */
.h-cards { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.h-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.h-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); }
.h-card__img { display: grid; place-items: center; height: 120px; margin-bottom: .3rem; border-radius: var(--radius-sm); background: linear-gradient(180deg, #f7f9fb, #eaf0f5); }
.h-card__img svg { height: 100px; width: auto; }
.h-card b { font-size: 1.1rem; }
.h-card__text { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.h-card__price { margin-top: auto; padding-top: .4rem; font-weight: 800; font-size: 1.05rem; }
.h-card__link { font-size: .85rem; font-weight: 750; color: var(--accent-2); }
.h-all { display: grid; place-content: center; text-align: center; gap: .3rem; padding: 1rem; min-height: 220px; border: 2px dashed rgba(15, 27, 45, .2); border-radius: var(--radius); color: var(--ink); }
.h-all b { font-size: 1.2rem; color: var(--accent-2); }
.h-all span { font-size: .88rem; color: var(--muted); }
.h-all:hover { border-color: var(--accent); }

/* Guarantee numbers */
.h-nums { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .h-nums { grid-template-columns: repeat(4, 1fr); } }
.h-nums div { padding: 1.3rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.h-nums b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 5vw, 2.6rem); color: var(--accent); line-height: 1.1; }
.h-nums span { font-weight: 650; color: var(--muted); font-size: .92rem; }

/* Price table */
.h-pt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: .4rem; }
.h-pt__head { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.h-pt__head b { display: block; font-size: 1.15rem; }
.h-pt__head span { font-size: .84rem; color: var(--muted); }
.h-pt__row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: .5rem .9rem; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.h-pt__row:last-child { border-bottom: 0; }
.h-pt__art svg { width: 70px; height: 62px; }
.h-pt__name b { display: block; }
.h-pt__name span { display: block; font-size: .82rem; color: var(--muted); }
.h-pt__price { font-weight: 800; font-size: 1.15rem; text-align: right; white-space: nowrap; }
.h-pt__price small { display: block; font-size: .875rem; font-weight: 600; color: var(--muted); }
.h-pt__row .btn { grid-column: 1 / -1; min-height: 44px; }
@media (min-width: 760px) { .h-pt__row { grid-template-columns: 80px minmax(0, 1fr) 160px 200px; } .h-pt__row .btn { grid-column: auto; } .h-pt__art svg { width: 80px; height: 68px; } }

/* Colours */
.h-swatches { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin-bottom: .5rem; }
.h-sw { display: grid; gap: .1rem; padding: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.h-sw i { display: block; height: 64px; border-radius: 12px; border: 1px solid rgba(15, 27, 45, .15); margin-bottom: .5rem; }
.h-sw b { font-size: .95rem; }
.h-sw span { font-size: .8rem; color: var(--muted); }
#colors .btn { margin-top: .8rem; }

/* Why us */
.h-why { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.h-why div { padding: 1.1rem 1.1rem 1.1rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); }
.h-why b { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.h-why span { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.h-why a { color: var(--accent-2); text-decoration: underline; }

/* Works */
.h-works { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.h-work { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.h-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.h-work figcaption { padding: .8rem 1rem 1rem; }
.h-work b { display: block; }
.h-work em { display: block; margin-top: .35rem; font-style: normal; font-size: .82rem; font-weight: 700; color: var(--accent-2); }
.h-work span { font-size: .88rem; color: var(--muted); }

/* Steps */
.h-steps { display: grid; gap: .7rem; padding: 0; margin: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); counter-reset: none; }
.h-steps li { position: relative; padding: 1rem 1rem 1rem 3.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.h-sec--soft .h-steps li { background: var(--paper); }
.h-steps i { position: absolute; left: .9rem; top: 1rem; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 .9rem var(--font); font-style: normal; display: grid; place-items: center; }
.h-steps b { display: block; line-height: 1.25; margin-bottom: .2rem; }
.h-steps span { font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* Accessory tiles */
.h-tiles { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .h-tiles { grid-template-columns: repeat(3, 1fr); } }
.h-tile { display: grid; gap: .2rem; padding: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s var(--ease), border-color .25s; }
.h-tile:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.h-tile > span { display: grid; place-items: center; height: 110px; border-radius: var(--radius-sm); background: linear-gradient(180deg, #f7f9fb, #eaf0f5); margin-bottom: .4rem; }
.h-tile svg { height: 96px; width: auto; }
.h-tile b { line-height: 1.25; }
.h-tile small { color: var(--muted); font-size: .875rem; }

/* Comparison */
.h-vs .s-cmptable td, .h-vs .s-cmptable th { text-align: left; min-width: 180px; font-weight: 600; font-size: .9rem; }
.h-vs .s-cmptable th[scope="row"] { color: var(--ink); font-weight: 800; }
.h-vs .s-cmptable thead th { font-weight: 800; }
.h-vs .is-us { background: #fff6ee; }
.h-vs thead .is-us { color: var(--accent-2); }

/* Quiz */
.h-quiz { max-width: 860px; padding: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.h-quiz__bar { height: 6px; border-radius: 3px; background: #e3e9ef; margin-bottom: .9rem; overflow: hidden; }
.h-quiz__bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .35s var(--ease); }
.h-quiz__k { margin: 0 0 .3rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.h-quiz h3 { margin: 0 0 1rem; font-size: 1.3rem; line-height: 1.25; }
.h-quiz__opts { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.h-quiz__opts button { min-height: 52px; padding: .6rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font: 700 1rem var(--font); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.h-quiz__opts button:hover { border-color: var(--accent); background: #fff1e6; }
.h-quiz__back { margin-top: .8rem; border: 0; background: none; color: var(--muted); font: 650 .9rem var(--font); text-decoration: underline; cursor: pointer; min-height: 40px; }
.h-quiz__cards { display: grid; gap: .8rem; margin: .6rem 0 .6rem; }
@media (min-width: 700px) { .h-quiz__cards { grid-template-columns: 1fr 1fr; } }
.h-rec { display: flex; flex-direction: column; gap: .4rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.h-rec:first-child { border-color: var(--accent); background: #fff6ee; }
.h-rec h3 { margin: 0; font-size: 1.2rem; }
.h-rec h3 a { color: var(--ink); }
.h-rec p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Lead + contacts */
.h-lead { display: grid; gap: 1.6rem; padding: 0; }
@media (min-width: 900px) { .h-lead { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; } }
.h-lead__text { color: rgba(255, 255, 255, .8); max-width: 46ch; margin: 0 0 1rem; }
.h-contacts { display: grid; gap: .8rem; margin: 1.2rem 0 0; }
.h-contacts div { padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.h-contacts dt { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.h-contacts dd { margin: 0; font-weight: 800; font-size: 1.1rem; }
.h-contacts a { color: #fff; }
.h-form { margin-top: 0; padding: 1.2rem; background: #fff; color: var(--ink); border-radius: var(--radius); }
.h-form .s-ok { margin: 0; }
.d-lead { border-radius: var(--radius); padding: 1.6rem 1.2rem; }
.d-lead.s-block { margin-top: 2.6rem; }
.h-map { height: 300px; background: #dfe6ec; }
.h-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 859px) { .h-sec { padding: 2.2rem 0; } }
.h-works .s-empty { grid-column: 1 / -1; }
@media (min-width: 900px) { .h-steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { #price-tabs { flex-wrap: wrap; overflow: visible; } }
.h-quiz { max-width: none; }
.s-card__img--scheme svg { padding: 1.5rem .5rem .3rem; }
@media (max-width: 639px) { .s-card__img { aspect-ratio: 16 / 9; } }
