/* Реферальная программа: светлая тема — изумруд, молочный, шампань. */
:root { --em: #05392e; --green: #0a7a62; --mint: #e6f3ee; --milk: #faf7f0; --champ: #ead9ae; --champ2: #b99a52; --ink: #0d1a16; --muted: #5a6b64; --line: #e7e3d8;
  --shadow: 0 1px 2px rgba(5,57,46,.05), 0 16px 40px rgba(5,57,46,.09); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.5 Inter, system-ui, sans-serif; color: var(--ink); overflow-x: hidden;
  background: radial-gradient(900px 460px at 90% -80px, rgba(16,150,118,.16), transparent 70%), radial-gradient(600px 380px at -10% 22%, rgba(234,217,174,.42), transparent 70%), var(--milk); }
h1, h2, h3, .big, .order, output, .brand, .stat b { font-family: Montserrat, Inter, sans-serif; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; margin: .2em 0 .3em; text-wrap: balance; }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); letter-spacing: -.015em; margin: 0 0 .7em; line-height: 1.2; }
h3 { font-size: 1rem; margin: 1.4em 0 .3em; }
a { color: var(--green); }
img { max-width: 100%; display: block; }
.top, main, footer { max-width: 1040px; margin: 0 auto; padding-inline: 18px; }
.top { display: flex; justify-content: space-between; align-items: center; padding-block: 12px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--em); font-weight: 800; letter-spacing: .08em; font-size: .92rem; }
.brand img { border-radius: 11px; }
.lang { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang a { text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 700; padding: 8px 14px; border-radius: 99px; }
.lang a.on { background: var(--em); color: #fff; }
.tag { font-size: .8rem; color: var(--muted); }

.hero { display: grid; gap: 22px; align-items: center; padding: 10px 0 20px; }
.hero-copy { text-align: center; animation: up .7s both; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--champ2); margin: 0 0 6px; }
.big { margin: 4px 0; font-size: clamp(3.8rem, 18vw, 7.4rem); line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.big b { background: linear-gradient(120deg, #05392e, #0fa27c 45%, #05392e 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s ease-in-out infinite; }
.lead { max-width: 30em; margin: 6px auto 20px; color: var(--muted); }
.gift { display: inline-block; background: linear-gradient(120deg, #f6ecd2, var(--champ)); color: #4a3a10; border-radius: 18px; padding: 11px 18px; font-weight: 600; font-size: .95rem; margin: 14px 0 0; }
.hero-photo { margin: 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.6; background: var(--mint); animation: up .8s .1s both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.btn { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 54px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 99px; font: 700 1rem Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: scale(.98); }
.primary { background: linear-gradient(145deg, #10a07c, #066650 55%, #05392e); color: #fff; box-shadow: 0 12px 26px rgba(6,102,80,.3); }
.wa { background: #128c4b; color: #fff; box-shadow: 0 12px 26px rgba(18,140,75,.26); }
.ghost { background: #fff; border-color: #d5e2dc; color: var(--em); }
.hero .btn { max-width: 380px; margin-inline: auto; }
:focus-visible { outline: 3px solid var(--champ2); outline-offset: 2px; }

.block { margin: 46px auto; max-width: 720px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.center { text-align: center; } .muted { color: var(--muted); font-size: .92rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 18px 88px; min-height: 96px; box-shadow: var(--shadow); }
.steps li::after { content: counter(s); position: absolute; right: 18px; top: 8px; font: 800 2.6rem Montserrat, sans-serif; color: #eee6cf; }
.steps svg { position: absolute; left: 18px; top: 20px; width: 54px; height: 54px; padding: 13px; border-radius: 18px; background: var(--mint); color: var(--green); transition: transform .3s; }
.steps li:hover svg { transform: rotate(-6deg) scale(1.06); }
.steps b { display: block; position: relative; z-index: 1; } .steps p { margin: 2px 0 0; color: var(--muted); font-size: .94rem; }

.calc { text-align: center; background: linear-gradient(160deg, #fff 40%, #eef7f3); border: 1px solid var(--line); border-radius: 32px; padding: 28px 20px; box-shadow: var(--shadow); }
.calc output { display: block; font-weight: 800; font-size: clamp(2.8rem, 12vw, 5rem); letter-spacing: -.035em; color: var(--em); font-variant-numeric: tabular-nums; line-height: 1.1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; padding: 0; border: 0; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--p, 7%), #dfe9e4 var(--p, 7%)); margin: 12px 0 22px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 8px solid var(--green); box-shadow: 0 4px 14px rgba(5,57,46,.3); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 7px solid var(--green); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips button { font: 600 .9rem Inter, sans-serif; padding: 12px 4px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: .2s; }
.chips button.on { background: var(--em); border-color: var(--em); color: #fff; }

form { display: grid; gap: 12px; margin: 0; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input, select, textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid #dcd8cb; border-radius: 16px; font: 16px Inter, sans-serif; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(10,122,98,.15); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--muted); }
.check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--green); }
.row { display: flex; flex-wrap: wrap; gap: 10px; } .row > * { flex: 1 1 200px; }
.join { display: grid; gap: 12px; border-top: 1px dashed var(--line); padding-top: 14px; }
.join p { margin: 0; }
.card > .btn { margin-top: 10px; }
.note { background: #fbf5e4; border: 1px solid var(--champ); border-radius: 18px; padding: 14px 16px; font-size: .92rem; margin: 10px 0; }
.note p { margin: 4px 0 0; }
.err, .ok { border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: .92rem; }
.err { background: #fdecea; color: #9d231b; } .ok { background: var(--mint); color: var(--em); }
.order { font-size: clamp(2rem, 10vw, 3.2rem); font-weight: 800; margin: 0; color: var(--em); overflow-wrap: anywhere; }
.link { background: var(--milk); border-radius: 12px; padding: 10px; font-size: .86rem; overflow-wrap: anywhere; user-select: all; }
canvas[data-card] { width: min(100%, 360px); height: auto; border-radius: 24px; box-shadow: var(--shadow); margin: 0 auto 14px; display: block; background: var(--mint); aspect-ratio: 4/5; }
canvas + .btn { max-width: 360px; margin: 0 auto; }

.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.gallery img { flex: 0 0 68%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 24px; scroll-snap-align: center; background: var(--mint); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
.faq p { margin: 0 0 16px; color: var(--muted); }
.why { list-style: none; padding: 0; display: grid; gap: 10px; } .why li { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--champ); border-radius: 16px; padding: 16px; }
.support { text-align: center; margin: 46px auto; max-width: 420px; }
.sticky { position: sticky; bottom: 10px; z-index: 5; max-width: 420px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); }
.doc p { margin: .5em 0; font-size: .95rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list small { display: block; color: var(--muted); }
.list .btn { min-height: 40px; }
.st { font-size: .76rem; padding: 4px 10px; border-radius: 99px; background: #fbf0cf; white-space: nowrap; }
.st.confirmed { background: #d8f1e6; color: var(--em); } .st.cancelled, .st.rejected { background: #f3e4e2; color: #8b2a22; }
footer { padding-block: 30px 40px; text-align: center; font-size: .82rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; } footer a { color: var(--muted); padding: 4px 0; }

/* панель менеджера */
.admin main > * { margin-bottom: 14px; }
.admin h1 { font-size: 1.5rem; } .admin h2 { font-size: 1.15rem; }
.admin .block { margin-block: 20px; }
.anav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.anav a { text-decoration: none; padding: 9px 15px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
.anav a.on { background: var(--em); color: #fff; } .anav span { margin-left: auto; font-size: .8rem; color: var(--muted); }
.search { display: flex; gap: 8px; } .search .btn { width: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.stat b { display: block; font-size: 1.35rem; color: var(--em); } .stat span { font-size: .78rem; color: var(--muted); }
.lead header { display: flex; justify-content: space-between; gap: 10px; } .lead p { margin: 6px 0; } .lead form { margin-top: 8px; }
.scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: .9rem; } th, td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { padding: 90px 18px 20px; } .chips { grid-template-columns: repeat(4, 1fr); } .gallery img { flex: 1 1 0; min-width: 0; } }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 44px; padding-top: 28px; } .hero-copy { text-align: left; } .hero .btn, .hero .lead { margin-inline: 0; } .big { font-size: 6.6rem; } .sticky { display: none; } }
@keyframes up { from { transform: translateY(16px); } }
@keyframes shine { 50% { background-position: 100% 0; } }
.reveal { transition: opacity .6s, transform .6s; } .reveal.wait:not(.in) { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
