@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/manrope/manrope-400.woff') format('woff'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/manrope/manrope-500.woff') format('woff'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/manrope/manrope-600.woff') format('woff'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/manrope/manrope-700.woff') format('woff'); }

:root {
    --page: #f7f6f2;
    --surface: #fff;
    --text: #191919;
    --muted: #767676;
    --border: #eae5dd;
    --red: #a51f2d;
    --green: #174c3c;
    --cream: #fbf3e5;
    --content-width: 1240px;
}
* { box-sizing: border-box; }
html {
    color-scheme: light;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #d6cec4 var(--page);
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--page); }
html::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 2px solid var(--page);
    border-radius: 999px;
    background: #d6cec4;
}
html::-webkit-scrollbar-thumb:hover { background: var(--red); }
html::-webkit-scrollbar-corner { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--text); font: 400 1rem/1.5 Manrope, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button { color: inherit; }
button:not(:disabled), a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--page); }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 16px; padding: 12px 20px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: var(--red); color: #fff; padding: 12px 24px; min-height: 44px; text-align: center; text-decoration: none; font-weight: 600; line-height: 1.4; transition: background-color 180ms ease; }
.button:not(:disabled):hover { background: #8b1925; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #ce1c2e; font-size: 1rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: none; }
.arrow { font-size: 1.5rem; font-weight: 400; line-height: 1; }
.icon-button { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 6px; border: 0; border-radius: 6px; background: transparent; }
.icon-button img { display: block; object-fit: contain; }
.site-header { position: sticky; top: 0; z-index: 40; border: 1px solid var(--border); background: var(--page); }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 14px; min-height: 98px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; text-decoration: none; }
.brand__logo { display: block; width: 76px; height: 76px; object-fit: contain; }
.brand__name { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.brand__name span { display: block; }
.brand--header, .brand--drawer { color: var(--red); text-transform: uppercase; }
.brand--header .brand__name { font-size: 25px; }
.brand--header .brand__name span { font-size: 16px; }
.desktop-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; max-width: 425px; margin-left: 32px; gap: 28px; }
.desktop-nav a { font-size: 1rem; white-space: nowrap; text-decoration: none; }
.desktop-nav a:hover { color: var(--red); }
.header-search-group { position: relative; display: flex; flex: 0 0 44px; width: 44px; align-items: center; margin-left: 44px; overflow: visible; }
.header-search-field { position: absolute; z-index: 2; top: 50%; left: calc(100% + 8px); display: block; width: 0; height: 30px; margin: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-50%); pointer-events: none; transition: width 180ms ease, opacity 120ms ease, visibility 0s linear 180ms; }
.header-search-field input { display: block; width: 200px; height: 30px; min-height: 30px; padding: 0 14px; border: 1px solid var(--red); border-radius: 10px; outline: 0; background: var(--page); color: var(--text); font-family: Manrope, Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 90%; letter-spacing: -.02em; }
.header-search-field input::placeholder { color: rgb(25 25 25 / 50%); opacity: 1; }
.header-search-field input::-webkit-search-cancel-button { cursor: pointer; }
.site-header.is-search-open .header-search-field { width: 200px; opacity: 1; visibility: visible; pointer-events: auto; transition: width 180ms ease, opacity 120ms ease, visibility 0s; }
.header-phones { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 4px; margin-left: auto; }
.header-phone-icon { position: relative; z-index: 2; display: grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; }
.header-phone-icon img { display: block; width: 18px; height: 18px; object-fit: contain; }
.header-phone-panel { position: relative; width: 143px; height: 44px; }
.header-phone-panel::before { content: ''; position: absolute; z-index: 0; top: 11px; right: 0; width: 143px; height: 72px; border: 1px solid transparent; border-radius: 10px; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgb(247 246 242 / 98%), rgb(165 31 45 / 11%)) padding-box, linear-gradient(180deg, rgb(247 246 242 / 20%), rgb(165 31 45 / 20%)) border-box; transition: opacity 140ms ease; }
.header-phones.is-open .header-phone-panel::before { opacity: 1; }
.header-phones__main { position: relative; z-index: 1; display: flex; box-sizing: border-box; width: 100%; height: 44px; align-items: center; justify-content: flex-start; padding-left: 4px; }
.header-phone { display: block; white-space: nowrap; text-decoration: none; font-size: 1rem; line-height: 90%; }
.phone-toggle { display: flex; flex: 0 0 18px; width: 18px; height: 44px; align-items: center; justify-content: center; margin-left: 3px; padding: 0; border: 0; background: none; }
.phone-toggle .chevron { width: 7px; height: 7px; margin: -4px 0 0; }
.header-phone-list { position: absolute; z-index: 1; top: 42px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin: 0; padding: 0; list-style: none; text-align: right; }
.header-phone-list li { margin: 0; padding: 0; line-height: 0; }
.header-phone-list a { display: block; padding: 0; white-space: nowrap; text-decoration: none; font-size: 14px; line-height: 90%; }
.header-phone-list a:hover { color: var(--red); }
.menu-toggle, .no-js-navigation { display: none; }
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: min(340px, calc(100% - 32px)); max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--surface); color: var(--text); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform 220ms ease; }
.mobile-menu.is-visible { transform: translateX(0); }
.mobile-menu::backdrop { background: rgb(0 0 0 / 52%); opacity: 0; transition: opacity 220ms ease; }
.mobile-menu.is-visible::backdrop { opacity: 1; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.brand--drawer { gap: 8px; }
.brand--drawer .brand__logo { width: 52px; height: 52px; }
.brand--drawer .brand__name { font-size: 1.125rem; }
.brand--drawer .brand__name span { font-size: .875rem; }
.menu-close { flex-basis: 40px; width: 40px; height: 40px; }
.menu-close span { position: relative; width: 24px; height: 24px; }
.menu-close span::before, .menu-close span::after { content: ''; position: absolute; top: 11px; left: 0; width: 24px; height: 1px; background: #c9beaf; transform: rotate(45deg); }
.menu-close span::after { transform: rotate(-45deg); }
.mobile-menu__nav a { display: flex; align-items: center; min-height: 52px; padding: 14px 16px; border-bottom: 1px solid var(--border); text-decoration: none; }
.mobile-menu__nav a:hover { background: var(--page); }
.mobile-menu__contacts { padding: 28px 16px; }
.mobile-menu__contacts > p:first-child { margin: 0 0 18px; }
.contact-row { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.contact-row img { flex-shrink: 0; object-fit: contain; }
.mobile-menu__contacts .contact-row { margin: 0 0 14px; }
.mobile-menu__phone { font-size: 1.125rem; font-weight: 500; }
.mobile-menu__contacts img { width: 22px; height: 22px; }

.home { padding-top: 16px; padding-bottom: 80px; }
.home h1, .home h2, .home h3, .home p { margin-top: 0; }
.hero { position: relative; isolation: isolate; min-height: 414px; display: flex; align-items: center; border-radius: 24px; overflow: hidden; background: #091d0e; color: var(--page); }
.hero__picture { position: absolute; inset: 0; z-index: -1; }
.hero__picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__content { width: 100%; padding: 52px 58px 48px; }
.hero h1 { max-width: 600px; margin-bottom: 34px; font-size: 3rem; font-weight: 700; line-height: 1.2; letter-spacing: -.045em; }
.hero p { max-width: 465px; margin-bottom: 34px; font-size: 1rem; line-height: 1.2; font-weight: 400; opacity: .8; }
.hero p strong { font-weight: 600; }
.hero__button { min-width: 240px; min-height: 48px; font-size: 1.125rem; }
.categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 50px; }
.category-card { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 9px 18px rgb(46 29 12 / 6%); text-align: center; text-decoration: none; transition: box-shadow 180ms ease; }
.category-card:hover { box-shadow: 0 9px 20px rgb(46 29 12 / 12%); }
.category-card__image { display: block; width: 100%; max-height: 262px; aspect-ratio: 1; object-fit: contain; }
.category-card__name { display: flex; align-items: flex-end; justify-content: center; min-height: max(44px, 2.2em); margin-top: 0; font-size: 1.375rem; font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.category-card__decoration { display: block; width: 96px; height: 22px; margin-top: 4px; object-fit: contain; }
.featured { margin-top: 76px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-inline: 16px; }
.home h2 { margin-bottom: 0; font-size: 2rem; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.featured__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.gift-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 3px 12px rgb(46 29 12 / 4%); }
.gift-card__image { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; }
.gift-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; color: var(--muted); background: var(--page); font-size: .875rem; text-align: center; }
.gift-card__image > img { position: relative; background: #fff; display: block; width: 100%; height: 100%; object-fit: contain; }
.gift-card__badge { position: absolute; top: 31px; left: 31px; z-index: 1; padding: 2px 10px; border-radius: 5px; background: var(--green); color: var(--page); font-size: .75rem; font-weight: 700; line-height: 16px; opacity: 1; }
.gift-card__badge--vip { background: var(--red); }
.gift-card .gift-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 16px 0 6px; min-height: 48px; font-size: 1.125rem; font-weight: 600; line-height: 24px; letter-spacing: normal; color: var(--text); opacity: 1; }
.gift-card__title a { text-decoration: none; }
.gift-card__title a:hover { color: var(--red); }
.gift-card .gift-card__meta { margin-bottom: 18px; color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 20px; opacity: 1; }
.gift-card .gift-card__capacity { margin: -10px 0 12px; color: var(--muted); font-size: .875rem; line-height: 20px; }
.gift-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.gift-card .gift-card__price { margin: 0; font-size: 1.375rem; font-weight: 700; line-height: 28px; color: var(--text); opacity: 1; white-space: nowrap; }
.gift-card__button { padding: 10px 24px; min-height: 42px; flex-shrink: 0; font-size: .9375rem; font-weight: 600; line-height: 20px; color: var(--page); opacity: 1; }
.empty-state { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--muted); }
.about { display: grid; grid-template-columns: 1fr 1.06fr; gap: 42px; align-items: stretch; margin-top: 80px; padding: 24px 30px 24px 34px; border: 1px solid var(--border); border-radius: 26px; background: #fff8; }
.about__content { align-self: center; }
.about h2 { max-width: 500px; font-size: 2rem; line-height: 1.25; }
.about .about__description { max-width: 485px; margin: 18px 0 26px; font-size: 1rem; line-height: 1.55; }
.about__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; max-width: 470px; margin: 0 0 26px; padding: 0; list-style: none; }
.about__stats li { font-size: .875rem; line-height: 1.5; letter-spacing: -.03em; }
.about__stats strong { font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -.05em; }
.about__stats strong span { font-size: 1rem; }
.about__picture { display: block; min-width: 0; min-height: 360px; border-radius: 18px; overflow: hidden; }
.about__picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.advantages { margin-top: 32px; padding: 32px 40px; border-radius: 18px; background: var(--cream); }
.advantages ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.advantages li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.advantages img { flex: 0 0 38px; width: 38px; height: 38px; object-fit: contain; }
.advantages h3 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.advantages p { margin: 0; color: #595959; font-size: .875rem; line-height: 1.4; letter-spacing: -.025em; }
.manufacturers { margin-top: 76px; text-align: center; }
.manufacturers__description { margin: 12px auto 18px; font-size: 1rem; line-height: 1.5; color: #4a4a4a; }
.manufacturers__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 16px; margin: 0; padding: 0 18px; list-style: none; }
.manufacturer-card { display: flex; flex: 0 0 calc((100% - 64px) / 5); align-items: center; justify-content: center; min-width: 0; height: 120px; padding: 16px 22px; border: 1px solid var(--border); border-radius: 12px; background: #fff8; }
.manufacturer-card img { display: block; width: 100%; height: 100%; object-fit: contain; }

.site-footer { border-radius: 24px 24px 0 0; background: var(--green); color: var(--page); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1.12fr 1.32fr 1fr; gap: 34px; padding-block: 36px 38px; }
.footer-brand { max-width: 245px; text-align: center; }
.brand--footer .brand__logo { width: 98px; height: 98px; }
.brand--footer .brand__name { font-size: 1.25rem; font-weight: 600; }
.footer-brand__decoration { display: block; width: 75px; height: 22px; margin: 0 auto 4px; object-fit: contain; }
.footer-brand p { margin: 0; color: #d3dfd8; font-size: 1rem; line-height: 1.2; }
.footer-heading { margin: 0 0 16px; font-size: 1.125rem; font-weight: 500; line-height: 1.5; }
.footer-heading button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; background: none; text-align: left; font-weight: inherit; }
.footer-panel__inner { min-height: 0; overflow: hidden; }
.footer-panel nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-panel a, .footer-panel p, .text-button { margin: 0; color: #d3dfd8; font-size: 1rem; font-weight: 400; line-height: 1.5; text-decoration: none; }
.footer-panel a:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button { padding: 0; border: 0; background: none; text-align: left; }
.footer-contacts { display: flex; flex-direction: column; gap: 8px; }
.footer-contacts .contact-row { gap: 8px; }
.footer-contact-icon { position: relative; display: block; flex: 0 0 16px; width: 16px; height: 16px; overflow: hidden; }
.footer-contacts .footer-contact-icon img { position: absolute; max-width: none; margin: 0; }
.footer-contacts .footer-contact-icon--phone img { width: 29.257px; height: 29.257px; left: -6.629px; top: -6.743px; }
.footer-contacts .footer-contact-icon--mail img { width: 32px; height: 32px; left: -8px; top: -7.875px; }
.footer-contacts .footer-contact-icon--clock img { width: 29.257px; height: 29.257px; left: -6.629px; top: -6.4px; }
.footer-contacts .footer-contact-icon--location img { width: 27.676px; height: 27.676px; left: -5.838px; top: -5.189px; }
.footer-copyright { padding: 18px 0; border-top: 1px solid rgb(247 246 242 / 20%); color: #d3dfd8; text-align: center; font-size: .875rem; }
.chevron { display: block; width: 11px; height: 11px; margin-right: 4px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); transition: transform 180ms ease; }
[aria-expanded='true'] .chevron { transform: rotate(225deg); }
#main-content > section, #main-content > article { width: min(var(--content-width), calc(100% - 32px)); margin: 32px auto; }

@media (max-width: 1199px) {
    .site-header__inner { gap: 8px; }
    .brand--header .brand__logo { width: 64px; height: 64px; }
    .desktop-nav { gap: 20px; margin-left: 12px; }
    .desktop-nav a, .header-phone { font-size: .875rem; }
    .header-search-group { margin-left: 12px; }
    .categories, .featured__list { gap: 16px; }
    .category-card__name { font-size: 1.125rem; }
    .gift-card { padding: 12px; }
    .gift-card__bottom { flex-wrap: wrap; }
    .gift-card__button { padding-inline: 18px; }
    .about { gap: 24px; padding: 28px; }
    .advantages { padding: 28px 24px; }
    .advantages ul { gap: 16px; }
    .advantages h3 { font-size: .875rem; }
    .advantages p { font-size: .8125rem; }
    .footer-grid { gap: 24px; }
    .footer-panel a, .footer-panel p, .text-button { font-size: .875rem; }
    .brand--footer .brand__logo { width: 80px; height: 80px; }
    .brand--footer .brand__name { font-size: 1.125rem; }
}
@media (max-width: 1023px) {
    .site-header__inner { min-height: 72px; }
    .desktop-nav, .header-phones { display: none; }
    .header-search-group { position: static; margin-left: auto; }
    .header-search-field, .site-header.is-search-open .header-search-field { position: absolute; top: calc(100% + 8px); left: 0; right: 0; width: auto; height: auto; padding: 10px; overflow: visible; opacity: 1; visibility: visible; transform: none; border: 1px solid var(--border); border-radius: 16px; background: var(--page); box-shadow: 0 6px 14px rgb(25 25 25 / 8%); pointer-events: auto; transition: none; }
    .header-search-field input { width: 100%; height: 40px; min-height: 40px; padding: 8px 14px; border-radius: 14px; line-height: 22px; letter-spacing: normal; }
    .menu-toggle, .no-js-navigation { display: inline-flex; }
    .hero h1 { max-width: 480px; font-size: 2.5rem; }
    .hero__content { padding: 42px 36px; }
    .hero p { max-width: 400px; }
    .categories { gap: 12px; }
    .category-card { padding: 8px; }
    .category-card__name { font-size: 1rem; }
    .featured__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about { grid-template-columns: 1fr 1fr; gap: 22px; }
    .about h2 { font-size: 1.625rem; }
    .about__stats { gap: 16px 12px; }
    .about__picture { min-height: 320px; }
    .advantages ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 0; max-width: 620px; padding: 28px 0 0; }
    .footer-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; width: fit-content; max-width: 100%; margin: 0 auto 26px; }
    .brand--footer { display: contents; }
    .brand--footer .brand__logo { grid-row: 1 / 3; width: 84px; height: 84px; }
    .brand--footer .brand__name { align-self: end; font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
    .brand--footer .brand__name span { display: inline; }
    .footer-brand p { margin-top: 2px; font-size: .875rem; line-height: 1.3; }
    .footer-brand__decoration { display: none; }
    .footer-section { border-top: 1px solid rgb(247 246 242 / 28%); }
    .footer-heading { margin: 0; padding: 0; font-size: 1rem; line-height: 20px; }
    .footer-heading__static { display: block; padding: 16px; }
    .footer-heading button { min-height: 52px; padding: 16px; }
    .footer-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 180ms ease; }
    .footer-section.is-collapsed .footer-panel { grid-template-rows: 0fr; }
    .footer-panel nav, .footer-contacts { gap: 12px; padding: 0 16px 28px; }
    .footer-panel a, .footer-panel p, .text-button { font-size: .875rem; line-height: 20px; }
    .footer-contacts { gap: 8px; }
    .footer-copyright { max-width: 620px; width: calc(100% - 48px); margin: 0 auto; padding-block: 20px; font-size: .75rem; }
    .footer-copyright .container { width: 100%; }
}
@media (max-width: 767px) {
    .container { width: calc(100% - 32px); }
    .site-header__inner { width: calc(100% - 24px); min-height: 62px; gap: 0; }
    .brand--header { gap: 6px; }
    .brand--header .brand__logo { width: 50px; height: 50px; }
    .brand--header .brand__name { font-size: .9375rem; }
    .brand--header .brand__name span { font-size: .75rem; }
    .icon-button { padding: 10px; }
    .header-search img, .header-cart img, .menu-toggle img { width: 22px; height: 22px; }
    .home { padding-top: 16px; padding-bottom: 50px; }
    .hero { min-height: 480px; align-items: stretch; border-radius: 20px; }
    .hero__picture img { object-position: center bottom; }
    .hero__content { padding: 20px 20px 180px; }
    .hero h1 { max-width: 340px; margin-bottom: 14px; font-size: 2rem; line-height: 1.18; letter-spacing: -.04em; }
    .hero p { max-width: 340px; margin-bottom: 20px; font-size: .9375rem; line-height: 1.45; letter-spacing: -.015em; }
    .hero__button { width: 100%; min-width: 0; min-height: 46px; font-size: .875rem; }
    .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
    .category-card { min-height: 200px; padding: 8px 8px 4px; border-radius: 16px; box-shadow: none; }
    .category-card__image { height: 136px; aspect-ratio: auto; }
    .category-card__name { min-height: max(30px, 2.4em); margin-top: 4px; font-size: .8125rem; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
    .category-card__decoration { width: 64px; height: 14px; margin-top: 2px; }
    .featured { margin-top: 50px; }
    .section-heading { align-items: center; margin-bottom: 20px; padding: 0; }
    .home h2 { font-size: 1.625rem; line-height: 1.3; letter-spacing: -.035em; }
    .text-link { font-size: .875rem; line-height: 20px; gap: 4px; }
    .text-link .arrow { font-size: 1.25rem; }
    .featured__list { display: flex; overflow-x: auto; gap: 12px; padding: 1px 0 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: none; overscroll-behavior-x: contain; }
    .featured__list::-webkit-scrollbar { display: none; }
    .gift-card { flex: 0 0 248px; min-height: 401px; padding: 10px; border-radius: 14px; scroll-snap-align: start; box-shadow: none; }
    .gift-card__image { width: 100%; aspect-ratio: 1; border-radius: 10px; }
    .gift-card__badge { top: 18px; left: 18px; padding: 2px 8px; border-radius: 3px; }
    .gift-card .gift-card__title { margin: 12px 0 4px; }
    .gift-card .gift-card__meta { margin-bottom: 10px; }
    .gift-card__bottom { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    .gift-card__button { width: 100%; min-height: 40px; padding: 10px 16px; }
    .about { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; padding: 20px 18px 18px; border-radius: 20px; }
    .about h2 { max-width: 100%; font-size: 1.625rem; line-height: 1.3; letter-spacing: -.04em; }
    .about .about__description { margin: 14px 0 18px; font-size: .9375rem; line-height: 1.5; letter-spacing: -.035em; }
    .about__stats { gap: 24px 14px; margin-bottom: 24px; }
    .about__stats li { font-size: .75rem; line-height: 1.4; letter-spacing: -.04em; }
    .about__stats strong { font-size: 1.375rem; }
    .about__stats strong span { font-size: .875rem; }
    .about__picture { min-height: 0; aspect-ratio: 4 / 3; border-radius: 14px; }
    .advantages { margin-top: 24px; padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: #fff8; }
    .advantages ul { grid-template-columns: 1fr; gap: 12px; }
    .advantages li { gap: 12px; padding: 9px 12px; background: var(--cream); }
    .advantages img { flex-basis: 28px; width: 28px; height: 28px; }
    .advantages h3 { font-size: .875rem; line-height: 20px; }
    .advantages p { font-size: .75rem; line-height: 17px; }
    .manufacturers { margin-top: 50px; }
    .manufacturers__description { max-width: 310px; margin: 10px auto 20px; font-size: .875rem; line-height: 1.4; }
    .manufacturers__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 0; }
    .manufacturer-card { grid-column: span 2; height: 76px; padding: 10px; border-radius: 12px; }
    .manufacturers__list--thirteen .manufacturer-card:nth-child(10), .manufacturers__list--thirteen .manufacturer-card:nth-child(12) { grid-column: 2 / span 2; }
    .manufacturers__list--thirteen .manufacturer-card:nth-child(11), .manufacturers__list--thirteen .manufacturer-card:nth-child(13) { grid-column: 4 / span 2; }
    .site-footer { border-radius: 20px 20px 0 0; }
    .footer-grid { padding-top: 28px; }
    .footer-brand { gap: 0 14px; margin-bottom: 26px; }
    .brand--footer .brand__logo { width: 84px; height: 84px; }
    .brand--footer .brand__name { font-size: 1.125rem; }
    .footer-copyright { width: calc(100% - 32px); }
}
@media (max-width: 359px) {
    .site-header__inner { width: calc(100% - 16px); }
    .brand--header { gap: 4px; }
    .brand--header .brand__logo { width: 40px; height: 40px; }
    .brand--header .brand__name { font-size: .8125rem; }
    .brand--header .brand__name span { font-size: .6875rem; }
    .hero__content { padding-inline: 16px; }
    .hero h1 { font-size: 1.75rem; }
    .section-heading { gap: 6px; }
    .home .section-heading h2 { font-size: 1.375rem; }
    .section-heading .text-link { font-size: .75rem; }
    .brand--footer .brand__logo { width: 68px; height: 68px; }
    .brand--footer .brand__name { font-size: 1rem; }
    .footer-brand p { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .featured__list { scroll-snap-type: none; }
}

/* Clicking or tapping must not draw a focus outline; keyboard focus remains visible. */
html[data-input-method="pointer"] :focus,
html[data-input-method="pointer"] :focus-visible { outline: none; }

/* Figma desktop card: 292 × 440, with 16px gutters and a 24px bottom inset.
   An inset shadow reproduces the inside stroke without consuming layout space.
   Natural content height is 440px at 292px width: no minimum-height filler,
   grid stretching or auto margins between metadata and the price row.
   Extra capacity text may increase height; it must never overlap the price. */
@media (min-width: 1024px) {
    .gift-card {
        width: 100%; max-width: 292px; min-height: 0; height: auto;
        align-self: start;
        padding: 16px 16px 24px; border: 0; border-radius: 16px;
        background: #fafafa;
        box-shadow: inset 0 0 0 1px rgb(230 222 210 / 70%), 0 4px 16px rgb(0 0 0 / 5%);
    }
    .gift-card__image {
        flex-shrink: 0; width: 100%; aspect-ratio: 1;
        border-radius: 12px;
    }
    .gift-card__badge { top: 32px; left: 32px; }
    .gift-card .gift-card__title {
        flex: 0 0 44px; height: 44px; min-height: 44px;
        margin: 16px 0 6px;
        font-size: 18px; font-weight: 600; line-height: 120%;
        letter-spacing: -.01em; color: #191919;
    }
    .gift-card .gift-card__meta {
        flex: 0 0 20px; min-height: 20px; margin: 0 0 14px;
        font-size: 14px; font-weight: 400; line-height: 140%;
        letter-spacing: -.01em; color: #767676;
    }
    .gift-card .gift-card__capacity { margin: -8px 0 14px; }
    .gift-card__bottom {
        flex-direction: row; flex-wrap: nowrap; align-items: flex-start;
        justify-content: space-between; gap: 8px; margin: 0; flex-shrink: 0;
    }
    .gift-card .gift-card__price {
        margin: 0; font-size: 22px; font-weight: 700; line-height: 28px;
        letter-spacing: -.01em; color: #191919;
    }
    .gift-card__button {
        flex: 0 0 128px; width: 128px; height: 40px; min-height: 40px;
        padding: 10px 0; border-radius: 12px; background: #a51f2d;
    }
}

/* Shared quantity control, reused by gift details and cart. */
.quantity-selector { display: flex; flex: 0 0 132px; width: 132px; height: 48px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; }
.quantity-selector button { display: flex; align-items: center; justify-content: center; flex: 0 0 43px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.quantity-selector button:disabled { color: #b3b3b3; cursor: default; }
.quantity-selector input { width: 0; min-width: 0; flex: 1; padding: 0 2px; border: solid var(--border); border-width: 0 1px; border-radius: 0; text-align: center; background: var(--surface); color: var(--text); font-size: 16px; appearance: textfield; -moz-appearance: textfield; }
.quantity-selector input::-webkit-inner-spin-button, .quantity-selector input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.header-cart { position: relative; text-decoration: none; }
.header-cart__badge { position: absolute; right: -2px; top: -2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 10px; background: var(--red); color: #fff; font-size: 10px; line-height: 16px; font-weight: 700; }
.cart-notice { position: fixed; z-index: 50; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 4px 24px #0000001a; font-size: 14px; line-height: 20px; }

.catalog-search-summary { margin: -24px 12px 32px; overflow-wrap: anywhere; }
.catalog-search-summary a { display: inline-block; margin-left: 12px; }
@media (min-width: 1024px) and (max-width: 1279px) {
    .header-search-field, .site-header.is-search-open .header-search-field { top: calc(100% + 8px); left: auto; right: 0; width: 340px; height: auto; padding: 10px; overflow: visible; opacity: 1; visibility: visible; transform: none; border: 1px solid var(--border); border-radius: 16px; background: var(--page); box-shadow: 0 6px 14px rgb(25 25 25 / 8%); pointer-events: auto; transition: none; }
    .header-search-field input { width: 100%; height: 40px; min-height: 40px; padding: 8px 14px; border-radius: 14px; line-height: 22px; letter-spacing: normal; }
}
@media (max-width: 1023px) { .catalog-search-summary { margin: -12px 0 24px; } }

/* Error pages */
.error-page { padding: 72px 0 96px; }
.error-page__inner { max-width: 760px; text-align: center; }
.error-page__code { margin: 0 0 8px; color: var(--red); font-size: clamp(48px, 9vw, 88px); font-weight: 700; line-height: 1; }
.error-page h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; }
.error-page h1 + p { max-width: 560px; margin: 18px auto 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.error-page__secondary { border: 1px solid var(--red); background: transparent; color: var(--red); }
.error-page__secondary:not(:disabled):hover { background: rgba(165, 31, 45, 0.08); }
@media (max-width: 640px) { .error-page { padding: 48px 0 72px; } .error-page__actions { flex-direction: column; align-items: stretch; } }

/* Popup motion; dialog stays modal during both phases. */
.ui-motion-dialog { opacity: 0; transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease; }
.ui-motion-dialog.catalog-filter-dialog { transform: translateX(100%); }
.ui-motion-dialog.catalog-sort-dialog { transform: translateY(100%); }
.ui-motion-dialog.gift-lightbox { transform: scale(.97); }
.ui-motion-dialog.is-motion-open { opacity: 1; transform: none; }
.ui-motion-dialog::backdrop { opacity: 0; transition: opacity 240ms ease; }
.ui-motion-dialog.is-motion-open::backdrop { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .ui-motion-dialog, .ui-motion-dialog::backdrop, .mobile-menu, .mobile-menu::backdrop,
    .footer-panel, .header-search-field { transition: none !important; }
}
