@charset "UTF-8";

@font-face {
  font-family: Manrope;
  src: url('./assets/manrope-cyrillic.woff2') format('woff2');
  font-style: normal;
  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-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  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: 'Great Vibes';
  src: url('./assets/great-vibes-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Great Vibes';
  src: url('./assets/great-vibes-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  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;
}
:root {
  --ink: #1c3155;
  --muted: #465879;
  --red: #ab2622;
  --red-dark: #8e211d;
  --paper: #fffcf6;
  --wrap: 1192px;
  --radius: 16px;
  --font: Manrope, system-ui, 'Segoe UI', sans-serif;
  --script: 'Great Vibes', 'Segoe Script', cursive;
  --serif: Georgia, 'Times New Roman', serif;
  --airmail: repeating-linear-gradient(133deg, #ba3029 0 17px, #fffdfa 17px 31px, #31754e 31px 48px, #fffdfa 48px 62px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.58 var(--font); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #185a93; outline-offset: 4px; }
.skip { position: fixed; top: .7rem; left: .7rem; z-index: 20; padding: .6rem 1rem; background: #ffe4a3; color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
.wrap { width: min(var(--wrap), calc(100% - 88px)); margin-inline: auto; }
.site-header { position: relative; z-index: 3; background: #fff9f0; border-bottom: 1px solid #ecdccd; }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.brand-mark { width: 49px; height: 49px; object-fit: contain; }
.brand-logo { width: min(147px, 42vw); height: auto; object-fit: contain; }
.navigation { display: flex; align-items: center; gap: clamp(1.15rem, 3.9vw, 3.55rem); }
.navigation a { padding: .65rem .1rem; font-size: .96rem; font-weight: 780; }
.navigation a:hover, .back-top:hover { text-decoration: underline; text-underline-offset: .3em; }
.menu-button { display: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  max-width: 100%; min-height: 52px; padding: .72rem 1.16rem;
  border: 1px solid transparent; border-radius: 9px;
  font-size: .96rem; font-weight: 800; line-height: 1.25; text-align: center;
  transition: background-color .18s ease, border-color .18s ease;
}
.button [data-icon] { flex: 0 0 auto; }
.button-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 #7f1e20; }
.button-red:hover { background: var(--red-dark); }
.button-paper, .button-outline { border-color: #b27869; color: #8f231e; background: #fffaf3; }
.button-paper:hover, .button-outline:hover { background: #fff0e4; border-color: #99372c; }
.button-ink { color: #fff; background: #24466b; }
.button-ink:hover { background: #17364f; }
.button:disabled { opacity: .73; cursor: wait; }
.header-button { min-height: 41px; padding-block: .52rem; }

.hero { position: relative; isolation: isolate; overflow: clip; background: #e3cce4; }
.hero-art, .hero-art::after { position: absolute; inset: 0; }
.hero-art { z-index: -1; }
.hero-art picture { display: block; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 66%; }
.hero-art::after {
  content: ''; pointer-events: none;
  background: radial-gradient(ellipse 52% 55% at 50% 40%, #fff4e8 0%, #fff2e5ad 49%, #fff0e200 100%);
}
.hero-snow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-snow::before, .hero-snow::after {
    content: '';
    position: absolute;
    inset: calc(0px - var(--snow-tile-height)) -24px 0;
    background-size: var(--snow-tile-width) var(--snow-tile-height);
    animation: snow-fall var(--snow-duration) linear infinite;
  }
  .hero-snow::before {
    --snow-tile-width: 274px;
    --snow-tile-height: 236px;
    --snow-duration: 17s;
    --snow-sway: 16px;
    background-image:
      radial-gradient(circle at 19px 36px, #fffffff0 0 .75px, transparent 1.65px),
      radial-gradient(circle at 88px 78px, #ffffffe0 0 1px, transparent 1.9px),
      radial-gradient(circle at 149px 25px, #fff 0 .65px, transparent 1.5px),
      radial-gradient(circle at 247px 65px, #ffffffe8 0 1.05px, transparent 2px),
      radial-gradient(circle at 35px 167px, #ffffffdc 0 .8px, transparent 1.7px),
      radial-gradient(circle at 112px 207px, #fff 0 1px, transparent 1.9px),
      radial-gradient(circle at 200px 141px, #fff 0 .9px, transparent 1.85px),
      radial-gradient(circle at 256px 224px, #fffffff0 0 .75px, transparent 1.6px);
  }
  .hero-snow::after {
    --snow-tile-width: 322px;
    --snow-tile-height: 327px;
    --snow-duration: 12s;
    --snow-sway: -21px;
    animation-delay: -5s;
    background-image:
      radial-gradient(circle at 39px 71px, #fff 0 1.65px, #e1e9ff91 2.45px, transparent 3.2px),
      radial-gradient(circle at 132px 44px, #fff 0 1.35px, #dfebff73 2.3px, transparent 2.8px),
      radial-gradient(circle at 278px 133px, #fff 0 1.85px, #e1e9ff91 2.65px, transparent 3.5px),
      radial-gradient(circle at 94px 239px, #fff 0 1.35px, #dfebff73 2.15px, transparent 2.9px),
      radial-gradient(circle at 214px 288px, #fff 0 1.7px, #e1e9ff85 2.35px, transparent 3.15px);
  }
  @keyframes snow-fall {
    from { transform: translate(0, 0); }
    50% { transform: translate(var(--snow-sway), calc(var(--snow-tile-height) / 2)); }
    to { transform: translate(0, var(--snow-tile-height)); }
  }
}
.hero-inner { display: grid; justify-items: center; min-height: clamp(600px, 51vw, 730px); padding: clamp(4rem, 6.4vw, 6.2rem) 0 10.1rem; }
.hero-content { max-width: 690px; text-align: center; }
.hero-stars { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 23px; margin-bottom: .85rem; color: #bd7810; }
.star { display: block; background: currentColor; clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 63%, 50% 100%, 38% 63%, 0 50%, 38% 36%); }
.hero-stars .star { width: 14px; aspect-ratio: 1; }
.hero-stars .star:nth-child(2) { width: 23px; }
.hero h1 {
  font: 400 clamp(4.15rem, 8.25vw, 7.35rem)/.87 var(--script);
  color: #9f231f; overflow-wrap: anywhere;
}
.hero h1 > span, .hero h1 em { display: block; padding-inline: .12em; }
.hero h1 em { margin-top: .12em; font-size: .86em; font-style: normal; }
.hero-content > p {
  max-width: 30rem; margin: 1.3rem auto 1.35rem; color: #304466;
  font-size: clamp(1rem, 1.6vw, 1.16rem); font-weight: 650; line-height: 1.58;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: .82rem; }
[data-icon] svg { width: 21px; height: 21px; display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.section { padding-block: clamp(3.2rem, 6.4vw, 5.7rem); scroll-margin-top: .9rem; }
.section-intro { margin-bottom: clamp(1.35rem, 2.8vw, 2.25rem); }
.section-intro h2 {
  font: 700 clamp(2.4rem, 5.1vw, 4.12rem)/1.01 var(--serif);
  color: var(--red-dark); letter-spacing: -.042em; text-wrap: balance; overflow-wrap: anywhere;
}
.section-intro p { margin-top: .85rem; max-width: 40rem; color: var(--muted); font-size: 1.03rem; }
.letter-section {
  background: radial-gradient(ellipse 60% 70% at left bottom, #f8d1c9 0%, #fae5dc80 66%, transparent 95%), #fff3e7;
}
.letter-card {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center; gap: clamp(1rem, 3.5vw, 3.4rem); padding: clamp(1.3rem, 4vw, 3.3rem);
  border: 9px solid transparent; border-radius: 19px;
  background: linear-gradient(120deg, #fff9ed, #fffefa 56%) padding-box, var(--airmail) border-box;
  box-shadow: 0 14px 34px #79363d1a;
}
.letter-art { position: relative; width: min(100%, 346px); justify-self: center; padding: 10px; background: radial-gradient(circle, #fdf2e6 50%, #f7eadb 100%); box-shadow: 0 8px 18px #3a2f3521; transform: rotate(-2.2deg); }
.letter-art::before { content: ''; position: absolute; inset: 4px; border: 1px dashed #aa5a4d; pointer-events: none; }
.letter-art img { width: 100%; height: clamp(350px, 38vw, 490px); object-fit: cover; object-position: 50% 16%; }
.wax-seal {
  position: absolute; right: -17px; bottom: -14px; display: grid; place-items: center; width: 65px; height: 63px;
  border-radius: 44% 56% 51% 49% / 49% 49% 51% 52%; color: #fff5e3; font: 2rem/1 var(--font);
  background: radial-gradient(circle at 42% 34%, #df5545, #b22a29 52%, #8d2727 72%, #bd4036);
  box-shadow: inset 0 0 0 2px #c6463d, 0 4px 9px #722c3554;
}
.letter-panel { min-width: 0; padding-block: .4rem; }
.letter-panel .section-intro h2 { font-size: clamp(1.98rem, 4.15vw, 3.45rem); text-wrap: initial; }
.letter-panel .section-intro p { font-size: 1rem; }
.letter-panel label { display: block; font-size: .97rem; font-weight: 800; margin: .95rem 0 .36rem; }
.letter-panel input, .letter-panel textarea, .filters input, .filters select {
  display: block; width: 100%; min-height: 48px; border: 1px solid #aeb9ca; border-radius: 9px;
  padding: .69rem .78rem; color: var(--ink); background: #fffefa; line-height: 1.38;
}
.letter-panel input { border-bottom-color: #465879; }
.letter-panel textarea {
  min-height: 77px; resize: vertical; line-height: 26px; padding-block: 10px;
  background: linear-gradient(to bottom, #fffefa 0 35px, transparent 35px),
    repeating-linear-gradient(to bottom, #fffefa 0 25px, #dce1ea 25px 26px) 0 10px / 100% 100%, #fffefa;
}
.letter-panel ::placeholder { color: #5b6681; }
.form-hint { margin-top: .32rem; font-size: .85rem; color: var(--muted); }
.submit { margin-top: 1.05rem; }
.form-status { font-size: .91rem; color: var(--muted); margin: .75rem 0 0; overflow-wrap: anywhere; }
.form-status:empty { display: none; }
.form-status[data-error="true"] { color: #a02224; }
.letter-card:has(.result:not([hidden])) { max-width: 730px; grid-template-columns: minmax(0, 1fr); }
.letter-card:has(.result:not([hidden])) .letter-art,
.letter-card:has(.result:not([hidden])) .section-intro { display: none; }
.result h3 { margin-bottom: .95rem; font: 700 clamp(1.48rem, 3.4vw, 2.1rem)/1.2 var(--serif); text-align: center; color: var(--red-dark); }
.result video { display: block; width: min(100%, 405px); aspect-ratio: 9 / 16; margin-inline: auto; background: #292738; border-radius: 9px; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.15rem; }
.greeting-transcript { margin-top: 1.2rem; }
.greeting-transcript summary { cursor: pointer; font-weight: 750; color: var(--ink); }
.result-text { margin-top: .65rem; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.video-progress { display: block; width: 100%; height: 9px; margin-top: 1rem; accent-color: var(--red); }

.giveaway-section { background: #f9e8e1; }
.giveaway-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; }
.giveaway-card {
  position: relative; isolation: isolate; overflow: hidden; min-height: 304px;
  display: flex; align-items: center; border: 1px solid #e6cdc0; border-radius: var(--radius);
  box-shadow: 0 9px 22px #773c3a14;
}
.max-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .74fr); background: #fffbf2; }
.giveaway-art { width: 100%; height: 100%; min-height: 276px; object-fit: cover; object-position: center; }
.vk-card { background: #eff5ed; border-color: #cbdccc; }
.giveaway-spark { position: absolute; z-index: -1; width: min(45%, 185px); aspect-ratio: 1; right: -2%; bottom: -5%; color: #dce9d8; }
.giveaway-content { width: 100%; padding: clamp(1.35rem, 3.25vw, 2.65rem); }
.giveaway-card h3 {
  margin: .72rem 0 .62rem; color: var(--red-dark);
  font: 700 clamp(1.47rem, 2.75vw, 2.3rem)/1.09 var(--serif); letter-spacing: -.035em;
}
.vk-card h3 { color: #23523f; }
.giveaway-card p { color: var(--muted); max-width: 24rem; }
.giveaway-card .button { margin-top: 1rem; }
.giveaway-card .link-note { margin-top: 1rem; font-size: .88rem; font-weight: 760; }
.max-card .link-note { color: #8d3429; }
.vk-card .link-note { color: #27563e; }
.service-mark { display: inline-flex; min-height: 32px; align-items: center; padding: .24rem .65rem; border-radius: 6px; color: #fff; font-size: .8rem; font-weight: 800; }
.max-mark { background: #a92c29; }
.max-mark:has(img:not([hidden])) { padding-inline: .5rem; }
.max-mark img { width: 55px; height: auto; max-height: 24px; object-fit: contain; }
.vk-mark { background: #28644b; }

.events-section { background: #edf4f9; }
.events-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  gap: 1.55rem; align-items: end; padding-bottom: 1.55rem; border-bottom: 1px solid #c8d8e6; margin-bottom: 1.5rem;
}
.events-heading .section-intro { margin-bottom: 0; }
.events-heading h2 { text-wrap: initial; }
.filters { position: relative; display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; max-width: 415px; }
.filters label { flex: 1 1 140px; min-width: 0; font-size: .92rem; color: var(--ink); font-weight: 800; }
.filters input, .filters select { min-width: 0; margin-top: .32rem; font-weight: 700; font-size: .95rem; }
.filters select {
  appearance: none; padding-right: 2rem;
  background: linear-gradient(45deg, transparent 50%, #405679 50%) calc(100% - 15px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, #405679 50%, transparent 50%) calc(100% - 10px) 50% / 5px 5px no-repeat, #fffefa;
}
.filters select:disabled { background-color: #e7eef4; color: #5d677c; }
.text-button { border: 0; background: transparent; padding: .32rem .12rem; color: #9c2926; text-decoration: underline; text-underline-offset: .22em; font-size: .91rem; font-weight: 800; }
.text-button:hover { color: #77211e; }
.reset-filters { position: absolute; right: 0; top: calc(100% + .16rem); padding-block: .1rem; }
.filter-note { margin: -.55rem 0 .85rem; text-align: right; color: var(--muted); font-size: .87rem; }
.events-section:has(.filter-note:not([hidden])) .events-heading { margin-bottom: 1.8rem; }
.directory-message {
  min-height: 154px; padding: 1.45rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .65rem; text-align: center; border: 1px dashed #a3bcd2; border-radius: var(--radius);
  background: #f8fbff; color: var(--muted);
}
.directory-message:has(.directory-status:empty) { display: none; }
.directory-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 9px; background: #e2edf8; color: #37577e; }
.directory-status { font-weight: 750; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); gap: 18px; }
.event-grid:not(:empty) { margin-top: 1.25rem; }
.event-card { overflow: hidden; min-width: 0; display: grid; grid-template-rows: auto 1fr; border: 1px solid #d5dfe6; border-radius: 13px; background: #fffefa; box-shadow: 0 6px 14px #2b46630d; }
.event-image { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #ddeaf3; }
.event-image > img { width: 100%; height: 100%; object-fit: cover; }
.event-image .event-category { position: absolute; left: .85rem; bottom: .8rem; }
.event-category { display: inline-flex; justify-self: start; padding: .25rem .6rem; border-radius: 6px; background: #e3eee6; color: #285741; font-size: .84rem; font-weight: 800; }
.event-content { display: grid; align-content: start; gap: .65rem; padding: 1.2rem; }
.event-content h3 { font-weight: 800; font-size: 1.23rem; line-height: 1.25; letter-spacing: -.022em; overflow-wrap: anywhere; }
.event-price { font-weight: 800; }
.event-old-price, .event-description, .event-details { color: var(--muted); overflow-wrap: anywhere; }
.event-details { display: grid; gap: .37rem; padding: 0; list-style: none; font-size: .93rem; }
.event-details li { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .38rem; }
.event-details [data-icon] svg { width: 17px; height: 17px; margin-top: .2rem; color: #385e87; }
.event-link { justify-self: start; margin-top: .25rem; min-height: 42px; }

.site-footer { padding-block: 1.75rem; background: #972b27; color: #fff7e6; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.site-footer .brand { background: #fff9ee; border-radius: 8px; padding: .12rem .65rem .12rem .18rem; }
.site-footer p { font: 400 clamp(1.7rem, 3.1vw, 2.47rem)/1.05 var(--script); }
.site-footer :focus-visible { outline-color: #ffdb82; }
.back-top { font-size: .9rem; font-weight: 750; }

@media (max-width: 1040px) {
  .wrap { width: calc(100% - 60px); }
  .hero-inner { min-height: 570px; }
  .hero-art img { object-position: center 63%; }
  .letter-card { gap: clamp(1.05rem, 3.5vw, 2.7rem); }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 38px); }
  .header-inner { min-height: 63px; gap: .65rem; }
  .brand-logo { width: min(132px, 41vw); }
  .brand-mark { width: 44px; height: 44px; }
  .header-button { display: none; }
  .menu-button {
    display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem;
    color: var(--ink); background: #fff9ee; border: 1px solid #d0a899; border-radius: 8px; font-size: .89rem; font-weight: 800;
  }
  .menu-button i { width: 15px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .menu-button[aria-expanded="false"] + .navigation { display: none; }
  .navigation {
    display: grid; gap: 0; position: absolute; right: 19px; top: 56px; min-width: 176px;
    background: #fffaf2; border: 1px solid #d7bcad; border-radius: 11px; padding: .35rem .7rem;
    box-shadow: 0 10px 24px #53292228;
  }
  .navigation a { padding-inline: .45rem; }
  .hero-inner { min-height: 552px; padding-block: 3.4rem 8.9rem; }
  .hero-art img { object-position: center 62%; }
  .hero-art::after { background: radial-gradient(ellipse 79% 50% at 50% 36%, #fff2e5ec, #fff0e38a 54%, transparent 100%); }
  .hero h1 { font-size: clamp(3.65rem, 12.2vw, 5.6rem); }
  .hero-content > p { margin: .95rem auto 1.1rem; max-width: 24rem; }
  .hero-actions { gap: .7rem; }
  .hero-actions .button { min-height: 46px; padding-inline: .8rem; font-size: .89rem; }
  .hero-actions .button svg { width: 17px; height: 17px; }
  .letter-card { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; border-width: 7px; padding: clamp(1.05rem, 4vw, 1.75rem); }
  .letter-art { width: min(calc(100% - 16px), 345px); }
  .letter-art img { height: clamp(218px, 68vw, 350px); object-position: 50% 18%; }
  .wax-seal { width: 51px; height: 50px; font-size: 1.55rem; right: -12px; bottom: -10px; }
  .letter-panel .section-intro h2 { font-size: clamp(1.59rem, 6.6vw, 2.85rem); }
  .giveaway-grid, .events-heading { grid-template-columns: minmax(0, 1fr); }
  .giveaway-card { min-height: 216px; }
  .events-heading { gap: 1.15rem; }
  .filters { max-width: 420px; }
  .filter-note { text-align: left; }
  .footer-inner { flex-wrap: wrap; }
  .site-footer p { flex: 1 1 150px; }
}
@media (max-width: 510px) {
  .hero-inner { min-height: 506px; padding-block: 2.8rem 7.7rem; }
  .max-card { grid-template-columns: minmax(0, 1fr); }
  .giveaway-art { min-height: 0; height: auto; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 30px); }
  .hero h1 { font-size: 3.18rem; }
  .filters label { flex-basis: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
