/* Montserrat Alternates и Montserrat (OFL), хранятся на нашем сервере */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/montserrat-400-700-cyrillic.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/montserrat-400-700-latin.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/montserratalternates-500-cyrillic.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/montserratalternates-500-latin.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/montserratalternates-600-cyrillic.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/montserratalternates-600-latin.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/montserratalternates-700-cyrillic.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/montserratalternates-700-latin.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/montserratalternates-800-cyrillic.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat Alternates'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/montserratalternates-800-latin.woff2?v=20261006-1143') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Волжская улитка — стили сайта. Цвета фирменные (брендбук): зелёный #283728, бежевый #e6d2b4. */
:root {
  --green: #283728;
  --green-2: #33463a;
  --beige: #e6d2b4;
  --beige-2: #efe1c9;
  --cream: #f7efe0;
  --ink: #1f2a1f;
  --muted: #5f6b5a;
  --accent: #841616;
  --accent-dark: #6a1010;
  --radius: 4px;
  --wrap: 1180px;
  --head: "Montserrat Alternates", "Montserrat", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--beige); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-text-size-adjust: 100%; font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--accent); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--green); line-height: 1.15; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; }
.eyebrow { font: 600 .78rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.dark { background: var(--green); color: var(--beige); }
.dark h1, .dark h2, .dark h3 { color: var(--beige); }
.dark a { color: var(--beige); }
.dark .eyebrow { color: #d9a98c; }
section { padding: 64px 0; }

/* Кнопки */
.btn { display: inline-block; background: var(--green); color: var(--beige); text-decoration: none; padding: .9em 1.7em; border-radius: var(--radius); font: 600 .85rem/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--green); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); border-color: var(--green); color: var(--beige); }
.btn--light { background: var(--beige); color: var(--green); border-color: var(--beige); }
.btn--light:hover { background: #fff; color: var(--green); border-color: #fff; }
.dark .btn--ghost { color: var(--beige); border-color: var(--beige); }
.dark .btn--ghost:hover { background: var(--beige); color: var(--green); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--green); color: var(--beige); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 76px; }
.logo { display: block; justify-self: center; line-height: 0; }
.logo img { height: 60px; width: auto; }
.nav { display: none; gap: 22px; align-items: center; }
.nav a { white-space: nowrap; color: var(--beige); text-decoration: none; font: 600 .78rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--beige); }
.head-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--beige); text-decoration: none; font: 600 .78rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border: 1px solid rgba(230,210,180,.5); border-radius: var(--radius); }
.cart-link:hover { background: var(--beige); color: var(--green); }
.cart-count { background: var(--accent); color: #fff; border-radius: 99px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .72rem; padding: 0 6px; }
.cart-count[data-n="0"] { display: none; }
.burger { background: none; border: 0; color: var(--beige); font-size: 1.7rem; line-height: 1; padding: 6px 8px; cursor: pointer; justify-self: start; }
.site-header.open .nav { display: flex; flex-direction: column; align-items: flex-start; position: absolute; left: 0; right: 0; top: 100%; background: var(--green); padding: 16px; gap: 14px; }
@media (min-width: 1100px) { .nav { display: flex; justify-self: start; } .burger { display: none; } }
@media (max-width: 1099px) { .site-header .wrap { grid-template-columns: auto 1fr auto; } .logo { justify-self: center; } .cart-link span.t { display: none; } }

/* Главный экран */
.hero { background: var(--green); color: var(--beige); padding: 0; }
.hero .wrap { display: grid; gap: 0; align-items: stretch; width: 100%; max-width: none; margin: 0; }
.hero-text { padding: 56px max(16px, calc((100vw - var(--wrap)) / 2)) 56px max(16px, calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: var(--beige); margin-bottom: .4em; }
.hero .sub { font: 700 clamp(.95rem, 2vw, 1.15rem)/1.4 var(--head); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1.4rem; color: #d9a98c; }
.hero p { max-width: 36rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-pic img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1fr 1fr; } .hero-text { padding-right: 56px; padding-left: max(16px, calc((100vw - var(--wrap)) / 2)); } .hero-pic img { min-height: 560px; } }

/* Карточки товаров */
.grid { display: grid; gap: 22px; }
.products { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--cream); display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; position: relative; }
.card-img { aspect-ratio: 2 / 3; overflow: hidden; background: var(--beige-2); display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font: 700 .68rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; z-index: 2; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; }
.card h3 a { color: var(--green); text-decoration: none; }
.card .tag { font: 600 .72rem/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0; }
.card p.short { font-size: .92rem; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; flex-wrap: wrap; }
.price { font: 700 1.3rem/1 var(--head); color: var(--green); }
.price small { font: 500 .75rem/1 var(--body); color: var(--muted); display: block; margin-top: 4px; }
.card .btn { padding: .75em 1.1em; font-size: .75rem; }

/* Страница товара */
.crumbs { font-size: .82rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.product { display: grid; gap: 32px; padding: 40px 0 56px; }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; gap: 56px; } }
.product-img { background: var(--beige-2); border-radius: var(--radius); overflow: hidden; align-self: start; }
.product-img img { width: 100%; height: auto; }
.product .price { font-size: 2rem; }
.buy { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 1.4rem 0; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--green); border-radius: var(--radius); }
.qty button { background: none; border: 0; width: 42px; height: 46px; font-size: 1.3rem; color: var(--green); cursor: pointer; }
.qty button:hover { background: var(--green); color: var(--beige); }
.qty input { width: 48px; height: 46px; border: 0; text-align: center; background: transparent; font: 600 1rem var(--body); color: var(--green); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.facts { border-top: 1px solid rgba(40,55,40,.25); margin-top: 1.6rem; }
.facts details { border-bottom: 1px solid rgba(40,55,40,.25); padding: 14px 0; }
.facts summary { cursor: pointer; font: 700 .85rem/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--green); list-style: none; display: flex; justify-content: space-between; }
.facts summary::-webkit-details-marker { display: none; }
.facts summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.facts details[open] summary::after { content: "–"; }
.facts details p { margin: .6em 0 0; }
.note { font-size: .85rem; color: var(--muted); }
.dark .note { color: #d8c7a8; }

/* Блок маршрута «ТУДА! КУДА?»: вся секция — деревянная дверь, скважина справа (на телефоне сверху) */
.tk { background-color: #1e140c; background-image: linear-gradient(to bottom, rgba(30,20,12,0) 95vw, #1e140c 150vw), url(/img/tudakuda-door-m.webp?v=20261006-1143); background-repeat: no-repeat; background-size: 100% auto; background-position: center top; padding-top: 128vw; }
.tk .tk-text { max-width: 34rem; }
.tk .tk-text p { color: var(--beige); }
.tk .tk-text .note { color: #d8c7a8; }
.tk .tk-text a { color: var(--beige); }
@media (min-width: 900px) {
  .tk { position: relative; padding: 72px 0; min-height: 520px; display: grid; align-content: center; background-image: linear-gradient(90deg, rgba(20,13,8,.4) 0, rgba(20,13,8,.2) 45%, rgba(20,13,8,0) 65%), url(/img/tudakuda-wood.webp?v=20261006-1143); background-size: auto, auto 100%; background-position: 0 0, left top; background-repeat: no-repeat, repeat-x; }
  /* дверь со скважиной справа; левый край плавно растворяется в дереве, без видимого стыка */
  .tk::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 1254 / 980; background: url(/img/tudakuda-door.webp?v=20261006-1143) center / cover no-repeat; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%); mask-image: linear-gradient(to right, transparent 0, #000 35%); }
  .tk .wrap { position: relative; z-index: 1; }
}
/* второй блок маршрута — в духе печатной маршрутной карты: пергамент, тонкая сепия-рамка, терракотовая кнопка */
.tk2 { background: #f4ecd8; color: #3e2c1f; padding: 56px 0; text-align: center; }
.tk2 .eyebrow { color: #a4552f; }
.tk2 h2 { color: #3e2c1f; }
.tk2-doors { list-style: none; padding: 0; margin: 1.8rem auto 1.6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; max-width: 900px; align-items: end; }
.tk2-doors li { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .85; }
.tk2-doors img { height: 132px; width: auto; margin-bottom: 8px; position: relative; }
.tk2-doors b { font: 700 .8rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.tk2-doors li > span:not(.tk2-door) { font-size: .78rem; color: #6b5642; }
.tk2-doors .is-us { opacity: 1; }
/* в файлах дверей (236x346) центр рамки — на 60% ширины из-за растений: сдвигаем показ на 10%, чтобы дверь стояла над подписью; файлы не меняем */
.tk2-doors li > img, .tk2-doors .tk2-door { transform: translateX(-10%); }
.tk2-doors .tk2-door { position: relative; display: block; line-height: 0; margin-bottom: 8px; }
.tk2-doors .tk2-door img { display: block; margin: 0; }
/* наша дверь — в пунктирном круге, как «место для наклейки» на маршрутной карте */
.tk2-doors .is-us .tk2-door::before { content: ""; position: absolute; height: 110%; aspect-ratio: 1; top: 45%; left: 60%; transform: translate(-50%, -50%); /* центр рамки двери в файле 236x346: x 141/236, y ~156/346 */ border-radius: 50%; border: 2px dashed #a4552f; background: rgba(164,85,47,.07); }
.tk2-doors .is-us img { height: 150px; mix-blend-mode: darken; } /* светлый фон картинки пропускает круг, рисунок не меняется */
.tk2-doors .is-us em { font: 700 .68rem/1 var(--head); font-style: normal; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: #a4552f; border-radius: 999px; padding: .45em .9em; margin-bottom: 14px; position: relative; z-index: 1; }
.tk2-lead { max-width: 40rem; margin: 0 auto 1.6rem; font-size: 1rem; }
.tk2-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tk2-btn { display: inline-block; background: #a4552f; color: #fff; text-decoration: none; padding: 1.1em 2.6em; border-radius: 999px; font: 700 1rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; transition: background .2s; }
.tk2-btn:hover { background: #86431f; color: #fff; }
.tk2-hint { margin: 0; font-size: .82rem; color: #6b5642; max-width: 26rem; }
@media (min-width: 900px) { .tk2 { padding: 72px 0; } .tk2-doors { grid-template-columns: repeat(4, 1fr); } .tk2-doors img { height: 170px; } .tk2-doors .is-us img { height: 196px; } }
.callout { background: var(--cream); border-left: 4px solid var(--green); padding: 16px 20px; margin: 1.4em 0; }

/* Блоки главной */
.points { display: grid; gap: 22px; }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { border: 1px solid rgba(230,210,180,.35); padding: 26px; }
.point h3 { margin-bottom: .5em; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--rev .split-pic { order: -1; } }
.split-pic img { width: 100%; border-radius: var(--radius); }
.tour { background: var(--cream); padding: 26px; border-radius: var(--radius); }
.tour h3 { margin-bottom: .3em; }
.tour .dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0; }
.tour .dates a { text-decoration: none; border: 1.5px solid var(--green); padding: .45em .9em; font: 600 .78rem/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.tour .dates a:hover { background: var(--green); color: var(--beige); }

/* Корзина и оформление */
.page-head { background: var(--green); color: var(--beige); padding: 44px 0 36px; }
.page-head h1 { color: var(--beige); margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.prose { max-width: 48rem; padding: 40px 0 64px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.cart-wrap { display: grid; gap: 32px; padding: 40px 0 64px; }
@media (min-width: 900px) { .cart-wrap { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.cart-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; background: var(--cream); padding: 12px; margin-bottom: 10px; border-radius: var(--radius); }
.cart-row img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius); }
.cart-row .nm { font: 600 .92rem/1.3 var(--head); color: var(--green); text-decoration: none; }
.cart-row .sum { font: 700 1.05rem var(--head); text-align: right; }
.cart-row .qty { transform: scale(.85); transform-origin: left; margin-top: 6px; }
.cart-row .rm { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: .8rem; padding: 4px 0; text-decoration: underline; }
.summary { background: var(--cream); padding: 24px; border-radius: var(--radius); position: sticky; top: 96px; }
.summary dl { margin: 0 0 1em; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; gap: 12px; }
.summary .total { border-top: 2px solid var(--green); margin-top: 8px; padding-top: 12px; font: 700 1.2rem var(--head); }
.empty { text-align: center; padding: 56px 0; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font: 600 .78rem/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--green); padding: 0; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea, .field select { width: 100%; font: inherit; padding: .8em .9em; border: 1.5px solid var(--green); border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(132,22,22,.25); border-color: var(--accent); }
.opt { display: flex; gap: 10px; align-items: flex-start; font: 400 .9rem/1.5 var(--body) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink) !important; cursor: pointer; }
.opt input { margin-top: .35em; accent-color: var(--green); width: 1.1em; height: 1.1em; flex: none; }
.err { background: #f6dcd6; color: var(--accent-dark); border-left: 4px solid var(--accent); padding: 12px 16px; font-weight: 600; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Подвал */
.site-footer { background: var(--green); color: var(--beige); padding: 48px 0 28px; font-size: .9rem; }
.site-footer a { color: var(--beige); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .foot-h { font: 700 .85rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.copyright { border-top: 1px solid rgba(230,210,180,.25); margin-top: 28px; padding-top: 18px; font-size: .78rem; color: #bfae8d; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 640px; margin-inline: auto; background: var(--green); color: var(--beige); padding: 14px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.cookie p { margin: 0; flex: 1 1 260px; font-size: .88rem; }
.cookie a { color: var(--beige); }
.cookie .btn { padding: .6em 1.2em; background: var(--beige); color: var(--green); border-color: var(--beige); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; top: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card-img img { transition: none; } }

.todo { background: #ffe9a8; padding: 0 .3em; border-radius: 4px; }

/* Карточки на тёмном фоне: текст тёмно-зелёный на светлой карточке */
.dark .tour, .dark .tour p, .dark .tour li { color: var(--ink); }
.dark .tour h3 { color: var(--green); }
.dark .tour strong { color: var(--green); }
.dark .tour a { color: var(--green); }
.dark .tour a:hover { color: #fff; }
.tour .dates a { background: transparent; }

/* Мозаика фотографий без пробелов */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 8px; grid-auto-flow: dense; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }
.mosaic .w2h2 { grid-column: span 2; grid-row: span 2; }
.mosaic .h2 { grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } .mosaic .w2h2 { grid-column: span 2; grid-row: span 1; } }
.quote { max-width: 46rem; margin: 0 auto; text-align: center; }
.quote h2 { margin-bottom: .6em; }
.quote p { font-size: 1.1rem; }

/* Рекорд: награждение и фото события — без обрезки (рамка повторяет пропорции снимка) */
.record { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 2rem; align-items: stretch; }
.record img { width: 100%; display: block; border-radius: 3px; height: auto; }
@media (min-width: 760px) { .record { grid-template-columns: 1.21fr 1fr; grid-template-rows: auto auto; align-items: start; } .record .big { grid-row: span 2; } }

/* Галерея: каждое фото целиком, ряды одной высоты, без пробелов */
.gal { display: flex; flex-direction: column; gap: 8px; margin-top: 1.5rem; }
.gal-row { display: flex; gap: 8px; }
.gal-row img { height: auto; min-width: 0; border-radius: 3px; display: block; }
@media (max-width: 760px) { .gal-row { display: grid; grid-template-columns: repeat(3, 1fr); } .gal-row img { width: 100%; flex: none !important; } .gal-row img.wide { grid-column: 1 / -1; } }
/* Этап 0: защита от выхода текста за край экрана, читаемая кнопка на тёмном фоне */
body { overflow-x: clip; }
h1, h2, h3, p, li, dd, dt, .card h3, .tour, .point { overflow-wrap: break-word; }
.grid > *, .split > *, .points > *, .cart-wrap > * { min-width: 0; }
.dark .btn--light, .dark .btn--light:hover { color: var(--green); }
/* Этап 1: развилка «две двери», афиша, даты, подписка, вопросы */
.hero .next-line { margin: 1.2rem 0 0; font: 600 .95rem/1.4 var(--body); }
.hero .next-line a { color: var(--beige); text-decoration: underline; text-underline-offset: 3px; }
.doors { display: grid; gap: 14px; padding: 14px 0 0; }
@media (min-width: 800px) { .doors { grid-template-columns: 1fr 1fr; gap: 18px; } }
.door { position: relative; display: block; min-height: 420px; max-height: 60vh; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; background: var(--green); }
@media (min-width: 800px) { .door { min-height: 480px; max-height: none; } }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.door:hover img { transform: scale(1.03); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,30,20,.88) 0%, rgba(20,30,20,.55) 45%, rgba(20,30,20,0) 80%); }
.door-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; }
.door h2 { color: #fff; margin: 0 0 .4em; }
.door p { margin: 0 0 1em; max-width: 30rem; color: #fff; }
.door .btn { background: var(--beige); color: var(--green); border-color: var(--beige); }
.door:hover .btn { background: #fff; color: var(--green); border-color: #fff; }
.door:hover { color: #fff; }
.evgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.evcard .ev-img, .card-img.ev-img { aspect-ratio: 4 / 3; }
.evcard .card-img img { object-position: 50% 45%; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 1.4rem; }
.chip { background: transparent; border: 1.5px solid var(--green); color: var(--green); padding: .5em 1.1em; font: 600 .78rem/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; cursor: pointer; }
.chip.is-on, .chip:hover { background: var(--green); color: var(--beige); }
.datebtn { display: inline-block; text-decoration: none; border: 1.5px solid var(--green); padding: .55em 1em; font: 500 .85rem/1.2 var(--body); color: var(--green); background: transparent; border-radius: var(--radius); }
a.datebtn:hover { background: var(--green); color: var(--beige); }
.datebtn b { font-weight: 700; }
.datebtn.is-off { opacity: .5; border-style: dashed; }
.dates--empty { font-size: .95rem; color: var(--muted); }
.tour-hero .dates { margin: 1.2rem 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 1.5rem; counter-reset: s; }
.step { background: var(--cream); padding: 22px; border-radius: var(--radius); counter-increment: s; }
.step::before { content: counter(s); display: block; font: 700 1.6rem/1 var(--head); color: var(--accent); margin-bottom: .5rem; }
.step h3 { font-size: 1rem; }
.facts-list { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.facts-list li { padding: .45rem 0; border-bottom: 1px solid rgba(40,55,40,.2); }
.subscribe { background: var(--green); color: var(--beige); }
.subscribe h2 { color: var(--beige); }
.subscribe .eyebrow { color: #d9a98c; }
.sub-box { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .sub-box { grid-template-columns: 1fr 1fr; gap: 56px; } }
.subscribe .field label { color: var(--beige); }
.subscribe a { color: var(--beige); }
.subscribe .opt, .subscribe .opt span { color: var(--beige) !important; }
.subscribe .btn--light { justify-self: start; }
.ok { background: var(--cream); color: var(--green); border-left: 4px solid var(--green); padding: 12px 16px; font-weight: 600; margin: 0; }
.lead-form { background: var(--cream); padding: 26px; border-radius: var(--radius); max-width: 40rem; }
.faq-list { max-width: 48rem; margin-top: 1.2rem; }
.faq-list details { border-bottom: 1px solid rgba(40,55,40,.25); padding: 14px 0; }
.faq-list summary { cursor: pointer; font: 700 .9rem/1.35 var(--head); letter-spacing: .04em; color: var(--green); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: .6em 0 0; }
.ph { background: #ffe9a8; border: 2px dashed #b58a00; padding: 12px 16px; margin: 1rem 0; border-radius: var(--radius); color: #3a2e00; }
.banner { background: var(--green); color: var(--beige); padding: 30px 28px; border-radius: var(--radius); display: grid; gap: 14px; align-items: center; }
@media (min-width: 800px) { .banner { grid-template-columns: 1fr auto; } }
.banner h2, .banner p { color: var(--beige); margin: 0; }
.banner .btn { background: var(--beige); color: var(--green); border-color: var(--beige); }
.gal-row--3 img.wide { }
@media (max-width: 760px) { .gal-row--3 { grid-template-columns: repeat(2, 1fr); } }
.cols2 { display: grid; gap: 26px; }
@media (min-width: 800px) { .cols2 { grid-template-columns: 1fr 1fr; gap: 48px; } }
.family { background: var(--beige-2); }

.hero--plain .wrap { grid-template-columns: 1fr !important; }
.hero--plain .hero-text { padding-top: 48px; padding-bottom: 48px; }
.dark .tour .btn--ghost { color: var(--green); }
.dark .tour .btn--ghost:hover { color: var(--beige); background: var(--green); }


.evcard .card-img.ev-img, .card-img.ev-img { aspect-ratio: auto; }
.card-img.ev-img img { height: auto; object-fit: contain; }


/* карточки событий: фото слева целиком, текст справа */
.evgrid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.evcard { flex-direction: row; align-items: stretch; }
.evcard .card-img.ev-img { flex: 0 0 38%; max-width: 190px; align-self: flex-start; }
.evcard .card-body { min-width: 0; }
@media (max-width: 400px) { .evgrid { grid-template-columns: 1fr; } }

.product > *, .tour-hero .product > * { min-width: 0; }
.product { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }


/* афиша: расписание строками, без картинок */
.evlist { display: grid; gap: 10px; margin-top: 1.2rem; }
.evrow { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; background: var(--cream); padding: 16px 20px; border-radius: var(--radius); }
.evrow-date b { display: block; font: 700 1.1rem/1.2 var(--head); color: var(--green); }
.evrow-date span { font-size: .85rem; color: var(--muted); }
.evrow h3 { margin: 0 0 .2em; font-size: 1rem; } .evrow h3 a { text-decoration: none; }
.evrow p { margin: 0; font-size: .92rem; }
@media (max-width: 640px) { .evrow { grid-template-columns: 1fr; gap: 8px; } }
.gal-row--v { max-width: 760px; margin-inline: auto; width: 100%; }
@media (max-width: 760px) { .gal-row--v { display: flex; } .gal-row--v img { flex: 1 1 0 !important; width: auto; } }
.tour .dates { margin: .4em 0 1em; }

/* Этап 1б: три карточки «приехать на ферму», афиша-календарь */
.weekly { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 1.5rem; }
.tour--pic { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tour-pic { width: 100%; height: 240px; object-fit: cover; object-position: 50% 45%; }
.tour-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tour-body > p:last-child { margin: auto 0 0; padding-top: .6rem; }
.tour-body .dates { margin: .2em 0 1em; }
.citytag { display: inline-block; background: var(--green); color: var(--beige); font: 700 .68rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; padding: .35em .6em; border-radius: 3px; margin-right: .3em; }
.evrow.has-pic { grid-template-columns: 110px 80px 1fr auto; }
.evrow-pic img { width: 80px; height: 80px; object-fit: cover; border-radius: 3px; }
@media (max-width: 640px) { .evrow.has-pic { grid-template-columns: 1fr; } }
.evlist .evrow[hidden] { display: none; }

.tour-pic { object-position: 50% 30%; }


/* кнопки в карточках на тёмном фоне: читаемый текст (исправление «пустой зелёной кнопки») */
.dark .tour a.btn { color: var(--beige); }
.dark .tour a.btn:hover { color: #fff; }
.dark .tour a.btn--ghost { color: var(--green); }
.dark .tour a.btn--ghost:hover { color: var(--beige); background: var(--green); }

/* Отзывы */
.reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 1.2rem; text-align: left; }
.review { margin: 0; background: var(--cream); padding: 22px 24px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.review .stars { color: #d89b00; letter-spacing: .12em; font-size: 1.05rem; line-height: 1; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; font-size: .95rem; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.review figcaption span { font-size: .78rem; color: var(--muted); }

.reviews-more { margin: 1.2rem 0 0; font-weight: 600; text-align: left; }


/* Этап 2: липкая нижняя панель на телефоне, полоса бесплатной доставки */
.sticky-bar { display: none; }
@media (max-width: 760px) {
  .sticky-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,239,224,.97); box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
  .sticky-bar .btn { flex: 1; text-align: center; padding: 1em 1.2em; }
  .sticky-bar [hidden] { display: none !important; }
  body:has(.sticky-bar) { padding-bottom: 76px; }
  body:has(.sticky-bar [data-sticky-cart][hidden]) .sticky-bar { display: none; }
  body:has(.sticky-bar [data-sticky-cart][hidden]) { padding-bottom: 0; }
  .cookie { bottom: 84px; }
}
.free { background: var(--beige-2); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; font-size: .92rem; }
.free p { margin: 0; }
.free-bar { height: 8px; background: rgba(40,55,40,.18); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.free-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .3s; }
.free.is-done { background: #dcefd5; }
.cart-hits { margin-top: 1rem; }
.related h2 { margin-bottom: .3em; }

/* Подсказка для москвичей */
.geo-tip { background: var(--beige-2); color: var(--green); font-size: .85rem; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 6px 40px 6px 16px; position: relative; text-align: center; }
.geo-tip a { color: var(--green); font-weight: 600; }
.geo-tip button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--green); cursor: pointer; padding: 4px 8px; }

/* О нас пишут */
.press-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 1.2rem; }
.press-card { display: flex; flex-direction: column; gap: 8px; background: var(--cream); padding: 20px; border-radius: var(--radius); text-decoration: none; color: var(--ink); border-top: 3px solid var(--green); transition: transform .2s, border-color .2s; }
.press-card:hover { transform: translateY(-2px); border-top-color: var(--accent); color: var(--ink); }
.press-outlet { font: 700 .72rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.press-title { font: 600 1rem/1.35 var(--head); color: var(--green); flex: 1; }
.press-date { font-size: .8rem; color: var(--muted); }
.press-strip { background: var(--beige-2); }
.press-quote { margin: 0 0 1.4rem; padding: 22px 26px; background: var(--green); color: var(--beige); border-radius: var(--radius); max-width: 52rem; }
.press-quote p { font: 600 clamp(1.1rem, 2.4vw, 1.4rem)/1.4 var(--head); margin: 0 0 .6rem; }
.press-quote footer { font-size: .88rem; color: #d9c7a6; } .press-quote footer a { color: var(--beige); }
.press-award { background: var(--cream); border-left: 4px solid var(--accent); padding: 18px 22px; margin: 0 0 1.4rem; max-width: 52rem; border-radius: 0 var(--radius) var(--radius) 0; }
.press-award p { margin: .5rem 0 0; }
.press-award-badge { display: inline-block; background: var(--accent); color: #fff; font: 700 .68rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; padding: .4em .7em; border-radius: 3px; }
.press-award-line { font-weight: 600; color: var(--green); margin: 0 0 1rem; }

/* Шапка: логотип слева, меню по центру между логотипом и корзиной, корзина справа */
.site-header .wrap { grid-template-columns: auto 1fr auto; gap: 24px; }
.logo { justify-self: start; }
.nav { justify-self: center; gap: 34px; }
@media (max-width: 1099px) { .logo { justify-self: center; } }

@media (max-width: 760px) { .gal-row--4 { grid-template-columns: repeat(2, 1fr); align-items: start; } }


.method { border: 0; padding: 0; margin: 0; } .method legend { font: 600 .78rem/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 0; margin-bottom: 8px; } .method .opt { margin-bottom: 6px; }
.subscribe .method legend { color: var(--beige); }


/* карточки гастротуров: фото 4:5, видно целиком (костёр, небо, стол) */
.tour-pic { height: auto !important; aspect-ratio: 4 / 5; }


/* Атмосфера фермы: ряды одинаковой высоты, плитки обрезаны по кадру (лица и главное в фокусе) */
.gal2 { display: flex; flex-direction: column; gap: 8px; margin-top: 1.5rem; }
.gal2-row { display: grid; gap: 8px; align-items: stretch; }
.gal2-a { grid-template-columns: 2fr 1fr 1fr; }
.gal2-b { grid-template-columns: repeat(4, 1fr); }
.gal2-c { grid-template-columns: repeat(3, 1fr); }
.gal2-row img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 3px; display: block; aspect-ratio: 3 / 4; }
.gal2-row img.wide { aspect-ratio: auto; }
@media (max-width: 760px) {
  .gal2-a, .gal2-b, .gal2-c { grid-template-columns: repeat(2, 1fr); }
  .gal2-row img.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .gal2-c img:last-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* Блок «Наша семья»: текст и три настоящих фото */
.family-text { max-width: 46rem; }
.family-photos { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 1.6rem; }
.family-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); display: block; }
@media (max-width: 760px) { .family-photos { grid-template-columns: repeat(2, 1fr); } .family-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; } }

/* страница «Село Печерское»: фото только на всю ширину — фоном с текстом поверх или рядом от края до края */
.ph-hero { position: relative; min-height: 78vh; display: grid; align-content: end; padding: 120px 0 56px; color: var(--beige); overflow: hidden; background: #2a2418; }
.ph-hero .ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,24,16,.82) 0%, rgba(20,24,16,.45) 45%, rgba(20,24,16,.05) 75%); }
.ph-hero .ph-text { position: relative; z-index: 1; max-width: var(--wrap); text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.ph-hero .ph-text > * { max-width: 46rem; }
.ph-hero h1, .ph-hero h2 { color: var(--beige); }
.ph-hero .eyebrow { color: #e9c3a8; }
.ph-hero p { color: #f3e7d3; }
.ph-hero--mid { min-height: 70vh; }
@media (min-width: 900px) {
  .ph-hero--mid { align-content: center; }
  .ph-hero--mid::after { background: linear-gradient(90deg, rgba(20,24,16,.85) 0%, rgba(20,24,16,.6) 45%, rgba(20,24,16,.1) 75%); }
}
.ph-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--beige); }
.ph-row img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
@media (min-width: 900px) { .ph-row img { aspect-ratio: 4 / 5; } }