:root {
  color-scheme: light;
  --paper: #f8eeeb;
  --white: #fff8f4;
  --ink: #32171f;
  --berry: #751f38;
  --wine: #59172c;
  --muted: #6d5259;
  --line: #d9c4c3;
  --control-border: #b8969e;
  --control-hover: #eedcdb;
  --mark-accent: #a53252;
  --focus: #a12b52;
  --action: #59172c;
  --action-hover: #8b2845;
  --action-text: #fff8f4;
  --event-bg: #59172c;
  --footer-bg: #371723;
  --image-placeholder: #ecd3cb;
  --header-height: 78px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.22,.68,.27,1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #221720;
  --white: #2e202b;
  --ink: #fff2eb;
  --berry: #f4a9bf;
  --wine: #fac4d2;
  --muted: #d4b9c4;
  --line: #5e4454;
  --control-border: #927182;
  --control-hover: #392733;
  --mark-accent: #e894ad;
  --focus: #f9b6ca;
  --action: #f3b4c8;
  --action-hover: #ffcede;
  --action-text: #361523;
  --event-bg: #4f2438;
  --footer-bg: #190f17;
  --image-placeholder: #422b37;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; padding-top: var(--header-height); min-width: 280px; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
section[id] { scroll-margin-top: 8px; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.shell { width: min(100% - 100px, 1390px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; transform: translateY(-180%); padding: .75em 1em; color: var(--action-text); background: var(--action); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 4; inset: 0 0 auto; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 77px; }
.wordmark { align-self: center; justify-self: start; display: inline-block; width: fit-content; font: bold 3.2rem/.72 var(--serif); letter-spacing: -.1em; text-decoration: none; padding: 0 .08em .1em 0; }
.wordmark span { color: var(--mark-accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { display: inline-flex; align-items: stretch; padding: 3px; border: 1px solid var(--control-border); border-radius: 12px; }
.language-switch button { min-width: 36px; min-height: 36px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: .85rem; font-weight: 650; }
.language-switch button:hover { background: var(--control-hover); }
.language-switch button[aria-pressed="true"] { background: var(--action); color: var(--action-text); }
.theme-toggle, .menu-toggle, .header-contact { display: inline-grid; place-items: center; min-height: 44px; border: 1px solid var(--control-border); border-radius: 12px; background: transparent; color: var(--ink); transition: background .24s, color .24s, border-color .24s; }
.theme-toggle:hover, .menu-toggle:hover, .header-contact:hover, .header-menu[open] > summary { background: var(--control-hover); color: var(--wine); }
.theme-toggle, .menu-toggle { width: 44px; padding: 0; cursor: pointer; }
.theme-toggle { font-size: 1.3rem; line-height: 1; }
.header-contact { padding: .46rem .94rem .53rem; font-size: .9rem; font-weight: 650; text-decoration: none; }
.header-menu { position: relative; display: flex; border: 0; }
.menu-toggle::before, .menu-toggle::after { content: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { width: 17px; height: 1.5px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; transform: translateY(var(--offset)); transition: transform .18s var(--ease); }
.menu-icon::before { --offset: -5px; }
.menu-icon::after { --offset: 5px; }
.header-menu[open] .menu-icon { background: transparent; }
.header-menu[open] .menu-icon::before { transform: rotate(45deg); }
.header-menu[open] .menu-icon::after { transform: rotate(-45deg); }
.main-nav { position: absolute; top: calc(100% + 9px); right: 0; display: grid; width: min(17rem, calc(100vw - 32px)); padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 12px 30px #24101c26; }
.header-menu[open] .main-nav { animation: enter .22s var(--ease) both; }
.main-nav a { padding: 10px 13px; min-height: 44px; border-radius: 8px; font-size: .98rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover { background: var(--control-hover); color: var(--wine); }
.mobile-menu-contact { display: none; }

.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; padding-top: 29px; }
.hero-copy { align-self: center; padding: 64px 24px 72px 0; }
.eyebrow { font-size: .875rem; font-weight: 650; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: var(--berry); }
.hero-kicker::before { content: ''; flex: 0 0 25px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.067em; }
h1 { font-size: clamp(4.05rem, 7.85vw, 8.6rem); line-height: .87; margin-top: 29px; }
[lang="kk"] h1 { font-size: clamp(3.4rem, 6.45vw, 7.5rem); }
h1 em, h2 em { color: var(--berry); font-weight: 400; }
h1 em { display: inline-block; margin-top: .105em; }
.hero-description { max-width: 31ch; margin-top: 29px; color: var(--muted); font-size: clamp(1.075rem, 1.45vw, 1.35rem); line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; padding: .73rem 1.45rem .82rem; border: 1px solid transparent; border-radius: 13px; font-weight: 650; line-height: 1.25; text-decoration: none; transition: transform .25s var(--ease), background-color .22s, color .22s, border-color .22s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--action); color: var(--action-text); }
.button-primary:hover { background: var(--action-hover); }
.button-outline { border-color: var(--control-border); color: var(--wine); background: transparent; }
.button-outline:hover { background: var(--control-hover); }
.hero-copy .button { margin-top: 2rem; }
.hero-figure { position: relative; min-width: 0; overflow: hidden; background: #5f1e30; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform-origin: 50% 55%; animation: hero-photo 1.55s var(--ease) both; }
.hero-figure figcaption, .event-image figcaption { position: absolute; bottom: 12px; right: 13px; padding: 3px 8px 4px; background: #311720; color: #fff5f0; font-size: .75rem; }
.hero-copy > * { animation: enter .75s var(--ease) both; }
.hero-copy h1 { animation-delay: .07s; }
.hero-copy .hero-description { animation-delay: .14s; }
.hero-copy .button { animation-delay: .2s; }
.hero-meta { display: flex; align-items: center; gap: 22px; padding-block: 21px 23px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.hero-meta a { text-decoration: none; }
.hero-meta a:hover { text-decoration: underline; }
.meta-rule { background: var(--line); height: 15px; width: 1px; }

.catalog { padding-top: 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 31px; }
h2 { font-size: clamp(2.85rem, 5.8vw, 6.15rem); line-height: .99; }
.title-kk, [lang="kk"] .title-ru { display: none; }
[lang="kk"] .title-kk { display: inline; }
.section-heading > p { color: var(--muted); max-width: 33ch; text-wrap: balance; padding-bottom: 4px; }
.catalog-controls { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 15px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { font-size: .92rem; min-height: 42px; padding: 7px 15px 8px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); background: transparent; transition: color .22s, background-color .22s, border-color .22s; }
.filter:hover { border-color: var(--control-border); }
.filter[aria-pressed="true"] { background: var(--action); color: var(--action-text); }
.budget-control { flex: 0 0 auto; }
.budget-control select { cursor: pointer; padding: 7px 32px 8px 11px; min-height: 42px; min-width: 156px; border: 1px solid var(--control-border); border-radius: 12px; font-size: .92rem; }
.budget-control, #order-form label:has(select) { position: relative; }
select { background: transparent; color: var(--ink); appearance: none; border-radius: 0; }
.budget-control::after, #order-form label:has(select)::after { content: ''; position: absolute; width: 7px; height: 7px; border: solid var(--berry); border-width: 0 1px 1px 0; transform: rotate(45deg); right: 16px; bottom: 19px; pointer-events: none; }
.catalog-note { margin: 13px 0 22px; font-size: .875rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 29px 20px; }
.product { position: relative; min-width: 0; border-bottom: 1px solid var(--line); }
.product-button { position: relative; display: block; width: 100%; height: 100%; text-align: left; border: 0; padding: 0 0 14px; background: transparent; color: inherit; }
.product-media { display: block; overflow: hidden; aspect-ratio: 1.2; background-color: var(--image-placeholder); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .68s var(--ease); }
.product-button:hover img, .product-button:focus-visible img { transform: scale(1.055); }
.product-info { display: block; padding: 14px 52px 0 0; }
.product-name { display: block; font: 400 clamp(1.3rem, 2.15vw, 2.05rem)/1.13 var(--serif); letter-spacing: -.045em; }
.product-detail { display: block; margin-top: 5px; font-size: .95rem; color: var(--muted); }
.product-price { display: block; margin-top: 7px; color: var(--wine); font-weight: 650; font-variant-numeric: tabular-nums; }
.product-plus { position: absolute; display: grid; place-items: center; right: 0; bottom: 15px; width: 42px; height: 42px; border: 1px solid var(--control-border); border-radius: 11px; color: var(--berry); transition: background-color .24s, color .24s, border-color .24s; }
.product-plus::before, .product-plus::after { content: ''; grid-area: 1 / 1; width: 13px; height: 1px; background: currentColor; }
.product-plus::after { transform: rotate(90deg); }
.product-button:hover .product-plus { background: var(--action); border-color: var(--action); color: var(--action-text); }
.empty-state { padding: 3rem 0; text-align: center; }
.empty-state .button { margin-top: 1rem; }

.event { margin-top: 98px; display: grid; grid-template-columns: 1.09fr .91fr; color: #fff8f4; background: var(--event-bg); }
.event-image { position: relative; min-height: 370px; }
.event-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.event-copy { align-self: center; padding: clamp(29px, 5.4vw, 90px); }
.event-copy .eyebrow { color: #f3c6d1; }
.event-copy h2 { margin-top: 12px; }
.event-copy p:not(.eyebrow) { margin-top: 20px; max-width: 37ch; color: #f8e3e7; }
.button-pale { background: #f8eeeb; color: #59172c; }
.button-pale:hover { background: #f1ced4; }
.event-copy .button { margin-top: 25px; }
.event-copy :focus-visible, .site-footer :focus-visible { outline-color: #ffd9e4; }

.delivery { padding-top: 98px; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.delivery-item { display: flex; flex-direction: column; align-items: start; padding: 26px 26px 28px; border-left: 1px solid var(--line); }
.delivery-item:first-child { border-left: 0; padding-left: 0; }
.delivery-item h3 { font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.12 var(--serif); letter-spacing: -.045em; }
.delivery-item p { margin: 11px 0 15px; max-width: 32ch; color: var(--muted); }
.delivery-item a { margin-top: auto; color: var(--wine); font-weight: 650; }

.faq { padding-block: 95px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; }
.faq h2 { font-size: clamp(2.75rem, 4.9vw, 5.5rem); }
details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
summary { list-style: none; position: relative; padding: 17px 33px 17px 0; font-weight: 650; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ''; position: absolute; top: 50%; right: 4px; width: 12px; height: 1px; background: var(--berry); }
summary::after { transform: rotate(90deg); transition: transform .25s; }
details[open] summary::after { transform: rotate(0); }
details p { padding: 0 26px 18px 0; color: var(--muted); }
details[open] p { animation: enter .26s var(--ease) both; }
.site-footer { background: var(--footer-bg); color: #fff3ee; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr auto; padding-block: 41px 49px; gap: 28px; align-items: center; }
.footer-logo { font-size: 4.4rem; }
.footer-logo span { color: #ed9ab0; }
.site-footer p { color: #e1bfca; margin-top: 9px; }
.site-footer address, .footer-social { display: grid; gap: 4px; font-style: normal; }
.site-footer address span { color: #e1bfca; }
.site-footer a:not(.wordmark) { text-decoration-color: #c590a1; width: fit-content; }

.order-dialog { width: min(100% - 24px, 564px); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--control-border); border-radius: 16px; background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
.order-dialog[open] { animation: enter .33s var(--ease) both; }
.order-dialog::backdrop { background: #32111fcc; }
.order-layout { position: relative; padding: clamp(20px, 4vw, 34px); }
.close-button { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 11px; color: var(--berry); }
.close-button span { display: grid; place-items: center; }
.close-button span::before, .close-button span::after { content: ''; grid-area: 1 / 1; width: 15px; height: 1px; background: currentColor; transform: rotate(45deg); }
.close-button span::after { transform: rotate(-45deg); }
.close-button:hover { background: var(--control-hover); }
.order-layout .eyebrow { padding-right: 46px; color: var(--berry); }
.order-layout h2 { margin: 9px 0 11px; font-size: clamp(2.35rem, 6vw, 3.5rem); }
.order-details { color: var(--muted); }
.order-price { color: var(--wine); font-weight: 650; margin-top: 7px; }
#order-form { display: grid; gap: 11px; margin-top: 19px; }
.form-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 12px; }
#order-form label { display: grid; align-content: start; gap: 4px; font-size: .9rem; font-weight: 600; min-width: 0; }
#order-form input, #order-form select, #order-form textarea { width: 100%; min-width: 0; min-height: 43px; padding: 8px 10px; background: var(--white); border: 1px solid var(--control-border); border-radius: 10px; color: var(--ink); font-weight: 400; font-size: 1rem; }
#order-form select { padding-right: 34px; }
#order-form textarea { resize: vertical; }
.message-details summary { padding: 6px 22px 9px 0; font-size: .9rem; }
.message-details p { font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-helper { color: var(--muted); font-size: .875rem; }
.order-submit { width: 100%; }

@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-photo { from { opacity: .68; transform: scale(1.075); } to { opacity: 1; transform: scale(1); } }
.reveal.is-visible, .product-appear { animation: enter .55s var(--ease) both; animation-delay: var(--delay, 0s); }

@media (max-width: 1150px) {
  .shell { width: calc(100% - 64px); }
  .hero-copy { padding-block: 59px 65px; }
}

@media (max-width: 800px) {
  :root { --header-height: 69px; }
  .shell { width: calc(100% - 44px); }
  .header-inner { min-height: 68px; }
  h1 { font-size: clamp(3.2rem, 8.3vw, 5.3rem); }
  [lang="kk"] h1 { font-size: clamp(2.7rem, 7.25vw, 4.65rem); }
  .hero-copy { padding-block: 48px; }
  .hero-description { margin-top: 20px; }
  .catalog, .delivery { padding-top: 73px; }
  .event { margin-top: 73px; }
  .catalog-controls { gap: 12px; }
  .category-filters { gap: 4px; }
  .filter { padding-inline: 9px; }
  .product-grid { gap: 23px 13px; }
  .product-info { padding-right: 45px; }
  .product-plus { width: 37px; height: 37px; }
  .event-copy h2 { font-size: clamp(2.7rem, 6.1vw, 5rem); }
  .event-image { min-height: 330px; }
  .faq { padding-block: 72px; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .header-actions { gap: 7px; }
  .header-contact { display: none; }
  .mobile-menu-contact { display: block; }
  .wordmark { font-size: 2.9rem; }
  .hero { grid-template-columns: 1fr; padding-top: 0; }
  .hero-copy { padding: 42px 0 29px; }
  .hero-kicker { font-size: .8rem; }
  h1 { font-size: clamp(3.1rem, 13.5vw, 5.75rem); margin-top: 23px; }
  [lang="kk"] h1 { font-size: clamp(2.65rem, 12.6vw, 5.3rem); }
  .hero-description { margin-top: 17px; }
  .hero-copy .button { margin-top: 20px; }
  .hero-figure { aspect-ratio: 1.04; }
  .hero-meta { font-size: .82rem; justify-content: space-between; gap: 9px; padding-block: 14px; }
  .meta-rule { display: none; }
  .catalog, .delivery { padding-top: 59px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin-top: 10px; padding: 0; }
  .catalog-controls { flex-direction: column; gap: 11px; padding-block: 11px; }
  .budget-control select { min-height: 42px; }
  .filter { min-height: 41px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 11px; }
  .product-media { aspect-ratio: 1; }
  .product-info { padding: 10px 0 0; }
  .product-detail { font-size: .85rem; }
  .product-plus { width: 35px; height: 35px; bottom: 9px; }
  .product-price { padding-right: 36px; }
  .event { grid-template-columns: 1fr; margin-top: 59px; }
  .event-image { min-height: 0; aspect-ratio: 1.33; }
  .event-copy { padding: 30px 21px 35px; }
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-item, .delivery-item:first-child { padding: 19px 0; border-left: 0; }
  .delivery-item + .delivery-item { border-top: 1px solid var(--line); }
  .delivery-item p { margin-block: 9px 11px; }
  .faq { grid-template-columns: 1fr; gap: 21px; padding-block: 58px; }
  .faq h2 br { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px 10px; padding-block: 34px; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .footer-logo { font-size: 3.8rem; }
  .footer-social { justify-self: end; }
}

@media (max-width: 350px) {
  .shell { width: calc(100% - 24px); }
  .hero-meta { flex-wrap: wrap; }
  .product-price { font-size: .9rem; }
  .product-plus { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
