/* КУТИК — стилі сайту. Кольори й шрифти з бренд-бука. */
:root {
  --graphite: #16181D;
  --mandarin: #FF5B1A;
  --mandarin-hover: #E84E10;
  --brick: #C2410C;
  --grey: #5C616B;
  --light: #F1F2F0;
  --line: #D9DBD6;
  --white: #FFFFFF;
  --ok: #1E7A46;
  --err: #B42318;
  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1320px;
  --display: 'Unbounded', system-ui, sans-serif;
  --text: 'Golos Text', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--graphite); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brick); }
a:hover { color: var(--graphite); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, h2 { font-family: var(--display); letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mandarin); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6vw, 96px); }
.section--light { background: var(--light); }
.section--dark { background: var(--graphite); color: var(--white); }
.section--accent { background: var(--mandarin); color: var(--graphite); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; max-width: 38em; }
.muted { color: var(--grey); }
.small { font-size: 15px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 26px; border: 2px solid transparent; font: 700 17px/1.2 var(--text); text-decoration: none; cursor: pointer; text-align: center; }
.btn--primary { background: var(--mandarin); color: var(--graphite); }
.btn--primary:hover { background: var(--mandarin-hover); color: var(--graphite); }
.btn--dark { background: var(--graphite); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover { background: rgba(127, 127, 127, 0.12); color: inherit; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 9px 16px; border: 2px solid var(--graphite); background: var(--white); color: var(--graphite); font: 600 15px var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--graphite); color: var(--white); }

/* Шапка */
.topbar { background: var(--graphite); color: var(--white); font-size: 14px; text-align: center; padding: 9px var(--gutter); }
.header { border-bottom: 2px solid var(--graphite); background: var(--white); position: sticky; top: 0; z-index: 20; }
.header__in { display: flex; align-items: center; gap: 12px 28px; min-height: 72px; flex-wrap: nowrap; }
.logo { display: block; margin-left: -14px; }
.logo img { height: 70px; width: auto; }
.logo .logo--short { display: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; flex: 1 1 auto; min-width: 0; }
.nav a { color: var(--graphite); text-decoration: none; font-weight: 500; padding: 10px 0; }
.nav a:hover { color: var(--brick); }
.header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__phone { color: var(--graphite); font-weight: 700; text-decoration: none; padding: 10px 6px; white-space: nowrap; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--graphite); text-decoration: none; position: relative; }
.icon-btn:hover { color: var(--brick); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--mandarin); color: var(--graphite); font: 700 12px/20px var(--text); text-align: center; }
.cart-count[hidden] { display: none; }
@media (max-width: 860px) {
  .nav { order: 3; flex-basis: 100%; gap: 0 18px; font-size: 15px; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .header__phone { display: none; }
  .logo img { height: 56px; }
  .logo .logo--full { display: none; }
  .logo .logo--short { display: block; }
  .header__in { min-height: 60px; gap: 0 12px; flex-wrap: wrap; }
}

/* Перший екран */
.hero { background: var(--graphite); color: var(--white); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.hero__text { padding: clamp(40px, 6vw, 88px) var(--gutter); display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 78px); line-height: 1.03; letter-spacing: -0.03em; }
.hero h1 span { color: var(--mandarin); }
.hero .lead { color: #E4E5E8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 0; margin: 0; list-style: none; color: #E4E5E8; font-size: 16px; }
.hero__art { position: relative; min-height: 460px; overflow: hidden; background: #14151A; }
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__art .hero__new { clip-path: polygon(0 0, 52% 0, 0 78%); }
.hero__fold { position: absolute; inset: 0; background: var(--mandarin); clip-path: polygon(52% 0, 74% 40%, 0 78%); }
.hero__badge { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); background: var(--white); color: var(--graphite); padding: 16px 20px; font-size: 15px; line-height: 1.35; }
.hero__badge strong { display: block; font: 700 22px var(--display); }

/* Картки товарів */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 28px; }
.card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--graphite); background: var(--white); color: var(--graphite); text-decoration: none; }
.card:hover { color: var(--graphite); }
.card:hover .card__cta { background: #000; }
.card__img { aspect-ratio: 4 / 3; background: var(--white); clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.fold { position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: var(--mandarin); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; border-top: 2px solid var(--graphite); }
.card__tag { font-size: 14px; font-weight: 600; color: var(--grey); }
.card__size { color: var(--grey); font-size: 16px; }
.card__colors { font-size: 14px; color: var(--grey); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price strong { font: 800 28px var(--display); letter-spacing: -0.02em; }
.price span { font-weight: 600; }
.card__price { margin-top: auto; padding-top: 8px; }
.card__cta { margin-top: 6px; background: var(--graphite); color: var(--white); text-align: center; font-weight: 700; padding: 14px 16px; }
.skeleton { min-height: 420px; border: 2px dashed var(--line); }

/* Калькулятор */
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.calc__form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field input, .field select, .field textarea { min-height: 52px; border: 1.5px solid #8A8F98; background: var(--white); padding: 10px 14px; font-size: 18px; }
.field textarea { min-height: 96px; resize: vertical; font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border: 2px solid var(--graphite); box-shadow: 0 0 0 4px rgba(255, 91, 26, 0.35); }
.field--error input, .field--error select { border: 2px solid var(--err); }
.field__error { color: var(--err); font-size: 14px; }
.result { background: var(--graphite); color: var(--white); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.result__count { font: 800 clamp(38px, 4.4vw, 58px)/1.05 var(--display); letter-spacing: -0.03em; color: var(--mandarin); }
.result__total { font-size: 19px; font-weight: 600; }
.result__how { font-size: 15px; color: #E4E5E8; }

/* Кроки, підготовка, FAQ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.step { border-top: 6px solid var(--graphite); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.step__num { font: 800 44px var(--display); }
.prep { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.prep__card { border: 2px solid var(--graphite); background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.prep__card--no { background: var(--graphite); color: var(--white); }
.prep ul, .list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 4vw, 64px); }
.faq__list { display: flex; flex-direction: column; gap: 22px; }
.faq__list strong { display: block; font-size: 19px; margin-bottom: 4px; }

/* Сторінка товару */
.crumbs { font-size: 15px; padding-top: 18px; color: var(--grey); }
.crumbs a { color: var(--grey); }
.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 56px); padding-block: 24px 56px; align-items: start; }
.gallery { position: relative; min-width: 0; }
.gallery__main { aspect-ratio: 1; background: var(--white); border: 2px solid var(--graphite); clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .fold { width: 64px; height: 64px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid var(--line); background: var(--white); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--graphite); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.buy h1 { font-weight: 700; font-size: clamp(28px, 3vw, 40px); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 12px 4px 4px; border: 2px solid var(--line); background: var(--white); cursor: pointer; font: 600 14px var(--text); text-align: left; }
.variant img { width: 40px; height: 40px; object-fit: cover; }
.variant[aria-pressed="true"] { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); }
.stock { font-weight: 600; color: var(--ok); }
.stock--warn { color: var(--err); }
.qty { display: flex; align-items: stretch; border: 2px solid var(--graphite); width: max-content; }
.qty button { width: 48px; border: 0; background: var(--white); font-size: 22px; cursor: pointer; }
.qty input { width: 76px; border: 0; border-inline: 2px solid var(--graphite); text-align: center; font: 700 20px var(--text); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.box { background: var(--light); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.specs { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 45%; font-weight: 500; color: var(--grey); }
.video { aspect-ratio: 16 / 9; background: #000; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }
.video--portrait { aspect-ratio: 9 / 16; max-width: 360px; }
.notice { padding: 14px 16px; border-left: 0; background: var(--light); font-size: 15px; }
.notice--ok { background: #E7F3EC; color: var(--ok); font-weight: 600; }
.notice--err { background: #FBEAE8; color: var(--err); font-weight: 600; }

/* Кошик і оформлення */
.checkout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 56px); padding-block: 24px 64px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--line); }
.cart-item__top { display: flex; justify-content: space-between; gap: 10px; }
.cart-item__name { font-weight: 700; }
.cart-item__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--brick); text-decoration: underline; cursor: pointer; font-size: 15px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; padding-top: 8px; }
.total strong { font: 800 30px var(--display); }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid #8A8F98; cursor: pointer; }
.radio input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--graphite); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--graphite); }
.hp { position: absolute; left: -9999px; }

/* Сповіщення «Додано в кошик» */
.toast { position: fixed; right: 16px; top: 132px; z-index: 60; width: min(380px, calc(100vw - 32px)); background: var(--white); color: var(--graphite); border: 2px solid var(--graphite); box-shadow: 0 12px 32px rgba(22, 24, 29, 0.22); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.toast__row { display: grid; grid-template-columns: 56px 1fr 44px; gap: 12px; align-items: start; }
.toast__row img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line); }
.toast__title { font-weight: 700; color: var(--ok); }
.toast__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast__actions .btn { min-height: 46px; padding: 10px 12px; font-size: 15px; }
@media (max-width: 700px) { .toast { top: auto; bottom: 84px; right: 16px; } }
.cart-count.bump { animation: bump 0.45s ease; }
@keyframes bump { 30% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* Кошик-панель */
.no-scroll { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(22, 24, 29, 0.55); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 55; width: min(440px, 100vw); background: var(--white); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.2s ease; }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 20px; border-bottom: 2px solid var(--graphite); }
.drawer__head h2 { font-size: 22px; }
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 18px 20px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer__foot:empty { display: none; }
.btn.is-disabled { opacity: 0.5; pointer-events: none; }
.qty--sm button { width: 40px; font-size: 20px; }
.qty--sm input { width: 56px; font-size: 17px; }
.cart-item__name { color: var(--graphite); font-weight: 700; text-decoration: none; }
.cart-item__name:hover { color: var(--brick); }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } .cart-count.bump { animation: none; } }

/* Оформлення по кроках */
.co-step { border: 0; margin: 0; padding: 0 0 26px; display: flex; flex-direction: column; gap: 14px; }
.co-step + .co-step { padding-top: 26px; border-top: 1px solid var(--line); }
.co-step__title { display: flex; align-items: center; gap: 12px; font: 700 22px/1.2 var(--display); padding: 0; margin-bottom: 4px; }
.co-step__num { flex: 0 0 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--graphite); color: var(--white); font-size: 17px; }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid #8A8F98; background: var(--white); cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--graphite); }
.opt:has(input:checked) { border: 2px solid var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); }
.opt:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.opt__title { font-weight: 700; display: block; }
.opt__note { font-size: 14px; color: var(--grey); display: block; margin-top: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--graphite); font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--graphite); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--mandarin); outline-offset: 2px; }
.summary { border: 2px solid var(--graphite); padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.summary__rows { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 900px) { .summary { position: static; } .checkout > aside { order: -1; } }
.done-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }

/* Підказки міст і відділень */
.combo { position: relative; }
.combo__list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px 0; list-style: none; background: var(--white); border: 2px solid var(--graphite); max-height: 300px; overflow-y: auto; box-shadow: 0 10px 24px rgba(22, 24, 29, 0.18); }
.combo__list li { padding: 10px 14px; font-size: 15px; line-height: 1.35; cursor: pointer; }
.combo__list li:hover, .combo__list li[aria-selected="true"] { background: var(--light); }

/* Фото від покупців */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.reviews figure { margin: 0; border: 2px solid var(--graphite); background: var(--white); }
.reviews img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.reviews figcaption { padding: 10px 12px; font-size: 14px; color: var(--grey); }

/* Текстові сторінки */
.doc { max-width: 820px; padding-block: 40px 80px; }
.doc h1 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 20px; }
.doc h2 { font-size: 24px; margin: 32px 0 12px; }
.doc p, .doc li { margin-bottom: 10px; }

/* Підвал */
.footer { background: var(--graphite); color: var(--white); padding-block: 36px; font-size: 15px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer img { height: 64px; width: auto; margin-left: -12px; }
.footer a { color: var(--white); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__contact { display: flex; flex-direction: column; gap: 6px; }
.footer__msg { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 17px; }
.footer__msg .icon-btn { color: var(--white); margin-left: -10px; margin-right: 6px; }
.footer__msg .icon-btn:hover { color: var(--mandarin); }
.footer__msg [data-messenger] { white-space: nowrap; }

/* Нижня панель на телефоні */
.mbar { display: none; }
@media (max-width: 700px) {
  .mbar { display: flex; position: sticky; bottom: 0; z-index: 15; gap: 12px; align-items: center; padding: 10px 16px; background: var(--white); border-top: 2px solid var(--graphite); }
  .mbar__sum { display: flex; flex-direction: column; font-size: 13px; color: var(--grey); }
  .mbar__sum strong { font: 700 20px var(--display); color: var(--graphite); white-space: nowrap; }
  .mbar .btn { flex: 1 1 auto; }
}
