/* Сайт для клиентов «Грани памяти», версия 2 (18.10.2026): «вывеска» — тёмно-синее ночное небо с логотипа, крупное
   название буквами Forum, памятники на чёрном камне, белые и светло-голубые разделы ниже. Одна золотая нота — цены и акция.
   Шрифт крупнее обычного (люди в возрасте). Шрифты свои: Golos Text, Forum. */
:root {
  --night: #0E2238;      /* шапка, первый экран, подвал */
  --night-2: #16314F;
  --sky: #2E6DA4;        /* кнопки, ссылки (на белом 5,2:1) */
  --sky-dark: #1F5280;
  --sky-pale: #C9DBEC;   /* текст на синем */
  --ice: #EEF3F8;
  --ink: #18212C;
  --muted: #566170;      /* на белом 6,1:1 */
  --line: #DCE3EA;
  --field: #BFCBD8;
  --gold: #E2C27A;       /* цены и акция на синем */
  --white: #FFFFFF;
  --stone: #000000;      /* фото каталога сняты на чёрном */
  --wa: #1F7A4D;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 18px/1.55 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif; }
img { max-width: 100%; }
a { color: var(--sky); }
a:hover { color: var(--sky-dark); }
:focus-visible { outline: 3px solid #7FA7D1; outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-family: Forum, Georgia, serif; font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-family: Forum, Georgia, serif; font-weight: 400; font-size: clamp(32px, 4vw, 44px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* шапка-вывеска */
.top { background: var(--night); color: var(--sky-pale); font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
.top .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 8px; }
.hdr { background: var(--night); }
.hdr .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 84px; height: 84px; }
.brand b { display: block; font-family: Forum, Georgia, serif; font-weight: 400; font-size: 40px; letter-spacing: .04em; text-transform: uppercase; color: var(--white); line-height: 1; }
.brand small { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-pale); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; flex: 1 1 360px; justify-content: center; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--white); }
.phone { text-align: right; }
.phone a { color: var(--white); text-decoration: none; font-size: 24px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone span { display: block; font-size: 14px; color: var(--sky-pale); }
@media (max-width: 700px) {
  .brand img { width: 60px; height: 60px; } .brand b { font-size: 30px; }
  .phone { text-align: left; width: 100%; }
  .nav { justify-content: flex-start; gap: 4px 20px; }
}

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 8px;
  background: var(--sky); color: var(--white); border: 1px solid var(--sky); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--sky-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--night); border-color: var(--white); }
.btn-light:hover { background: var(--ice); color: var(--night); }
.btn-line { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-out { background: var(--white); color: var(--sky); border-color: var(--field); }
.btn-out:hover { background: var(--ice); color: var(--sky); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--white); }
.btn-wa:hover { background: #165C3A; }
.btn-sm { min-height: 42px; padding: 8px 14px; font-size: 16px; }

/* первый экран */
.hero { background: var(--night); color: var(--white); overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; padding-block: 28px 0; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-bottom: 48px; }
.hero-text p { color: var(--sky-pale); font-size: 20px; max-width: 32em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid rgba(201,219,236,.4); border-radius: 30px; padding: 6px 14px; font-size: 15px; }
.show { flex: 1 1 520px; min-width: 0; display: flex; align-items: flex-end; justify-content: center; }
.show figure { margin: 0; background: var(--stone); display: flex; align-items: flex-end; justify-content: center; padding: 24px 10px 0; border-radius: 14px 14px 0 0; }
.show figure:nth-child(1) { height: 330px; width: 30%; margin-right: -2%; z-index: 1; }
.show figure:nth-child(2) { height: 430px; width: 40%; z-index: 2; box-shadow: 0 0 0 6px var(--night); }
.show figure:nth-child(3) { height: 330px; width: 30%; margin-left: -2%; z-index: 1; }
.show figure:only-child { width: 60%; }
.show img { height: 100%; width: auto; object-fit: contain; }
@media (max-width: 700px) {
  .show figure:nth-child(1), .show figure:nth-child(3) { height: 200px; } .show figure:nth-child(2) { height: 260px; }
  .hero-text { padding-bottom: 8px; }
}
.trust { background: var(--night-2); color: var(--white); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; padding-block: 22px; }
.trust div { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--sky-pale); }
.trust svg { flex: none; width: 34px; height: 34px; stroke: var(--gold); }
.trust b { display: block; font-size: 18px; color: var(--white); }

/* разделы */
.band { padding-block: 64px; }
.band-soft, .band-ice { background: var(--ice); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 26px; }
.head p { color: var(--muted); max-width: 36em; }
@media (max-width: 700px) { .band { padding-block: 44px; } }

.promo { display: flex; flex-wrap: wrap; border-radius: 16px; overflow: hidden; background: var(--night); color: var(--white); }
.promo figure { margin: 0; background: var(--stone); flex: 1 1 260px; display: flex; align-items: flex-end; justify-content: center; padding-top: 24px; min-height: 280px; }
.promo figure img { height: 260px; width: auto; }
.promo > div { flex: 3 1 380px; padding: 34px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.promo .tag { color: var(--gold); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.promo h3 { font-family: Forum, Georgia, serif; font-weight: 400; font-size: 36px; }
.promo .promo-price { font-size: 46px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.promo p { color: var(--sky-pale); }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.price { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; background: var(--white); }
.price span { color: var(--muted); font-size: 15px; }
.price b { font-size: clamp(20px, 2.2vw, 25px); font-variant-numeric: tabular-nums; white-space: nowrap; }

.models, .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.model, .card { text-decoration: none; color: var(--ink); background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.model .stone, .card .stone { margin: 0; background: var(--stone); height: 300px; display: flex; align-items: flex-end; justify-content: center; padding-top: 18px; }
.model .stone img, .card .stone img { height: 100%; width: auto; object-fit: contain; }
.model .meta, .card .meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.model b, .card b { font-weight: 600; overflow-wrap: anywhere; }
.model span, .card span.sub { color: var(--muted); font-size: 15px; }
.model em { font-style: normal; font-weight: 700; color: var(--night); margin-top: 4px; }
a.model:hover b, a.card:hover b { color: var(--sky); }
@media (max-width: 480px) { .models, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .model .stone, .card .stone { height: 200px; } }

.konh { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.konh figure { margin: 0; flex: 1 1 260px; background: var(--stone); border-radius: 16px; display: flex; align-items: flex-end; justify-content: center; padding-top: 24px; min-height: 340px; }
.konh figure img { height: 320px; width: auto; }
.konh > div { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.konh .big { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { background: var(--white); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); }
.tile img.fence { width: 100%; height: 130px; object-fit: contain; }
.tile p { color: var(--muted); font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.steps li { display: flex; flex-direction: column; gap: 6px; }
.steps i { font-style: normal; font-family: Forum, Georgia, serif; font-size: 46px; color: var(--sky); line-height: 1; }
.steps p { color: var(--muted); font-size: 16px; }

/* каталог */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tabs a { padding: 9px 16px; border-radius: 30px; border: 1px solid var(--field); text-decoration: none; color: var(--ink); font-size: 16px; }
.cat-tabs a[aria-current="page"] { background: var(--night); border-color: var(--night); color: var(--white); }
.cat-tabs a span { color: var(--muted); font-size: 13px; margin-left: 6px; }
.cat-tabs a[aria-current="page"] span { color: var(--sky-pale); }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input { flex: 1 1 240px; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px; color: var(--ink); }
.crumbs { font-size: 16px; color: var(--muted); }
.folders { display: flex; flex-wrap: wrap; gap: 8px; }
.folders a { padding: 9px 15px; background: var(--ice); border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 16px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; }
.pager a, .pager b { min-width: 46px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--field); border-radius: 8px; text-decoration: none; }
.pager b { background: var(--night); color: var(--white); border-color: var(--night); }
.page-head { background: var(--night); color: var(--white); }
.page-head .wrap { padding-block: 36px; display: flex; flex-direction: column; gap: 10px; }
.page-head p { color: var(--sky-pale); max-width: 46em; }

/* просмотр фото на весь экран */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb img { max-height: 78vh; max-width: 100%; object-fit: contain; }
.lb p { color: #E7EBF0; margin-top: 12px; text-align: center; }
.lb button { position: absolute; background: rgba(255,255,255,.14); color: #FFFFFF; border: 0; border-radius: 50%; width: 54px; height: 54px; font-size: 28px; cursor: pointer; }
.lb .x { top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb .prev { left: max(10px, env(safe-area-inset-left, 0px)); top: 50%; }
.lb .next { right: max(10px, env(safe-area-inset-right, 0px)); top: 50%; }

/* конструктор */
.kon { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.kon-form { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.kon-side { flex: 1 1 320px; min-width: 0; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.kon-pic { background: var(--stone); border-radius: 16px; height: 300px; display: flex; align-items: flex-end; justify-content: center; padding-top: 20px; }
.kon-pic img { height: 100%; width: auto; object-fit: contain; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { font-weight: 600; padding: 0 6px; font-size: 19px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 46px; padding: 9px 15px; border: 1px solid var(--field); border-radius: 8px; font-size: 16px; background: var(--white); }
.opt input:checked + span { background: var(--night); color: var(--white); border-color: var(--night); }
.opt input:focus-visible + span { outline: 3px solid #7FA7D1; outline-offset: 2px; }
.num { display: flex; flex-wrap: wrap; gap: 14px; }
.num label { display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--muted); }
.num input, .num select { font: inherit; color: var(--ink); padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; width: 140px; background: var(--white); }
.num select { width: 230px; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: center; font-size: 17px; min-height: 38px; }
.check input { width: 22px; height: 22px; }
.result { background: var(--night); color: var(--white); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.result .muted, .result .small { color: var(--sky-pale); }
.result .sum { font-size: 38px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.result .what { font-size: 16px; color: var(--sky-pale); }
.result .btn { width: 100%; }
.copied { color: #9BE0B8; font-size: 15px; }
@media (max-width: 900px) { .kon-side { position: static; flex-basis: 100%; } .kon-pic { height: 220px; } }

/* контакты и подвал */
.contact { background: var(--night); color: var(--white); }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 32px; padding-block: 56px; }
.contact .main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact p { color: var(--sky-pale); }
.contact-phone { font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-phone:hover { color: var(--gold); }
.hours { flex: 1 1 300px; background: var(--night-2); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; align-self: flex-start; color: var(--white); }
.hours div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hours .note { color: var(--sky-pale); font-size: 15px; }
.ftr { background: #0A1A2B; color: #9FB3C8; font-size: 15px; }
.ftr .wrap { padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.ftr a { color: #DCE6F0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* конструктор: образцы картинками */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick > span { display: flex; flex-direction: column; height: 100%; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.pick img { background: var(--stone); height: 130px; width: 100%; object-fit: contain; padding-top: 8px; }
.pick em { font-style: normal; font-size: 14px; padding: 6px 8px; line-height: 1.3; }
.pick .pick-none { align-items: center; justify-content: center; text-align: center; min-height: 160px; padding: 10px; font-size: 15px; color: var(--muted); }
.pick input:checked + span { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky); }
.pick input:focus-visible + span { outline: 3px solid #7FA7D1; outline-offset: 2px; }
.dev { background: #FFF3D6; color: #4A3700; font-size: 15px; text-align: center; padding: 8px 16px; border-bottom: 1px solid #E8D59E; }
.card .stone.stone-light { background: var(--white); align-items: center; padding: 10px; }
.own { margin-top: 16px; background: var(--night); color: var(--white); border-radius: 14px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.own > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.own p { color: var(--sky-pale); }
.model .stone { display: flex; }
.model .ask { margin-top: 6px; font-weight: 600; color: var(--sky); text-decoration: none; }
.model .ask:hover { text-decoration: underline; }
.promo.noimg > div { flex-basis: 100%; }
.tabs2 { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs2 button { font: inherit; font-size: 16px; min-height: 44px; padding: 8px 16px; border-radius: 30px; border: 1px solid var(--field); background: var(--white); color: var(--ink); cursor: pointer; }
.tabs2 button[aria-selected="true"] { background: var(--night); border-color: var(--night); color: var(--white); }
.pager button.pg { font: inherit; min-width: 46px; min-height: 46px; border: 1px solid var(--field); border-radius: 8px; background: var(--white); cursor: pointer; }
#p-frm { display: flex; flex-direction: column; gap: 12px; }
#p-frm[hidden] { display: none !important; }

/* 18.10 23:11 — каталог по разделам, конструктор-игрушка */
.cat-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.search-sm { flex: 0 1 300px; }
.search-sm input { flex: 1 1 120px; padding: 9px 12px; }
.btn-sm { padding: 9px 14px; font-size: 15px; }
.pager span { min-width: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.lb .lb-ask { position: absolute; bottom: max(18px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: auto; height: auto;
  border-radius: 10px; font-size: 16px; padding: 12px 20px; }
.lb .lb-ask[hidden] { display: none; }
.card .meta b { font-size: 17px; color: var(--night); }
.result .what { font-size: 20px; color: var(--white); font-weight: 600; }
.kon-form .search-sm { flex: none; max-width: 360px; }
.kon-pic:has(> img[hidden]) { display: none; }
/* 19.10 — оформление картинками: вазы, кресты, медали, фото */
.acc { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.acc-h { font-size: 18px; margin: 4px 0 0; }
.picks-sm { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.pick .light img { background: #FFFFFF; object-fit: contain; padding: 6px; }
.picks-sm .pick-none { min-height: 110px; }
.acc-part { margin: 6px 0 0; font-weight: 600; }
.acc-sz { align-items: center; }
.picks-sm .pick em { overflow-wrap: anywhere; hyphens: auto; line-height: 1.25; }
