/* Главная: тёмный первый экран с витриной продукта, плиточный каталог, тёмные/светлые секции, красный блок заявки */

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: var(--dark-ink); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--red) 22%, transparent), transparent); opacity: .55; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 52px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); font-size: 13.5px; color: var(--dark-ink-2); margin-bottom: 26px; }
.hero-kicker b { font-family: var(--font-h); font-weight: 700; font-size: 12.5px; color: #fff; background: var(--accent); border-radius: 99px; padding: 5px 11px; letter-spacing: .02em; white-space: nowrap; }
.hero-title { font-size: clamp(32px, 3.55vw, 54px); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 22px; max-width: 18ch; }
.hero-title span { color: var(--red); }
.hero .lead { color: var(--dark-ink-2); max-width: 56ch; font-size: clamp(15.5px, 1.15vw, 18px); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-quick small { font-size: 12.5px; color: var(--dark-ink-2); margin-right: 6px; letter-spacing: .04em; }
.hero-quick a { font-size: 13.5px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); color: var(--dark-ink); transition: .2s; }
.hero-quick a:hover { background: #fff; color: var(--dark); border-color: #fff; }

.hero-visual { position: relative; padding: 0 0 36px 28px; }
.hero-photo { position: relative; aspect-ratio: 5/5.4; border-radius: var(--r-l); overflow: hidden; background: #2a2b2c; box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 50%; transform: scale(1.12); transform-origin: 80% 50%; animation: hero-zoom 14s ease-out forwards; }
@keyframes hero-zoom { to { transform: scale(1.02); } }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, rgba(20,21,22,.55)); }
.hero-chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: var(--r-m); background: rgba(31,33,34,.62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.12); font-size: 13px; line-height: 1.35; color: var(--dark-ink); }
.hero-chip b { font-family: var(--font-h); font-weight: 700; font-size: 15px; background: var(--accent); color: #fff; border-radius: calc(var(--r-m) - 6px); padding: 10px 12px; letter-spacing: .02em; }
.hero-chip--gost { top: 28px; left: 0; animation: float 7s ease-in-out infinite; }
.hero-chip--cycle { top: 46%; right: -14px; padding-left: 16px; animation: float 8s ease-in-out -3s infinite; }
.hero-chip--cycle i { width: 10px; height: 10px; border-radius: 50%; background: #3BD16F; box-shadow: 0 0 0 5px rgba(59,209,111,.18); flex: none; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-product { position: absolute; left: 0; bottom: 0; display: grid; grid-template-columns: 76px 1fr 44px; gap: 14px; align-items: center; padding: 10px 10px 10px 10px; width: min(380px, 90%); border-radius: var(--r-m); background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: transform .3s; }
.hero-product:hover { transform: translateY(-4px); }
.hero-product img { width: 76px; height: 64px; object-fit: cover; border-radius: calc(var(--r-m) - 8px); }
.hero-product small { display: block; font-size: 12.5px; color: var(--ink-3); }
.hero-product b { font-family: var(--font-h); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hero-product i { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.hero-product i svg { width: 18px; height: 18px; }

.hero-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--dark-line); }
.hero-stats li { padding: 24px 20px 30px; border-left: 1px solid var(--dark-line); }
.hero-stats li:first-child { border-left: 0; padding-left: 0; }
.hero-stats b { display: block; font-family: var(--font-h); font-size: clamp(24px, 2.4vw, 36px); font-weight: var(--h-weight); letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; color: var(--dark-ink-2); line-height: 1.35; display: block; max-width: 22ch; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 560px) {
  .hero-visual { padding-left: 0; }
  .hero-photo { aspect-ratio: 4/3.6; }
  .hero-chip--cycle { display: none; }
  .hero-chip--gost { top: 14px; left: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* на узких экранах цифры — плитками: 20+ лет акцентной полосой сверху, остальные сеткой без «сирот» */
@media (max-width: 1000px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 10px; border-top: 0; padding-bottom: 28px; }
  .hero-stats li, .hero-stats li:first-child { border: 0; padding: 18px 18px 20px; border-radius: var(--r-m); background: rgba(255,255,255,.045); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
  .hero-stats li:last-child { order: -1; grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--accent); box-shadow: none; }
  .hero-stats li:last-child b { margin: 0; font-size: clamp(34px, 9vw, 46px); }
  .hero-stats li:last-child span { color: rgba(255,255,255,.92); font-size: 14.5px; max-width: none; }
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li, .hero-stats li:first-child { padding: 16px 14px 18px; }
  .hero-stats b { font-size: clamp(21px, 6.4vw, 28px); margin-bottom: 6px; }
  .hero-stats span { font-size: 12.5px; }
}

/* ---------- Каталог ---------- */
.cat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(270px, auto); gap: var(--gap); }
.cat .tile--hero, .cat .tile--wide { grid-column: span 2; }
@media (max-width: 1100px) { .cat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cat { grid-template-columns: 1fr; grid-auto-rows: minmax(230px, auto); } .cat .tile--hero, .cat .tile--wide { grid-column: auto; } }

/* ---------- Акции ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 1100px) { .offers { grid-template-columns: 1fr; } }

/* ---------- Почему композиты ---------- */
.comp-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.comp-sticky { position: sticky; top: 100px; }
.comp .lead { margin-top: 16px; }
.eco { margin-top: 28px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-l); background: var(--dark); color: var(--dark-ink); box-shadow: var(--sh-card); position: relative; overflow: hidden; }
.eco::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--red) 35%, transparent), transparent); }
.eco-title { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-ink-2); margin-bottom: 14px; position: relative; }
.eco ul { display: grid; gap: 0; margin-bottom: 22px; position: relative; }
.eco li { display: grid; grid-template-columns: 128px 1fr; gap: 4px 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--dark-line); }
.eco li:first-child { border-top: 0; }
.eco b { font-family: var(--font-h); font-weight: var(--h-weight); font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.eco span { font-size: 14px; color: var(--dark-ink-2); }
.eco i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; margin-top: 8px; }
.eco i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); border-radius: inherit; transition: width 1.4s var(--ease) .3s; }
.eco.in i::after { width: var(--w); }
.adv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.adv { padding-bottom: 32px; }
.adv-card:nth-child(even) { top: 32px; }
@media (max-width: 1000px) { .comp-grid { grid-template-columns: 1fr; } .comp-sticky { position: static; } .adv { padding-bottom: 0; } .adv-card:nth-child(even) { top: 0; } }
@media (max-width: 560px) { .adv { grid-template-columns: 1fr; } .eco li { grid-template-columns: 1fr; } }

/* ---------- Почему мы ---------- */
.why { position: relative; overflow: hidden; }
.why::before { content: "RPC"; position: absolute; right: -2vw; bottom: -6vw; font-family: var(--font-h); font-weight: 800; font-size: 26vw; line-height: .8; letter-spacing: -.06em; color: rgba(255,255,255,.025); pointer-events: none; }
.why .sec-head .lead { max-width: 42ch; margin-top: 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dark-line); position: relative; }
.why-grid li { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto 1fr; gap: 8px 18px; padding: 30px 28px 32px 0; border-bottom: 1px solid var(--dark-line); }
.why-grid li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--dark-line); }
.why-ico { grid-row: 1 / 4; width: 64px; height: 64px; border-radius: var(--r-s); background: #fff; overflow: hidden; display: grid; place-items: center; }
.why-ico img { width: 100%; height: 100%; object-fit: cover; }
.why-grid i { font-style: normal; font-family: var(--font-h); font-size: 12.5px; font-weight: 700; color: var(--red); letter-spacing: .12em; }
.why-grid h3 { font-size: 18.5px; line-height: 1.25; }
.why-grid p { font-size: 14.5px; color: var(--dark-ink-2); }
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-grid li, .why-grid li:not(:nth-child(3n+1)) { padding: 26px 24px 28px 0; border-left: 0; }
  .why-grid li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--dark-line); }
}
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } .why-grid li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- Опыт ---------- */
.exp-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.exp-visual { position: relative; padding: 0 12% 12% 0; }
.exp-main { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; border-radius: var(--r-l); }
.exp-sub { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-m); border: 8px solid var(--bg); box-shadow: var(--sh-hover); }
.exp-badge { position: absolute; left: 24px; top: 24px; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px; border-radius: var(--r-m); background: var(--accent); color: #fff; box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--accent) 70%, transparent); }
.exp-badge b { font-family: var(--font-h); font-weight: 800; font-size: 46px; line-height: .9; letter-spacing: -.04em; }
.exp-badge span { font-size: 13px; font-weight: 500; line-height: 1.3; }
.exp-copy .lead { margin-top: 16px; }
.exp-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; counter-reset: e; }
.exp-list li { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; padding: 14px 20px 14px 14px; border-radius: var(--r-m); background: var(--surface); transition: background .3s, box-shadow .3s; }
.exp-list li:hover { background: var(--bg); box-shadow: var(--sh-hover); }
.exp-list img { width: 76px; height: 76px; object-fit: cover; border-radius: calc(var(--r-m) - 8px); background: #fff; }
.exp-list h3 { font-size: 17.5px; margin-bottom: 4px; }
.exp-list p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1000px) { .exp-grid { grid-template-columns: 1fr; } .exp-visual { max-width: 560px; } }
@media (max-width: 560px) { .exp-list li { grid-template-columns: 56px 1fr; } .exp-list img { width: 56px; height: 56px; } }

/* ---------- Отрасли ---------- */
.ind-sec .sec-head .lead { margin-top: 0; max-width: 40ch; }
.ind { display: flex; gap: 12px; height: 460px; }
.ind-item { position: relative; flex: 1; min-width: 0; border-radius: var(--r-m); overflow: hidden; color: #fff; background: var(--dark); isolation: isolate; transition: flex-grow .6s var(--ease); }
.ind-item.is-on { flex-grow: 3.2; }
.ind-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease), filter .6s; filter: saturate(.7) brightness(.85); }
.ind-item.is-on img { filter: none; transform: scale(1.03); }
.ind-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.82)); }
.ind-n { position: absolute; top: 20px; left: 22px; font-family: var(--font-h); font-weight: 700; font-size: 13px; letter-spacing: .1em; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.ind-item.is-on .ind-n { background: var(--accent); }
.ind-body { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.ind-body h3 { font-size: 19px; line-height: 1.2; }
.ind-body p, .ind-go { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .4s, margin .4s; }
.ind-body p { font-size: 15px; color: rgba(255,255,255,.82); max-width: 44ch; }
.ind-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.ind-go svg { width: 16px; height: 16px; }
.ind-item.is-on h3 { font-size: clamp(22px, 2vw, 28px); }
.ind-item.is-on .ind-body p { max-height: 100px; opacity: 1; margin-top: 10px; }
.ind-item.is-on .ind-go { max-height: 30px; opacity: 1; margin-top: 14px; }
.ind-item:not(.is-on) h3 { writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; left: 0; bottom: 0; white-space: nowrap; }
@media (max-width: 900px) {
  .ind { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scrollbar-width: none; }
  .ind-item, .ind-item.is-on { flex: 0 0 min(78%, 340px); height: 400px; scroll-snap-align: start; }
  .ind-item:not(.is-on) h3 { writing-mode: horizontal-tb; transform: none; position: static; white-space: normal; }
  .ind-item img { filter: none; }
  .ind-body p, .ind-go { max-height: 100px !important; opacity: 1 !important; margin-top: 10px; }
}


/* ---------- Новости ---------- */
.news { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); }
.news-side { display: grid; gap: var(--gap); grid-template-rows: 1fr 1fr auto; }
.news-all { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r-m); background: var(--dark); color: var(--dark-ink); transition: background .3s; }
.news-all:hover { background: var(--accent); }
.news-all b { font-family: var(--font-h); font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.news-all span { font-size: 14px; color: inherit; opacity: .75; }
.news-all svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }
