/* ============================================================
   Momento — оформление сайта
   Все цвета собраны здесь, в :root. Чтобы поменять цвет на всём
   сайте, достаточно поменять его в одном месте.
   ============================================================ */

/* Шрифты лежат на самом сайте (assets/fonts, лицензия SIL OFL — файлы OFL-*.txt рядом),
   чтобы адреса посетителей не уходили в Google. Каждый файл — свой набор букв:
   браузер скачивает только те, что нужны странице (₽ — в latin-ext, ≈ — в math). */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/onest-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; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/onest-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; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/onest-math.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/onest-symbols.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/unbounded-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; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/unbounded-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; }

:root {
  /* Основа — тёплый бежевый */
  --paper: #F4EDE3;      /* фон страницы — бежевый */
  --surface: #FBF7F1;    /* светлые полосы-разделы — топлёное молоко */
  --white: #FFFFFF;      /* карточки */
  --ink: #2E2724;        /* основной текст — тёмный кофе */
  --ink-hover: #54463F;  /* кнопка при наведении */
  --ink-soft: #6C5F56;   /* второстепенный текст */
  --line: #E4D8C8;       /* тонкие линии и рамки */

  /* Приглушённая пастель: у каждого гостя свой цвет. Пара «фон / рисунок». */
  --lilac: #E4D6EC;  --lilac-ink: #72558F;
  --mint:  #D6E5D0;  --mint-ink:  #3E6B46;
  --peach: #F6D7C3;  --peach-ink: #A2583A;
  --butter:#F4E3B4;  --butter-ink:#7F6118;
  --sky:   #D5E1EB;  --sky-ink:   #3A6186;
  --rose:  #F1D3D6;  --rose-ink:  #9C4656;

  --danger: #B3261E;

  --font-display: 'Unbounded', 'Arial', sans-serif;
  --font-text: 'Onest', 'Segoe UI', sans-serif;

  --radius-lg: 28px;
  --radius: 16px;
  --wrap: 1200px;
  --shadow-lg: 0 40px 80px -40px rgba(46, 39, 36, .32);
  --shadow-md: 0 20px 40px -20px rgba(46, 39, 36, .38);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* скрытое не показываем, даже если у блока задан свой display */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; } /* чтобы шапка не закрывала заголовок раздела */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 34em;
  margin-top: 16px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font: 500 16px/1 var(--font-text);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn { gap: 8px; }

/* Значки (набор — в assets/js/common.js) */
.i { width: 20px; height: 20px; flex-shrink: 0; }
.btn-sm .i { width: 18px; height: 18px; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--butter); }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 237, 227, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
/* Знак: три «фотографии» от разных гостей, сложенные вместе */
.logo-mark {
  position: relative;
  width: 34px;
  height: 30px;
}
.logo-mark i {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.logo-mark i:nth-child(1) { left: 0;  top: 8px; background: var(--peach); transform: rotate(-10deg); }
.logo-mark i:nth-child(2) { left: 7px; top: 2px; background: var(--mint); }
.logo-mark i:nth-child(3) { left: 14px; top: 7px; background: var(--ink); transform: rotate(9deg); }
.logo-word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.main-nav a { text-decoration: none; color: var(--ink-soft); }
.main-nav a:hover { color: var(--ink); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang {
  display: flex;
  background: var(--white);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--line);
}
.lang button {
  border: 0;
  background: none;
  font: 500 13px/1 var(--font-text);
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.link-login { font-size: 15px; text-decoration: none; font-weight: 500; }
.link-login:hover { color: var(--ink-hover); text-decoration: underline; }

/* Кнопка меню — видна только на планшетах и телефонах */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.main-nav .nav-create,
.main-nav .nav-login { display: none; }

/* ---------- Первый экран ---------- */

.hero { padding: 56px 0 96px; }

.hero h1 {
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 11em;
}
.hero-side {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 36px;
}
.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 28em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.occasions {
  display: flex;
  gap: 8px;
  margin: 64px 0 16px;
  flex-wrap: wrap;
}
.occasions button {
  font: 500 15px/1 var(--font-text);
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.occasions button:hover { border-color: var(--ink); }
.occasions button[aria-selected="true"] {
  background: var(--white);
  border-color: var(--ink);
}

/* Альбом-витрина */
.album {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.album-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 4px 4px 22px;
}
.album-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.album-meta { color: var(--ink-soft); font-size: 15px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.album-open {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  text-underline-offset: 3px;
}
.album-open:hover { color: var(--ink-hover); }
.album-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
  text-align: right;
  flex-direction: row-reverse;
}
.album-qr .qr { width: 64px; height: 64px; }

.album-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 132px;
  grid-auto-flow: dense;
  gap: 10px;
}

.tile {
  position: relative;
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tile svg { width: 62%; height: 62%; max-width: 150px; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
a.tile:hover img { transform: scale(1.04); }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 2; }

/* Счётчик сердечек на фото */
.tile-react {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.tile-react .emo { font-size: 13px; line-height: 1; letter-spacing: 1px; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Появление фото — один раз при загрузке и при смене примера */
.tile.is-new { animation: drop-in .55s cubic-bezier(.2, .8, .3, 1.2) both; }
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-18px) scale(.92) rotate(-2deg); }
  to   { opacity: 1; transform: none; }
}

/* QR-код (пока нарисованный, настоящий будет генерироваться) */
.qr { display: block; }
.qr svg { width: 100%; height: 100%; display: block; }

/* ---------- Как это работает ---------- */

.how { padding: 96px 0; background: var(--surface); }
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step h3 { margin-top: 28px; display: flex; align-items: baseline; gap: 12px; }
.step p { color: var(--ink-soft); margin-top: 10px; max-width: 24em; }
.step-num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  transform: translateY(-2px);
}
.step-visual {
  height: 300px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.step:nth-child(1) .step-visual { background: var(--lilac); }
.step:nth-child(3) .step-visual { background: var(--peach); }

/* Шаг 2 — два настоящих фото рядом */
.step-photos {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  place-items: stretch;
  border-radius: var(--radius-lg);
}
.step-photos figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}
.step-photos figure:first-child { border-radius: var(--radius-lg) 10px 10px var(--radius-lg); }
.step-photos figure:last-child { border-radius: 10px var(--radius-lg) var(--radius-lg) 10px; }
.step-photos img { width: 100%; height: 100%; object-fit: cover; }
.step-photos figure:first-child img { object-position: 30% 75%; }
.step-photos figure:last-child img { object-position: 50% 60%; }
.step-photos figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, .92);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
}

.mini-form {
  width: 230px;
  background: var(--white);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
}
.mini-label { font-size: 11px; color: var(--ink-soft); }
.mini-input {
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 4px;
}
.mini-btn {
  margin-top: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 9px;
  border-radius: 999px;
}

.mini-phone {
  width: 160px;
  height: 250px;
  margin-top: 80px;
  background: var(--white);
  border: 6px solid var(--ink);
  border-radius: 26px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-phone-top { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3; }
.mini-phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mini-phone-grid i,
.mini-phone-grid img { aspect-ratio: 1; width: 100%; border-radius: 5px; background: var(--c); object-fit: cover; }
.mini-phone-btn {
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  text-align: center;
  padding: 8px;
  border-radius: 999px;
}

/* ---------- Для гостей ---------- */

.guests { padding: 112px 0; }
.guests-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.phone {
  justify-self: center;
  width: 320px;
  padding: 12px;
  background: var(--ink);
  border-radius: 48px;
  box-shadow: 0 50px 90px -40px rgba(46, 39, 36, .5);
}
.phone-screen {
  background: var(--surface);
  border-radius: 38px;
  padding: 28px 20px 20px;
  text-align: center;
}
.phone-brand { font-family: var(--font-display); font-size: 12px; color: var(--ink-soft); }
.phone-title { font-family: var(--font-display); font-size: 22px; line-height: 1.15; margin-top: 14px; letter-spacing: -0.02em; }
.phone-sub { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.phone-btn {
  margin-top: 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
}
.phone-count { font-size: 12px; color: var(--ink-soft); margin: 18px 0 8px; text-align: left; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.phone-grid svg,
.phone-grid img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.phone-grid svg { background: var(--bg); padding: 18%; }

.perks {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.perks li { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.perks strong { display: block; font-weight: 600; font-size: 17px; }
.perks span { display: block; color: var(--ink-soft); font-size: 15.5px; margin-top: 4px; }
.guests-demo { margin-top: 40px; }

/* ---------- Возможности ---------- */

.features { padding: 0 0 112px; }
.features-row {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.tv { margin: 0; }
.tv-screen {
  position: relative;
  background: var(--ink);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  aspect-ratio: 16 / 8.6;
}
.tv-screen img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.tv-toast {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
}
.tv-toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tv figcaption { margin-top: 20px; color: var(--ink-soft); max-width: 34em; }
.tv figcaption strong { display: block; color: var(--ink); font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.tv-link { display: inline-block; margin-top: 10px; color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.tv-link:hover { color: var(--ink-hover); }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.feature-list li:first-child { padding-top: 0; }
.feature-list strong { display: block; color: var(--ink); font-size: 18px; font-weight: 600; margin-bottom: 2px; }

/* ---------- Тарифы ---------- */

.pricing { padding: 104px 0; background: var(--surface); }
.plans {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
}
.plan h3 { font-size: 18px; }
.price {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
  color: var(--ink-soft);
  font-size: 15.5px;
  display: grid;
  gap: 8px;
}
.plan .btn { margin-top: auto; }
.plan-main {
  background: var(--butter);
  border-color: var(--butter);
}
.plan-main ul { color: var(--ink); }
.plan-badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--butter-ink);
  margin: -6px 0 10px;
}

/* Индивидуальный тариф — широкая тёмная полоса под остальными */
.plan-custom {
  margin-top: 16px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 22px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 40px;
  align-items: center;
}
.plan-custom h3 { font-size: 22px; }
.plan-custom p { margin-top: 10px; color: #D9CEC2; max-width: 30em; }
.plan-custom ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15.5px;
}
.plan-custom li { display: flex; gap: 10px; align-items: baseline; }
.plan-custom li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--butter);
  transform: translateY(-2px);
}

/* Оплата и получение услуги (под тарифами) */
.pay-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.pay-info > div {
  padding: 22px 24px;
  border: 1.5px solid var(--line);
  border-radius: 22px;
}
.pay-info h3 { font-size: 17px; }
.pay-info p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }

/* Реквизиты в подвале */
.footer-req { margin-top: 6px; font-size: 13px; }

/* ---------- Вопросы ---------- */

.faq { padding: 104px 0; }
.faq-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-weight: 500;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 36em; }

/* ---------- Финал ---------- */

.final { padding: 0 0 104px; }
.final-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--mint);
  border-radius: var(--radius-lg);
  padding: 56px;
}
.final-box h2 { max-width: 15em; font-size: clamp(26px, 3vw, 38px); }

/* ---------- Подвал ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--ink-soft); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Всплывающие окна (заявка и другие) ---------- */

.request,
.modal {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(46, 39, 36, .5);
}
.modal { width: min(480px, calc(100% - 32px)); }
.request::backdrop,
.modal::backdrop { background: rgba(46, 39, 36, .5); }
.request[open],
.modal[open] { animation: dialog-in .25s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-body { padding: 36px 32px 32px; }
.modal-body h2 { font-size: 24px; padding-right: 48px; }
.modal-body > p { color: var(--ink-soft); margin-top: 10px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.request-close,
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.request-close:hover,
.modal-close:hover { background: var(--paper); }

.request-form,
.request-done { padding: 40px; }
.request-form h2,
.request-done h2 { font-size: 26px; padding-right: 48px; }
.request-intro { color: var(--ink-soft); margin-top: 10px; font-size: 15.5px; }

.request fieldset {
  border: 0;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.request legend {
  font-weight: 600;
  font-size: 16px;
  padding: 0;
  margin-bottom: 12px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input,
.field select,
.field textarea {
  font: 16px/1.4 var(--font-text);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--danger); }

/* Поле даты: дату можно вписать цифрами (дд.мм.гггг) или выбрать в календаре — справа значок,
   поверх него лежит прозрачное обычное поле даты (assets/js/common.js → dateField) */
.date-field { position: relative; }
.field .date-field .date-text { padding-right: 56px; }
.date-pick {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 44px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink-soft);
  transform: translateY(-50%);
}
.date-pick:hover { background: var(--surface); color: var(--ink); }
.date-pick .i { width: 22px; height: 22px; }
.field .date-pick input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
/* В Chrome календарь открывается только по своему значку — растягиваем его на всё поле */
.date-pick input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.date-field.is-disabled .date-pick { opacity: .4; pointer-events: none; }
.field .date-text:disabled { background: var(--surface); color: var(--ink-soft); }
.field-hint { font-size: 13px; color: var(--ink-soft); }
.field-error { font-size: 13px; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.consent { margin-top: 24px; }
.consent label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 14.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--ink);
}
.request-submit { margin-top: 24px; width: 100%; }
.request-submit[disabled] { opacity: .5; cursor: progress; }

.request-done p { color: var(--ink-soft); margin: 12px 0 28px; }
.request-done:focus { outline: none; }

/* ---------- Всплывающая подсказка внизу экрана ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  width: max-content;
  max-width: min(460px, calc(100% - 32px));
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 20px 40px -16px rgba(46, 39, 36, .6);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .3, 1);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Страницы под праздники: /svadba/, /den-rozhdeniya/, /korporativ/, /vypusknoy/ (tools/landings.php) ---------- */

.hero-occasion { padding-bottom: 80px; }
.hero-occasion h1 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; max-width: 15em; }
.kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.occasion-photos {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-top: 56px;
}
.occasion-photos img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-lg); }
.occasion-why { padding: 104px 0 96px; }
.occasion-why .perks { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.occasion-tv { max-width: 760px; }
.occasion-more { padding: 0 0 72px; }
.occasion-more h2 { font-size: clamp(22px, 2.4vw, 28px); }
.occasion-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-row nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ============================================================
   Планшеты и телефоны
   ============================================================ */

@media (max-width: 1080px) {
  .menu-btn { display: grid; }
  /* Меню превращается в выпадающую панель под шапкой */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(46, 39, 36, .35);
    font-size: 18px;
  }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .main-nav a:last-child { border-bottom: 0; }
  .is-menu-open .main-nav { display: flex; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-custom { grid-template-columns: 1fr 1fr; }
  .plan-custom .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 860px) {
  .guests-row, .features-row, .faq-row { grid-template-columns: 1fr; gap: 32px; }
  .pay-info { grid-template-columns: 1fr; }
  .hero-side { flex-direction: column; align-items: flex-start; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .final-box { flex-direction: column; align-items: flex-start; }
  .album-grid { grid-auto-rows: 84px; gap: 8px; }
  .tile-react { font-size: 11.5px; right: 8px; bottom: 8px; }
  .guests-text { order: -1; }
  .plan-custom { grid-template-columns: 1fr; gap: 24px; }
  .occasion-why .perks { grid-template-columns: 1fr 1fr; }
  .occasion-photos img { height: 260px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-row { height: 64px; gap: 12px; }
  .header-actions .btn,
  .header-actions .link-login { display: none; } /* на телефоне «Создать альбом» и «Войти» переезжают в меню */
  .main-nav .nav-create,
  .main-nav .nav-login { display: block; font-weight: 600; }
  .main-nav { padding: 8px 16px 20px; }
  .header-actions { gap: 10px; }
  .hero { padding: 32px 0 72px; }
  .hero h1 { font-size: 44px; }
  .hero-cta, .hero-cta .btn { width: 100%; }
  .occasions { margin-top: 44px; }
  .album { padding: 14px; border-radius: 22px; }
  .album-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .album-qr { flex-direction: row; text-align: left; }
  .album-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 92px; gap: 6px; }
  .tile:nth-child(n+9) { display: none; }
  .tile-react { font-size: 11px; right: 6px; top: 6px; bottom: auto; padding: 3px 7px 3px 6px; }
  .step-visual { height: 260px; }
  .perks { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan-custom { padding: 26px 22px; }
  .plan-custom .btn { width: 100%; }
  .phone { width: 280px; }
  .how, .guests, .pricing, .faq { padding: 72px 0; }
  .features, .final { padding-bottom: 72px; }
  .final-box { padding: 32px 22px; }
  .final-box .btn { width: 100%; }
  .request-form, .request-done { padding: 28px 20px; }
  .request fieldset { grid-template-columns: 1fr; }
  .hero-occasion h1 { font-size: 32px; }
  .occasion-photos { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 36px; }
  .occasion-photos img { height: 150px; border-radius: 18px; }
  .occasion-photos img:first-child { grid-column: 1 / -1; height: 220px; }
  .occasion-why { padding: 72px 0; }
  .occasion-why .perks { grid-template-columns: 1fr; }
  .occasion-links .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile.is-new, .request[open] { animation: none; }
}
