/* Phami — пивоварне обладнання. Концепт: «паспорт обладнання у шоурумі» — чорний логотипу, нержавійка, бурштин пива. */
:root {
  --ink: #17161a;        /* чорний логотипу */
  --bg: #f1f2f0;         /* світла «нержавійка» */
  --paper: #ffffff;
  --line: #d6d9d7;
  --steel: #7b8187;
  --muted: #595d61;
  --amber: #d99a2b;      /* пиво */
  --amber-deep: #a9731a;
  --amber-soft: #fbf1dc;
  --dark: #1d1b18;       /* темні секції */
  --dark-2: #2b2824;
  --on-dark: #efece6;
  --on-dark-muted: #b8b2a8;
  --display: 'Bitter', Georgia, 'Times New Roman', serif;
  --body: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;
  --script: 'Kaushan Script', 'Brush Script MT', cursive;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 6px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--muted); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-muted); }
.section--dark a { color: var(--amber); }
.section--paper { background: var(--paper); }
.eyebrow { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); font-weight: 600; margin-bottom: .6em; }
.section--dark .eyebrow { color: var(--amber); }
.num { font-variant-numeric: tabular-nums; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body); line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--dark .btn--ghost, .hero .btn--ghost, .summary .btn--ghost { color: #fff; border-color: #fff; }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .summary .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: .5em 1em; font-size: .9rem; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__img { height: 46px; width: auto; flex: none; display: block; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { display: none; }
.logo__tag { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: .6em .8em; border-radius: var(--radius); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { color: var(--amber-deep); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: var(--radius); width: 44px; height: 40px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ''; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); top: 50%; transform: translateY(-50%); transition: transform .2s; }
.burger span::before { top: -7px; } .burger span::after { top: 9px; }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 2px; }
  .nav.is-open { display: flex; }
  .nav a { padding: .8em .6em; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* Герой */
.hero { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { color: var(--on-dark-muted); font-size: 1.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--dark-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.hero__legacy { font-size: .85rem; color: var(--on-dark-muted); margin-top: 1.4em; }
@media (max-width: 760px) { .hero__in { grid-template-columns: minmax(0, 1fr); } }

/* Цифри */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stat { padding: 22px var(--gutter) 22px 0; border-right: 1px solid var(--line); padding-left: 20px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1; color: var(--ink); }
.stat__n small { font-size: .5em; font-weight: 600; color: var(--amber-deep); margin-left: .15em; }
.stat__l { font-size: .9rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line); } .stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; } .stat:nth-child(even) { padding-left: 16px; } .stat:nth-last-child(-n+2) { border-bottom: 0; } }

/* Модельний ряд (шкала об'ємів) */
.range { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.range__item { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.range__bar { background: linear-gradient(180deg, #e9ebe9, #c9cdcc); border: 1px solid #b7bcbb; border-radius: 4px 4px 2px 2px; position: relative; width: 100%; transition: background .15s; }
.range__bar::after { content: ''; position: absolute; inset: 6px 6px auto; height: 3px; background: rgba(255,255,255,.7); border-radius: 2px; }
.range__item:hover .range__bar { background: linear-gradient(180deg, var(--amber-soft), var(--amber)); border-color: var(--amber-deep); }
.range__vol { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.range__vol small { font-size: .6em; font-weight: 600; color: var(--muted); }
.range__meta { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.range__price { font-size: .9rem; font-weight: 600; color: var(--amber-deep); }
@media (max-width: 700px) { .range { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .range__vol { font-size: 1.1rem; } .range__meta { font-size: .72rem; } .range__price { font-size: .78rem; } }

/* Картки/сітки */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card h3 { margin-bottom: .35em; }
.card p { font-size: .95rem; color: var(--muted); margin-bottom: .6em; }
.card .from { font-weight: 600; color: var(--ink); font-size: .95rem; }

/* Процес (послідовність етапів — порядок реальний) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.step { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 800; color: var(--amber-deep); font-size: 1.3rem; line-height: 1.2; }
.step h3 { font-size: 1.1rem; margin-bottom: .25em; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 700px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Порівняння нагріву */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare__col { background: var(--dark-2); border-radius: var(--radius); padding: 24px; border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.compare__col--hl { border-color: var(--amber); box-shadow: inset 0 3px 0 var(--amber); }
.compare ul { padding-left: 1.2em; margin: .6em 0 0; color: var(--on-dark-muted); font-size: .95rem; }
.compare li { margin-bottom: .3em; }
.badge { display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .3em .7em; border-radius: 3px; background: var(--amber); color: var(--ink); font-weight: 700; margin-bottom: .8em; }
@media (max-width: 700px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* Клієнти */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.logos figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.logos img { width: 90px; height: 90px; object-fit: contain; }
.logos figcaption { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.25; }

/* Таблиці */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--bg); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.model { font-weight: 600; white-space: nowrap; }
.price-block { margin-bottom: 36px; }
.price-block h3 { margin-bottom: .5em; }
.price-note { font-size: .9rem; color: var(--muted); }

/* Специфікації варильного порядку */
.bh { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.bh:first-of-type { border-top: 0; }
.bh__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.bh__vol { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1; }
.bh__vol small { font-size: .45em; font-weight: 600; color: var(--muted); }
.bh__tag { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); font-weight: 600; }
.spec { display: grid; grid-template-columns: 1fr auto; gap: 0; font-size: .95rem; margin: 0; }
.spec dt { color: var(--muted); padding: 7px 0; border-bottom: 1px dashed var(--line); }
.spec dd { margin: 0; padding: 7px 0 7px 16px; border-bottom: 1px dashed var(--line); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.kit { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; min-width: 0; }
.kit__n { font-family: var(--display); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.kit__l { font-size: .75rem; color: var(--muted); }
.bh__prices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pricechip { background: var(--amber-soft); border: 1px solid #ecd9ad; border-radius: 4px; padding: 8px 12px; font-size: .9rem; }
.pricechip b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .bh { grid-template-columns: minmax(0, 1fr); } }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.subnav a { display: inline-block; padding: .45em .9em; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: .9rem; }
.subnav a:hover { border-color: var(--ink); }

/* Конфігуратор */
.config { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.config__form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field > span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field select, .field input[type="number"], .field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { font: inherit; padding: .6em .8em; border: 1px solid var(--steel); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.field--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: .5em .9em; border: 1px solid var(--steel); border-radius: var(--radius); background: var(--paper); font-weight: 500; font-size: .95rem; color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.summary { position: sticky; top: 88px; background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 22px; min-width: 0; }
.summary h3 { color: #fff; margin-bottom: .6em; }
.summary__total { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--amber); line-height: 1; font-variant-numeric: tabular-nums; }
.summary__sub { font-size: .85rem; color: var(--on-dark-muted); margin: 6px 0 16px; }
.summary ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: .9rem; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.summary li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__cap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.summary__cap div { background: var(--dark-2); border-radius: 4px; padding: 10px; }
.summary__cap b { display: block; font-size: 1.2rem; font-family: var(--display); color: #fff; }
.summary__cap small { color: var(--on-dark-muted); font-size: .75rem; }
.summary .btn { width: 100%; justify-content: center; }
.summary .note { font-size: .78rem; color: var(--on-dark-muted); margin: 12px 0 0; }
@media (max-width: 820px) { .config { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }

/* Проєкти */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.chip { font: inherit; font-size: .9rem; padding: .45em .9em; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters__count { margin-left: auto; font-size: .9rem; color: var(--muted); }
.countries { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; color: var(--muted); padding: 0; margin: 0 0 24px; list-style: none; }
.countries li b { color: var(--ink); }

/* Контакти */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.contact__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact__phone { font-family: var(--display); font-size: 1.7rem; font-weight: 800; text-decoration: none; color: var(--ink); display: inline-block; margin: .2em 0; }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.contact dl { margin: 0; }
.contact dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.contact dd { margin: 2px 0 0; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.form__ok { background: var(--amber-soft); border: 1px solid #ecd9ad; padding: 16px; border-radius: var(--radius); }
.form__ok pre { white-space: pre-wrap; font: inherit; font-size: .9rem; margin: .5em 0 1em; }
@media (max-width: 820px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: .78rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* CTA-смуга */
.cta { background: var(--amber); color: var(--ink); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding-block: 36px; }
.cta h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); flex: 1 1 320px; }
.cta p { margin: 0; flex: 1 1 280px; color: #4a3610; }
.cta .btn--ghost { color: var(--ink); border-color: var(--ink); }

/* Підвал */
.footer { background: var(--dark); color: var(--on-dark-muted); font-size: .9rem; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
.footer h4 { color: #fff; font-family: var(--body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .4em; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer__logo .logo { color: #fff; }
.footer__logo .logo__tag { color: var(--on-dark-muted); }
.footer .logo__img { filter: invert(1) brightness(1.05); height: 52px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8rem; }
@media (max-width: 760px) { .footer__in { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ЦКТ: лендінг */
/* Рамка героя повторює пропорції кадру (рендер, фото чи відео будь-якого формату), без смуг по боках */
.hero__photo--sq { aspect-ratio: auto; width: fit-content; max-width: 100%; margin-inline: auto; background: transparent; }
.hero__photo--sq img, .hero__photo--sq video { width: auto; height: auto; max-width: 100%; max-height: 72vh; object-fit: contain; display: block; }
.models td b { font-variant-numeric: tabular-nums; }
.models td:last-child { white-space: nowrap; text-align: right; }
.spec--dark dt { color: var(--on-dark-muted); border-color: rgba(255,255,255,.14); }
.spec--dark dd { color: #fff; border-color: rgba(255,255,255,.14); text-align: left; font-weight: 500; }
.spec--dark { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.renders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.renders figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); min-width: 0; }
.renders img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #e6e9ec; }
.renders figcaption { padding: 10px 12px; font-size: .82rem; color: var(--on-dark-muted); }
.equip { columns: 2; column-gap: 32px; padding-left: 1.2em; margin: 0; color: var(--on-dark); font-size: .95rem; }
.equip li { margin-bottom: .4em; break-inside: avoid; }
@media (max-width: 640px) { .equip { columns: 1; } }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: .95rem; color: var(--ink); font-weight: 400 !important; cursor: pointer; }
.check input { margin-top: .3em; }
.plan { background: var(--amber-soft); border: 1px solid #ecd9ad; border-radius: var(--radius); padding: 14px; font-size: .95rem; }
.plan input { width: 100%; min-width: 0; background: var(--paper); color: var(--ink); }
.summary__cap--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber-deep); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin: 0 0 14px; }

/* Розріз ЦКТ (GSAP ScrollTrigger) */
.cutaway { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 8px; }
.cutaway__stage { min-width: 0; }
.cut-stack { display: grid; perspective: 1500px; max-height: calc(100vh - 160px); aspect-ratio: 600 / 640; max-width: 100%; margin-inline: auto; }
.cut-svg { grid-area: 1 / 1; width: 100%; height: 100%; display: block; }
.cut-layer { transform-origin: 23.5% 50%; will-change: transform; backface-visibility: visible; }
.cut-overlay { pointer-events: none; }
/* Глянець на фото героя */
.gloss { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; background: linear-gradient(105deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 62%); will-change: transform; }
/* Біжуча стрічка логотипів */
.logos.is-marquee { display: flex; flex-wrap: nowrap; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos.is-marquee .track { display: flex; gap: 14px; flex: none; }
.logos.is-marquee figure { width: 132px; flex: none; }
/* Підйом карток при наведенні */
.card, .kit, .pricechip, .compare__col { transition: transform .25s ease, box-shadow .25s ease; }
body.hover-lift .card:hover, body.hover-lift .kit:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23,22,26,.10); }
.btn--primary { will-change: transform; }
.layers { list-style: none; margin: 0; padding: 0; counter-reset: layer; display: grid; gap: 6px; }
.layers li { counter-increment: layer; position: relative; padding: 12px 16px 12px 52px; border-left: 3px solid rgba(255,255,255,.12); opacity: .45; transition: opacity .35s, border-color .35s, background .35s; border-radius: 0 var(--radius) var(--radius) 0; }
.layers li::before { content: counter(layer); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--on-dark-muted); }
.layers li.is-active { opacity: 1; border-color: var(--amber); background: rgba(255,255,255,.04); }
.layers li.is-active::before { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.layers b { display: block; font-family: var(--display); font-size: 1.05rem; color: #fff; margin-bottom: 2px; }
.layers span { font-size: .9rem; color: var(--on-dark-muted); line-height: 1.45; }
@media (max-width: 819px) { .cutaway { grid-template-columns: minmax(0, 1fr); gap: 16px; } .cutaway__svg { max-height: 60vh; } }

/* Сторінкова шапка */
.pagehead { padding-block: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 32px); }
.pagehead h1 { margin-bottom: .3em; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1em; }
.breadcrumbs a { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.equip--light { color: var(--ink); }
.renders--light figure { background: var(--paper); border: 1px solid var(--line); }
.renders--light figcaption { color: var(--muted); }

/* Накладка розрізу (лінія зрізу + номери) і шари-картинки, завантажені через адмінку */
.cut-stack { position: relative; }
.cut-marks { grid-area: 1 / 1; position: relative; pointer-events: none; }
.beam-div { position: absolute; top: 8%; bottom: 2%; width: 3px; margin-left: -1.5px; background: #ffd36b; box-shadow: 0 0 10px #ffcc33, 0 0 2px #fff; border-radius: 2px; transform-origin: top; transform: scaleY(0); opacity: 0; }
.cut-num { position: absolute; top: 3.5%; margin-left: 7px; font: 700 .85rem/1 'Golos Text', Arial, sans-serif; color: #efece6; opacity: 0; }
.cut-stack img.cut-base, .cut-stack img.cut-layer { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.hero__photo video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Проєкт CCT-10000: повноекранна секція з рендером цеху */
.feature { position: relative; color: #fff; background: var(--dark) url(img/cct10k-hall-1200.jpg?v=mv5tfda7) center / cover no-repeat; min-height: 72vh; display: flex; align-items: center; isolation: isolate; }
@media (min-width: 900px) { .feature { background-image: url(img/cct10k-hall.jpg?v=mv5tfda7); } }
.feature::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,14,18,.86) 0%, rgba(12,14,18,.62) 42%, rgba(12,14,18,.08) 100%); z-index: -1; }
.feature__in { padding-block: clamp(48px, 8vw, 110px); }
.feature__card { max-width: 580px; }
.feature h2 { color: #fff; }
.feature p { color: #d9d6cf; }
.feature .eyebrow { color: var(--amber); }
.feature__specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 22px 0 26px; }
.feature__specs div { border-left: 2px solid var(--amber); padding-left: 12px; }
.feature__specs b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.feature__specs small { color: #b8b2a8; font-size: .8rem; }
.feature__credit { position: absolute; right: var(--gutter); bottom: 10px; font-size: .72rem; color: rgba(255,255,255,.55); }
@media (max-width: 700px) { .feature { min-height: 0; background-position: 62% center; } .feature::before { background: linear-gradient(180deg, rgba(12,14,18,.9) 0%, rgba(12,14,18,.75) 100%); } }

/* Режим завантажених шарів: сцена фіксованої висоти, ширина з пропорцій кадру */
.cut-stack.is-photo { display: block; position: relative; height: min(calc(100vh - 170px), 760px); width: auto; max-width: 100%; aspect-ratio: 600 / 1180; margin-inline: auto; perspective: 1500px; }
.cut-stack.is-photo img.cut-base, .cut-stack.is-photo img.cut-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cut-stack.is-photo .cut-marks { position: absolute; inset: 0; }
.cut-stack.is-photo .cut-layer { transform-origin: 18% 50%; }
@media (max-width: 819px) { .cut-stack.is-photo { height: min(60vh, 520px); } }

/* 3D-перегляд моделі */
.btn3d { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 9px 3px 7px; border: 1.5px solid var(--amber-deep); border-radius: 999px; background: var(--amber-soft); color: var(--ink); font: 600 .78rem/1 var(--body); cursor: pointer; vertical-align: middle; }
.btn3d:hover { background: var(--amber); }
.viewer { width: min(1100px, 96vw); height: min(820px, 92vh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 10px; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer::backdrop { background: rgba(10, 10, 12, .78); }
.viewer__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.viewer__bar b { font-family: var(--display); font-size: 1.05rem; color: #fff; }
.viewer__hint { font-size: .82rem; color: var(--on-dark-muted); margin-right: auto; }
.viewer__bar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.viewer__bar .btn--ghost:hover { background: #fff; color: var(--ink); }
.viewer__stage { min-height: 0; background: radial-gradient(ellipse at 50% 35%, #4a4d55 0%, #26272c 60%, #1b1b1f 100%); display: grid; }
.viewer__stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.viewer__load { margin: auto; color: var(--on-dark-muted); }
.viewer__note { margin: 0; padding: 8px 14px; font-size: .8rem; color: var(--on-dark-muted); min-height: 1.2em; max-width: none; }

[hidden] { display: none !important; }

.feature .btn--ghost { color: #fff; border-color: #fff; margin-left: 8px; } .feature .btn--ghost:hover { background: #fff; color: var(--ink); }
