/* Self-hosted fonts (SIL Open Font License) */
/* cyrillic */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/assets/fonts/playfairdisplay-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/assets/fonts/playfairdisplay-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/assets/fonts/playfairdisplay-latin.woff2) 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;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) 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;
}

/* ArtPets — тёплый «галерейный» стиль: крем, чернила, терракота, золото рамок. */
:root {
  --bg: #FBF6EF;
  --sand: #F3EADD;
  --card: #FFFFFF;
  --ink: #1E2235;
  --ink-2: #555A6E;
  --line: #E7DCCD;
  --accent: #E0663F;
  --accent-2: #C9532E;
  --accent-soft: #FCE7DE;
  --gold: #C29A55;
  --gold-2: #8E6B2E;
  --navy: #1F2742;
  --ok: #2E7D5B;
  --err: #B3261E;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(30, 34, 53, .06), 0 8px 28px rgba(30, 34, 53, .08);
  --shadow-lg: 0 20px 60px rgba(30, 34, 53, .18);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Атрибут hidden всегда скрывает, даже если у элемента есть свой display (кнопки, flex-блоки). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.13rem; font-weight: 800; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(224, 102, 63, .35); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row .grow { flex: 1; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; font-size: inherit; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 800; color: var(--accent-2); text-decoration: none; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 239, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; color: var(--accent); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.logo-name i { color: var(--accent); font-style: italic; }
.logo-tag { font-size: .72rem; color: var(--ink-2); font-weight: 600; }
.site-nav { margin-left: auto; }
.site-nav ul, .lang ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover { background: var(--sand); }
.lang a, .lang span { display: block; padding: 6px 7px; font-size: .8rem; font-weight: 800; text-decoration: none; border-radius: 8px; color: var(--ink-2); }
.lang span { color: var(--ink); background: var(--sand); }
.lang a:hover { color: var(--ink); }
.nav-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-btn i { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 32px 0 56px; background: radial-gradient(1200px 500px at 85% 0%, #FDE4D8 0%, rgba(253, 228, 216, 0) 60%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head show" "text show"; column-gap: 64px; align-items: start; }
.hero-head { grid-area: head; align-self: end; }
.hero-text { grid-area: text; }
/* Ширина витрины зависит от высоты экрана: пример + стили + кнопка «заказать» видны без прокрутки. */
.hero-show { grid-area: show; width: min(100%, max(330px, calc((100svh - 330px) * .8 + 28px)), 500px); }
.hero-show:has(.subjects) { width: min(100%, max(330px, calc((100svh - 410px) * .8 + 28px)), 500px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--accent-2); margin-bottom: 20px; }
.kicker .ico { width: 18px; height: 18px; }
.hero h1 { margin-bottom: .35em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.micro { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.micro li { display: inline-flex; align-items: center; gap: 6px; }
.micro .ico { width: 18px; height: 18px; color: var(--ok); }

/* showcase: рамка + сравнение до/после + выбор стиля */
.showcase { position: relative; }
.frame { position: relative; padding: 14px; border-radius: 10px; background: linear-gradient(135deg, #E8CC8E, var(--gold) 35%, #F1DDA8 55%, var(--gold-2)); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .4); }
.frame::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(90, 64, 20, .35); border-radius: 4px; pointer-events: none; }
.compare { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--sand); user-select: none; touch-action: pan-y; }
.cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .3); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.cmp-knob .ico { width: 22px; height: 22px; }
.cmp-knob::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.cmp-knob .ico { margin-left: 8px; width: 16px; height: 16px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.cmp-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(30, 34, 53, .72); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .02em; pointer-events: none; }
.cmp-tag-l { left: 12px; }
.cmp-tag-r { right: 12px; background: var(--accent); }
.compare-empty .cmp-img { position: static; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 18px 0 12px; }
.chips button { border: 2px solid var(--line); background: var(--card); padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .92rem; cursor: pointer; transition: all .15s; }
.chips button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips button:hover { border-color: var(--ink); }
.subjects { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.subjects button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .65; transition: all .15s; }
.subjects button img { width: 52px; height: 64px; object-fit: cover; }
.subjects button[aria-checked="true"] { border-color: var(--accent); opacity: 1; }
.ph { width: 100%; height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: repeating-linear-gradient(45deg, #F6EDE1 0 14px, #F1E5D6 14px 28px); color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.ph .logo-mark { width: 54px; height: 54px; opacity: .55; }

/* ---------- xmas strip ---------- */
.xmas { background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; }
.xmas .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px 20px; text-align: center; }
.xmas .ico { color: #F1DDA8; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--navy); color: #fff; }
.section-ink .muted, .section-ink p { color: #C9CDE0; }
.section-title { text-align: center; }
.section-sub { text-align: center; max-width: 640px; margin: 0 auto 40px; color: var(--ink-2); font-size: 1.08rem; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; background: var(--card); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.step-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 16px; }
.step-ico .ico { width: 28px; height: 28px; }
.step-n { position: absolute; top: 22px; right: 24px; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--line); line-height: 1; }
.step p { color: var(--ink-2); margin: 0; }

.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.style-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.style-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.style-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.style-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.style-card:hover .style-media img { transform: scale(1.04); }
.style-body { padding: 20px 22px 24px; }
.style-body p { color: var(--ink-2); font-size: .97rem; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.price-card.is-hot { border-color: var(--accent); box-shadow: 0 16px 44px rgba(224, 102, 63, .18); }
.price-card .btn { margin-top: auto; }
.price-ico { color: var(--accent-2); margin-bottom: 10px; }
.price-ico .ico { width: 34px; height: 34px; }
.price { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; margin: 0 0 .3em; }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-weight: 600; font-size: .96rem; }
.ticks .ico { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.addon-band { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 2px dashed var(--gold); border-radius: var(--radius); padding: 20px 24px; margin: 28px auto 16px; max-width: 760px; }
.addon-band .ico { width: 32px; height: 32px; color: var(--gold-2); }
.addon-band p { margin: 4px 0 0; }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent-2); font-weight: 800; padding: 2px 10px; border-radius: 999px; font-size: .9rem; }

.why { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why li { display: flex; flex-direction: column; gap: 12px; }
.why .ico { width: 34px; height: 34px; color: #F1DDA8; }
.why h3 { color: #fff; }
.why p { margin: 0; }

.gift { display: grid; grid-template-columns: .8fr 1fr; gap: 56px; align-items: center; }
.gift-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; transform: rotate(-2deg); border: 10px solid #fff; }
.gift-media img { width: 100%; height: 100%; object-fit: cover; }
.deadline, .note { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; border-radius: 14px; padding: 12px 16px; }
.deadline .ico, .note .ico { margin-top: 2px; }

.faq details { background: var(--card); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

.final { background: radial-gradient(800px 300px at 50% 100%, #FDE4D8, rgba(253, 228, 216, 0)), var(--bg); }

/* ---------- страницы под поисковые запросы ---------- */
.crumbs { padding-top: 14px; color: var(--muted, #555A6E); }
.crumbs a { color: inherit; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.lp-card h2 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin: 0 0 10px; }
.lp-card p { margin: 0; line-height: 1.6; }
.lp-related { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lp-related a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.lp-related a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) { .lp-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C9CDE0; padding: 56px 0 24px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.logo-light { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a, .site-footer a { color: #E6E8F2; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; color: #9AA0B8; }
@media (max-width: 1000px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---------- cookie / sticky ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin: 0 auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; font-size: .92rem; }
.cookie p { margin: 0; }
.cookie div { display: flex; gap: 10px; justify-content: flex-end; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 246, 239, .96); border-top: 1px solid var(--line); display: none; }

/* ---------- legal ---------- */
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 800; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- app (create / order) ---------- */
.app-wrap { padding: 40px 0 80px; }
.app-title { text-align: center; font-size: clamp(1.9rem, 4.4vw, 2.7rem); }
.stepper { list-style: none; padding: 0; margin: 10px 0 28px; display: flex; justify-content: center; gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.stepper li:not(:last-child)::after { content: ''; width: 28px; height: 2px; background: var(--line); margin-left: 6px; }
.stepper span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-size: .85rem; font-weight: 800; }
.stepper .is-active { color: var(--ink); }
.stepper .is-active span, .stepper .is-done span { background: var(--accent); color: #fff; }
.app { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.panel h2 { font-family: var(--sans); font-size: 1.2rem; font-weight: 800; margin: 6px 0 12px; }
.panel h2:not(:first-child) { margin-top: 26px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who-opt input, .style-opt input, .prod-opt input { position: absolute; opacity: 0; pointer-events: none; }
.who-opt span { display: flex; flex-direction: column; gap: 2px; height: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: all .15s; }
.who-opt small { color: var(--ink-2); }
.who-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.who-opt input:focus-visible + span, .style-opt input:focus-visible + .style-opt-media, .prod-opt input:focus-visible ~ .prod-text { outline: 3px solid var(--accent); outline-offset: 2px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slot { position: relative; aspect-ratio: 4 / 5; border: 2px dashed #D6C6B2; border-radius: 16px; background: #FFFCF8; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.slot:hover, .slot.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 10px; pointer-events: none; }
.slot-empty .ico { width: 30px; height: 30px; color: var(--accent); }
.slot-empty small { color: var(--ink-2); font-size: .76rem; line-height: 1.3; }
.slot:first-child .slot-empty b::after { content: ' *'; color: var(--accent); }
.slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.has-img { border-style: solid; border-color: var(--line); }
.slot.has-img .slot-empty { display: none; }
.slot-remove { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(30, 34, 53, .75); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; z-index: 2; }
.slot.is-busy::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%23E0663F' stroke-width='4' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 40px no-repeat; }
.tips { margin: 16px 0 22px; background: var(--sand); border-radius: 14px; padding: 14px 18px; font-size: .93rem; }
.tips ul { list-style: none; padding: 0; margin: 6px 0 0; }
.tips li { display: flex; gap: 8px; align-items: center; padding: 2px 0; }
.tips .ico { width: 18px; height: 18px; color: var(--ok); }
.style-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.style-opt { position: relative; cursor: pointer; text-align: center; }
.style-opt-media { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 3px solid transparent; background: var(--sand); transition: border-color .15s; }
.style-opt-media img { width: 100%; height: 100%; object-fit: cover; }
.style-opt-media .ph { min-height: 0; }
.style-opt-name { display: block; font-weight: 800; font-size: .92rem; margin-top: 6px; }
.style-opt input:checked + .style-opt-media { border-color: var(--accent); box-shadow: 0 6px 18px rgba(224, 102, 63, .3); }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input { width: 100%; min-height: 50px; padding: 0 16px; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: #FFFCF8; }
.field input:focus { border-color: var(--accent); outline: none; }
.field small { display: block; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: .93rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check small { display: block; }
.check .ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; color: var(--gold-2); }
.check.addon { background: #FFF8EC; border: 1px solid #EED9B0; border-radius: 14px; padding: 12px 14px; }
.turnstile:empty { display: none; }
.turnstile { margin: 12px 0; }
.app-error { background: #FCEBEA; color: var(--err); font-weight: 700; border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; }

.progress { text-align: center; padding: 30px 0; }
.progress-msg { font-weight: 800; font-size: 1.1rem; margin: 18px 0 14px; min-height: 1.6em; }
.bar { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; max-width: 380px; margin: 0 auto 14px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 99px; transition: width .8s ease; }
.brush { display: flex; justify-content: center; gap: 10px; }
.brush span { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); animation: bob 1s ease-in-out infinite; }
.brush span:nth-child(2) { background: var(--gold); animation-delay: .15s; }
.brush span:nth-child(3) { background: var(--navy); animation-delay: .3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.frame-result { max-width: 460px; margin: 0 auto 12px; }
.frame-result img { width: 100%; border-radius: 4px; }
.wm-wrap { position: relative; }
.wm-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url('/assets/watermark.png') center / 240px repeat; opacity: .5; }
.wm-wrap.server-wm::after { display: none; }
.result { text-align: center; }
.result .btn-row { justify-content: center; margin-bottom: 18px; }
.result h2 { text-align: center; }
.result .check, .result .prod-opts, .result .total { text-align: left; }
.history { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 18px; }
.history button { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.history button[aria-pressed="true"] { border-color: var(--accent); }
.history img { width: 56px; height: 70px; object-fit: cover; }
.prod-opts { display: grid; gap: 10px; margin-bottom: 12px; }
.prod-opt { position: relative; display: flex; align-items: center; gap: 14px; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: all .15s; }
.prod-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.prod-ico { color: var(--accent-2); }
.prod-ico .ico { width: 30px; height: 30px; }
.prod-text { display: flex; flex-direction: column; flex: 1; }
.prod-text small { color: var(--ink-2); }
.prod-price { font-weight: 800; font-size: 1.1rem; }
.prod-opt .badge { top: -10px; left: auto; right: 14px; transform: none; font-size: .7rem; }
.prod-opt.is-small { padding: 10px 16px; }
.prod-opt.is-small .prod-ico .ico { width: 24px; height: 24px; }
.prod-opt.is-small .prod-text b { font-weight: 700; }
.small-offer { display: flex; gap: 10px; align-items: flex-start; justify-content: center; max-width: 760px; margin: 0 auto 10px; color: var(--ink-2); }
.small-offer .ico { color: var(--accent-2); margin-top: 2px; }
.extras { text-align: left; border: 1px dashed var(--gold); border-radius: 14px; padding: 12px 14px; margin: 12px 0; background: #FFFCF5; }
.extras > small { display: block; margin: 2px 0 10px; }
.extras-list { display: flex; gap: 10px; flex-wrap: wrap; }
.extra-opt { position: relative; cursor: pointer; }
.extra-opt input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; accent-color: var(--accent); z-index: 1; }
.extra-opt img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; border: 3px solid transparent; }
.extra-opt input:checked + img { border-color: var(--accent); }
.extra-opt span { display: block; font-size: .72rem; font-weight: 700; text-align: center; max-width: 72px; }
.o-extras h3 { margin: 6px 0 10px; }
.o-extras-list { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.o-extra { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.o-extra img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; }
.brush.mini span { width: 8px; height: 8px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding: 14px 2px; margin-top: 8px; font-weight: 700; }
.total b { font-family: var(--serif); font-size: 1.8rem; }
.order { display: flex; flex-direction: column; gap: 14px; align-items: stretch; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.order .note { text-align: left; }

/* ---------- «В память»: спокойная палитра, без «продающего» оранжевого ---------- */
:root { --mist: #EEF0F6; --calm: #5C618F; --calm-2: #474B76; }
.section-mist { background: var(--mist); }
.kicker-soft { color: var(--calm); }
.hero-memorial { background: radial-gradient(1100px 480px at 85% 0%, #E2E5F4 0%, rgba(226, 229, 244, 0) 62%), var(--bg); }
body[data-page="memorial"] .btn-primary, body.is-memorial .btn-primary { background: var(--calm); box-shadow: 0 6px 18px rgba(71, 75, 118, .3); }
body[data-page="memorial"] .btn-primary:hover, body.is-memorial .btn-primary:hover { background: var(--calm-2); }
body[data-page="memorial"] .chips button[aria-checked="true"] { background: var(--calm); border-color: var(--calm); }
body[data-page="memorial"] .cmp-tag-r { background: var(--calm); }
body[data-page="memorial"] .link-arrow, body[data-page="memorial"] .faq summary::after { color: var(--calm); }
body[data-page="memorial"] .badge, body[data-page="memorial"] .price-card.is-hot { --accent: var(--calm); }
body[data-page="memorial"] .price-card.is-hot { border-color: var(--calm); box-shadow: 0 16px 44px rgba(71, 75, 118, .16); }
body[data-page="memorial"] .badge { background: var(--calm); }
body[data-page="memorial"] .price-ico, body[data-page="memorial"] .step-ico { color: var(--calm); }
body[data-page="memorial"] .step-ico { background: #E6E8F4; }
body.is-memorial .who-opt input:checked + span, body.is-memorial .prod-opt:has(input:checked) { border-color: var(--calm); background: #E9EBF5; }
body.is-memorial .style-opt input:checked + .style-opt-media { border-color: var(--calm); box-shadow: 0 6px 18px rgba(71, 75, 118, .3); }
body.is-memorial .stepper .is-active span, body.is-memorial .stepper .is-done span { background: var(--calm); }
.final-soft { background: radial-gradient(800px 300px at 50% 100%, #E2E5F4, rgba(226, 229, 244, 0)), var(--bg); }
.style-grid-4 { grid-template-columns: repeat(4, 1fr); }
.teaser { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.teaser-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); border: 8px solid #fff; }
.teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.gift-media-soft { transform: none; }
.years { display: flex; gap: 12px; margin-top: 10px; }
.years label { flex: 1; font-weight: 600; font-size: .9rem; }
.years span { display: block; margin-bottom: 4px; color: var(--ink-2); }
.years input { width: 100%; min-height: 46px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: #FFFCF8; }
.years input:focus { border-color: var(--calm); outline: none; }

/* ---------- подарочный сертификат ---------- */
.hero-gift { background: radial-gradient(1100px 480px at 85% 0%, #FBE7C8 0%, rgba(251, 231, 200, 0) 62%), var(--bg); }
.xmas-late { display: block; text-decoration: none; background: var(--accent); }
.xmas-late[hidden] { display: none; }
.gift-card-demo, .gift-card { position: relative; background: #FFFCF6; padding: 26px 26px 20px; text-align: center; box-shadow: var(--shadow-lg); border: 12px solid; border-image: linear-gradient(135deg, #E8CC8E, #C29A55 35%, #F1DDA8 55%, #8E6B2E) 1; outline: 1px solid rgba(90, 64, 20, .35); outline-offset: -8px; }
.gc-top { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.gc-brand { font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.gc-brand i { font-style: italic; }
.gc-title { font-family: var(--serif); font-weight: 700; font-size: 2rem; }
.gc-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; margin: 0 auto 14px; max-width: 320px; }
.gc-img img { width: 100%; height: 100%; object-fit: cover; }
.gc-product { font-weight: 800; color: var(--ink-2); margin: 0 0 6px; }
.gc-to { font-weight: 800; font-size: 1.1rem; margin: 0 0 4px; }
.gc-msg { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin: 0 0 12px; }
.gc-to:empty, .gc-msg:empty { display: none; }
.gc-code { display: inline-flex; flex-direction: column; background: var(--navy); color: #F1DDA8; border-radius: 12px; padding: 8px 22px; margin: 4px 0 12px; }
.gc-code small { color: #C9CDE0; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.gc-code b { font-size: 1.5rem; letter-spacing: .06em; }
.gc-foot { font-size: .85rem; color: var(--ink-2); }
.o-voucher { text-align: center; }
.o-voucher .gift-card { max-width: 560px; margin: 0 auto 18px; }
.center-row { justify-content: center; margin-bottom: 10px; }
.steps-compact { margin: 0 0 28px; }
.steps-compact .step { padding: 22px 20px; }
.redeem { margin: 0 0 12px; text-align: left; }
.redeem summary { cursor: pointer; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.redeem summary .ico { width: 18px; height: 18px; }
.redeem-row { display: flex; gap: 8px; margin-top: 10px; }
.redeem-row input { flex: 1; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; text-transform: uppercase; letter-spacing: .05em; }
.redeem .ok { color: var(--ok); font-weight: 700; margin: 8px 0 0; }
.redeem .bad { color: var(--err); font-weight: 700; margin: 8px 0 0; }
.prod-opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: #FFFCF8; resize: vertical; }
textarea:focus { border-color: var(--accent); outline: none; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
  .nav-btn { display: flex; order: 5; }
  .lang { margin-left: auto; }
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding: 22px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "head" "show" "text"; }
  .hero-head { padding-top: 0; text-align: center; }
  .kicker { margin-bottom: 12px; font-size: .8rem; }
  .hero-show, .hero-show:has(.subjects) { max-width: 440px; width: 100%; margin: 0 auto; }
  .hero-text { text-align: center; margin-top: 26px; }
  .cta-row, .micro { justify-content: center; }
  .steps, .price-grid { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .style-body { padding: 14px 14px 18px; }
  .style-body p { display: none; }
  .gift, .teaser { grid-template-columns: 1fr; gap: 34px; }
  .teaser-media { max-width: 260px; margin: 0 auto; }
  .style-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gift-media { max-width: 300px; margin: 0 auto; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .sticky-cta[hidden] { display: none; }
  body[data-page="home"] .site-footer { padding-bottom: 90px; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-inner { gap: 10px; min-height: 62px; }
  .logo-tag { display: none; }
  .logo-mark { width: 32px; height: 32px; }
  .lang a, .lang span { padding: 5px 4px; font-size: .74rem; }
  .why { grid-template-columns: 1fr; }
  .app { padding: 18px 14px; border-radius: 18px; }
  .who { grid-template-columns: 1fr; }
  .slots { gap: 8px; }
  .style-opts { gap: 8px; }
  .style-opt-name { font-size: .8rem; }
  .stepper li { font-size: 0; gap: 0; }
  .stepper li span { font-size: .85rem; }
  .btn-lg { padding: 0 20px; }
  .frame { padding: 10px; }
  .frame::after { inset: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
