@font-face{font-family:Manrope;src:url('/assets/manrope-normal-cyrillic.woff2') format('woff2');font-weight:400 800;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;src:url('/assets/manrope-normal-latin.woff2') format('woff2');font-weight:400 800;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20BD,U+2191,U+2193,U+2212}
@font-face{font-family:Cormorant;src:url('/assets/cormorant-normal-cyrillic.woff2') format('woff2');font-weight:600;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Cormorant;src:url('/assets/cormorant-normal-latin.woff2') format('woff2');font-weight:600;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20BD}
@font-face{font-family:Cormorant;src:url('/assets/cormorant-italic-cyrillic.woff2') format('woff2');font-style:italic;font-weight:600;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Cormorant;src:url('/assets/cormorant-italic-latin.woff2') format('woff2');font-style:italic;font-weight:600;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20BD}

:root {
  color-scheme: light;
  --paper: #fffbfa;
  --white: #fffefd;
  --blush: #fdf2f4;
  --rose-soft: #f9e3eb;
  --text: #351f29;
  --muted: #6d535f;
  --berry: #9c1946;
  --berry-dark: #771038;
  --line: #ead7de;
  --body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Cormorant, Georgia, serif;
  --shadow: 0 16px 38px #5d1b3510;
  font-family: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--text); font-size: 16px; line-height: 1.55; }
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(3.35rem, 7vw, 5.85rem); line-height: .96; letter-spacing: -.042em; }
h2 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: .98; letter-spacing: -.03em; }
h3 { font-size: 1.85rem; line-height: 1.05; letter-spacing: -.018em; }
a { text-decoration: none; color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid #aa2857; outline-offset: 4px; }
.container { width: min(1190px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 16px; background: var(--white); border: 1px solid var(--berry); border-radius: 12px; }
.skip-link:focus { transform: none; }
.loading { padding-block: 70px; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow { color: var(--berry); font-size: .79rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.site-header { border-bottom: 1px solid #efdee4; background: #fffbfa; }
.header-inner { min-height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; font-family: var(--display); font-size: 1.76rem; font-weight: 600; line-height: 1; white-space: nowrap; letter-spacing: -.045em; }
.brand-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: var(--berry); background: var(--rose-soft); }
.site-nav { display: flex; gap: 33px; align-items: center; color: var(--muted); font-weight: 700; font-size: .91rem; }
.site-nav a:hover, .footer-inner > a:last-child:hover { color: var(--berry); }
.header-action { justify-self: end; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 11px 20px; border: 1px solid transparent; border-radius: 14px; font-size: .95rem; font-weight: 800; line-height: 1.25; text-align: center; max-width: 100%; }
.btn-primary { color: #fffafa; background: var(--berry); box-shadow: 0 6px 15px #8f1c4730; }
.btn-primary:hover { background: var(--berry-dark); }
.btn-secondary { background: var(--white); color: var(--berry-dark); border-color: #e6c8d3; }
.btn-secondary:hover { background: var(--blush); border-color: #d7abba; }
.btn-quiet { background: transparent; color: var(--berry-dark); padding-inline: 5px; }
.btn-quiet:hover { text-decoration: underline; }
.btn:disabled { cursor: default; opacity: .58; box-shadow: none; }
.header-action { min-height: 42px; padding: 8px 15px; border-radius: 11px; font-size: .87rem; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5.4vw, 81px); padding-block: 46px 55px; }
.hero-copy { padding: 8px 0 9px; }
.hero-label { display: flex; align-items: center; gap: 8px; margin-bottom: 21px; }
.hero-label svg { width: 17px; height: 17px; }
.hero h1 { font-size: clamp(5rem, 9.2vw, 8.6rem); line-height: .77; }
.hero h1 em { display: block; color: var(--berry); margin-top: .13em; padding-bottom: .12em; }
.hero-description { max-width: 385px; margin: 21px 0 25px; font-size: clamp(1.02rem, 1.5vw, 1.17rem); color: var(--muted); line-height: 1.58; }
.hero-actions .btn { padding-inline: 19px; }
.hero-note { display: flex; align-items: center; gap: 7px; color: var(--muted); margin-top: 20px; font-size: .83rem; font-weight: 650; }
.hero-note svg { color: var(--berry); width: 16px; height: 16px; }
.hero-picture { position: relative; display: grid; aspect-ratio: 1.17; isolation: isolate; overflow: hidden; border-radius: 29px; background: radial-gradient(ellipse at 60% 48%, #f5ccd5, #f8e2e4 66%, #f4d0d7); box-shadow: var(--shadow); }
.hero-picture picture { position: absolute; inset: 0; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 53%; }

.how-section { padding: 39px 0 60px; background: var(--blush); border-block: 1px solid #f3e1e6; scroll-margin-top: 8px; }
.section-title { text-align: center; }
.star-divider { display: inline-flex; align-items: center; gap: 11px; color: var(--berry); margin-bottom: 8px; }
.star-divider::before, .star-divider::after { content: ''; width: 27px; height: 1px; background: #d8aaba; }
.star-divider svg { width: 17px; height: 17px; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; margin: 28px 0 0; padding: 0; }
.step { padding: 21px 23px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.step h3 { margin-top: 12px; }
.step p { margin-top: 7px; color: var(--muted); }
.icon-tile, .state-icon { color: var(--berry); background: var(--rose-soft); display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; vertical-align: middle; }
.state-icon { width: 56px; height: 56px; border-radius: 17px; }
.site-footer { border-top: 1px solid #efdee4; }
.footer-inner { min-height: 86px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; }
.footer-inner .brand { font-size: 1.6rem; }
.footer-inner .brand-icon { width: 35px; height: 35px; }
.footer-inner > a:last-child { color: var(--muted); font-size: .9rem; font-weight: 700; }

.workflow, .room-shell { padding-block: clamp(30px, 5.5vw, 68px) clamp(60px, 8vw, 105px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; color: var(--berry); margin-bottom: 22px; }
.back-link:hover { text-decoration: underline; }
.workflow-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1fr); align-items: start; gap: clamp(25px, 6vw, 85px); max-width: 1040px; }
.workflow-lead { padding-top: 18px; }
.workflow-lead h1, .room-header h1 { margin-block: 10px 15px; }
.workflow-lead > p:not(.eyebrow) { color: var(--muted); max-width: 420px; }
.workflow-lead .icon-tile { margin-bottom: 17px; }
.workflow-lead h1 { font-size: clamp(3.13rem, 6.15vw, 5.25rem); }
.panel { min-width: 0; padding: clamp(18px, 3.3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.panel-title { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.45rem); line-height: 1.03; margin-bottom: 14px; }
.panel p + .btn, .panel p + .action-row { margin-top: 14px; }
.panel p { overflow-wrap: anywhere; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; color: var(--text); font-weight: 750; font-size: .95rem; }
.field small, .form-note, .field-hint { font-size: .83rem; font-weight: 550; color: var(--muted); }
.field label { display: block; }
.field input, .field textarea, .link-box input { width: 100%; min-width: 0; min-height: 49px; padding: 10px 12px; border: 1px solid #ddc4ce; border-radius: 11px; background: #fffafa; color: var(--text); font-size: 1rem; font-weight: 550; }
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #856875; }
.field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.input-date { display: block; min-width: 0; }
.form-error { color: #961f3c; background: #fdebf0; border-radius: 8px; padding: 9px 11px; font-weight: 700; font-size: .9rem; }
.form-error:empty { display: none; }
.form .btn, .workflow .form .btn { justify-self: start; }
.form-note { line-height: 1.55; }
.preview-link { margin-top: 12px; }
.rooms-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.rooms-head h1 { margin-bottom: 7px; }
.rooms-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 290px),1fr)); gap: 17px; }
.room-card { display: grid; gap: 9px; }
.room-card:hover { border-color: #ce94aa; }
.room-card h2 { font-size: 2rem; }
.room-card .card-status { font-weight: 750; font-size: .86rem; color: var(--berry); }
.room-card .card-detail { color: var(--muted); font-size: .95rem; }
.empty-rooms { max-width: 590px; }
.empty-rooms .panel-title { margin-bottom: 8px; }
.footer-actions { margin-top: 20px; }
.login-retry { display: flex; margin-top: 6px; }

.room-shell { width: min(1190px, calc(100% - 96px)); margin-inline: auto; }
.room-header { margin-bottom: 23px; }
.room-header h1 { font-size: clamp(3.1rem, 6vw, 5.5rem); overflow-wrap: anywhere; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 19px; }
.room-main, .room-aside { display: grid; align-content: start; gap: 17px; min-width: 0; }
.room-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: .94rem; font-weight: 700; }
.room-meta > span { display: inline-flex; gap: 7px; align-items: center; }
.room-meta svg { color: var(--berry); }
.status-pill { display: inline-flex; width: fit-content; gap: 6px; align-items: center; border-radius: 999px; padding: 5px 10px; background: var(--rose-soft); color: var(--berry-dark); font-size: .8rem; font-weight: 800; }
.participant-list { display: grid; gap: 9px; list-style: none; padding: 0; margin: 12px 0 0; }
.participant { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.avatar { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--berry-dark); border-radius: 13px; background: var(--blush); font-weight: 800; }
.result-panel { background: radial-gradient(ellipse at top right, #fce4ec, #fffafa 65%); }
.result-panel .state-icon { margin-bottom: 13px; }
.link-box { display: flex; align-items: center; gap: 8px; margin-block: 12px; }
.link-box input { flex: 1; }
.link-box .btn { flex: 0 0 auto; min-height: 46px; }
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.panel-heading .panel-title { margin-bottom: 0; }
.panel-heading .icon-tile { flex: none; }
.room-note { color: var(--muted); font-size: .87rem; margin-top: 10px; }
.room-form { display: grid; gap: 14px; margin-top: 16px; }
.room-form .btn { justify-self: start; }
.room-stage .state-icon { margin-bottom: 14px; }
.room-stage .panel-title { margin-bottom: 10px; }
.status-pill-drawn { color: #355a47; background: #e7f2eb; }
.participant-self, .participant-count { color: var(--berry); font-family: var(--body); font-size: .82rem; font-weight: 750; }
.participant-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; background: var(--rose-soft); border-radius: 50%; vertical-align: middle; }
.participant-self { margin-left: auto; }
.recipient-name { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 4.65rem); line-height: .96; color: var(--berry); overflow-wrap: anywhere; }
.wish-note { margin-top: 17px; padding: 14px 16px; border-left: 2px solid #d59bb0; border-radius: 0 10px 10px 0; background: #fff9fa; }
.wish-note h3 { margin-bottom: 5px; }
.wish-note p { white-space: pre-wrap; overflow-wrap: anywhere; }

dialog { padding: 0; border: 0; border-radius: 23px; color: var(--text); background: var(--white); max-width: min(90vw, 460px); }
dialog::backdrop { background: #36122275; }
.room-confirm form { display: grid; gap: 12px; padding: 23px; }
.room-confirm .panel-title { margin: 0; }
.toast { z-index: 5; position: fixed; inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto; max-width: min(410px, calc(100% - 32px)); padding: 11px 16px; border-radius: 13px; background: var(--berry-dark); color: var(--white); box-shadow: 0 8px 26px #3a152e37; font-weight: 750; }

@media (max-width: 940px) {
  .container, .room-shell { width: calc(100% - 64px); }
  .hero { gap: 32px; }
  .hero h1 { font-size: clamp(4.5rem, 11vw, 7.3rem); }
  .hero-actions .btn { padding-inline: 14px; }
  .steps { gap: 11px; }
  .step { padding-inline: 17px; }
}
@media (max-width: 730px) {
  .container, .room-shell { width: calc(100% - 40px); }
  .site-nav { display: none; }
  .header-inner { min-height: 67px; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-top: 31px; padding-bottom: 38px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(4.95rem, 13.5vw, 7.4rem); }
  .hero-label { margin-bottom: 18px; }
  .hero-description { margin-block: 15px 19px; }
  .hero-note { margin-top: 13px; }
  .hero-picture { aspect-ratio: 1.23; border-radius: 22px; }
  .how-section { padding-block: 32px 38px; }
  .steps { grid-template-columns: 1fr; margin-top: 20px; }
  .step { padding: 17px 18px 19px; }
  .workflow-grid, .room-grid { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .workflow-lead { padding-top: 0; }
  .workflow-lead .icon-tile { margin-bottom: 9px; }
  .room-header { margin-bottom: 17px; }
  .rooms-head { align-items: start; flex-direction: column; }
}
@media (max-width: 370px) {
  .container, .room-shell { width: calc(100% - 30px); }
  .brand { font-size: 1.52rem; gap: 7px; }
  .brand-icon { width: 35px; height: 35px; }
  .header-action { padding-inline: 9px; }
  .hero h1 { font-size: 4.65rem; }
  .hero-actions { display: grid; gap: 8px; }
  .field-pair { grid-template-columns: 1fr; }
  .link-box { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
