/* ===========================================================
   «Є привід» — стилі сайтів-запрошень.
   Структура спільна, вигляд задають змінні теми:
     --bg      фон сторінки
     --ink     колір тексту
     --muted   другорядний текст
     --accent  акцент (лінії, мітки, кнопки)
     --soft    світла заливка карток
     --dark    темний фон обкладинки й фіналу
     --on-dark текст на темному
     --head    шрифт заголовків
     --body    шрифт тексту
   =========================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.site { overflow: hidden; }
.in { max-width: 640px; margin: 0 auto; padding: 0 24px; text-align: center; }
.sec { padding: 68px 0; position: relative; }
.kicker { letter-spacing: .28em; font-size: 11px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
h1, h2 { font-family: var(--head); font-weight: 500; margin: 0; line-height: 1.1; }
h2 { font-size: clamp(30px, 7vw, 42px); margin-bottom: 18px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 15px; }
.lead { font-family: var(--head); font-size: clamp(22px, 5vw, 30px); line-height: 1.4; }

/* Кнопки */
.btn, .down { display: inline-block; text-decoration: none; padding: 14px 30px; font-size: 14px; font-weight: 600; letter-spacing: .04em; transition: transform .15s, opacity .15s; }
.btn:hover, .down:hover { transform: translateY(-1px); opacity: .92; }

/* Обкладинка */
.hero { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 70px 24px; position: relative; background: var(--dark); color: var(--on-dark); }
.hero-in { position: relative; z-index: 2; max-width: 560px; }
.names { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: clamp(54px, 15vw, 96px); margin: 8px 0 20px; }
.names i { font-size: .5em; opacity: .75; line-height: 1; }
.when { font-size: 17px; letter-spacing: .06em; }
.where { font-size: 14px; opacity: .8; margin-top: 4px; letter-spacing: .12em; text-transform: uppercase; }
.count { margin: 26px 0 30px; font-size: 14px; opacity: .85; }
.count b { font-family: var(--head); font-size: 40px; font-weight: 500; margin-right: 4px; }

/* Програма дня */
.tl { list-style: none; padding: 0; margin: 30px 0 0; text-align: left; }
.tl li { display: flex; gap: 22px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.tl li:last-child { border-bottom: 0; }
.tl .t { font-family: var(--head); font-size: 26px; min-width: 76px; color: var(--accent); line-height: 1.2; }
.tl b { display: block; font-weight: 600; }
.tl small { color: var(--muted); font-size: 14px; display: block; margin-top: 2px; }

/* Дрес-код: колірні кружечки */
.sw { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.sw i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* Додаткові картки */
.cards { display: grid; gap: 14px; }
.card { background: var(--soft); padding: 24px 22px; text-align: left; }
.card b { display: block; font-family: var(--head); font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } .in { max-width: 700px; } }

/* Анкета */
.form { margin-top: 26px; text-align: left; }
.rsvp { background: var(--soft); }

/* Підвал */
.foot { background: var(--dark); color: var(--on-dark); text-align: center; padding: 50px 24px; }
.foot .mono { font-family: var(--head); font-size: 36px; margin-bottom: 8px; }
.foot small { opacity: .7; letter-spacing: .1em; }
.contacts p { margin: 6px 0; }


/* ===========================================================
   ТЕМА 1. Класика шампань: какао, золото, курсив Playfair
   =========================================================== */
[data-theme="classic"] {
  --bg: #F4EBDD; --ink: #3A2C25; --muted: #7A6A5E; --accent: #B8955F;
  --soft: #E8D7BD; --dark: #3A2C25; --on-dark: #F4EBDD;
  --head: 'Playfair Display', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="classic"] h1, [data-theme="classic"] h2, [data-theme="classic"] .lead, [data-theme="classic"] .tl .t { font-style: italic; }
[data-theme="classic"] .hero { background: radial-gradient(circle at 30% 20%, #5A4338 0%, #3A2C25 60%, #2A1F1A 100%); }
[data-theme="classic"] .hero::before { content: ""; position: absolute; width: min(120vw, 760px); aspect-ratio: 1; border: 1.5px solid #B8955F; border-radius: 50%; opacity: .45; }
[data-theme="classic"] .hero::after { content: ""; position: absolute; width: min(100vw, 640px); aspect-ratio: 1; border: 1px solid #B8955F; border-radius: 50%; opacity: .25; }
[data-theme="classic"] .down, [data-theme="classic"] .btn { border-radius: 999px; }
[data-theme="classic"] .down { background: #E8D7BD; color: #3A2C25; }
[data-theme="classic"] .btn { background: #3A2C25; color: #F4EBDD; margin-top: 8px; }
[data-theme="classic"] .card { border-radius: 20px; background: #fff6ec; }
[data-theme="classic"] .rsvp { background: #E8D7BD; }
[data-theme="classic"] .form { background: #F4EBDD; border-radius: 22px; padding: 24px 20px; }


/* ===========================================================
   ТЕМА 2. Мінімалізм: біле, чорне, тонкі лінії, багато повітря
   =========================================================== */
[data-theme="minimal"] {
  --bg: #FFFFFF; --ink: #151515; --muted: #77746f; --accent: #151515;
  --soft: #F5F4F1; --dark: #FFFFFF; --on-dark: #151515;
  --head: 'Cormorant Garamond', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="minimal"] h1, [data-theme="minimal"] h2 { font-weight: 300; }
[data-theme="minimal"] h2 { letter-spacing: .02em; }
[data-theme="minimal"] .hero { border-bottom: 1px solid #151515; }
[data-theme="minimal"] .names { font-size: clamp(60px, 17vw, 120px); font-weight: 300; text-transform: uppercase; letter-spacing: .06em; line-height: .95; }
[data-theme="minimal"] .names i { font-size: .3em; font-style: normal; letter-spacing: .3em; margin: 10px 0; }
[data-theme="minimal"] .kicker { color: #151515; letter-spacing: .4em; }
[data-theme="minimal"] .when { letter-spacing: .3em; text-transform: uppercase; font-size: 13px; }
[data-theme="minimal"] .down, [data-theme="minimal"] .btn { border: 1px solid #151515; background: transparent; color: #151515; border-radius: 0; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; }
[data-theme="minimal"] .down:hover, [data-theme="minimal"] .btn:hover { background: #151515; color: #fff; }
[data-theme="minimal"] .sec { padding: 84px 0; border-bottom: 1px solid #ececea; }
[data-theme="minimal"] .rsvp, [data-theme="minimal"] .info { background: #fff; }
[data-theme="minimal"] .card { background: #fff; border: 1px solid #151515; }
[data-theme="minimal"] .tl .t { font-weight: 400; color: #151515; }
[data-theme="minimal"] .tl li { border-color: #e1e0dc; }
[data-theme="minimal"] .sw i { border-radius: 0; width: 40px; height: 40px; }
[data-theme="minimal"] .foot { border-top: 1px solid #151515; }
[data-theme="minimal"] .foot .mono { font-weight: 300; letter-spacing: .3em; }


/* ===========================================================
   ТЕМА 3. Боho: терракота, пісок, шавлія, арки
   =========================================================== */
[data-theme="boho"] {
  --bg: #F6EDE3; --ink: #4A3428; --muted: #8A7060; --accent: #B4694B;
  --soft: #EBD9C8; --dark: #F6EDE3; --on-dark: #4A3428;
  --head: 'Cormorant Garamond', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="boho"] h1, [data-theme="boho"] h2, [data-theme="boho"] .lead { font-style: italic; font-weight: 600; }
/* Обкладинка: текст угорі, дві арки внизу як декор */
[data-theme="boho"] .hero { background: #F6EDE3; overflow: hidden; align-items: flex-start; padding-top: 64px; }
[data-theme="boho"] .hero::before { content: ""; position: absolute; width: min(78vw, 400px); height: min(62vw, 330px); border-radius: 999px 999px 0 0; background: #E3B9A0; bottom: 0; left: 50%; transform: translateX(-50%); }
[data-theme="boho"] .hero::after { content: ""; position: absolute; width: min(54vw, 280px); height: min(46vw, 240px); border-radius: 999px 999px 0 0; background: #B4694B; bottom: 0; left: 50%; transform: translateX(-50%); }
[data-theme="boho"] .hero-in { color: #4A3428; }
[data-theme="boho"] .hero .kicker { color: #B4694B; }
[data-theme="boho"] .down, [data-theme="boho"] .btn { background: #4A3428; color: #F6EDE3; border-radius: 999px; }
[data-theme="boho"] .names { font-size: clamp(50px, 14vw, 84px); }
[data-theme="boho"] .card { border-radius: 120px 120px 18px 18px; text-align: center; padding-top: 44px; }
[data-theme="boho"] .info .card { background: #EBD9C8; }
[data-theme="boho"] .sec.story { background: #EFE0D0; }
[data-theme="boho"] .sec.dress { background: #DCE0CF; }
[data-theme="boho"] .rsvp { background: #E3B9A0; }
[data-theme="boho"] .rsvp .kicker { color: #6B3A27; }
[data-theme="boho"] .form { background: #FFFDF9; border-radius: 26px; padding: 24px 20px; }
[data-theme="boho"] .foot { background: #4A3428; color: #F6EDE3; }
[data-theme="boho"] .sw i { border-color: rgba(74,52,40,.15); }


/* ===========================================================
   ТЕМА 4. Бордо й золото: глибокий винний, золоті лінії
   =========================================================== */
[data-theme="bordeaux"] {
  --bg: #F7EFE8; --ink: #3B1420; --muted: #7D5A62; --accent: #B8914F;
  --soft: #EBD9D3; --dark: #4A1424; --on-dark: #F7EFE8;
  --head: 'Playfair Display', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="bordeaux"] h1, [data-theme="bordeaux"] h2, [data-theme="bordeaux"] .lead { font-style: italic; }
[data-theme="bordeaux"] .hero { background: radial-gradient(circle at 50% 15%, #6B1E34 0%, #4A1424 55%, #2E0B16 100%); }
[data-theme="bordeaux"] .hero::before { content: ""; position: absolute; inset: 18px; border: 1px solid #B8914F; opacity: .6; pointer-events: none; }
[data-theme="bordeaux"] .hero::after { content: ""; position: absolute; inset: 26px; border: 1px solid #B8914F; opacity: .25; pointer-events: none; }
[data-theme="bordeaux"] .down, [data-theme="bordeaux"] .btn { background: #B8914F; color: #2E0B16; border-radius: 2px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
[data-theme="bordeaux"] .card { background: #fff; border: 1px solid #D9C3A0; border-radius: 2px; }
[data-theme="bordeaux"] .sec.story { background: #F0E1DA; }
[data-theme="bordeaux"] .rsvp { background: #4A1424; color: #F7EFE8; }
[data-theme="bordeaux"] .rsvp .kicker { color: #D9B878; }
[data-theme="bordeaux"] .form { background: #FFFDF9; color: #3B1420; border-radius: 2px; padding: 24px 20px; }
[data-theme="bordeaux"] .foot { background: #2E0B16; color: #F7EFE8; }


/* ===========================================================
   ТЕМА 5. Пудровий: ніжно-рожевий, вершки, тонкі шрифти
   =========================================================== */
[data-theme="powder"] {
  --bg: #FBF4F2; --ink: #4D3A3E; --muted: #957F83; --accent: #C98E98;
  --soft: #F3E1E1; --dark: #F3DADB; --on-dark: #4D3A3E;
  --head: 'Cormorant Garamond', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="powder"] h1, [data-theme="powder"] h2 { font-weight: 500; }
[data-theme="powder"] .lead { font-style: italic; }
[data-theme="powder"] .hero { background: linear-gradient(180deg, #F8E6E4 0%, #F3D6D8 100%); }
[data-theme="powder"] .hero::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.55); top: -90px; right: -110px; }
[data-theme="powder"] .hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(201,142,152,.22); bottom: -80px; left: -90px; }
[data-theme="powder"] .hero-in { color: #4D3A3E; position: relative; z-index: 1; }
[data-theme="powder"] .names { font-weight: 500; }
[data-theme="powder"] .down, [data-theme="powder"] .btn { background: #C98E98; color: #fff; border-radius: 999px; }
[data-theme="powder"] .card { background: #fff; border-radius: 26px; box-shadow: 0 10px 30px rgba(201,142,152,.15); }
[data-theme="powder"] .sec.story { background: #F7E9E7; }
[data-theme="powder"] .rsvp { background: #F3DADB; }
[data-theme="powder"] .form { background: #fff; border-radius: 26px; padding: 24px 20px; }
[data-theme="powder"] .foot { background: #4D3A3E; color: #FBF4F2; }


/* ===========================================================
   ТЕМА 6. Лісова романтика: смарагд, мох, золоті акценти
   =========================================================== */
[data-theme="forest"] {
  --bg: #F3F1E8; --ink: #1F3329; --muted: #667567; --accent: #A98A4E;
  --soft: #E2E5D5; --dark: #1F3329; --on-dark: #F3F1E8;
  --head: 'Cormorant Garamond', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="forest"] h1, [data-theme="forest"] h2, [data-theme="forest"] .lead { font-style: italic; font-weight: 600; }
[data-theme="forest"] .hero { background: linear-gradient(180deg, #2A4436 0%, #1A2D23 100%); }
[data-theme="forest"] .hero::before { content: ""; position: absolute; width: min(120vw, 720px); aspect-ratio: 1; border-radius: 50%; border: 1px solid #A98A4E; opacity: .4; top: 50%; left: 50%; transform: translate(-50%, -50%); }
[data-theme="forest"] .down, [data-theme="forest"] .btn { background: #A98A4E; color: #14221A; border-radius: 999px; }
[data-theme="forest"] .names { font-weight: 600; }
[data-theme="forest"] .card { background: #fff; border-radius: 18px; border: 1px solid #D3D8C2; }
[data-theme="forest"] .sec.story { background: #E7EADB; }
[data-theme="forest"] .sec.dress { background: #DCE3D0; }
[data-theme="forest"] .rsvp { background: #1F3329; color: #F3F1E8; }
[data-theme="forest"] .rsvp .kicker { color: #D6BC82; }
[data-theme="forest"] .form { background: #FBFAF5; color: #1F3329; border-radius: 22px; padding: 24px 20px; }
[data-theme="forest"] .foot { background: #14221A; color: #F3F1E8; }


/* ===========================================================
   ТЕМА 7. Gender party: блакитний і рожевий, м'які форми
   =========================================================== */
[data-theme="gender"] {
  --bg: #FFFBF8; --ink: #2F3E52; --muted: #7B8794; --accent: #E58BA6;
  --soft: #EAF2FB; --dark: #DCEAF8; --on-dark: #2F3E52;
  --head: 'Unbounded', 'Manrope', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="gender"] h1, [data-theme="gender"] h2 { font-weight: 600; letter-spacing: -.01em; }
[data-theme="gender"] h2 { font-size: clamp(24px, 6vw, 34px); }
[data-theme="gender"] .lead { font-family: var(--body); font-size: clamp(19px, 4.4vw, 24px); font-weight: 500; }
[data-theme="gender"] .hero { background: linear-gradient(115deg, #CFE3F7 0%, #CFE3F7 49.5%, #F8D3DE 50.5%, #F8D3DE 100%); overflow: hidden; }
[data-theme="gender"] .hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.55); top: 50%; left: 50%; transform: translate(-50%, -50%); }
[data-theme="gender"] .hero-in { position: relative; z-index: 2; }
[data-theme="gender"] .names { font-size: clamp(36px, 11vw, 64px); }
[data-theme="gender"] .names i { font-style: normal; color: #E58BA6; }
[data-theme="gender"] .subtitle { font-family: var(--head); font-size: clamp(22px, 6vw, 34px); margin: 4px 0 14px; color: #5C86B5; }
[data-theme="gender"] .kicker { color: #5C86B5; }
[data-theme="gender"] .down, [data-theme="gender"] .btn { background: #2F3E52; color: #fff; border-radius: 999px; }
[data-theme="gender"] .card { background: #fff; border-radius: 26px; border: 2px solid #F3C9D5; }
[data-theme="gender"] .info .card:nth-child(even) { border-color: #BCD6F0; }
[data-theme="gender"] .sec.story { background: #EAF2FB; }
[data-theme="gender"] .sec.dress { background: #FCEAF0; }
[data-theme="gender"] .rsvp { background: linear-gradient(180deg, #EAF2FB, #FCEAF0); }
[data-theme="gender"] .form { background: #fff; border-radius: 26px; padding: 24px 20px; }
[data-theme="gender"] .foot { background: #2F3E52; color: #FFFBF8; }


/* ===========================================================
   ТЕМА 8. День народження: коралове, жовте, конфеті
   =========================================================== */
[data-theme="birthday"] {
  --bg: #FFF8EC; --ink: #2B2230; --muted: #7A6E80; --accent: #F0645A;
  --soft: #FFE9C7; --dark: #F0645A; --on-dark: #FFF8EC;
  --head: 'Unbounded', 'Manrope', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="birthday"] h1, [data-theme="birthday"] h2 { font-weight: 600; }
[data-theme="birthday"] h2 { font-size: clamp(24px, 6vw, 34px); }
[data-theme="birthday"] .lead { font-family: var(--body); font-size: clamp(19px, 4.4vw, 24px); font-weight: 500; }
[data-theme="birthday"] .hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, #FFD166 0 22px, transparent 23px),
    radial-gradient(circle at 86% 12%, #7B5CFA 0 14px, transparent 15px),
    radial-gradient(circle at 78% 86%, #FFD166 0 28px, transparent 29px),
    radial-gradient(circle at 8% 80%, #FFF8EC 0 12px, transparent 13px),
    radial-gradient(circle at 92% 52%, #FFF8EC 0 10px, transparent 11px),
    #F0645A;
}
[data-theme="birthday"] .names { font-size: clamp(46px, 14vw, 88px); }
[data-theme="birthday"] .subtitle { font-family: var(--head); font-size: clamp(60px, 20vw, 110px); line-height: 1; color: #FFD166; margin: -6px 0 10px; }
[data-theme="birthday"] .kicker { color: #FFF8EC; }
[data-theme="birthday"] .down, [data-theme="birthday"] .btn { background: #FFD166; color: #2B2230; border-radius: 999px; }
[data-theme="birthday"] .card { background: #fff; border-radius: 22px; box-shadow: 0 8px 0 rgba(240,100,90,.18); }
[data-theme="birthday"] .tl .t { font-size: 22px; }
[data-theme="birthday"] .sec.story { background: #FFE9C7; }
[data-theme="birthday"] .sec.dress { background: #EDE7FF; }
[data-theme="birthday"] .rsvp { background: #7B5CFA; color: #fff; }
[data-theme="birthday"] .rsvp .kicker, [data-theme="birthday"] .rsvp .muted { color: #E4DCFF; }
[data-theme="birthday"] .form { background: #fff; color: #2B2230; border-radius: 24px; padding: 24px 20px; }
[data-theme="birthday"] .foot { background: #2B2230; color: #FFF8EC; }


/* ===========================================================
   ТЕМА 9. Дівич-вечір: чорний, рожевий неон, шампань
   =========================================================== */
[data-theme="bachelorette"] {
  --bg: #FFF6F8; --ink: #1E1519; --muted: #7C6A72; --accent: #D6477F;
  --soft: #FBE2EA; --dark: #16101A; --on-dark: #FFF6F8;
  --head: 'Playfair Display', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
}
[data-theme="bachelorette"] h1, [data-theme="bachelorette"] h2, [data-theme="bachelorette"] .lead { font-style: italic; }
[data-theme="bachelorette"] .hero { background: radial-gradient(circle at 50% 0%, #3A1730 0%, #16101A 65%); overflow: hidden; }
[data-theme="bachelorette"] .hero::before { content: ""; position: absolute; inset: 16px; border: 1px solid #D6477F; opacity: .7; pointer-events: none; box-shadow: 0 0 24px rgba(214,71,127,.45), inset 0 0 24px rgba(214,71,127,.25); }
[data-theme="bachelorette"] .names { font-size: clamp(56px, 17vw, 108px); color: #FFD9E6; text-shadow: 0 0 22px rgba(214,71,127,.6); }
[data-theme="bachelorette"] .subtitle { letter-spacing: .4em; text-transform: uppercase; font-size: 13px; color: #E7C58A; margin: 0 0 14px; }
[data-theme="bachelorette"] .kicker { color: #E7C58A; }
[data-theme="bachelorette"] .down, [data-theme="bachelorette"] .btn { background: #D6477F; color: #fff; border-radius: 999px; box-shadow: 0 0 22px rgba(214,71,127,.45); }
[data-theme="bachelorette"] .card { background: #fff; border-radius: 4px; border-left: 4px solid #D6477F; }
[data-theme="bachelorette"] .sec.story { background: #FBE2EA; }
[data-theme="bachelorette"] .sec.dress { background: #16101A; color: #FFF6F8; }
[data-theme="bachelorette"] .sec.dress .kicker { color: #E7C58A; }
[data-theme="bachelorette"] .sec.dress .sw i { border-color: rgba(255,255,255,.35); }
[data-theme="bachelorette"] .rsvp { background: #FBE2EA; }
[data-theme="bachelorette"] .form { background: #fff; border-radius: 6px; padding: 24px 20px; }
[data-theme="bachelorette"] .foot { background: #16101A; color: #FFF6F8; }


/* ===========================================================
   ФОТО ТА ПЕРСОНАЛІЗАЦІЯ (спільне для всіх тем)
   =========================================================== */
.to { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 16px; border: 1px solid currentColor; border-radius: 999px; margin-bottom: 22px; opacity: .9; }
.to b { font-weight: 700; letter-spacing: .06em; }
.tag { margin: 10px 0 0; font-size: 14px; letter-spacing: .12em; opacity: .85; }
.cover-box { margin: 0 auto 22px; }
.cover { display: block; width: 100%; object-fit: cover; }
.slot { display: flex !important; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 10px, rgba(0,0,0,.08) 10px 20px); color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.slot span { background: rgba(255,255,255,.8); padding: 6px 14px; border-radius: 999px; }
blockquote { margin: 26px 0 0; font-family: var(--head); font-size: 22px; line-height: 1.4; font-style: italic; color: var(--accent); }
.story-ph { margin: 6px auto 26px; max-width: 320px; }
.sph { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.in.wide { max-width: 860px; }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
.gph { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gal .slot { aspect-ratio: 3 / 4; }
.gal > :nth-child(3n+1) { aspect-ratio: 4 / 5; }
@media (min-width: 700px) { .gal { grid-template-columns: repeat(3, 1fr); } }

/* --- Класика: фото на тлі обкладинки, рамка-кружок --- */
[data-theme="classic"] .hero.has-cover { background: linear-gradient(180deg, rgba(42,31,26,.55), rgba(42,31,26,.82)), var(--cover, none) center / cover no-repeat, #3A2C25; }
[data-theme="classic"] .hero.has-cover::before, [data-theme="classic"] .hero.has-cover::after { display: none; }
[data-theme="classic"] .hero.cover-slot { background: radial-gradient(circle at 30% 20%, #5A4338 0%, #3A2C25 60%, #2A1F1A 100%); }
[data-theme="classic"] .hero.cover-slot::before, [data-theme="classic"] .hero.cover-slot::after { display: block; }
[data-theme="classic"] .hero.has-cover:not(.cover-slot) .cover-box { display: none; }
[data-theme="classic"] .cover-box { width: 190px; height: 190px; border-radius: 50%; overflow: hidden; border: 2px solid #B8955F; }
[data-theme="classic"] .cover-box .cover, [data-theme="classic"] .cover-box .slot { height: 100%; border-radius: 0; }
[data-theme="classic"] .sph, [data-theme="classic"] .story-ph .slot { border-radius: 200px 200px 16px 16px; border: 6px solid #fff6ec; box-shadow: 0 0 0 1px #B8955F; }
[data-theme="classic"] .gph, [data-theme="classic"] .gal .slot { border-radius: 14px; }

/* --- Мінімалізм: прямокутне фото над іменами, чорно-біла галерея --- */
[data-theme="minimal"] .cover-box { max-width: 330px; }
[data-theme="minimal"] .cover, [data-theme="minimal"] .cover-box .slot { aspect-ratio: 4 / 5; border-radius: 0; }
[data-theme="minimal"] .hero.has-cover:not(.cover-slot) .cover-box { }
[data-theme="minimal"] .gph { filter: grayscale(1); transition: filter .3s; }
[data-theme="minimal"] .gph:hover { filter: grayscale(0); }
[data-theme="minimal"] .sph, [data-theme="minimal"] .story-ph .slot { border-radius: 0; aspect-ratio: 1 / 1; }
[data-theme="minimal"] .hero { align-items: center; }
[data-theme="minimal"] .slot { background: #f0efec; }

/* --- Боho: фото в арці замість декоративних арок --- */
[data-theme="boho"] .hero.has-cover::before, [data-theme="boho"] .hero.has-cover::after { display: none; }
[data-theme="boho"] .hero.has-cover { align-items: center; padding-top: 56px; }
[data-theme="boho"] .cover-box { width: min(70vw, 260px); }
[data-theme="boho"] .cover, [data-theme="boho"] .cover-box .slot { aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; border: 6px solid #E3B9A0; }
[data-theme="boho"] .sph, [data-theme="boho"] .story-ph .slot { border-radius: 999px 999px 18px 18px; }
[data-theme="boho"] .gph, [data-theme="boho"] .gal .slot { border-radius: 14px; }
[data-theme="boho"] .gal > :nth-child(odd) { border-radius: 999px 999px 14px 14px; }
