:root {
  --wine: #742c40;
  --wine-deep: #582233;
  --cream: #faf5f0;
  --paper: #f5eee7;
  --white: #fffdfb;
  --ink: #4d4545;
  --muted: #756967;
  --line: #dfd3ca;
  --blush: #e9d9d4;
  --font: 'Century Gothic', 'Avenir Next', Avenir, 'Trebuchet MS', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--font); }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--blush); color: var(--wine-deep); }
:focus-visible { outline: 3px solid #bc8053; outline-offset: 4px; }
.wrap { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.section-pad { padding-block: 88px; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 100; padding: 12px 20px; background: var(--cream); color: var(--wine); transform: translateY(-200%); border-radius: 25px; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--wine); color: var(--cream); }
.header-inner { max-width: 1600px; min-height: 86px; padding: 16px 40px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { text-decoration: none; display: flex; flex-direction: column; flex-shrink: 0; gap: 6px; }
.brand-name { font: italic 28px/1 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.brand-caption { font-size: 9px; letter-spacing: .23em; text-transform: uppercase; opacity: .85; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 42px); }
.desktop-nav a { text-decoration: none; font-size: 12px; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
.desktop-nav a:hover { opacity: .75; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; border-radius: 100px; min-height: 52px; padding: 13px 25px; text-decoration: none; text-transform: uppercase; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .035em; transition: background .2s, color .2s; }
.button span { font-size: 19px; font-weight: 400; line-height: 1; }
.button-wine { color: var(--cream); background: var(--wine); }
.button-wine:hover { background: var(--wine-deep); }
.button-cream { color: var(--wine); background: var(--cream); }
.button-cream:hover { background: #e7d9d0; }
.button-outline { color: var(--wine); border-color: var(--wine); background: transparent; }
.button-outline:hover { color: var(--cream); background: var(--wine); }
.header-order { min-height: 44px; padding: 10px 22px; font-size: 11px; }
.menu-toggle { display: none; height: 42px; width: 42px; padding: 10px 8px; background: transparent; border: 1px solid #ffffff70; border-radius: 50%; }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .2s; }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu { padding: 10px 24px 22px; border-top: 1px solid #ffffff25; }
.mobile-menu a { display: block; padding: 10px 0; text-decoration: none; font-size: 14px; }
.hero-media { height: clamp(420px, 48vw, 670px); position: relative; overflow: hidden; background: #e8dbcd; }
.hero-slide { position: absolute; inset: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.hero-slide-portrait { background: #ece2d6; }
.hero-slide-portrait img { object-fit: contain; padding: 20px; }
.hero-controls { position: absolute; bottom: 24px; left: 40px; right: 40px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.hero-dots, .hero-arrows { display: flex; align-items: center; gap: 8px; background: var(--cream); border-radius: 40px; padding: 7px 10px; pointer-events: auto; box-shadow: 0 2px 15px #4d272318; }
.hero-dots button { width: 32px; height: 32px; border: 0; background: none; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.hero-dots button::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #b3a19a; }
.hero-dots button[aria-pressed='true']::after { background: var(--wine); width: 9px; height: 9px; }
.hero-arrows { gap: 10px; padding: 4px 6px; }
.hero-arrows button { background: transparent; border: 0; width: 36px; height: 36px; border-radius: 50%; color: var(--wine); font-size: 21px; }
.hero-arrows button:hover { background: var(--blush); }
.hero-arrows span { font-size: 11px; letter-spacing: .08em; color: var(--wine); }
.hero-intro { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 70px; padding-block: 48px 55px; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .17em; font-weight: 700; color: var(--wine); margin: 0 0 15px; line-height: 1.6; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 3.7vw, 58px); line-height: 1.13; text-transform: uppercase; font-weight: 500; letter-spacing: -.035em; margin: 0; color: var(--wine); }
.hero-intro-right { max-width: 470px; }
.hero-intro-right > p { font-size: 17px; margin: 0 0 24px; color: var(--muted); }
.hero-intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.text-link { display: inline-flex; gap: 14px; align-items: center; padding: 3px 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--wine); font-size: 13px; line-height: 1.6; text-decoration: none; }
.text-link:hover { opacity: .72; }
.text-link span { font-size: 18px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 36px; }
h2 { font-size: clamp(29px, 3vw, 44px); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; text-transform: uppercase; margin: 0; }
.section-description { margin: 0; max-width: 420px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.collection { border-top: 1px solid var(--line); background: var(--paper); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.category-pill { min-height: 42px; padding: 8px 21px; border: 1px solid transparent; background: var(--white); color: var(--ink); border-radius: 30px; font-size: 12px; white-space: nowrap; transition: background .2s, color .2s; }
.category-pill:hover { border-color: var(--wine); }
.category-pill.is-active { background: var(--wine); color: var(--cream); }
.catalog-count { font-size: 12px; color: var(--muted); white-space: nowrap; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.product-card { background: var(--white); min-width: 0; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.product-photo { border: 0; padding: 14px 14px 0; background: var(--white); width: 100%; cursor: zoom-in; }
.product-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #f2eae2; border-radius: 3px; transition: transform .3s; }
.product-photo:hover img { transform: scale(1.012); }
.product-photo:focus-visible { outline-offset: -5px; }
.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.product-category { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 9px; }
.product-info h3 { font-size: 18px; font-weight: 500; line-height: 1.35; margin: 0 0 10px; }
.product-name { text-align: left; border: 0; background: none; padding: 0; font: inherit; }
.product-name:hover { color: var(--wine); }
.product-card[data-kind='Праздничный торт'] .product-photo { cursor: pointer; }
.product-info p { margin: 0 0 21px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.product-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border-radius: 30px; background: #efe6de; color: var(--wine); border: 1px solid transparent; font-size: 11px; padding: 10px 16px; min-height: 42px; margin-top: auto; }
.product-order span { font-size: 17px; }
.product-order:hover { background: var(--wine); color: var(--cream); }
.catalog-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 36px; }
.catalog-bottom p { margin: 0; color: var(--muted); font-size: 13px; }
.formats { background: var(--cream); }
.format-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.format-card { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.format-visual { height: 270px; overflow: hidden; background: #e8d8cd; }
.format-visual[data-gallery] { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; }
.format-visual[data-gallery]:focus-visible { outline-offset: -4px; }
.format-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.format-photo.format-photo-full img { object-fit: contain; object-position: center; }
.format-illustration { display: grid; place-items: center; color: var(--wine); background: #ecdeda; }
.format-illustration-box { background: #e7ddcc; }
.format-illustration svg { width: 70%; height: 90%; max-width: 260px; }
.format-info { padding: 30px; }
.format-info .eyebrow { font-size: 9px; margin-bottom: 8px; }
.format-info h3 { font-weight: 500; font-size: 28px; margin: 0 0 12px; letter-spacing: -.025em; }
.format-info p { font-size: 13px; color: var(--muted); margin: 0 0 23px; min-height: 42px; }
.personal { background: #e9ded6; }
.personal-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.personal-photo { height: 610px; background: #e1d3c3; border-radius: 5px; overflow: hidden; }
.personal-photo img { width: 100%; height: 100%; object-fit: contain; }
.personal-copy h2 { color: var(--wine); margin-bottom: 28px; text-transform: none; font-size: clamp(34px, 3.2vw, 49px); }
.personal-copy > p:not(.eyebrow) { margin: 0 0 22px; font-size: 15px; color: #645857; }
.personal-copy .button { margin-top: 10px; }
.personal-social { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 8px; margin-top: 32px; font-size: 12px; }
.personal-social span { flex-basis: 100%; color: var(--muted); }
.personal-social a { color: var(--wine); text-underline-offset: 4px; }
.how { background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 50px; list-style: none; padding: 0; margin: 0; }
.steps-grid li { border-top: 1px solid var(--line); padding-top: 28px; }
.step-number { font-size: 13px; height: 42px; width: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--wine); border-radius: 50%; }
.steps-grid h3 { font-size: 21px; font-weight: 500; margin: 23px 0 12px; }
.steps-grid p { font-size: 14px; color: var(--muted); max-width: 330px; margin: 0; }
.order { background: var(--paper); border-top: 1px solid var(--line); }
.order-layout { display: grid; grid-template-columns: 1.75fr 1fr; align-items: start; gap: 28px; }
.order-form { padding: 38px; background: var(--white); border-radius: 7px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink); }
.field label span { color: var(--wine); }
.field input, .field select, .field textarea { display: block; min-width: 0; width: 100%; min-height: 50px; padding: 12px; border: 1px solid #d8cbc2; border-radius: 8px; color: var(--ink); background: var(--white); font-size: 14px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #918581; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--wine); outline-offset: 1px; }
.field input[type='date'] { appearance: auto; min-width: 0; }
.field textarea { resize: vertical; min-height: 130px; }
.form-actions { display: flex; gap: 12px; margin-top: 26px; }
.form-actions .button { flex: 1; padding-inline: 15px; gap: 10px; font-size: 11px; }
.form-note { font-size: 11px; color: var(--muted); margin: 17px 0 0; max-width: 520px; }
.form-feedback { font-size: 12px; margin: 16px 0 0; color: var(--wine); }
.form-feedback a { text-underline-offset: 3px; }
.selected-design { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); padding: 12px; border-radius: 8px; margin-bottom: 26px; }
.selected-design img { width: 65px; height: 80px; object-fit: contain; border-radius: 4px; background: var(--paper); }
.selected-design > div { flex: 1; min-width: 0; }
.selected-design .eyebrow { font-size: 8px; margin-bottom: 5px; }
.selected-design strong { font-weight: 500; font-size: 15px; }
.selected-filling { display: block; color: var(--wine); font-size: 12px; margin-top: 5px; }
.filling-preview { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--paper); border-radius: 8px; }
.filling-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.filling-preview p { font-size: 12px; color: var(--muted); margin: 0; }
.filling-field .text-link { align-self: flex-start; text-align: left; font-size: 11px; margin-top: 5px; }
.selected-design button { border: 0; background: none; width: 32px; height: 40px; font-size: 24px; flex-shrink: 0; }
.request-summary { border-radius: 7px; background: var(--wine); color: var(--cream); padding: 35px; }
.summary-mark { font-size: 38px; line-height: 1; display: block; margin-bottom: 23px; font-family: Georgia, serif; }
.request-summary h3 { font-size: 24px; font-weight: 500; margin: 0 0 13px; }
.summary-intro { font-size: 13px; color: #e3d2d3; margin: 0 0 26px; }
.request-summary dl { margin: 0; }
.request-summary dl > div { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 15px; padding: 12px 0; border-top: 1px solid #ffffff25; }
.request-summary dt { font-size: 11px; color: #dfc7cd; }
.request-summary dd { font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.summary-note { font-size: 11px; color: #e3d2d3; margin: 25px 0 0; }
.product-dialog { width: min(1060px, calc(100% - 64px)); max-width: none; max-height: 90vh; max-height: 90dvh; padding: 0; border: 0; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 20px 80px #2d172c30; overflow: auto; }
.product-dialog::backdrop { background: #302024aa; }
.dialog-content { display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; padding: 35px; position: relative; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); font-size: 26px; z-index: 2; }
.dialog-photo-area { min-width: 0; }
.dialog-photo-stage { height: min(55vh, 530px); position: relative; background: var(--paper); border-radius: 7px; overflow: hidden; touch-action: pan-y; }
.dialog-photo-stage > img { width: 100%; height: 100%; object-fit: contain; }
.photo-arrow { position: absolute; top: 50%; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; background: var(--cream); color: var(--wine); font-size: 18px; }
.photo-arrow:hover { background: var(--wine); color: var(--cream); }
.photo-arrow-prev { left: 10px; }
.photo-arrow-next { right: 10px; }
.dialog-photo-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); padding-block: 14px; }
.dialog-thumbnails { display: flex; gap: 7px; overflow-x: auto; padding: 4px 3px 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dialog-thumbnails button { width: 55px; height: 63px; padding: 3px; flex: 0 0 auto; border: 1px solid transparent; background: var(--paper); border-radius: 4px; }
.dialog-thumbnails button[aria-pressed='true'] { border-color: var(--wine); }
.dialog-thumbnails img { height: 100%; width: 100%; object-fit: contain; }
.dialog-copy { padding-block: 32px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.dialog-copy h2 { text-transform: none; font-size: 32px; margin-bottom: 22px; color: var(--wine); }
.dialog-description { font-size: 15px; color: var(--muted); margin: 0 0 26px; }
.dialog-details { border-top: 1px solid var(--line); padding-top: 25px; margin-bottom: 34px; }
.dialog-details h3 { font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.dialog-details p { font-size: 13px; color: var(--muted); margin: 0; }
.dialog-note { font-size: 11px; color: var(--muted); margin: 15px 0 0; }
.cake-dialog { width: min(1100px, calc(100% - 48px)); }
.cake-menu { padding: 0 36px; }
.cake-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
.cake-back { background: none; border: 0; padding: 10px 0; color: var(--wine); font-size: 12px; }
.cake-close { background: var(--paper); border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 26px; line-height: 1; }
.cake-overview { display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: 48px; }
.cake-photo { height: 350px; background: var(--paper); border-radius: 8px; padding: 12px; }
.cake-photo img { height: 100%; width: 100%; object-fit: contain; }
.cake-copy { min-width: 0; }
.cake-copy h2 { font-size: clamp(28px, 3vw, 38px); color: var(--wine); text-transform: none; margin-bottom: 16px; }
.cake-copy > p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin: 0; }
.cake-menu-step { display: flex; align-items: flex-start; gap: 16px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.cake-menu-step > span { border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; height: 38px; width: 38px; flex-shrink: 0; color: var(--wine); font-size: 11px; }
.cake-menu-step strong { font-size: 15px; font-weight: 500; }
.cake-menu-step p { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.cake-copy > .cake-overview-note { margin-top: 20px !important; font-size: 11px !important; }
.fillings-fieldset { border: 0; padding: 0; margin: 36px 0 0; min-width: 0; }
.fillings-fieldset legend { font-size: 23px; letter-spacing: -.025em; font-weight: 500; padding: 0; }
.fillings-intro { margin: 8px 0 22px; font-size: 12px; color: var(--muted); }
.fillings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.filling-card { display: flex; min-width: 0; position: relative; cursor: pointer; }
.filling-card > input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.filling-card-content { display: flex; flex: 1; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.filling-card-content > img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.filling-card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px; }
.filling-card-copy > strong { font-size: 17px; font-weight: 500; line-height: 1.35; margin-bottom: 10px; }
.filling-description { color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 18px; }
.filling-choice { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--wine); margin-top: auto; }
.filling-check { border: 1px solid var(--line); height: 23px; width: 23px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: transparent; }
.filling-card:hover .filling-card-content { border-color: var(--wine); }
.filling-card > input:checked + .filling-card-content { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); background: var(--cream); }
.filling-card > input:checked + .filling-card-content .filling-check { color: var(--cream); background: var(--wine); border-color: var(--wine); }
.filling-card > input:focus-visible + .filling-card-content { outline: 3px solid #bc8053; outline-offset: 4px; }
.filling-visual-note { font-size: 10px; color: var(--muted); margin: 17px 0 24px; }
.cake-menu-footer { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0 22px; background: var(--white); border-top: 1px solid var(--line); }
.cake-choice-summary { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cake-choice-summary > span { font-size: 10px; color: var(--muted); }
.cake-choice-summary strong { font-size: 15px; font-weight: 500; color: var(--wine); }
.cake-menu-footer .button { flex-shrink: 0; }
.cake-menu-footer .button:disabled { cursor: default; color: #867776; background: #e9e0d9; }
.site-footer { background: var(--wine); color: var(--cream); padding-block: 60px 22px; }
.footer-main { display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 70px; padding-bottom: 55px; }
.footer-brand { display: inline-flex; flex-direction: column; gap: 12px; text-decoration: none; }
.footer-brand > span { font: italic 38px/1 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; }
.footer-brand small { font-size: 9px; text-transform: uppercase; letter-spacing: .2em; }
.footer-main p { font-size: 12px; color: #e3d2d3; margin: 20px 0 0; }
.footer-nav, .footer-contacts { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.footer-label { text-transform: uppercase; letter-spacing: .12em; font-size: 9px; color: #d4b2bb; margin-bottom: 8px; }
.footer-nav a, .footer-contacts a { font-size: 12px; text-decoration: none; }
.footer-contacts a { display: flex; justify-content: space-between; gap: 26px; min-width: 160px; }
.footer-nav a:hover, .footer-contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid #ffffff25; }
.footer-bottom small, .footer-bottom a { font-size: 10px; color: #dfc7cd; }
.footer-bottom a { text-decoration: none; }
.floating-contact { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: flex; gap: 10px; justify-content: center; align-items: center; min-height: 50px; border: 1px solid var(--cream); border-radius: 30px; background: var(--wine); color: var(--cream); box-shadow: 0 3px 16px #4c20372a; padding: 11px 17px; text-decoration: none; }
.floating-contact span { font-size: 11px; }
.floating-contact:hover { background: var(--wine-deep); }
@media (min-width: 1250px) { .product-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1150px) {
  .header-inner { gap: 24px; padding-inline: 28px; }
  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: 10px; }
  .brand-name { font-size: 26px; }
  .header-order { padding-inline: 17px; }
  .wrap { width: calc(100% - 56px); }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .personal-grid { gap: 50px; }
  .personal-photo { height: 530px; }
  .order-layout { grid-template-columns: 1.6fr 1fr; gap: 20px; }
  .order-form { padding: 28px; }
  .request-summary { padding: 28px; }
}
@media (max-width: 900px) {
  .cake-overview { gap: 28px; }
  .cake-photo { height: 290px; }
  .fillings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-intro { gap: 35px; }
  .hero-intro-actions { gap: 14px; }
  .section-heading { gap: 30px; }
  .section-description { max-width: 340px; font-size: 13px; }
  .format-grid { gap: 18px; }
  .format-visual { height: 220px; }
  .format-info { padding: 22px; }
  .format-info h3 { font-size: 25px; }
  .steps-grid { gap: 28px; }
  .steps-grid h3 { font-size: 19px; }
  .order-layout { grid-template-columns: 1fr; }
  .request-summary { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 45px; }
  .summary-mark { display: none; }
  .request-summary h3 { grid-column: 1; }
  .summary-intro { grid-column: 1; margin-bottom: 0; }
  .request-summary dl { grid-column: 2; grid-row: 1 / 4; }
  .summary-note { grid-column: 1; }
  .footer-main { gap: 35px; }
  .dialog-content { gap: 26px; padding: 25px; }
  .dialog-copy h2 { font-size: 27px; }
}
@media (max-width: 650px) {
  .product-dialog.cake-dialog { width: calc(100% - 16px); max-height: 94vh; max-height: 94dvh; }
  .cake-menu { padding-inline: 18px; }
  .cake-menu-header { padding-block: 10px; }
  .cake-overview { grid-template-columns: 1fr; gap: 22px; }
  .cake-photo { height: 250px; height: min(68vw,310px); }
  .cake-copy .eyebrow { font-size: 8px; margin-bottom: 10px; }
  .cake-copy h2 { font-size: 27px; }
  .cake-menu-step { margin-top: 18px; padding-top: 18px; }
  .cake-copy > .cake-overview-note { font-size: 11px !important; margin-top: 15px !important; }
  .fillings-fieldset { margin-top: 27px; }
  .fillings-fieldset legend { font-size: 22px; }
  .fillings-intro { font-size: 11px; margin-bottom: 18px; }
  .fillings-grid { grid-template-columns: 1fr; gap: 14px; }
  .filling-card-content { flex-direction: row; align-items: stretch; }
  .filling-card-content > img { width: 43%; height: auto; aspect-ratio: auto; object-fit: cover; }
  .filling-card-copy { padding: 16px 13px; }
  .filling-card-copy > strong { font-size: 16px; margin-bottom: 8px; }
  .filling-description { font-size: 11px; margin-bottom: 14px; }
  .filling-choice { font-size: 10px; gap: 7px; }
  .filling-check { width: 21px; height: 21px; }
  .cake-menu-footer { align-items: stretch; flex-direction: column; gap: 12px; padding-block: 13px; padding-bottom: max(13px,env(safe-area-inset-bottom)); }
  .cake-choice-summary { gap: 2px; }
  .cake-choice-summary strong { font-size: 14px; }
  .cake-menu-footer .button { width: 100%; min-height: 46px; font-size: 11px; }
  .filling-preview { gap: 12px; padding: 10px; }
  .filling-preview img { width: 65px; height: 65px; }
  .filling-preview p { font-size: 11px; }
  html { scroll-padding-top: 86px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 74px; padding: 14px 18px; gap: 12px; }
  .brand-name { font-size: 23px; }
  .brand-caption { font-size: 7px; letter-spacing: .19em; }
  .header-actions { gap: 10px; }
  .header-order { padding: 9px 17px; font-size: 10px; min-height: 40px; }
  .header-order span { display: none; }
  .menu-toggle { width: 38px; height: 38px; padding: 7px; }
  .hero-media { height: 350px; height: clamp(300px, 78vw, 460px); }
  .hero-slide img { object-position: center; }
  .hero-slide:first-child img { object-position: 52% center; }
  .hero-slide-portrait img { padding: 16px 24px; }
  .hero-controls { bottom: 16px; left: 16px; right: 16px; }
  .hero-dots { gap: 0; padding: 5px 7px; }
  .hero-dots button { width: 28px; height: 28px; }
  .hero-arrows { gap: 5px; }
  .hero-arrows button { width: 32px; height: 32px; }
  .hero-arrows span { font-size: 10px; }
  .hero-intro { display: block; padding-block: 35px 42px; }
  .hero-intro .eyebrow { font-size: 8px; letter-spacing: .13em; }
  h1 { font-size: clamp(31px, 7.8vw, 45px); line-height: 1.17; }
  .hero-intro-right { margin-top: 23px; max-width: 100%; }
  .hero-intro-right > p { font-size: 14px; margin-bottom: 23px; max-width: 380px; }
  .hero-intro-actions { gap: 20px; }
  .hero-intro-actions .button { min-height: 47px; font-size: 10px; padding: 12px 20px; }
  .hero-intro-actions .text-link { font-size: 11px; gap: 8px; }
  .section-pad { padding-block: 56px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading .eyebrow { font-size: 8px; margin-bottom: 11px; }
  h2 { font-size: 29px; }
  .section-description { margin-top: 18px; max-width: 420px; font-size: 13px; }
  .catalog-toolbar { display: block; margin-bottom: 22px; }
  .category-pills { flex-wrap: nowrap; overflow-x: auto; padding: 4px 1px 9px; scrollbar-width: none; gap: 8px; }
  .category-pills::-webkit-scrollbar { display: none; }
  .category-pill { flex: 0 0 auto; min-height: 39px; font-size: 11px; padding: 9px 17px; }
  .catalog-count { font-size: 10px; margin-top: 9px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-photo { padding: 8px 8px 0; }
  .product-info { padding: 15px 12px 14px; }
  .product-category { font-size: 9px; letter-spacing: .035em; margin-bottom: 6px; }
  .product-info h3 { font-size: 16px; margin-bottom: 8px; }
  .product-info p { font-size: 12px; margin-bottom: 16px; }
  .product-order { font-size: 11px; padding: 9px 12px; gap: 5px; min-height: 42px; }
  .product-order span { font-size: 16px; }
  .catalog-bottom { gap: 10px; margin-top: 27px; }
  .catalog-bottom p, .catalog-bottom .text-link { font-size: 11px; }
  .format-grid { grid-template-columns: 1fr; gap: 18px; }
  .format-card { display: grid; grid-template-columns: .85fr 1fr; align-items: stretch; }
  .format-visual { height: auto; min-height: 225px; }
  .format-photo img { height: 100%; object-fit: cover; }
  .format-illustration svg { width: 92%; }
  .format-info { padding: 22px 18px; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; }
  .format-info .eyebrow { font-size: 7px; letter-spacing: .08em; }
  .format-info h3 { font-size: 23px; }
  .format-info p { font-size: 11px; min-height: auto; margin-bottom: 15px; }
  .format-info .text-link { font-size: 10px; gap: 9px; }
  .personal-grid { grid-template-columns: 1fr; gap: 32px; }
  .personal-photo { height: 400px; height: min(115vw, 520px); }
  .personal-copy h2 { font-size: 35px; margin-bottom: 22px; }
  .personal-copy > p:not(.eyebrow) { font-size: 14px; }
  .personal-copy .button { font-size: 11px; min-height: 48px; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps-grid li { display: grid; grid-template-columns: 42px 1fr; gap: 7px 18px; padding-top: 22px; }
  .steps-grid h3 { margin: 6px 0 2px; }
  .steps-grid p { grid-column: 2; max-width: none; font-size: 13px; }
  .step-number { grid-row: 1 / 3; }
  .order-form { padding: 22px; }
  .form-grid { gap: 18px; }
  .field label { font-size: 11px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 49px; padding: 10px; }
  .form-actions { gap: 10px; }
  .form-actions .button { font-size: 10px; gap: 8px; min-height: 50px; padding: 12px; }
  .form-actions .button span { display: none; }
  .form-note { font-size: 10px; }
  .selected-design { gap: 12px; padding: 10px; }
  .selected-design strong { font-size: 13px; }
  .request-summary { display: block; padding: 28px; }
  .request-summary h3 { font-size: 23px; }
  .summary-intro { margin-bottom: 25px; }
  .summary-note { margin-top: 23px; }
  .request-summary dl > div { grid-template-columns: 65px 1fr; }
  .product-dialog { width: calc(100% - 24px); max-height: 92vh; max-height: 92dvh; border-radius: 11px; }
  .dialog-content { display: block; padding: 16px; }
  .dialog-close { top: 9px; right: 9px; width: 36px; height: 36px; background: var(--white); }
  .dialog-photo-stage { height: 44vh; height: 44dvh; min-height: 240px; }
  .dialog-thumbnails button { width: 44px; height: 52px; }
  .dialog-copy { padding: 20px 7px 7px; }
  .dialog-copy h2 { font-size: 26px; margin-bottom: 17px; }
  .dialog-copy .eyebrow { font-size: 9px; }
  .dialog-description { font-size: 13px; margin-bottom: 19px; }
  .dialog-details { padding-top: 19px; margin-bottom: 24px; }
  .dialog-details h3 { font-size: 14px; }
  .dialog-details p { font-size: 12px; }
  .dialog-copy .button { width: 100%; min-height: 47px; font-size: 11px; }
  .site-footer { padding-top: 45px; padding-bottom: 90px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 22px; padding-bottom: 38px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-brand > span { font-size: 34px; }
  .footer-contacts a { min-width: 0; width: 100%; gap: 12px; }
  .footer-bottom { align-items: flex-start; }
  .footer-bottom small { max-width: 225px; }
  .floating-contact { right: 15px; bottom: 15px; width: 50px; padding: 11px; }
  .floating-contact span { display: none; }
}
@media (max-width: 380px) {
  .header-inner { padding-inline: 14px; }
  .brand-name { font-size: 19px; }
  .header-actions { gap: 7px; }
  .header-order { padding-inline: 10px; font-size: 9px; }
  .wrap { width: calc(100% - 28px); }
  .product-info { padding: 13px 10px; }
  .product-info h3 { font-size: 15px; }
  .product-order { padding-inline: 9px; font-size: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .format-info { padding: 19px 14px; }
  .format-info h3 { font-size: 21px; }
  .hero-intro-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
