/* ===== YANDEX SANS DISPLAY (локальные файлы) ===== */
@font-face {
  font-family: 'YS Display';
  src: url('../fonts/YSDisplay-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YS Display';
  src: url('../fonts/YSDisplay-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YS Display';
  src: url('../fonts/YSDisplay-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YS Display';
  src: url('../fonts/YSDisplay-Heavy.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

:root {
  --orange: #F97316;
  --orange-dark: #EA6B06;
  --dark: #111111;
  --text: #1a1a1a;
  --text-muted: #666;
  --bg: #F8F8F8;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'YS Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; color: var(--text); background: var(--bg);
  line-height: 1.6; overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'YS Display', sans-serif; line-height: 1.2; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  font-family: 'YS Display', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
  white-space: nowrap; text-decoration: none;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(249,115,22,.35); }
.btn--dark { background: #1c1c1e; color: #fff; }
.btn--dark:hover { background: #2a2a2e; }
.btn--dark-outline { background: #1c1c1e; color: #fff; }
.btn--sm { padding: 10px 22px; font-size: 13px; }
.btn--lg { padding: 16px 34px; font-size: 15px; }
.btn--icon { width: 50px; height: 50px; padding: 0; justify-content: center; border-radius: 50%; font-size: 18px; flex-shrink: 0; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid #eee; }
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--dark); font-family: 'YS Display', sans-serif; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.logo__icon { width: 22px; height: 22px; }
.logo-accent { color: var(--orange); }
.nav { display: flex; align-items: center; justify-content: center; gap: 24px; }
.nav__link { text-decoration: none; color: #444; font-size: 13px; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav__link:hover { color: var(--dark); }
.header__cta { justify-self: end; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; justify-self: end; }
.burger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 500; width: fit-content; }
.badge--orange { background: var(--orange); color: #fff; }

/* HERO */
.hero { background: #111920; padding: 60px 0 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; padding-bottom: 40px; }
.hero__content { display: flex; flex-direction: column; gap: 8px; }
.hero__bottom { display: flex; flex-direction: column; gap: 20px; }
.hero__title { font-size: clamp(32px, 3.8vw, 52px); color: #fff; font-weight: 800; line-height: 1.1; }
.hero__desc { color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.75; margin-top: 0; }
.btn--hero { padding: 14px 28px; font-size: 14px; border-radius: 12px; width: fit-content; }
.hero__trust { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.65); font-size: 14px; }
.hero__trust strong { color: #fff; }
.hero__avatars { display: flex; }
.avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #111920; margin-left: -10px; }
.avatar-img:first-child { margin-left: 0; }
.avatar-img--logo { object-fit: contain; padding: 5px; background: #fff; }
/* Desktop: content и bottom — в левой колонке, right — в правой */
.hero__content { grid-column: 1; }
.hero__bottom { grid-column: 1; }
.hero__right { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; }
.hero__flags { display: flex; align-items: flex-end; justify-content: flex-end; gap: 6px; overflow: hidden; }
.hero__flag-wrap { display: flex; align-items: flex-end; animation: flagWave 3s ease-in-out infinite; }
.hero__flag-wrap:nth-child(2) { animation-delay: .5s; }
.hero__flag-wrap:nth-child(3) { animation-delay: 1s; }
.hero__flag-wrap:nth-child(4) { animation-delay: 1.5s; }
.hero__flag-wrap:nth-child(5) { animation-delay: 2s; }
.hero__flag-wrap img { height: 320px; width: auto; object-fit: contain; }
@keyframes flagWave { 0%,100%{transform:skewX(-1deg)} 50%{transform:skewX(1deg)} }
/* Hero features — 2x2 grid desktop */
.hero__features-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; padding-top: 24px; margin-top: 4px; }
.feature-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 15px; font-weight: 500; }
.feature-icon { width: 20px; height: 20px; flex-shrink: 0; }
/* BRANDS — white fully-rounded card floating between hero and next section */
.brands-wrap {
  background: linear-gradient(to bottom, #111920 50%, var(--bg) 50%);
  padding: 0;
}
.brands-card { background: var(--white); border-radius: 50px; padding: 28px 40px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.10); }
.brands__track { overflow: hidden; }
.brands__inner { display: flex; align-items: center; gap: 56px; width: max-content; animation: scroll 28s linear infinite; }
.brand-img { height: 34px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(20%); opacity: .9; transition: opacity .2s; }
.brand-img--square { height: 52px; width: 52px; object-fit: contain; }
.brand-img:hover { opacity: 1; filter: none; }
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* CALC */
.calc-section { padding: 0; background: var(--bg); margin-top: 24px; margin-bottom: 80px; }
.calc-card-wrapper {
  position: relative;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(90deg, #ff0080, #ff8c00, #ffff00, #00e676, #40e0d0, #7b2ff7, #ff0080);
  background-size: 300% 100%;
  animation: rgbBorder 3s linear infinite;
}
@keyframes rgbBorder {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}
.calc-card {
  background: #0d1117;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.calc-card--full {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.calc-card--full::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b);
  z-index: 0;
  pointer-events: none;
}
.calc-card--full > * { position: relative; z-index: 2; }
.calc-card--full::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 19px;
  background: #0d1117;
  z-index: 1;
}
.calc-card__gradient { position: absolute; top: -80px; right: -80px; width: 360px; height: 360px; background: radial-gradient(circle,rgba(249,115,22,.22) 0%,transparent 70%); pointer-events: none; z-index: 3 !important; }
.calc-card--full .calc-card__gradient { bottom: -80px; right: -80px; top: auto; background: radial-gradient(circle,rgba(80,180,255,.1) 0%,rgba(249,115,22,.12) 50%,transparent 70%); width: 450px; height: 450px; }
.calc-card__title { color: #fff; font-size: clamp(18px,2.5vw,26px); font-weight: 700; margin-bottom: 8px; position: relative; z-index: 4 !important; }
.calc-card__sub { color: rgba(255,255,255,.55); font-size: 15px; margin-bottom: 28px; position: relative; z-index: 4 !important; }
.calc-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; position: relative; z-index: 4 !important; }
.calc-form--full { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 20px; }
.calc-form--row2 { display: grid; grid-template-columns: 1fr 110px 1fr auto; gap: 16px; align-items: flex-end; position: relative; z-index: 4 !important; margin-top: 0; }
.calc-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 120px; position: relative; z-index: 4 !important; }
.calc-label { color: rgba(255,255,255,.38); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.select-wrap { position: relative; }
.select-wrap::after { content:''; position:absolute; right:14px; top:50%; transform:translateY(-50%); width:16px; height:16px; pointer-events:none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.calc-select { width:100%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.15); border-radius:10px; color:#fff; padding:13px 36px 13px 14px; font-family:'YS Display',sans-serif; font-size:15px; cursor:pointer; appearance:none; outline:none; transition:border-color .2s; }
.calc-select:focus { border-color: var(--orange); }
.calc-select option { background: #0d1117; color: #fff; }
.qty-wrap { display:flex; align-items:center; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius:10px; overflow:hidden; }
.qty-btn { background:none; border:none; color:#fff; width:40px; height:44px; font-size:18px; cursor:pointer; transition:background .2s; }
.qty-btn:hover { background: rgba(255,255,255,.1); }
.qty-input { background:none; border:none; color:#fff; text-align:center; width:50px; font-family:'YS Display',sans-serif; font-size:14px; outline:none; }
.qty-input::-webkit-inner-spin-button,.qty-input::-webkit-outer-spin-button { -webkit-appearance:none; }
.calc-result { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.calc-price { display:flex; align-items:center; gap:10px; }
.price-old { text-decoration:line-through; color:rgba(255,255,255,.35); font-size:14px; }
.price-badge { background:var(--orange); color:#fff; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.price-new { font-size:28px; font-weight:800; color:#fff; }

.section-title { font-size: clamp(22px,2.8vw,34px); font-weight:700; color:var(--dark); margin-bottom:12px; }
.section-sub { color:var(--text-muted); font-size:15px; margin-bottom:16px; line-height:1.65; }

/* WHY */
.why-section { padding: 48px 0; background: #F8F8F8; }
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 16px; }
.why__item { display: flex; flex-direction: column; gap: 7px; }
.why__icon-wrap { width:44px; height:44px; border-radius:12px; background:#ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); display:flex; align-items:center; justify-content:center; margin-bottom:4px; }
.why__item h4 { font-size: 15px; font-weight: 700; }
.why__item p { color: var(--text-muted); font-size: 14px; }
.why__item-text { display: flex; flex-direction: column; gap: 4px; }
.why__visual { position: relative; }
.why__photo-card { position: relative; border-radius: 20px; overflow: hidden; height: 480px; }
.why__photo { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; display: block; }
.why__badge-top { position:absolute; top:12px; left:12px; right:12px; background:white; border-radius:14px; padding:12px 14px; display:flex; align-items:flex-start; gap:10px; box-shadow:0 4px 24px rgba(0,0,0,.12); z-index:2; }
.badge-text-main { font-weight: 600; font-size: 14px; }
.badge-text-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.why__badge-bottom { position:absolute; bottom:12px; left:12px; background:white; border-radius:14px; padding:16px 20px; display:flex; flex-direction:column; gap:4px; box-shadow:0 8px 32px rgba(0,0,0,.15); z-index:2; max-width:200px; }
.stat-num { font-size:32px; font-weight:800; color:var(--orange); line-height:1; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--dark); }
.stat-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* TICKER - static banner image */
.ticker { overflow: hidden; width: 100%; }
.ticker__inner { display: block; width: 100%; }
.ticker__img { width: 100%; height: auto; display: block; }

/* CARD */
.card-white { background: var(--white); border-radius: 24px; padding: 40px; }

/* Spacing between sections — card-based sections get margin, bg-sections get padding */
.types-section,
.print-section,
.design-section,
.fullcalc-section { margin: 16px 0 80px 0; }
.advantages-section { margin: 48px 0; }

/* TYPES */
.types-section { padding: 0; }
.types__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 32px; }
.type-card { display: flex; flex-direction: column; gap: 10px; }
.type-card__img { background:#f5f5f5; border-radius:16px; height:210px; display:flex; align-items:center; justify-content:center; overflow:hidden; padding:12px; margin-bottom:6px; }
.type-card__img img { max-height:100%; width:auto; object-fit:contain; }
.type-card__img--fit { padding: 16px; }
.type-card h4 { font-size: 16px; font-weight: 700; }
.type-card p { font-size: 14px; color: var(--text-muted); flex: 1; }
.type-size { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* SIZE TABLE */
.size-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.size-table-wrap { overflow-x: auto; margin-top: 16px; }
.size-table { width:100%; border-collapse:separate; border-spacing: 0 2px; font-size:14px; }
.size-table th { text-align:left; padding:10px 16px; color:var(--text-muted); font-weight:600; border-bottom:2px solid #eee; }
.size-table td { padding:12px 16px; border-bottom:1px solid #f0f0f0; transition: background 0.2s, color 0.2s; }
.size-table tr:last-child td { border-bottom: none; }
.size-table tbody tr { cursor: pointer; }
.size-table tbody tr:not(.row-highlighted):hover td { background: rgba(249,115,22,0.08); color: var(--orange); border-bottom-color: transparent; }
.size-table tbody tr:not(.row-highlighted):hover td:first-child { border-radius: 8px 0 0 8px; }
.size-table tbody tr:not(.row-highlighted):hover td:last-child { border-radius: 0 8px 8px 0; }
.row-highlighted td { background:var(--orange); color:#fff; font-weight:600; border-bottom: none; }
.row-highlighted td:first-child { border-radius: 8px 0 0 8px; }
.row-highlighted td:last-child { border-radius: 0 8px 8px 0; }
.size-section__visual { display: flex; align-items: center; justify-content: center; }
.size-img { max-width: 100%; height: auto; border-radius: 12px; }

/* CTA BANNER */
.cta-banner { display:flex; align-items:center; justify-content:space-between; gap:20px; background:#F8F8F8; border-radius:14px; padding:24px 28px; margin-top:24px; flex-wrap:wrap; }
.cta-banner strong { font-size:15px; font-weight:700; display:block; }
.cta-banner p { font-size:13px; color:var(--text-muted); margin-top:4px; }

/* PRINT */
.print-section { padding: 0; }
.print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.print-card { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.print-card h4 { font-size: 16px; font-weight: 700; }
.print-card p { font-size: 14px; color: var(--text-muted); }
.print-card__img { background:transparent; border-radius:16px; height:300px; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; gap:12px; padding:16px; margin-bottom:6px; }
.print-card__img img { max-height:100%; width:auto; object-fit:contain; }
.print-second { opacity: .45; }
.print-mirror { transform: none; }
.print-card__img--single { justify-content: center; }

/* CONSTRUCTION */
.construction__inner { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: center; }
.construction__features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.con-feat { display: flex; gap: 10px; align-items: flex-start; }
.con-feat svg { flex-shrink: 0; width: 22px; height: 22px; }
.con-feat svg circle { stroke-width: 2; }
.con-feat svg path { stroke-width: 2.5; }
.con-feat strong { font-size: 15px; font-weight: 700; display: block; margin-bottom: 4px; }
.con-feat p { font-size: 14px; color: var(--text-muted); }
.construction__visual { display: flex; align-items: center; justify-content: center; overflow: visible; }
.construction-img { width: 420px; max-width: 100%; height: auto; object-fit: contain; transform: rotate(-30deg) scale(1.15); transform-origin: center center; }

/* DESIGN */
.design-section { padding: 0; }
.design-section .card-white { overflow: hidden; padding-right: 0; }
.design__inner { display: grid; grid-template-columns: 3fr 2fr; gap: 0; align-items: stretch; }
.design__content { padding: 48px 40px 48px 48px; }
.check-list { list-style:none; display:flex; flex-direction:column; gap:14px; margin:16px 0; }
.check-list li { display:flex; align-items:center; gap:10px; font-size:15px; }
.check-list li::before { content:''; width:20px; height:20px; border-radius:50%; border:2px solid var(--orange); flex-shrink:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10l4 4 6-6' stroke='%23F97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.design__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.design__photo { overflow: hidden; align-self: stretch; border-radius: 0 24px 24px 0; margin: 16px 16px 16px 0; border-radius: 16px; }
.design-img { width:100%; height:100%; min-height: 360px; object-fit:cover; display: block; border-radius: 16px; }

.install__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.install__steps { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.install-step strong { font-size:15px; font-weight:700; display:block; margin-bottom:3px; }
.install-step p { font-size: 14px; color: var(--text-muted); }
.install__video { background:#111; border-radius:16px; display:flex; align-items:center; justify-content:center; min-height:280px; overflow:hidden; position: relative; }
.video-placeholder { position: relative; width: 100%; height: 100%; min-height: 280px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.play-btn { position: relative; z-index: 2; width:64px; height:64px; border-radius:50%; background:var(--orange); color:white; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 8px 28px rgba(249,115,22,.5); transition:transform .2s; border:none; padding:0; flex-shrink:0; }
.play-btn svg { display:block; position:relative; left:1px; }
.play-btn:hover { transform: scale(1.1); }

/* VIDEO MODAL */
.video-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; }
.video-modal.is-open { display: flex; }
.video-modal__inner { position: relative; width: 100%; max-width: 900px; padding: 0 16px; }
.video-modal__close { position: absolute; top: -48px; right: 16px; background: none; border: none; cursor: pointer; padding: 8px; line-height: 1; }
.video-modal video { width: 100%; border-radius: 16px; display: block; max-height: 80vh; background: #000; }

.fullcalc-section { padding: 0; }

/* USECASES */
.usecases-section { padding: 48px 0; background: var(--white); }
.usecases-desc { color:var(--text-muted); font-size:15px; margin-top:8px; line-height:1.65; }
/* WORKS SLIDER */
.works-slider-wrap { position: relative; margin: 32px 0; padding: 0 72px; }
.works-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
.works-track::-webkit-scrollbar { display: none; }
.uc-photo { flex: 0 0 340px; height: 440px; background: #111; border-radius: 20px; overflow: hidden; position: relative; cursor: pointer; scroll-snap-align: start; }

/* Фото-карточки */
.uc-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.uc-photo:hover .uc-img { transform: scale(1.03); }

/* Видео-карточки: видео видно сразу, занимает всю карточку */
.uc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Кнопка Play поверх видео */
.uc-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); transition: background 0.2s; z-index: 2; }
.uc-play svg { filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6)); }
.uc-photo.playing .uc-play { display: none; }
.uc-photo:hover .uc-play { background: rgba(0,0,0,0.15); }

/* Arrow buttons */
.works-btn { position: absolute; top: 50%; transform: translateY(-60%); width: 52px; height: 52px; border-radius: 50%; background: var(--dark); border: none; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; transition: background 0.2s, transform 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.works-btn:hover { background: var(--orange); transform: translateY(-60%) scale(1.08); }
.works-btn--prev { left: 8px; }
.works-btn--next { right: 8px; }
.usecase-tags-label { font-size:11px; font-weight:700; letter-spacing:.08em; color:#aaa; text-align:left; margin-bottom:10px; margin-top:24px; }
.usecase-tags { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-start; margin-top:0; }
.tag { display:inline-block; padding:7px 15px; border-radius:50px; border:1px solid #ddd; font-size:13.5px; color:var(--text-muted); cursor:pointer; transition:all .2s; background:none; font-family:inherit; }
.tag:hover { border-color:var(--orange); color:var(--orange); }

/* ADVANTAGES */
.advantages-section { padding: 0; }
.advantages__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.adv-item { display:flex; align-items:flex-start; gap:16px; padding:20px; background:var(--white); border-radius:16px; }
.adv-icon-img { width:40px; height:40px; flex-shrink:0; object-fit:contain; }
.adv-item strong { font-size:15px; font-weight:700; display:block; margin-bottom:5px; }
.adv-item p { font-size:14px; color:var(--text-muted); }


/* REVIEWS */
.review-wrap { display: flex; flex-direction: column; flex: 0 0 280px; scroll-snap-align: start; }
.reviews-section { padding: 48px 0; background: #111920; margin-top: 40px; }
.reviews__slider-wrap { position: relative; margin-top: 32px; }
.reviews__nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  z-index: 10;
}
.slider-btn { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 20px; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; pointer-events: all; }
.slider-btn:hover { background: rgba(255,255,255,0.28); }
.reviews__slider { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; display: flex; gap: 20px; padding: 0 80px 16px; }
.reviews__slider::-webkit-scrollbar { display: none; }
.reviews__track { display: contents; }
.review-card { background: #d4d4d4; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.review-photo { width: 100%; height: 600px; background: linear-gradient(135deg,#c8c8c8,#e0e0e0); flex-shrink: 0; border-radius: 24px; overflow: hidden; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-card__info { padding: 14px 4px 4px; text-align: left; }
.stars { color: #FFC107 !important; font-size: 22px; display: block; margin-bottom: 6px; letter-spacing: 1px; }
.review-card__info strong { color: #fff; font-size: 14px; font-weight: 700; }
.review-card__info span { color: rgba(255,255,255,.65); font-size: 13px; }

/* FAQ */
.faq-section { padding: 48px 0; background: var(--white); }
.faq__inner { display: flex; flex-direction: column; gap: 40px; }
.faq__list { display: flex; flex-direction: column; }
.faq-item { border-bottom:1px solid #eee; padding:16px 0; cursor:pointer; }
.faq-q { font-size:15px; font-weight:600; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq-q::after { content:''; display:block; width:20px; height:20px; flex-shrink:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition:transform 0.35s cubic-bezier(.4,0,.2,1); }
.faq-item--open .faq-q::after { transform: rotate(180deg); }
.faq-a { font-size:14px; color:var(--text-muted); line-height:1.65; display:grid; grid-template-rows:0fr; transition:grid-template-rows 0.4s cubic-bezier(.4,0,.2,1), opacity 0.35s ease; opacity:0; }
.faq-a__inner { overflow:hidden; padding-top:0; transition:padding-top 0.35s ease; }
.faq-item--open .faq-a { grid-template-rows:1fr; opacity:1; }
.faq-item--open .faq-a__inner { padding-top:10px; }
.faq__contact { display:flex; flex-direction:column; gap:12px; }
.faq__contact h3 { font-size:24px; font-weight:700; }
.faq__contact > p { color:var(--text-muted); font-size:13px; margin-bottom:4px; }
.contact-input { width:100%; padding:14px 16px; border:1px solid #e0e0e0; border-radius:10px; font-family:'YS Display',sans-serif; font-size:14px; outline:none; transition:border-color .2s; background:#fafafa; color:var(--text); }
.contact-input:focus { border-color:var(--orange); background:#fff; }
.contact-textarea { resize:vertical; min-height:100px; }
.contact-submit-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.reply-time { font-size: 12px; color: var(--text-muted); }

/* LANG SWITCHER */
.header__right { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: flex; align-items: center; background: #f0f0f0; border-radius: 50px; padding: 3px; position: relative; gap: 0; }
.lang-btn { background: none; border: none; font-family: 'YS Display', sans-serif; font-size: 12px; font-weight: 600; color: #999; cursor: pointer; padding: 5px 12px; border-radius: 50px; transition: color 0.3s ease; letter-spacing: 0.04em; position: relative; z-index: 1; }
.lang-btn--active { color: var(--dark); }
.lang-btn:hover:not(.lang-btn--active) { color: #666; }
.lang-pill { position: absolute; top: 3px; left: 3px; height: calc(100% - 6px); background: #fff; border-radius: 50px; box-shadow: 0 1px 4px rgba(0,0,0,0.14); transition: transform 0.3s cubic-bezier(.4,0,.2,1), width 0.3s cubic-bezier(.4,0,.2,1); z-index: 0; pointer-events: none; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.35s cubic-bezier(.4,0,.2,1); }
.modal-overlay.modal--open { opacity: 1; pointer-events: all; }
.modal { background: #fff; border-radius: 24px; padding: 40px; width: 100%; max-width: 480px; position: relative; transform: translateY(28px) scale(0.96); transition: transform 0.38s cubic-bezier(.34,1.56,.64,1), opacity 0.35s ease; opacity: 0; max-height: 90vh; overflow-y: auto; }
.modal-overlay.modal--open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal__close { position: absolute; top: 16px; right: 16px; background: #f5f5f5; border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #555; transition: background 0.2s, color 0.2s; }
.modal__close:hover { background: #ececec; color: #111; }
.modal__icon { display: none; }
.modal__title { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 6px; text-align: center; }
.modal__sub { font-size: 14px; color: #888; margin-bottom: 24px; text-align: center; }
.modal__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.modal__label { font-size: 12px; font-weight: 600; color: #555; letter-spacing: .04em; }
.modal__input { border: 1.5px solid #e0e0e0; border-radius: 12px; padding: 13px 16px; font-family: 'YS Display', sans-serif; font-size: 14px; color: #111; outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: #fafafa; width: 100%; }
.modal__input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,0.15); background: #fff; }
.modal__textarea { min-height: 100px; resize: vertical; }
.modal__submit { width: 100%; margin-top: 8px; padding: 15px; font-size: 16px; border-radius: 14px; text-align: center; justify-content: center; }
.modal__success { display: none; text-align: center; padding: 20px 0; }
.modal__success.modal__success--show { display: block; }
.modal__success-icon { font-size: 56px; margin-bottom: 16px; }

/* CALC DISABLED */
.calc-select:disabled { opacity: 0.4; cursor: not-allowed; }
.calc-field--disabled { opacity: 0.45; pointer-events: none; }
.price-new, .price-old { transition: opacity 0.25s ease, transform 0.25s ease; }
.price-updating { opacity: 0; transform: translateY(-4px); }

/* FOOTER */
.footer { background:#111; padding:24px 0; border-top:1px solid rgba(255,255,255,.07); }
.footer__inner { display:flex; align-items:center; gap:32px; flex-wrap:wrap; }
.footer .logo { color:#fff; }
.footer__nav { display:flex; gap:24px; flex:1; justify-content:center; flex-wrap:wrap; }
.footer__nav a { color:rgba(255,255,255,.45); text-decoration:none; font-size:14px; transition:color .2s; }
.footer__nav a:hover { color:#fff; }
.footer__socials { display:flex; gap:10px; margin-left:auto; }
.social-link { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.55); text-decoration:none; transition:all .2s; }
.social-link:hover { background:var(--orange); color:#fff; }

/* =============================================
   RESPONSIVE — единый источник истины
   1024px = планшет горизонтальный
   768px  = планшет вертикальный / большой телефон
   480px  = телефон
   360px  = маленький телефон
   ============================================= */

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {

  .container { padding: 0 20px; }
  .header__inner { gap: 16px; }
  .nav { gap: 16px; }
  .nav__link { font-size: 12px; }
  .hero__flag-wrap img { height: 240px; }
  .hero__features-inner { gap: 12px 24px; }
  .types__grid { grid-template-columns: repeat(2, 1fr); }
  .why__inner { gap: 40px; }
  .why__photo-card { height: 400px; }
  .size-section__inner { gap: 24px; }
  .construction__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .construction-img { width: 100%; transform: rotate(-20deg) scale(1.05); }
  .reviews__slider-wrap { padding: 0 70px; }
  .reviews__track { gap: 16px; }
  .review-photo { height: 580px; }
  .works-slider-wrap { padding: 0 56px; margin: 20px 0; }
  .works-btn { width: 44px; height: 44px; font-size: 16px; }
  .uc-photo { flex: 0 0 280px; height: 360px; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .calc-form--full { grid-template-columns: repeat(2, 1fr); }
  .calc-form--row2 { grid-template-columns: 1fr 110px 1fr auto; gap: 12px; }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {

  .container { padding: 0 16px; }
  .card-white { padding: 22px 16px; }
  .mt-20 { margin-top: 12px; }
  .types-section, .print-section,
  .design-section, .fullcalc-section, .advantages-section { margin: 8px 0; }
  .calc-section { margin-bottom: 60px; }

  /* Header — лого слева, кнопка Заказать справа */
  .header__inner { grid-template-columns: auto auto; gap: 0; padding: 0 16px; justify-content: space-between; }
  .nav { display: none; }
  .header__right { gap: 8px; }
  .header__cta { display: flex !important; }
  .lang-switcher { display: flex !important; background: #f0f0f0; }
  .lang-btn { padding: 4px 10px; font-size: 11px; }
  .burger { display: none !important; }

  /* Hero — правильный порядок: badge+title → флаги → desc+btn+trust+галочки */
  .hero { padding: 0; }
  .hero__inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0;
    padding-bottom: 28px;
    padding-top: 0;
  }
  .hero__content { order: 1; align-items: center; gap: 4px; padding: 24px 4px 0; }
  .hero__right { order: 2; width: 100%; margin-top: 4px; grid-column: unset; grid-row: unset; }
  .hero__bottom { order: 3; align-items: center; gap: 14px; padding: 0 4px; margin-top: 16px; }
  .hero__flags { justify-content: center; overflow: hidden; }
  .hero__flag-wrap img { height: 200px; }
  .hero__trust { justify-content: center; text-align: left; }
  .hero__title { font-size: 30px; }
  .hero__desc { font-size: 13px; }
  .btn--hero { width: 100%; justify-content: center; border-radius: 14px; font-size: 16px; padding: 16px; }
  .hero__features-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
    max-width: 280px;
    margin: 8px auto 0;
    padding-top: 16px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .feature-item { font-size: 14px; }

  /* Brands */
  .brands-card { padding: 18px 20px; border-radius: 20px; }

  /* Calc */
  .calc-section { padding: 0 10px; }
  .calc-card { padding: 22px 16px; }
  .calc-card--full { padding: 22px 16px; }
  .calc-form--full { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .calc-form--row2 { grid-template-columns: 1fr 130px; gap: 10px; align-items: end; }
  .calc-form--row2 .calc-result { grid-column: 1 / -1; }
  .calc-form--row2 > .btn--orange { grid-column: 1 / -1; width: 100%; justify-content: center; height: 52px; border-radius: 14px; font-size: 15px; }
  .calc-select { height: 50px; padding: 0 36px 0 14px; font-size: 14px; }
  .qty-wrap { height: 50px; border-radius: 10px; width: 100%; }
  .qty-btn { height: 50px; width: 42px; font-size: 20px; }
  .qty-input { font-size: 15px; flex: 1; min-width: 0; }

  /* Why — иконка (белый квадрат) слева, название+описание справа */
  .why-section { padding: 32px 0; background: #F8F8F8; }
  .why__inner { grid-template-columns: 1fr; gap: 20px; }
  .why__visual { display: block; }
  .why__photo-card { height: 440px; border-radius: 16px; }
  .why__badge-top { padding: 8px 10px; gap: 7px; border-radius: 12px; }
  .why__badge-bottom { padding: 10px 14px; border-radius: 12px; max-width: 170px; }
  .why__grid { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .why__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #ebebeb;
  }
  .why__item:last-child { border-bottom: none; padding-bottom: 0; }
  .why__icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .why__item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
  .why__item p { font-size: 13px; color: var(--text-muted); }

  /* Ticker */
  .ticker__img { min-height: 56px; object-fit: cover; }

  /* Types — 1 колонка, картинка полная ширина сверху, текст снизу */
  .types-section { padding: 0; }
  .types__grid { grid-template-columns: 1fr; gap: 0; margin-top: 16px; }
  .type-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
  }
  .type-card:last-child { border-bottom: none; padding-bottom: 0; }
  .type-card__img {
    width: 100%;
    height: 400px;
    flex-shrink: unset;
    border-radius: 16px;
    margin-bottom: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .type-card__img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
  .type-card h4 { font-size: 16px; font-weight: 700; }
  .type-card p { font-size: 13px; }
  .type-size { font-size: 13px; }

  /* Size */
  .size-section__inner { grid-template-columns: 1fr; gap: 16px; }
  .size-section__visual { display: none; }
  .size-table { font-size: 12.5px; }
  .size-table th, .size-table td { padding: 10px 10px; }
  .size-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cta-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  /* Print */
  .print-section { padding: 0; }
  .print-grid { grid-template-columns: 1fr; gap: 20px; }
  .print-card__img { height: 220px; }

  /* Construction */
  .construction__inner { grid-template-columns: 1fr; gap: 20px; }
  .construction__features { grid-template-columns: 1fr; gap: 12px; }
  .construction__visual { display: none; }

  /* Design */
  .design-section { padding: 0; }
  .design-section .card-white { padding: 22px 16px; overflow: visible; }
  .design__inner { grid-template-columns: 1fr; gap: 0; }
  .design__content { padding: 0 0 16px; }
  .design__photo { margin: 0; border-radius: 14px; overflow: hidden; }
  .design-img { min-height: 200px; border-radius: 14px; width: 100%; object-fit: cover; }
  .design__btns { flex-direction: column; }
  .design__btns .btn { width: 100%; justify-content: center; }

  /* Install */
  .install__inner { grid-template-columns: 1fr; gap: 16px; }
  .install__video { min-height: 200px; border-radius: 14px; }

  /* Fullcalc */
  .fullcalc-section { padding: 0 10px; }

  /* Usecases — горизонтальный свайп */
  .usecases-section { padding: 32px 0; }
  .works-slider-wrap { padding: 0 12px; }
  .works-btn { display: none; }
  .uc-photo { flex: 0 0 82vw; max-width: 320px; height: 600px; border-radius: 14px; }
  .usecase-tags { gap: 6px; }
  .tag { font-size: 12px; padding: 5px 11px; }

  /* Advantages */
  .advantages-section { padding: 0; }
  .advantages__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adv-item { padding: 14px; }

  /* Reviews — горизонтальный свайп */
  .reviews-section { padding: 32px 0 24px; margin-top: 24px; }
  .reviews__slider-wrap { padding: 0; overflow: hidden; }
  .reviews__nav { display: none; }
  .slider-btn { position: static; transform: none; width: 44px; height: 44px; font-size: 16px; }
  #prev-btn, #next-btn { left: auto; right: auto; }
  .reviews__slider { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; display: flex; gap: 12px; padding: 0 16px 12px; }
  .reviews__slider::-webkit-scrollbar { display: none; }
  .reviews__track { display: contents; }
  .review-wrap { flex: 0 0 78vw; max-width: 290px; scroll-snap-align: center; display: flex; flex-direction: column; }
  .review-card { border-radius: 16px; }
  .review-photo { height: 620px; border-radius: 16px; }
  .stars { font-size: 18px; letter-spacing: 1px; }

  /* FAQ */
  .faq-section { padding: 32px 0; }
  .faq__inner { grid-template-columns: 1fr; gap: 28px; }

  /* Footer */
  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer__nav { justify-content: center; gap: 10px; flex-wrap: wrap; }
  .footer__socials { margin-left: 0; justify-content: center; }

  /* Modal */
  .modal { padding: 28px 18px; border-radius: 20px; }
  .modal__title { font-size: 20px; }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {

  .container { padding: 0 14px; }
  .card-white { padding: 18px 14px; border-radius: 16px; }

  /* Header */
  .header__inner { padding: 0 14px; }
  .lang-btn { padding: 3px 8px; font-size: 10px; }

  /* Hero */
  .hero__flag-wrap img { height: 165px; }
  .hero__flags { gap: 3px; }
  .hero__title { font-size: 27px; }

  /* Brands */
  .brands-card { padding: 12px; border-radius: 14px; }
  .brand-img { height: 24px; }
  .brand-img--square { height: 34px; width: 34px; }

  /* Calc */
  .calc-card--full { padding: 18px 14px; }
  .calc-form--full { grid-template-columns: 1fr; gap: 9px; }
  .calc-select { font-size: 13px; padding: 10px 30px 10px 12px; }
  .price-new { font-size: 22px; }

  /* Why */
  .why__icon-wrap { width: 44px; height: 44px; }

  /* Types — картинка остаётся полной ширины */
  .type-card__img { width: 100%; height: 340px; }
  .type-card h4 { font-size: 15px; }

  /* Size */
  .size-table { min-width: 280px; font-size: 12px; }
  .size-table th, .size-table td { padding: 8px; }

  /* Print */
  .print-card__img { height: 190px; }

  /* Design */
  .design-img { min-height: 170px; }

  /* Usecases */
  .works-slider-wrap { padding: 0 40px; }
  .uc-photo { flex: 0 0 85vw; max-width: 290px; height: 560px; }

  /* Advantages */
  .advantages__grid { grid-template-columns: 1fr; gap: 8px; }
  .adv-item { padding: 12px; gap: 10px; }
  .adv-icon-img { width: 32px; height: 32px; }

  /* Reviews */
  .review-wrap { flex: 0 0 80vw; max-width: 260px; }
  .review-photo { height: 580px; }
  .stars { font-size: 16px; }
  .review-card__info strong, .review-card__info span { font-size: 12px; }

  /* FAQ */
  .faq__contact h3 { font-size: 19px; }
  .contact-submit-row { flex-direction: column; }
  .contact-submit-row .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer__nav { flex-direction: column; gap: 8px; align-items: center; }

  /* Modal */
  .modal { padding: 22px 14px; }
  .modal__title { font-size: 18px; }
}

/* ---------- 360px ---------- */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .card-white { padding: 14px 12px; }
  .hero__title { font-size: 23px; }
  .hero__flag-wrap img { height: 140px; }
  .type-card__img { width: 100%; height: 280px; }
  .calc-form--row2 { grid-template-columns: 1fr; }
  .section-title { font-size: 20px; }
  .advantages__grid { grid-template-columns: 1fr; }
  .reviews__track { display: contents; }
  .review-wrap { flex: 0 0 88vw; }
}

/* ---------- Promo Section ---------- */
.promo-section { padding: 60px 0; background: #F8F8F8; }
.promo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.promo-card { background: #fff; border-radius: 16px; padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); position: relative; overflow: hidden; }
.promo-card__badge { display: inline-block; background: var(--orange, #FF6600); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; width: fit-content; }
.promo-card__title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0; }
.promo-card__desc { font-size: 15px; color: #555; line-height: 1.6; flex: 1; margin: 0; }

/* ---------- Delivery Section ---------- */
.delivery-section { padding: 60px 0; background: #fff; }
.delivery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 40px; }
.delivery-block { background: #F8F8F8; border-radius: 16px; padding: 32px; }
.delivery-block__title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0 0 20px; }
.delivery-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.delivery-list__item { font-size: 15px; color: #333; line-height: 1.5; }

@media (max-width: 900px) {
  .promo__grid { grid-template-columns: 1fr 1fr; }
  .delivery__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .promo__grid { grid-template-columns: 1fr; }
  .promo-section, .delivery-section { padding: 40px 0; }
}
