/* ТУДА! КУДА? — стили сайта. Цвета сверху — меняются в одном месте. */
:root {
  --bg: #f4ecd8;
  --sand: #e3d3ad;
  --sand-deep: #d6c294;
  --brown: #483829;
  --brown-dark: #2a1f16;
  --green: #2b3a2e;
  --accent: #a4552f;
  --accent-dark: #86431f;
  --text: #3a2d21;
  --muted: #6f5f4d;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --script: "Marck Script", "Segoe Script", cursive;
}
* { box-sizing: border-box; font-variant-numeric: lining-nums !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 var(--sans); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--brown); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; color: var(--brown); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }

/* Рукописный акцент (как на карте маршрута) */
.script { font-family: var(--script); font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; text-transform: none; letter-spacing: 0; font-weight: 400; margin: .9rem 0 0; }

/* Кнопки */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brown); border: 2px solid var(--brown); }
.btn--ghost:hover { background: var(--brown); color: var(--bg); }
.btn--light { background: var(--sand); color: var(--brown-dark); }
.btn--light:hover { background: #fff; color: var(--brown-dark); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(42,31,22,.96); backdrop-filter: blur(6px); color: var(--sand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font: 700 1.25rem/1 var(--serif); color: var(--sand); text-decoration: none; letter-spacing: .03em; }
.logo:hover { color: #fff; }
.nav { display: none; align-items: center; gap: 22px; }
.nav a { color: var(--sand); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { color: #fff; padding: .6em 1.2em; }
.burger { background: none; border: 0; color: var(--sand); font-size: 1.6rem; line-height: 1; padding: 8px; cursor: pointer; }
.site-header.open .nav { display: flex; flex-direction: column; align-items: flex-start; position: absolute; left: 0; right: 0; top: 100%; background: var(--brown-dark); padding: 16px; gap: 14px; }
@media (min-width: 900px) { .nav { display: flex; } .burger { display: none; } }

/* Главный экран: вся дверь — фон, текст лежит на дереве */
.hero { background: linear-gradient(rgba(14,9,6,.2), rgba(14,9,6,.2)), url("/img/wood.jpg?v=20260930-2246") center top / 640px auto repeat; color: var(--sand); overflow: hidden; }
.hero-stage { position: relative; width: min(100%, 1100px); margin-inline: auto; display: flex; flex-direction: column; }
.hero-pic { order: 2; margin: 0; }
.hero-pic img { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 88%, transparent 100%); }
.hero-col { padding: 36px 20px 8px; }
.hero-col--r { order: 3; padding: 0 20px 44px; }
.hero h1 { color: var(--sand); margin: 0 0 .25em; font-size: clamp(2.8rem, 12vw, 4rem); line-height: 1.02; }
.hero .sub { font: 600 clamp(.95rem, 2.6vw, 1.15rem)/1.4 var(--serif); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.hero p { color: #ecdfc0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.hero .age { margin-top: 1.2rem; font-size: .85rem; color: #b9a67c; }
@media (min-width: 900px) {
  .hero-stage { display: grid; grid-template-columns: 1fr .7fr 1fr; aspect-ratio: 1254 / 980; align-items: center; width: min(100%, 1100px, max(860px, calc((100svh - 64px) * 1.2796))); }
  .hero-pic { position: absolute; inset: 0; order: 0; }
  .hero-pic img { height: 100%; object-fit: cover; object-position: center 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-composite: intersect; }
  .hero-col { position: relative; z-index: 1; padding: 0 0 0 clamp(20px, 3.5vw, 48px); grid-column: 1; }
  .hero-col--r { grid-column: 3; padding: 0 clamp(20px, 3.5vw, 48px) 0 0; order: 0; }
  .hero h1 { font-size: clamp(3rem, 5.6vw, 4.6rem); }
  .hero .sub { max-width: 14rem; }
}

/* Секции */
section { padding: 64px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--brown); color: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--sand); }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }

/* Шаги */
.steps { display: grid; gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: #fbf6e8; border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before { content: counter(s); font: 700 2.4rem/1 var(--serif); color: var(--accent); display: block; margin-bottom: .4rem; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Карточки точек */
.cards { display: grid; gap: 22px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fbf6e8; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 0 rgba(72,56,41,.08); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .meta { font-size: .85rem; color: var(--brown); }
.card .more { margin-top: auto; padding-top: .8rem; font-weight: 600; }

/* Наклейки */
.table-wrap { overflow-x: auto; }
table.stickers { width: 100%; border-collapse: collapse; background: #fbf6e8; border-radius: var(--radius); overflow: hidden; }
.stickers th, .stickers td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--sand-deep); }
.stickers th { background: var(--brown); color: var(--sand); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.stickers tr:last-child td { border-bottom: 0; }
.stickers td:first-child { font-weight: 700; font-family: var(--serif); white-space: nowrap; }
.no { color: #8a3a2a; }
.note { font-size: .92rem; color: var(--muted); margin-top: 1rem; }

/* Подарки */
.gifts { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .gifts { grid-template-columns: 1fr 1fr; } }
.gifts ul { padding-left: 1.1em; margin: 0 0 1.4em; }
.gifts li { margin-bottom: .5em; }
.gifts img { border-radius: var(--radius); }

/* Настроения */
.moods { display: grid; gap: 14px; }
@media (min-width: 620px) { .moods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .moods { grid-template-columns: repeat(4, 1fr); } }
.mood { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.mood img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.mood::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,13,8,0) 35%, rgba(20,13,8,.88) 100%); }
.mood:hover img { transform: scale(1.04); }
.mood-body { padding: 22px; }
.mood h3 { font-size: 1.15rem; text-transform: uppercase; color: #fff; margin-bottom: .35em; }
.mood p { margin: 0; color: #f0e4c8; font-size: .95rem; }

/* Идея маршрута (продолжение двери) */
.section--wood { background: linear-gradient(rgba(14,9,6,.5), rgba(14,9,6,.5)), url("/img/wood.jpg?v=20260930-2246") center top / 640px auto repeat; color: #ecdfc0; padding: 56px 0 72px; }
.section--wood h2 { color: var(--sand); }
.section--wood .lead { color: #d9c9a0; }
.manifesto { display: grid; gap: 28px; }
@media (min-width: 900px) { .manifesto { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; } }
.manifesto p { margin: 0 0 1em; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.chips li { background: #fbf6e8; border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.chips strong { font: 700 1.25rem/1.2 var(--serif); color: var(--brown); }
.chips span { font-size: .92rem; color: var(--muted); }

/* Лента фотографий */
.strip-wrap { background: linear-gradient(rgba(14,9,6,.5), rgba(14,9,6,.5)), url("/img/wood.jpg?v=20260930-2246") center top / 640px auto repeat; padding: 0 0 56px; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.strip img { height: clamp(260px, 38vw, 380px); width: auto; flex: none; border-radius: var(--radius); scroll-snap-align: start; }
@media (min-width: 1150px) { .strip { justify-content: center; } }

.cards .card img { aspect-ratio: 4 / 5; object-fit: cover; }
.steps--4 li::before { color: var(--accent); }
@media (min-width: 800px) { .steps.steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps.steps--4 { grid-template-columns: repeat(4, 1fr); } }

/* Призыв */
.cta { text-align: center; background: linear-gradient(rgba(14,9,6,.45), rgba(14,9,6,.45)), url("/img/wood.jpg?v=20260930-2246") center top / 640px auto repeat; color: var(--sand); padding: 88px 0; }
.cta h2 { color: var(--sand); }

/* Подвал */
.site-footer { background: var(--sand); color: var(--text); padding: 48px 0 30px; font-size: .92rem; }
.site-footer a { color: var(--accent-dark); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--brown); margin: 0 0 .6rem; font-family: var(--serif); font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.copyright { border-top: 1px solid rgba(72,56,41,.2); margin-top: 28px; padding-top: 18px; font-size: .82rem; }

/* Текстовые страницы */
.page-head { background: var(--sand); padding: 48px 0 36px; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0; }
.prose { max-width: 46rem; padding: 40px 0 64px; }
.prose h2 { font-size: 1.5rem; text-transform: none; margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.callout { background: #fbf6e8; border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4em 0; }
.todo { background: #ffe9a8; padding: 0 .3em; border-radius: 4px; }

/* Страница точки */
.point-head { background: var(--sand); padding: 44px 0 40px; }
.point-head .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .point-head .wrap { grid-template-columns: 1.3fr .7fr; gap: 48px; } }
.point-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.logo-card { background: #fbf6e8; border-radius: var(--radius); padding: 22px; display: grid; place-items: center; min-height: 200px; }
.logo-card img { max-height: 200px; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.logo-card--dark { padding: 0; overflow: hidden; }
.logo-card--dark img { mix-blend-mode: normal; max-height: none; width: 100%; }
.point-body { display: grid; gap: 36px; padding: 44px 0 56px; }
@media (min-width: 900px) { .point-body { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.point-body h2 { font-size: 1.4rem; text-transform: none; margin-top: 1.6em; }
.point-body h2:first-child { margin-top: 0; }
.facts { background: #fbf6e8; border-radius: var(--radius); padding: 22px; align-self: start; }
.facts dl { margin: 0; }
.facts dt { font: 600 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 1.1em; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: .35em 0 0; }
.photos { display: grid; gap: 14px; margin-top: 1.4em; }
@media (min-width: 560px) { .photos { grid-template-columns: repeat(2, 1fr); } }
.photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.yes { color: #3d6b3a; font-weight: 600; }

/* Форма */
[hidden] { display: none !important; }
.form { display: grid; gap: 22px; margin-top: 1.6rem; }
.field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.field > label, .field legend { font-weight: 600; color: var(--brown); padding: 0; margin-bottom: 4px; }
.field input[type=text], .field input[type=tel] { width: 100%; font: inherit; padding: .75em .9em; border: 2px solid var(--sand-deep); border-radius: 10px; background: #fff; color: var(--text); }
.field input[type=text]:focus, .field input[type=tel]:focus { border-color: var(--accent); outline: none; }
.opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.opt input { margin-top: .4em; accent-color: var(--accent); width: 1.1em; height: 1.1em; flex: none; }
.checks { gap: 12px; }
.muted { color: var(--muted); font-weight: 400; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdeadf; color: #8a3a2a; border-left: 4px solid #8a3a2a; padding: 12px 16px; border-radius: 0 10px 10px 0; font-weight: 600; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* Вопросы и ответы */
.faq details { background: #fbf6e8; border-radius: var(--radius); margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font: 600 1.05rem/1.4 var(--serif); color: var(--brown); padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-bottom: 1em; }
.faq details > ul { padding-left: 1.2em; }

/* Плашка про cookies */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 640px; margin-inline: auto; background: var(--brown-dark); color: var(--sand); padding: 14px 18px; border-radius: var(--radius); 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: .9rem; }
.cookie a { color: var(--sand); }
.cookie .btn { padding: .55em 1.2em; }

/* Доступность */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
