/* Общая база для вариантов дизайна. Цвета и шрифты задаёт вариант через переменные. */
:root {
  --bg: #f4efe4; --ink: #2b2620; --ink-2: #5a5148; --accent: #9a4a24; --accent-dark: #7a3818;
  --red: #a3261b; --card: #fff; --line: #c9bda6;
  --f-body: Georgia, serif; --f-head: Georgia, serif; --f-hand: "Segoe Print", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked, html.locked body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--f-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; text-wrap: balance; }
p { margin: 0 0 1em; }
.small { font-size: 15px; color: var(--ink-2); }
.muted { opacity: .75; }
.lead { font-size: 1.12em; }

.btn {
  font: 700 17px/1.2 var(--f-body);
  border: 2px solid var(--accent); background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: 6px; cursor: pointer; min-height: 48px;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-big { font-size: 19px; padding: 14px 26px; width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #d9a441; outline-offset: 2px;
}
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }

/* советы */
.tip-num span { display: none; }
.warn { border: 2px solid var(--red); border-radius: 6px; padding: 14px 16px; margin: 0 0 1em; background: rgba(163, 38, 27, .07); }
.warn p { margin: 0; }
.red { padding-left: 1.2em; }
.red li { margin-bottom: .5em; }
.ticks { margin: 0; padding-left: 1.2em; }
.ticks li { margin-bottom: .35em; }

/* тулупчик */
.tulup-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tulup-gallery img { width: 100%; height: 230px; object-fit: cover; border-radius: 6px; }
@media (max-width: 560px) {
  .tulup-gallery { grid-template-columns: 1fr 1fr; }
  .tulup-gallery .zoom:first-child { grid-column: 1 / -1; }
  .tulup-gallery img { height: 180px; }
}
.tulup-buy { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 760px) { .tulup-buy { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.price-card { background: var(--card); border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.price { font: 700 44px/1 var(--f-head); color: var(--accent); margin-bottom: .2em; }
.price-card .small { margin: 12px 0 0; }

/* форма */
.form { background: var(--card); border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.1); color: var(--ink); }
.form label { display: block; margin-bottom: 14px; font-weight: 700; }
.form label small { font-weight: 400; color: var(--ink-2); }
.form input:not([type=checkbox]), .form textarea {
  display: block; width: 100%; margin-top: 4px;
  font: 17px/1.4 var(--f-body); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: #fffdf8;
}
.form textarea { resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; }
.form .check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.form-msg { margin: 12px 0 0; font-size: 16px; }
.form-msg.err { color: var(--red); }

/* заставка 18+ */
.gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(rgba(30, 24, 18, .74), rgba(30, 24, 18, .74)), #2b2620 url(img/tuman-800.webp?v=b74ddb6d) center / cover no-repeat;
  overflow-y: auto;
}
.gate[hidden] { display: none; }
.gate-card {
  background: #f4efe4; color: #2b2620; max-width: 440px; width: 100%;
  border-radius: 10px; padding: 26px 22px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.gate-badge {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid #a3261b; color: #a3261b; font: 700 22px/1 Georgia, serif; margin-bottom: 10px;
}
.gate h2 { font: 700 34px/1.1 var(--f-head); }
.gate-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
.gate-no-text { font-size: 20px; color: #4d5b3a; }
.gate-small { font-size: 14px; color: #5a5148; margin: 0; }

/* окно просмотра снимка */
.zoom { display: block; cursor: zoom-in; }
.lb {
  position: fixed; inset: 0; z-index: 60;
  display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
  padding: 60px 12px; background: rgba(12, 10, 8, .97); cursor: zoom-out; touch-action: none;
}
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; object-fit: contain; }
.lb button {
  position: fixed; z-index: 1; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font: 34px/1 Arial, sans-serif; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 4px;
}
.lb button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; margin-top: -24px; }
.lb-next { right: 8px; top: 50%; margin-top: -24px; }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 70; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px);
  background: #2b2620; color: #f4efe4; padding: 12px 18px; border-radius: 8px; font-size: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.toast[hidden] { display: none; }
