/* ONLINE PARK — главная. */

/* Цветные полосы во всю ширину: категории и обзоры на белом, подписка на синем. */
.band { margin: 0 0 0; }
.band-white { background: var(--white); padding: 40px 0; margin-top: 48px; }
.band-blue { background: var(--blue); color: var(--white); padding: 40px 0; margin-top: 0; }

/* ── Слайдер ─────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; }

.hero-slide { display: none; position: relative; background: #FAE9E1; }
.hero-slide.on { display: block; }

/* Декор макета: лаймовый треугольник справа и синий полукруг слева */
.hero-slide.on::before {
    content: '';
    position: absolute; right: 11%; top: 90px;
    width: 0; height: 0;
    border: 30px solid transparent; border-right-color: var(--green); border-left: 0;
    transform: rotate(180deg);
}

.hero-slide.on::after {
    content: '';
    position: absolute; left: 9%; bottom: 130px;
    width: 84px; height: 42px;
    background: var(--blue);
    border-radius: 84px 84px 0 0;
}

/* Нижний край героя — дуга, выгнутая вверх, как в макете */
.hero::after {
    content: '';
    position: absolute; left: -5%; right: -5%; bottom: -60px;
    height: 120px;
    background: var(--bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    pointer-events: none;
}

.hero-in {
    display: grid;
    grid-template-columns: 1fr 520px;
    align-items: center;
    gap: 40px;
    min-height: 495px;
    padding-top: 24px;
    padding-bottom: 56px;
}

.hero-pic { display: flex; align-items: center; justify-content: center; height: 100%; }
/* Фото товара на белом фоне: умножение растворяет подложку в цвете слайда */
.hero-pic img { max-height: 380px; object-fit: contain; mix-blend-mode: multiply; }

.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }

.hero-badge {
    display: inline-block; padding: 8px 16px;
    background: var(--green); border-radius: var(--r-8);
    font-size: 13px; font-weight: 500;
}

/* Длинное название товара не заходит под треугольник декора справа */
.hero-title { font-size: 32px; font-weight: 700; line-height: 1.15; max-width: 340px; }
.hero-sub { font-size: 15px; line-height: 1.4; margin: 0; max-width: 320px; }

.hero-price { display: flex; align-items: center; gap: 12px; }
.hero-price b { font-size: 24px; font-weight: 700; }
.hero-price s { font-size: 15px; opacity: .4; }

.hero-btn { height: 56px; padding: 0 28px; border-radius: var(--r-12); font-size: 16px; font-weight: 500; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white); border: 0; border-radius: 50%; color: var(--ink);
    box-shadow: 0 2px 12px rgba(6, 6, 6, .1);
}

.hero-arrow:hover { color: var(--blue); }
.hero-prev { left: max(20px, calc((100% - var(--wrap)) / 2 + 20px)); }
.hero-next { right: max(20px, calc((100% - var(--wrap)) / 2 + 20px)); }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(6, 6, 6, .15); }
.hero-dot.on { background: var(--ink); }

/* ── Преимущества ────────────────────────────────────────── */

.usp {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: var(--bg-grey); border-radius: var(--r-8);
    padding: 24px;
    margin-top: 24px;
}

.usp-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.usp-ico { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border-radius: 4px; }
.usp-item b { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.usp-item div > span { display: block; margin-top: 4px; font-size: 12px; }
.usp-ico + div { min-width: 0; }
/* Цвета иконок — из макета (узел 35:260); оливковый там отдельным стилем GreenT */
.usp-ico-blue { color: var(--blue); }
.usp-ico-orange { color: var(--orange); }
.usp-ico-olive { color: #A1BE23; }
.usp-ico-red { color: var(--red); }

/* ── Заголовки секций ────────────────────────────────────── */

.sec { margin-top: 48px; }
.band .sec:first-child { margin-top: 0; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.sec-text { min-width: 0; }
.sec-title { font-size: 32px; font-weight: 700; line-height: 1.15; }
/* Подзаголовок секции в макете — основной цвет текста, 16px Medium; серым он не бывает */
.sec-sub { font-size: 16px; font-weight: 500; line-height: 1.3; margin-top: 8px; opacity: 1; }
.sec-sub-small { font-size: 14px; font-weight: 400; }
.sec-sub-small i { font-style: normal; opacity: .3; margin: 0 4px; }

.sec-kicker {
    display: inline-block; margin-bottom: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--orange);
}

.sec-kicker-green { background: var(--green); color: var(--ink); padding: 8px 12px; border-radius: 4px; }
.sec-kicker-cyan  { background: var(--cyan);  color: var(--ink); padding: 8px 12px; border-radius: 4px; }
.sec-kicker-blue  { background: var(--blue);  color: var(--white); padding: 8px 12px; border-radius: 4px; }

.sec-more {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    color: var(--blue); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}

.sec-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.sec-arrows { display: flex; gap: 8px; }

.rail-arrow {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white); border: 1px solid var(--ink-10); border-radius: 50%; color: var(--ink);
}

.rail-arrow:hover { border-color: var(--blue); color: var(--blue); }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* Ленты карточек: четыре в ряд, на узких экранах — прокрутка */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rail > * { min-width: 0; }

/* ── Категории ───────────────────────────────────────────── */

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

.cat-tile {
    position: relative; display: block; height: 200px;
    border-radius: var(--r-12); overflow: hidden;
    background: var(--white); color: var(--white);
}

/* Фото товара на белом фоне показывается целиком над подписью: при обрезке под плитку технику не узнать */
.cat-tile img { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 64px); padding: 14px 14px 0; object-fit: contain; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 6, .04) 0%, rgba(6, 6, 6, .1) 45%, rgba(6, 6, 6, .82) 78%); }
.cat-body { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; }
.cat-body b { display: block; font-size: 15px; font-weight: 600; }
.cat-body span { font-size: 13px; opacity: .8; }
.cat-tile:hover { color: var(--white); }
.cat-tile:hover::after { background: linear-gradient(180deg, rgba(6, 6, 6, .08) 0%, rgba(6, 6, 6, .16) 45%, rgba(6, 6, 6, .88) 78%); }

/* ── Акция дня ───────────────────────────────────────────── */

.sale-block { margin-top: 48px; padding: 32px; background: var(--orange); border-radius: var(--r-24); color: var(--white); }
.sale-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.sale-kicker { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.sale-title { display: flex; align-items: center; gap: 16px; font-size: 32px; font-weight: 700; flex-wrap: wrap; }
.sale-pill { background: var(--white); color: var(--orange); padding: 6px 24px; border-radius: var(--r-64); }
.sale-sub { font-size: 15px; line-height: 1.4; margin: 10px 0 0; max-width: 420px; }

.sale-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

.timer { display: flex; gap: 1px; background: rgba(255, 255, 255, .3); border-radius: var(--r-12); overflow: hidden; }
.timer > span { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 16px; background: var(--orange); font-size: 12px; }
.timer b { font-size: 18px; font-weight: 700; }

.sale-all {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
    min-width: 262px; height: 56px; padding: 0 20px;
    background: var(--white); border-radius: var(--r-12); color: var(--ink);
    font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}

.sale-all:hover { background: var(--bg); color: var(--ink); }

/* Карточки внутри цветного блока: свой цвет текста, иначе наследуют белый и пропадают */
.on-accent .card { background: var(--white); color: var(--ink); }

/* ── Регистрация для бизнеса ─────────────────────────────── */

.biz { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; }
.biz-text { background: var(--white); border-radius: 32px 0 0 32px; padding: 32px; }
.biz-sub { font-size: 15px; line-height: 1.4; margin: 12px 0 24px; max-width: 480px; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.biz-btn { height: 56px; padding: 0 24px; border-radius: var(--r-12); font-size: 15px; font-weight: 500; gap: 10px; }
.biz-btn-line { background: var(--white); border: 1px solid var(--orange); color: var(--ink); }
.biz-btn-line .icon { color: var(--orange); }
.biz-btn-line:hover .icon { color: var(--white); }
.biz-btn-line:hover { background: var(--orange); color: var(--white); }

.biz-pic { position: relative; border-radius: 32px; margin-left: -32px; overflow: hidden; background: var(--orange); min-height: 271px; }
.biz-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Оранжевая заливка слева растворяется в фото, как в макете */
.biz-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--orange) 0%, rgba(248, 105, 42, .85) 18%, rgba(248, 105, 42, 0) 55%); }

/* ── Готовые комплекты ───────────────────────────────────── */

.sets-grid { display: grid; grid-template-columns: 580fr 280fr 280fr; gap: 20px; }

.set-tile {
    position: relative; display: block; height: 360px;
    border-radius: var(--r-16); overflow: hidden;
    background: var(--bg-grey); color: var(--white);
}

.set-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.set-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 6, 0) 35%, rgba(6, 6, 6, .85) 100%); }
.set-body { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.set-body b { font-size: 20px; font-weight: 700; }
.set-badge { padding: 5px 12px; border-radius: var(--r-8); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.set-badge-orange { background: var(--orange); color: var(--white); }
.set-badge-blue { background: var(--blue); color: var(--white); }
.set-badge-green { background: var(--green); color: var(--ink); }
.set-sub { font-size: 13px; opacity: .85; }
.set-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--cyan); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.set-tile:hover { color: var(--white); }

/* ── Бренды ──────────────────────────────────────────────── */

.brands-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; }

.brand-tile {
    display: flex; align-items: center; justify-content: center;
    height: 80px; padding: 12px;
    background: var(--bg-grey); border-radius: var(--r-8);
    font-size: 18px; font-weight: 600; text-align: center;
}

.brand-tile:hover { background: #e3e3de; color: var(--ink); }
.brand-tile img { max-height: 40px; object-fit: contain; }

/* ── Обзоры ──────────────────────────────────────────────── */

.posts-sec { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.posts-grid > * { min-width: 0; }
.posts-text { display: flex; flex-direction: column; align-items: flex-start; }
.posts-text .sec-sub { margin-bottom: auto; max-width: 213px; }
.posts-all { height: 52px; padding: 0 24px; border: 1px solid var(--blue); border-radius: var(--r-8); gap: 8px; font-size: 16px; font-weight: 600; margin-top: 24px; }

.post-tile {
    position: relative; display: block; height: 420px;
    border-radius: var(--r-16); overflow: hidden;
    background: var(--bg-grey); color: var(--white);
}

.post-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Затемнение занимает нижние 240px плитки: от прозрачного до цвета текста */
.post-tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(180deg, rgba(6, 6, 6, 0) 0%, var(--ink) 100%); }
.post-body { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.post-body b { margin-top: 12px; font-size: 21px; font-weight: 700; line-height: 1.1; }
.post-badge { background: var(--green); color: var(--ink); padding: 4px 8px; border-radius: var(--r-8); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.post-tile:nth-child(3n+2) .post-badge { background: var(--orange); color: var(--bg); }
.post-tile:nth-child(3n) .post-badge { background: var(--blue); color: var(--bg); }
.post-sub { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.1; }
.post-more { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.post-tile:hover { color: var(--white); }

/* ── Подписка ────────────────────────────────────────────── */

.subscribe { text-align: center; display: flex; flex-direction: column; align-items: center; }
.subscribe-badge { display: inline-block; padding: 8px 12px; background: var(--white); color: var(--blue); border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.subscribe h2 { font-size: 32px; margin: 8px 0; }
.subscribe p { font-size: 16px; font-weight: 500; line-height: 1.3; margin: 0 0 24px; max-width: 428px; }

/* Поле прозрачное с белой рамкой, кнопка белая внутри рамки */
.subscribe-form { display: flex; align-items: center; gap: 16px; width: 420px; max-width: 100%; padding: 2px 2px 2px 16px; border: 1px solid var(--white); border-radius: 10px; }
.subscribe-ico { display: inline-flex; color: var(--white); flex: none; }
.subscribe-ico::after { content: ''; align-self: center; height: 20px; margin-left: 16px; border-left: 1px dashed rgba(255, 255, 255, .6); }
.subscribe-form input { flex: 1 0 0; min-width: 0; height: 52px; border: 0; background: 0; color: var(--white); font-size: 14px; outline: 0; }
.subscribe-form input::placeholder { color: var(--white); opacity: .3; }
.subscribe-form button { height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-8); background: var(--white); color: var(--blue); font-size: 16px; font-weight: 600; }
.subscribe-form button:hover { background: var(--bg-grey); }

/* ── SEO-текст ───────────────────────────────────────────── */

.seotext { margin-top: 48px; }
.seotext-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.seotext-head h2 { font-size: 32px; max-width: 700px; }
.seotext-btn { height: 56px; padding: 0 24px; border: 1px solid var(--blue); border-radius: var(--r-12); gap: 12px; font-size: 15px; white-space: nowrap; }

.seotext-item { display: flex; gap: 20px; background: var(--bg-grey); border-radius: var(--r-16); padding: 24px; }
.seotext-item p { font-size: 14px; line-height: 1.5; margin: 0; }
.seotext-num { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border-radius: var(--r-12); font-size: 18px; font-weight: 700; color: var(--orange); }
.seotext-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* ── Адаптив ─────────────────────────────────────────────── */

@media (max-width: 1439px) {
    .hero-prev { left: 20px; }
    .hero-next { right: 20px; }
}

@media (max-width: 1199px) {
    .hero-in { grid-template-columns: 1fr 420px; min-height: 420px; }
    .hero-title { font-size: 32px; }
    .cats { grid-template-columns: repeat(4, 1fr); }
    .brands-grid { grid-template-columns: repeat(6, 1fr); }
    .sec-title, .sale-title, .subscribe h2, .seotext-head h2 { font-size: 26px; }
    .posts-sec { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
    .post-tile { height: 340px; }
}

@media (max-width: 991px) {
    .hero-in { grid-template-columns: 1fr; text-align: left; min-height: 0; }
    .hero-pic { order: -1; }
    .hero-pic img { max-height: 240px; }
    .usp { display: grid; grid-template-columns: repeat(2, 1fr); }
    .cats { grid-template-columns: repeat(3, 1fr); }
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
    .rail { grid-template-columns: repeat(2, 1fr); }
    .sets-grid { grid-template-columns: 1fr 1fr; }
    .set-tile:first-child { grid-column: 1 / -1; }
    .biz { grid-template-columns: 1fr; gap: 12px; }
    .biz-text { border-radius: var(--r-24); }
    .biz-pic { margin-left: 0; border-radius: var(--r-24); }
    .seotext-cols { grid-template-columns: 1fr; }
    .sale-head { flex-direction: column; }
    .sale-right { align-items: stretch; width: 100%; }
}

@media (max-width: 767px) {
    .band-white, .band-blue { padding: 32px 0; margin-top: 32px; }
    .hero-title { font-size: 24px; }
    .hero-in { padding-bottom: 48px; }
    .hero::after { bottom: -40px; height: 80px; }
    .hero-arrow { display: none; }
    .hero-slide.on::before, .hero-slide.on::after { display: none; }
    .usp { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
    .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-tile { height: 170px; }
    .rail { grid-template-columns: 1fr; }
    .sec { margin-top: 32px; }
    .sec-head { flex-direction: column; gap: 16px; }
    .sec-side { align-items: flex-start; }
    .sec-title, .sale-title, .subscribe h2, .seotext-head h2 { font-size: 22px; }
    .sale-block { padding: 20px; }
    .sale-title { font-size: 22px; }
    .sale-pill { padding: 4px 16px; }
    .timer > span { padding: 8px 10px; }
    .sale-all { min-width: 0; width: 100%; }
    .sets-grid { grid-template-columns: 1fr; }
    .set-tile, .set-tile:first-child { grid-column: auto; height: 280px; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .posts-grid { grid-template-columns: 1fr; }
    .post-tile { height: 300px; }
    .seotext-head { flex-direction: column; }
    .seotext-item { flex-direction: column; gap: 12px; padding: 20px; }
}
