/* ============================================================
   РАССАДА · БОРИСОВ — редизайн 2026
   Концепция: «ботанический журнал» — крупная типографика,
   арки-теплицы, бумажная фактура, живые детали.
   ============================================================ */

:root {
    --paper: #F2EDDF;
    --paper-2: #E9E1CC;
    --ink: #1A2E1F;
    --ink-soft: #3C4F40;
    --green: #2F5D3C;
    --green-deep: #1E4029;
    --accent: #E4572E;
    --accent-dark: #C43E1A;
    --sun: #E8B530;
    --pink: #D77BA1;
    --line: rgba(26, 46, 31, .18);

    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --radius-arch: 999px 999px 24px 24px;
    --shadow-card: 0 18px 40px -18px rgba(26, 46, 31, .35);
    --ease-out: cubic-bezier(.22, 1, .36, 1);

    /* направление «света» для 3D-текста — двигается за курсором (см. app.js) */
    --light-x: .7;
    --light-y: .9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Зернистая бумажная текстура поверх всего */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(1200px, 86vw); margin-inline: auto; }

/* ---------- Типографика ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
}

/* Объёмный 3D-текст: выдавливание реагирует на положение курсора */
.t3d {
    --t3d: var(--sun);
    color: var(--ink);
    text-shadow:
        calc(var(--light-x) * 1.5px) calc(var(--light-y) * 1.5px) 0 var(--t3d),
        calc(var(--light-x) * 3px)   calc(var(--light-y) * 3px)   0 var(--t3d),
        calc(var(--light-x) * 4.5px) calc(var(--light-y) * 4.5px) 0 var(--t3d),
        calc(var(--light-x) * 6px)   calc(var(--light-y) * 6px)   0 var(--t3d),
        calc(var(--light-x) * 7.5px) calc(var(--light-y) * 7.5px) 0 var(--t3d);
}

.t3d--accent { color: var(--accent); --t3d: var(--green-deep); }

.section--dark .t3d { color: var(--paper); --t3d: var(--accent); }

@media (max-width: 640px) {
    .t3d {
        text-shadow:
            calc(var(--light-x) * 1px) calc(var(--light-y) * 1px) 0 var(--t3d),
            calc(var(--light-x) * 2px) calc(var(--light-y) * 2px) 0 var(--t3d),
            calc(var(--light-x) * 3px) calc(var(--light-y) * 3px) 0 var(--t3d),
            calc(var(--light-x) * 4px) calc(var(--light-y) * 4px) 0 var(--t3d);
    }
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 22px;
    margin-bottom: clamp(34px, 5vw, 64px);
    border-bottom: 2px solid var(--ink);
    padding-bottom: 18px;
}

.section-head .idx {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(28px, 4.5vw, 54px);
    line-height: 1;
}

.section-head .hint {
    margin-left: auto;
    font-size: 14px;
    color: var(--ink-soft);
    max-width: 260px;
    text-align: right;
    line-height: 1.4;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 16px 28px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    transition: transform .35s var(--ease-out), background .25s, color .25s, box-shadow .35s;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(26,46,31,.5); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--green-deep); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- Шапка ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 800;
    transition: background .3s, box-shadow .3s;
}

.header.scrolled {
    background: rgba(242, 237, 223, .92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}

.header__in {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 0;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    line-height: 1.05;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__mark {
    width: 46px; height: 46px;
    flex: none;
    display: grid;
    place-items: center;
}

.logo__mark svg { width: 100%; height: 100%; overflow: visible; }

.logo__mark .roof-shine {
    opacity: 0;
    transition: opacity .3s;
}

.logo:hover .roof-shine { opacity: .55; }

.logo:hover .logo-tomato { animation: tomatoPop .45s var(--ease-out); }

@keyframes tomatoPop {
    50% { transform: translateY(-3px) scale(1.25); }
}

.logo-tomato { transform-origin: center; transform-box: fill-box; }

.logo small {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .22em;
    color: var(--accent);
}

.nav { display: flex; gap: 6px; margin-left: auto; }

.nav a {
    font-size: 14px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.nav a:hover, .nav a.active { background: var(--ink); color: var(--paper); }

.header__phone {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 10px 18px;
    transition: background .2s, color .2s;
}

.header__phone:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 130px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: -12vw; top: -18vw;
    width: 46vw; height: 46vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,181,48,.30), transparent 65%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: center;
}

.hero__overline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 26px;
}

.hero__overline::before {
    content: '';
    width: 34px; height: 2px;
    background: var(--accent);
}

.hero h1 {
    font-size: clamp(46px, 7.4vw, 106px);
    line-height: 1.08;
    margin-bottom: 30px;
}

.hero h1 .row { display: block; }

.hero h1 .row span {
    display: inline-block;
    opacity: 0;
    transform: translateY(.5em);
    animation: riseFade .9s var(--ease-out) forwards;
}

.hero h1 .row:nth-child(2) span { animation-delay: .12s; }
.hero h1 .row:nth-child(3) span { animation-delay: .24s; }

@keyframes riseFade { to { opacity: 1; transform: translateY(0); } }

.hero h1 em, .accent-word {
    font-style: normal;
    color: var(--accent);
}

.hero__lead {
    max-width: 470px;
    font-size: 18px;
    color: var(--ink-soft);
    margin-bottom: 36px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero__stats {
    display: flex;
    gap: clamp(24px, 4vw, 56px);
    border-top: 2px solid var(--ink);
    padding-top: 22px;
    max-width: 560px;
}

.stat b {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 3vw, 38px);
    display: block;
    line-height: 1;
}

.stat b i { font-style: normal; color: var(--accent); }

.stat span {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* Hero visual: объёмный коллаж с параллаксом */
.hero__visual {
    position: relative;
    height: clamp(420px, 56vw, 640px);
}

.scene { position: absolute; inset: 0; }

.layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: transform .45s var(--ease-out);
    will-change: transform;
}

/* большое солнце-фон */
.sun-blob {
    position: absolute;
    right: 2%; top: 3%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--sun);
    border: 3px solid var(--ink);
    box-shadow: inset -14px -18px 0 rgba(228, 87, 46, .25);
}

/* арки-фото с цветным 3D-выдавливанием */
.arch3d {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-arch);
    border: 3px solid var(--ink);
    background: var(--paper-2);
    box-shadow: 16px 18px 0 var(--green-deep);
    animation: floaty 7s ease-in-out infinite;
}

.arch3d img { width: 100%; height: 100%; object-fit: cover; }

.arch3d--main { width: 54%; height: 72%; right: 9%; top: 10%; }

.arch3d--small {
    width: 33%; height: 42%;
    left: 3%; bottom: 4%;
    box-shadow: 12px 14px 0 var(--accent-dark);
    animation-delay: 1.4s;
}

.circle3d {
    position: absolute;
    left: 7%; top: 4%;
    width: 25%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--ink);
    box-shadow: 10px 12px 0 var(--accent);
    animation: floaty 7s ease-in-out 2.6s infinite;
}

.circle3d img { width: 100%; height: 100%; object-fit: cover; }

/* декоративные «семечки»-запятые вокруг коллажа */
.seed-deco {
    position: absolute;
    width: 17px; height: 26px;
    background: #D9A05B;
    border: 2.5px solid var(--ink);
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    animation: floaty 6s ease-in-out infinite;
}

.seed-deco--1 { left: 40%; top: 1%; rotate: 24deg; }
.seed-deco--2 { right: 1%; bottom: 30%; rotate: -30deg; animation-delay: 1.2s; }
.seed-deco--3 { left: 1%; top: 44%; rotate: 56deg; animation-delay: 2.4s; }

.arch {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-arch);
    border: 3px solid var(--ink);
    background: var(--paper-2);
    box-shadow: var(--shadow-card);
}

.arch img { width: 100%; height: 100%; object-fit: cover; }

.arch--main {
    width: 68%; height: 88%;
    right: 6%; top: 0;
    animation: floaty 7s ease-in-out infinite;
}

.arch--small {
    width: 40%; height: 48%;
    left: 0; bottom: 0;
    border-color: var(--accent);
    animation: floaty 7s ease-in-out 1.2s infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.badge-rotate {
    position: absolute;
    right: -10px; bottom: 10%;
    width: 150px; height: 150px;
    animation: spin 14s linear infinite;
    z-index: 3;
}

@keyframes spin { to { transform: rotate(360deg); } }

.badge-rotate circle { fill: var(--sun); }
.badge-rotate text {
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    fill: var(--ink);
}
.badge-rotate .badge-center {
    font-size: 30px;
}

.sticker {
    position: absolute;
    right: 0; top: 0;
    z-index: 3;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 14px;
    transform: rotate(-7deg);
    box-shadow: var(--shadow-card);
}

.sticker small { display: block; font-size: 10px; font-weight: 600; opacity: .85; }

/* ---------- Бегущая строка ---------- */
.marquee {
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    padding: 16px 0;
    transform: rotate(-1.6deg) scale(1.02);
    margin: 10px 0 0;
}

.marquee--flat { transform: none; margin: 0; }

.marquee__track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    width: max-content;
    animation: marquee 26s linear infinite;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.marquee__track .star { color: var(--sun); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(70px, 9vw, 130px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--green-deep); color: var(--paper); }
.section--dark .section-head { border-color: var(--paper); }
.section--dark .section-head .hint { color: rgba(242,237,223,.65); }

/* ---------- Сетка категорий ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2.5px solid var(--ink);
    border-radius: 26px;
    background: var(--paper);
    overflow: hidden;
    transition: transform .45s var(--ease-out), box-shadow .45s;
}

.cat-card:hover { transform: translateY(-8px) rotate(-.5deg); box-shadow: var(--shadow-card); }

.cat-card__img {
    height: 210px;
    margin: 14px 14px 0;
    border-radius: var(--radius-arch);
    overflow: hidden;
    border: 2px solid var(--ink);
    background: var(--paper-2);
}

.cat-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out), filter .4s;
}

.cat-card:hover .cat-card__img img { transform: scale(1.08); }

.cat-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }

.cat-card__num {
    position: absolute;
    top: 24px; left: 26px;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 4px 11px;
}

.cat-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cat-card__meta {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.cat-card__row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-card__price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--accent);
}

.cat-card__arrow {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    display: grid;
    place-items: center;
    font-size: 17px;
    transition: background .25s, color .25s, transform .35s var(--ease-out);
}

.cat-card:hover .cat-card__arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(-45deg);
}

/* Большая карточка-CTA в сетке категорий */
.cat-card--cta {
    background: var(--green);
    color: var(--paper);
    border-color: var(--green-deep);
    justify-content: center;
    padding: 30px;
    gap: 16px;
}

.cat-card--cta h3 { font-size: 24px; line-height: 1.15; color: var(--paper); }
.cat-card--cta p { font-size: 14px; color: rgba(242,237,223,.75); }
.cat-card--cta .btn { border-color: var(--paper); color: var(--paper); align-self: flex-start; }
.cat-card--cta .btn:hover { background: var(--paper); color: var(--ink); }

/* ---------- Хиты сезона: горизонтальная лента ---------- */
.rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 6px 4vw 26px;
    margin: 0 -4vw;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.p-card {
    flex: 0 0 290px;
    scroll-snap-align: start;
    border: 2.5px solid var(--paper);
    border-radius: 24px;
    background: rgba(242,237,223,.06);
    overflow: hidden;
    transition: transform .45s var(--ease-out), background .3s;
    display: flex;
    flex-direction: column;
}

.p-card:hover { transform: translateY(-8px); background: rgba(242,237,223,.12); }

.p-card__img {
    height: 240px;
    overflow: hidden;
    border-bottom: 2.5px solid var(--paper);
    position: relative;
}

.p-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.p-card:hover .p-card__img img { transform: scale(1.07); }

.p-card__tag {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--sun);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    transform: rotate(-4deg);
}

.p-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.p-card h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; line-height: 1.3; }

.p-card p { font-size: 13.5px; color: rgba(242,237,223,.65); flex: 1; }

.p-card__price { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--sun); }

.rail-nav { display: flex; gap: 12px; }

.rail-nav button {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--paper);
    background: transparent;
    color: var(--paper);
    font-size: 19px;
    transition: background .25s, color .25s;
}

.rail-nav button:hover { background: var(--paper); color: var(--green-deep); }

/* ---------- О нас ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(34px, 6vw, 90px);
    align-items: center;
}

.about__text p { font-size: clamp(19px, 2vw, 24px); line-height: 1.55; margin-bottom: 22px; }

.about__text p b { color: var(--green); }

.about__text .mini { font-size: 15.5px; color: var(--ink-soft); }

.about__visual { position: relative; }

.about__visual .arch { position: relative; width: 84%; height: 460px; margin-inline: auto; }

.about__chip {
    position: absolute;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 16px;
    padding: 13px 18px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-card);
}

.about__chip small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11px; color: var(--ink-soft); }

.about__chip--1 { top: 8%; left: -2%; transform: rotate(-5deg); }
.about__chip--2 { bottom: 12%; right: -2%; transform: rotate(4deg); background: var(--sun); }

/* ---------- Как купить ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step {
    border: 2.5px solid var(--ink);
    border-radius: 26px;
    padding: 30px 28px 34px;
    background: var(--paper);
    position: relative;
    transition: transform .4s var(--ease-out);
}

.step:hover { transform: translateY(-6px); }

.step:nth-child(2) { background: var(--sun); }
.step:nth-child(3) { background: var(--green); color: var(--paper); }
.step:nth-child(3) p { color: rgba(242,237,223,.8); }

.step__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 44px;
    line-height: 1;
    opacity: .28;
    margin-bottom: 18px;
    display: block;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Контакты ---------- */
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px, 6vw, 80px); }

.contact__phone {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.1;
    display: inline-block;
    margin: 8px 0 6px;
    transition: color .25s;
}

.contact__phone:hover { color: var(--accent); }

.contact__name { font-size: 15px; color: var(--ink-soft); margin-bottom: 28px; }

.messengers { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }

.contact__note {
    border-left: 3px solid var(--accent);
    padding-left: 18px;
    font-size: 15px;
    color: var(--ink-soft);
}

.contact__card {
    border: 2.5px solid var(--ink);
    border-radius: 26px;
    background: var(--paper);
    padding: 34px;
}

.contact__card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.contact__card dl { display: grid; gap: 16px; }

.contact__card dt {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3px;
}

.contact__card dd { font-size: 15.5px; }

/* ---------- Футер ---------- */
.footer {
    background: var(--ink);
    color: var(--paper);
    padding: 60px 0 36px;
    overflow: hidden;
}

.footer__big {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(54px, 11vw, 170px);
    line-height: .95;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(242, 237, 223, .22);
    margin-bottom: 50px;
    transition: color .35s;
    display: block;
}

.footer__big:hover { color: var(--sun); }

.footer__row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(242,237,223,.2);
    padding-top: 26px;
    font-size: 13.5px;
    color: rgba(242,237,223,.6);
}

.footer__row a:hover { color: var(--sun); }

.footer__links { display: flex; gap: 22px; }

/* ---------- Каталог ---------- */
.catalog-hero { padding: 150px 0 40px; }

.catalog-hero h1 { font-size: clamp(40px, 6.5vw, 92px); margin-bottom: 14px; }

.catalog-hero p { color: var(--ink-soft); max-width: 520px; }

.filterbar {
    position: sticky;
    top: 76px;
    z-index: 700;
    background: rgba(242, 237, 223, .94);
    backdrop-filter: blur(12px);
    border-block: 2px solid var(--ink);
    padding: 14px 0;
}

.filterbar__in { display: flex; gap: 14px; align-items: center; }

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    padding: 2px;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
    flex: none;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    transition: background .2s, color .2s, transform .2s;
}

.chip:hover { transform: translateY(-2px); }

.chip.active { background: var(--ink); color: var(--paper); }

.chip .cnt { color: var(--accent); margin-left: 4px; }
.chip.active .cnt { color: var(--sun); }

.search {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 9px 18px;
    background: var(--paper);
}

.search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    width: 170px;
    color: var(--ink);
}

/* Сетка товаров */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 50px 0 90px;
}

.prod {
    border: 2.5px solid var(--ink);
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform .45s var(--ease-out), box-shadow .45s;
    opacity: 0;
    transform: translateY(24px);
    animation: cardIn .6s var(--ease-out) forwards;
}

@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

.prod:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-card); }

.prod__img { height: 230px; overflow: hidden; border-bottom: 2.5px solid var(--ink); position: relative; }

.prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }

.prod:hover .prod__img img { transform: scale(1.08); }

.prod__num {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--paper);
    border: 2px solid var(--ink);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.prod__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.prod h3 { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; line-height: 1.35; }

.prod p { font-size: 13px; color: var(--ink-soft); flex: 1; }

.prod__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

.prod__price { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent); }

.prod__add {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: transparent;
    font-size: 17px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background .2s, color .2s, transform .3s var(--ease-out);
}

.prod__add:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(90deg); }
.prod__add.in-list { background: var(--green); border-color: var(--green); color: #fff; }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--ink-soft);
}

/* ---------- Карточка товара (оверлей) ---------- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(26, 46, 31, .55);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
}

.overlay.open { opacity: 1; pointer-events: auto; }

.sheet {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 960;
    width: min(880px, 96vw);
    background: var(--paper);
    border-left: 3px solid var(--ink);
    transform: translateX(102%);
    transition: transform .5s var(--ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sheet.open { transform: translateX(0); }

.sheet__close {
    position: sticky;
    top: 18px;
    margin-left: 22px;
    z-index: 5;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--paper);
    font-size: 19px;
    transition: background .2s, color .2s, transform .3s;
}

.sheet__close:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(90deg); }

.sheet__grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 34px;
    padding: 0 clamp(22px, 4vw, 48px) 60px;
    margin-top: -28px;
}

.sheet__imgcol { position: sticky; top: 80px; align-self: start; }

.sheet__img {
    border-radius: var(--radius-arch);
    border: 3px solid var(--ink);
    overflow: hidden;
    aspect-ratio: 3 / 3.6;
    background: var(--paper-2);
}

.sheet__img img { width: 100%; height: 100%; object-fit: cover; }

.sheet__price-tag {
    margin-top: 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    transform: rotate(-2deg);
}

.sheet__price-tag small { display: block; font-size: 11px; font-weight: 600; opacity: .85; }

.sheet h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 14px 0 10px;
}

.sheet__short {
    font-size: 15px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 18px;
}

.sheet__intro { font-size: 16.5px; margin-bottom: 28px; }

.spec { border-top: 2px solid var(--ink); }

.spec__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}

.spec__row dt { font-weight: 800; }

.sheet h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 26px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sheet h4::before { content: ''; width: 22px; height: 2px; background: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tags li {
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    padding: 6px 14px;
    background: #fff;
}

.tags--green li { background: #E4EFE2; border-color: var(--green); color: var(--green-deep); }

.checklist { list-style: none; display: grid; gap: 8px; }

.checklist li {
    font-size: 14.5px;
    padding-left: 26px;
    position: relative;
}

.checklist li::before {
    content: '✺';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.sheet__cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Список заказа ---------- */
.cartbtn {
    position: fixed;
    right: 26px; bottom: 26px;
    z-index: 900;
    width: 66px; height: 66px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--ink);
    color: #fff;
    font-size: 24px;
    box-shadow: var(--shadow-card);
    transition: transform .35s var(--ease-out), background .25s;
    display: grid;
    place-items: center;
}

.cartbtn:hover { transform: translateY(-5px) rotate(-6deg); background: var(--accent-dark); }

.cartbtn__count {
    position: absolute;
    top: -7px; right: -7px;
    min-width: 26px; height: 26px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    border: 2px solid var(--ink);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
    padding: 0 5px;
}

.cart {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 970;
    width: min(440px, 94vw);
    background: var(--ink);
    color: var(--paper);
    transform: translateX(102%);
    transition: transform .5s var(--ease-out);
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.cart.open { transform: translateX(0); }

.cart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

.cart__head h3 { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }

.cart__close {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--paper);
    background: transparent;
    color: var(--paper);
    font-size: 16px;
}

.cart__close:hover { background: var(--accent); border-color: var(--accent); }

.cart__list { flex: 1; overflow-y: auto; display: grid; gap: 10px; align-content: start; }

.cart__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(242,237,223,.08);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13.5px;
}

.cart__item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }

.cart__item b { display: block; font-size: 13px; line-height: 1.3; }

.cart__item span { color: var(--sun); font-family: var(--font-display); font-size: 12px; }

.cart__item button {
    margin-left: auto;
    flex: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(242,237,223,.4);
    background: transparent;
    color: var(--paper);
}

.cart__item button:hover { background: var(--accent); border-color: var(--accent); }

.cart__empty { text-align: center; color: rgba(242,237,223,.5); padding: 40px 0; font-size: 14px; }

.cart__foot { border-top: 1px solid rgba(242,237,223,.2); padding-top: 16px; display: grid; gap: 10px; }

.cart__total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 15px; margin-bottom: 4px; }

.cart__total b { color: var(--sun); }

.cart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cart__actions .btn, .cart__send { justify-content: center; text-align: center; }

.cart .btn { border-color: var(--paper); color: var(--paper); padding: 13px 18px; font-size: 12px; }
.cart .btn:hover { background: var(--paper); color: var(--ink); }
.cart .btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; grid-column: 1 / -1; }
.cart .btn--accent:hover { background: var(--accent-dark); }

.toast {
    position: fixed;
    left: 50%; bottom: 30px;
    transform: translate(-50%, 80px);
    z-index: 990;
    background: var(--ink);
    color: var(--paper);
    border: 2px solid var(--sun);
    border-radius: 999px;
    padding: 13px 26px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: transform .45s var(--ease-out), opacity .35s;
    pointer-events: none;
}

.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal-анимации ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ---------- Курсор-помидорка ---------- */
@media (hover: hover) and (pointer: fine) {
    * { cursor: none !important; }
}

.cursor-pom {
    position: fixed;
    top: 0; left: 0;
    width: 34px; height: 34px;
    pointer-events: none;
    z-index: 9500;
    transition: scale .2s var(--ease-out);
}

.cursor-pom.is-down { scale: .72; }

.cursor-pom svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
    transition: opacity .22s, transform .4s var(--ease-out);
    filter: drop-shadow(2px 3px 0 rgba(26, 46, 31, .25));
}

/* семечко спрятано, помидорка видна */
.cursor-pom .c-seed { opacity: 0; transform: scale(.25) rotate(-120deg); }

/* при наведении на интерактив помидорка «прорастает» в семечко */
.cursor-pom.is-hover .c-tomato { opacity: 0; transform: scale(.25) rotate(120deg); }
.cursor-pom.is-hover .c-seed { opacity: 1; transform: scale(1) rotate(18deg); }

@media (hover: none), (max-width: 900px) {
    .cursor-pom { display: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .nav { display: none; }
    .burger {
        display: grid;
        place-items: center;
        margin-left: auto;
        width: 44px; height: 44px;
        border-radius: 50%;
        border: 2px solid var(--ink);
        background: transparent;
        font-size: 18px;
    }
    .header__phone { display: none; }
    .mobile-nav .mobile-nav__phone {
        margin-top: 22px;
        font-family: var(--font-display);
        font-size: 17px;
        color: var(--sun);
        border: 2px solid var(--sun);
        border-radius: 999px;
        padding: 14px 24px;
        align-self: flex-start;
    }
    .hero { padding-top: 110px; min-height: auto; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { height: 420px; order: -1; }
    .badge-rotate { width: 104px; height: 104px; right: 0; bottom: 2%; }
    .about__grid, .contact__grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .sheet__grid { grid-template-columns: 1fr; }
    .sheet__imgcol { position: static; max-width: 380px; }
    .filterbar { top: 66px; }
    .filterbar__in { flex-wrap: wrap; }
    .search { width: 100%; }
    .search input { width: 100%; }
    .mobile-nav {
        position: fixed;
        inset: 0;
        z-index: 850;
        background: var(--ink);
        color: var(--paper);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 40px;
        transform: translateY(-102%);
        transition: transform .5s var(--ease-out);
    }
    .mobile-nav.open { transform: none; }
    .mobile-nav a {
        font-family: var(--font-display);
        font-size: 30px;
        font-weight: 800;
        text-transform: uppercase;
        padding: 8px 0;
    }
    .mobile-nav a:hover { color: var(--sun); }
    .mobile-nav__close {
        position: absolute;
        top: 24px; right: 24px;
        width: 46px; height: 46px;
        border-radius: 50%;
        border: 2px solid var(--paper);
        background: transparent;
        color: var(--paper);
        font-size: 18px;
    }
}

@media (min-width: 901px) { .mobile-nav { display: none; } }

@media (max-width: 640px) {
    .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .cat-card__img { height: 150px; }
    .products { grid-template-columns: 1fr 1fr; gap: 14px; }
    .prod__img { height: 160px; }
    .hero__stats { flex-wrap: wrap; gap: 18px; }
    .section-head { flex-wrap: wrap; }
    .section-head .hint { display: none; }
    .cart__actions { grid-template-columns: 1fr; }
}
