/* ALEX & MILANA — витрина. Без фреймворков, мобильная вёрстка в первую очередь. */
@font-face { font-family: "Cormorant"; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-cyrillic-500-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-cyrillic-var.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cream: #f7f1e8; --cream-2: #fbf7f1; --paper: #fffdf9; --sand: #efe4d5; --line: #e8dccb; --line-2: #f1e8dc;
  --ink: #3b2a24; --ink-soft: #7a665c; --wine: #6b2f3a; --wine-2: #87404c; --rose: #d9a79c; --blush: #f6e3dc; --gold: #c39a6b;
  --ok: #2f6b4a; --danger: #9b2c2c;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(59,42,36,.04), 0 18px 40px -18px rgba(59,42,36,.18);
  --container: 1200px; --gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text, .am-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.am-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--wine); color: #fff; padding: 10px 16px; border-radius: 10px; }
.am-skip:focus { left: 12px; }
.am-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.am-muted { color: var(--ink-soft); font-size: .93em; }
.am-empty { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.am-eyebrow { display: inline-block; font: 600 11.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }

/* Кнопки */
.am-btn, .button, button.button, .woocommerce-button, #place_order {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 26px;
  border-radius: 999px; border: 1px solid var(--wine); background: var(--wine); color: #fff !important; text-decoration: none;
  font: 600 15px/1.2 var(--sans); letter-spacing: .01em; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; white-space: nowrap;
}
.am-btn:hover, .button:hover, #place_order:hover { background: var(--wine-2); border-color: var(--wine-2); box-shadow: 0 10px 24px -12px rgba(107,47,58,.6); }
.am-btn:active, .button:active { transform: translateY(1px); }
.am-btn--ghost { background: transparent; color: var(--wine) !important; border-color: rgba(107,47,58,.3); }
.am-btn--ghost:hover { background: var(--paper); color: var(--wine) !important; box-shadow: none; }
.am-btn--sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.am-btn--lg { min-height: 54px; padding: 15px 32px; font-size: 16px; }
.button.loading { opacity: .7; }
.button.added::after, .am-btn.added::after { content: "✓"; }
.added_to_cart { display: none !important; }
.am-link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.am-link-arrow::after { content: "→"; transition: transform .2s; }
.am-link-arrow:hover::after { transform: translateX(4px); }
.am-link-arrow--back::after { content: none; }
.am-link-arrow--back::before { content: "←"; }

/* Тестовая полоса */
.am-testbar { background: var(--ink); color: #f6e9dc; text-align: center; font-size: 13px; padding: 7px 16px; }

/* Шапка */
.am-cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.am-cart-link:hover { border-color: var(--rose); color: var(--wine); }
.am-cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--wine); color: #fff; font: 700 11px/20px var(--sans); text-align: center; }
.am-cart-count[data-count="0"] { display: none; }

/* Первый экран */
.am-reveal { opacity: 0; transform: translateY(14px); animation: am-reveal .8s cubic-bezier(.2,.7,.2,1) forwards; }
.am-reveal:nth-child(2) { animation-delay: .08s; } .am-reveal:nth-child(3) { animation-delay: .16s; } .am-reveal:nth-child(4) { animation-delay: .24s; } .am-reveal:nth-child(5) { animation-delay: .32s; }
@keyframes am-reveal { to { opacity: 1; transform: none; } }

/* Секции */
.am-section { padding: clamp(48px, 8vw, 104px) 0; }
.am-section--compact { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.am-section--tint { background: var(--paper); border-block: 1px solid var(--line-2); }
.am-section__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 24px; margin-bottom: clamp(24px, 4vw, 44px); }
.am-section__head .am-eyebrow { grid-column: 1 / -1; margin: 0; }
.am-section__title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0; }
.am-section__title--sm { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 32px 0 18px; }

/* Шапка внутренних страниц */
.am-page-head { padding: clamp(24px, 5vw, 56px) 0 0; }
.am-page-head--compact { padding-top: 20px; }
.am-page-title { font-size: clamp(2.3rem, 5.5vw, 4rem); margin: 0 0 14px; }
.am-page-lead { color: var(--ink-soft); max-width: 62ch; font-size: 1.05rem; }
.am-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 13.5px; color: var(--ink-soft); }
.am-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.am-crumbs a { color: var(--ink-soft); text-decoration: none; }
.am-crumbs a:hover { color: var(--wine); }
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.am-chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 14px; transition: border-color .2s, background .2s; }
.am-chip span { color: var(--ink-soft); font-size: 12px; margin-left: 2px; }
.am-chip:hover { border-color: var(--rose); color: var(--wine); }
.am-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.am-chip.is-active span { color: rgba(255,255,255,.7); }

/* Карточки товаров */
.am-grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.am-card-product { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.am-card-product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.am-card-product__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.am-card-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.am-card-product:hover .am-card-product__media img { transform: scale(1.04); }
.am-photo-note { position: absolute; left: 12px; bottom: 12px; background: rgba(59,42,36,.72); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.am-photo-note--static { position: static; display: inline-block; margin-top: 10px; background: var(--sand); color: var(--ink-soft); }
.am-card-product__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.am-card-product__title { font-size: 1.55rem; margin: 0; }
.am-card-product__title a { color: var(--ink); text-decoration: none; }
.am-card-product__meta { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
.am-card-product__foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.am-price { font: 600 1.35rem/1 var(--serif); color: var(--ink); }
.am-price del { opacity: .5; font-size: .8em; }
.am-test-badge { display: inline-block; font: 600 10.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: #fff1d6; color: #7a5300; vertical-align: middle; }

/* Категории */
.am-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.am-cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; border-radius: var(--radius); overflow: hidden; padding: 22px; color: #fff; text-decoration: none; background: var(--ink); isolation: isolate; }
.am-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.am-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(43,28,24,.78)); z-index: -1; }
.am-cat:hover .am-cat__img { transform: scale(1.05); }
.am-cat__name { font: 500 1.9rem/1.1 var(--serif); }
.am-cat__count { font-size: 13px; opacity: .85; }

/* Рецепты */
.am-grid-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.am-card-recipe__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.am-card-recipe__link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.am-card-recipe__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); display: block; }
.am-card-recipe__media img { width: 100%; height: 100%; object-fit: cover; }
.am-card-recipe__noimg { display: grid; place-items: center; height: 100%; font: 500 2rem var(--serif); color: var(--gold); }
.am-card-recipe__body { padding: 14px 16px 18px; display: grid; gap: 4px; }
.am-card-recipe__body .am-eyebrow { margin: 0; font-size: 10.5px; }
.am-card-recipe__title { font: 500 1.3rem/1.15 var(--serif); }
.am-card-recipe__meta { font-size: 12.5px; color: var(--ink-soft); }
.am-recipe-search { display: flex; gap: 10px; max-width: 560px; margin-top: 18px; }
.am-recipe-search input { flex: 1; }
.am-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.am-pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.am-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.am-recipe__hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: 32px; }
.am-recipe__media { margin: 0; position: sticky; top: 100px; }
.am-recipe__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.am-recipe__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.am-recipe__meta li { background: var(--paper); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.am-ingredients { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px 26px; }
.am-ingredients h2 { font-size: 1.7rem; margin-top: 0; }
.am-ingredients ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.am-ingredients li { padding-left: 22px; position: relative; }
.am-ingredients li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.am-ingredients li.is-subhead { padding-left: 0; margin-top: 8px; font-weight: 700; }
.am-ingredients li.is-subhead::before { content: none; }
.am-recipe__body { max-width: 860px; padding-bottom: 72px; }
.am-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.am-step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 18px 20px; }
.am-step__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--wine); font: 600 1.4rem var(--serif); }
.am-step p:last-child { margin-bottom: 0; }
.am-step__img { border-radius: 12px; margin-top: 12px; }
.am-video { margin: 24px 0; padding: 24px; background: var(--ink); border-radius: var(--radius); color: #f6e9dc; text-align: center; }
.am-video__play { background: var(--wine); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; font: 600 15px var(--sans); cursor: pointer; }
.am-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.am-video .am-muted { color: rgba(246,233,220,.7); margin: 10px 0 0; }

/* О нас / контакты */
.am-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.am-about__text { font: 500 clamp(1.3rem, 2.2vw, 1.7rem)/1.4 var(--serif); }
.am-about__media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.am-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.am-features li { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 20px 22px; background: var(--cream); border-radius: var(--radius-sm); border: 1px solid var(--line-2); }
.am-features__num { grid-row: span 2; font: 500 2rem/1 var(--serif); color: var(--gold); }
.am-features b { font-size: 1.05rem; }
.am-features span:last-child { color: var(--ink-soft); font-size: 14.5px; }
.am-contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.am-contacts__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.am-contacts__cards--page { margin-bottom: 20px; }
.am-contact { display: grid; gap: 4px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.am-contact:hover { border-color: var(--rose); transform: translateY(-2px); color: var(--ink); }
.am-contact .am-eyebrow { margin: 0; }
.am-contact__value { font: 500 1.6rem/1.2 var(--serif); word-break: break-word; }
.am-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 18px; }
.am-point { display: grid; gap: 4px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* Товар */
.am-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.am-product__media { margin: 0; position: sticky; top: 100px; }
.am-product__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
.am-product__title { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 14px; }
.am-product__price { margin-bottom: 18px; }
.am-product__price .am-price { font-size: 2rem; }
.am-product__short { color: var(--ink-soft); }
.am-stock { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.am-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.am-stock.is-in { color: var(--ok); } .am-stock.is-out { color: var(--danger); }
.am-add { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 28px; }
.am-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.am-qty__btn { width: 46px; height: 52px; border: 0; background: transparent; font-size: 20px; color: var(--ink); cursor: pointer; border-radius: 999px; }
.am-qty__btn:hover { color: var(--wine); }
.am-qty input { width: 48px; border: 0; background: transparent; text-align: center; font: 600 16px var(--sans); -moz-appearance: textfield; min-height: 0; padding: 0; }
.am-qty input::-webkit-outer-spin-button, .am-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.am-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 24px; }
.am-specs div { background: var(--paper); padding: 14px 16px; }
.am-specs dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.am-specs dd { margin: 0; }
.am-specs dd.is-empty { color: var(--ink-soft); font-style: italic; }
.am-product__note { font-size: 14px; color: var(--ink-soft); background: var(--paper); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 0 12px 12px 0; }

/* Текстовые страницы */
.am-prose { max-width: 780px; }
.am-prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.am-prose ul, .am-prose ol { padding-left: 1.3em; }
.am-legal-draft { background: #fff4d9; border: 1px solid #f0d58f; color: #6b4a00; padding: 14px 18px; border-radius: 14px; margin-bottom: 24px; font-size: 14.5px; }
.am-placeholder { background: #fdecc8; color: #7a5300; padding: 0 4px; border-radius: 4px; }
.am-prose .am-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.am-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.am-prose th, .am-prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.am-prose tr:last-child > * { border-bottom: 0; }
.am-prose thead th { font-weight: 600; color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.am-prose tbody th[colspan] { background: var(--cream-2); font-weight: 600; color: var(--wine); }
.am-prose .am-requisites th { width: 40%; font-weight: 500; color: var(--ink-soft); }
.am-prose code { font-size: .9em; background: var(--line-2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .am-prose table:not(.am-requisites) { min-width: 560px; } .am-prose .am-requisites th { width: auto; } }
.am-linkbtn { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.am-prose .am-linkbtn { color: var(--wine); }
.am-footer .am-linkbtn { color: #f6e9dc; text-decoration: none; }
.am-footer .am-linkbtn:hover { color: #fff; text-decoration: underline; }
.am-404 { text-align: center; min-height: 50vh; display: grid; align-items: center; }

/* Формы */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], input[type=password], select, textarea {
  width: 100%; min-height: 50px; font: 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; transition: border-color .2s, box-shadow .2s; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(217,167,156,.25); }

/* WooCommerce: уведомления */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-NoticeGroup ul, .wc-block-components-notice-banner { list-style: none; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.woocommerce-error { border-color: #efc6c1; background: #fdf1ef; color: var(--danger); display: block; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 38px; padding: 8px 16px; font-size: 14px; }

/* WooCommerce: корзина и оформление */
.am-wc .woocommerce { display: block; }
.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.shop_table th { text-align: left; font: 600 11.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.shop_table td { padding: 16px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.shop_table tr:last-child td { border-bottom: 0; }
.shop_table .product-thumbnail img { width: 72px; height: 88px; object-fit: cover; border-radius: 12px; }
.shop_table .product-name a { font: 500 1.3rem/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.shop_table .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-soft) !important; text-decoration: none; font-size: 18px; }
.shop_table .product-remove a:hover { border-color: var(--danger); color: var(--danger) !important; }
.shop_table .quantity input { width: 84px; text-align: center; min-height: 44px; }
.shop_table td.actions { text-align: right; }
.shop_table td.actions .coupon { display: none; }
.shop_table button[name="update_cart"] { background: transparent; color: var(--wine) !important; border-color: var(--line); }
.shop_table button[name="update_cart"]:disabled { opacity: .5; cursor: default; }
.woocommerce-cart-form { margin-bottom: 28px; }
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals { width: min(100%, 440px); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; }
.cart_totals h2 { font-size: 1.8rem; }
.cart_totals .shop_table { border: 0; background: transparent; }
.cart_totals .shop_table th, .cart_totals .shop_table td { padding: 10px 0; text-transform: none; letter-spacing: 0; font-size: 15px; }
.cart_totals .order-total td, .cart_totals .order-total th { font: 600 1.4rem var(--serif); color: var(--ink); }
.wc-proceed-to-checkout { margin-top: 16px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; font-size: 16px; }
.cart-empty { font: 500 1.6rem var(--serif); text-align: center; padding: 30px 0 10px; display: block !important; border: 0 !important; background: none !important; }
.return-to-shop { text-align: center; }

form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
form.checkout .col2-set { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
form.checkout .col2-set .col-2:empty, form.checkout .woocommerce-shipping-fields:empty, form.checkout .woocommerce-account-fields { display: none; }
form.checkout h3 { font-size: 1.8rem; margin: 0 0 18px; }
#order_review_heading { display: none; }
#order_review { position: sticky; top: 100px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
#order_review::before { content: "Ваш заказ"; display: block; font: 500 1.8rem/1.1 var(--serif); margin-bottom: 14px; }
#order_review .shop_table { border: 0; background: transparent; border-radius: 0; }
#order_review .shop_table th, #order_review .shop_table td { padding: 10px 0; }
#order_review .order-total th, #order_review .order-total td { font: 600 1.35rem var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); }
.woocommerce-billing-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper, .am-checkout-fulfillment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.am-checkout-fulfillment { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.am-checkout-fulfillment h3, .am-checkout-fulfillment .am-note, .am-checkout-fulfillment .am-radio-group, .am-checkout-fulfillment .am-pickup-point { grid-column: 1 / -1; }
.woocommerce-additional-fields { margin-top: 22px; }
.woocommerce-additional-fields h3 { display: none; }
.woocommerce-additional-fields__field-wrapper .form-row { grid-column: 1 / -1; }
.form-row { margin: 0 0 14px; display: grid; gap: 6px; }
.form-row-wide { grid-column: 1 / -1; }
.form-row label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-row .required { color: var(--wine); text-decoration: none; border: 0; }
.form-row .optional { color: var(--ink-soft); font-weight: 400; }
.form-row.woocommerce-invalid input, .form-row.woocommerce-invalid select { border-color: #e3a49b; }
.am-radio-group .woocommerce-input-wrapper { display: flex; flex-wrap: wrap; gap: 10px; }
.am-radio-group input[type=radio] { position: absolute; opacity: 0; }
.am-radio-group input[type=radio] + label { display: inline-flex; align-items: center; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; margin: 0; }
.am-radio-group input[type=radio]:checked + label { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); color: var(--wine); }
.am-radio-group input[type=radio]:focus-visible + label { outline: 2px solid var(--wine); outline-offset: 2px; }
.am-radio-group > label { display: block; margin-bottom: 4px; }
.am-note { color: var(--ink-soft); font-size: 14px; background: var(--cream-2); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.woocommerce-checkout-payment { margin-top: 18px; }
.wc_payment_methods { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.wc_payment_method { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.wc_payment_method > label { font-weight: 600; }
.wc_payment_method input { accent-color: var(--wine); margin-right: 8px; }
.payment_box { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.payment_box p { margin: 0; }
.am-consents { display: grid; gap: 4px; margin: 0 0 16px; }
.am-consent label { display: block !important; position: relative; padding-left: 30px; font-weight: 400 !important; font-size: 13.5px !important; line-height: 1.5; cursor: pointer; }
.am-consent input { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; margin: 0; accent-color: var(--wine); }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text { display: none; }
#place_order { width: 100%; min-height: 56px; font-size: 16px; }
.blockUI.blockOverlay { background: rgba(255,253,249,.6) !important; }

/* Подтверждение заказа */
.am-thanks { max-width: 760px; margin: 0 auto; text-align: center; }
.am-thanks__icon { color: var(--ok); display: grid; place-items: center; margin: 10px 0 18px; animation: am-pop .6s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes am-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.am-thanks__title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.am-thanks__number { font-size: 1.15rem; }
.am-thanks__number strong { font: 600 1.6rem var(--serif); color: var(--wine); }
.am-thanks__lead { color: var(--ink-soft); }
.am-thanks__card { text-align: left; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin: 26px 0; }
.am-thanks__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0 0 22px; }
.am-thanks__dl dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.am-thanks__dl dd { margin: 2px 0 0; font-weight: 600; }
.am-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fde8e4; color: #8f2f2f; font-size: 13px; }
.am-pill--muted { background: var(--sand); color: var(--ink); }
.am-thanks__items { width: 100%; border-collapse: collapse; }
.am-thanks__items th, .am-thanks__items td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.am-thanks__items th:last-child, .am-thanks__items td:last-child { text-align: right; }
.am-thanks__items thead th { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.am-thanks__items tfoot th { font: 600 1.3rem var(--serif); border: 0; padding-top: 14px; }
.am-thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.am-thanks__note { color: var(--ink-soft); font-size: 13.5px; margin-top: 20px; }

/* Cookie-баннер */
.am-cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: var(--ink); color: #f6e9dc; border-radius: 18px; padding: 18px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.25); font-size: 14px; animation: am-reveal .5s ease-out both; }
.am-cookie a { color: #f3c9bd; }
.am-cookie p { margin: 0 0 12px; }
.am-cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.am-cookie .am-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.am-cookie .am-btn--ghost { color: #f6e9dc !important; border-color: rgba(246,233,220,.35); }
.am-cookie .am-btn--ghost:hover { background: rgba(255,255,255,.06); }

/* Подвал */
.am-footer { background: var(--ink); color: #e9dccf; padding: 64px 0 28px; margin-top: 0; }
.am-footer a { color: #f6e9dc; text-decoration: none; }
.am-footer a:hover { color: #fff; text-decoration: underline; }
.am-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.am-footer__brand img { width: 150px; background: #fffdf9; border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; }
.am-footer__brand p { color: #bfae9f; font-size: 14px; max-width: 32ch; }
.am-footer__title { font: 600 11.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.am-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.am-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(233,220,207,.15); font-size: 13px; color: #a8968a; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .am-reveal { opacity: 1; transform: none; } }

/* Планшеты */
@media (max-width: 1024px) {
  .am-footer__grid { grid-template-columns: 1fr 1fr; }
  form.checkout { grid-template-columns: minmax(0, 1fr); }
  #order_review { position: static; }
}
/* Смартфоны */
@media (max-width: 860px) {
  .am-about, .am-contacts, .am-product, .am-recipe__hero { grid-template-columns: minmax(0, 1fr); }
  .am-product__media, .am-recipe__media { position: static; }
  .am-section__head { grid-template-columns: 1fr; }
  .am-specs { grid-template-columns: minmax(0, 1fr); }
  .am-thanks__dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .am-grid-recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-card-recipe__title { font-size: 1.1rem; }
  .am-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-billing-fields__field-wrapper, .am-checkout-fulfillment { grid-template-columns: minmax(0, 1fr); }
  .am-recipe-search { flex-direction: column; }
  .am-step { grid-template-columns: minmax(0, 1fr); }
  /* Корзина — карточки */
  .shop_table.cart thead { display: none; }
  .shop_table.cart tr.cart_item { display: grid; grid-template-columns: 80px 1fr auto; grid-template-areas: "thumb name remove" "thumb price price" "thumb qty subtotal"; gap: 4px 12px; padding: 16px; border-bottom: 1px solid var(--line-2); }
  .shop_table.cart tr.cart_item td { border: 0; padding: 0; display: block; }
  .shop_table.cart td.product-thumbnail { grid-area: thumb; }
  .shop_table.cart td.product-name { grid-area: name; }
  .shop_table.cart td.product-remove { grid-area: remove; }
  .shop_table.cart td.product-price { grid-area: price; color: var(--ink-soft); font-size: 14px; }
  .shop_table.cart td.product-quantity { grid-area: qty; }
  .shop_table.cart td.product-subtotal { grid-area: subtotal; align-self: center; font-weight: 600; }
  .shop_table.cart td::before { display: none; }
  .shop_table.cart td.actions { display: block; padding: 16px; }
  .shop_table.cart td.actions button { width: 100%; }
  .cart_totals { width: 100%; }
}

/* Кондитерские на главной */
.am-shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.am-shop { display: grid; gap: 6px; align-content: start; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.am-shop:hover { border-color: var(--rose); transform: translateY(-2px); color: var(--ink); }
.am-shop__num { font: 500 1.8rem/1 var(--serif); color: var(--gold); }
.am-shop__name { font: 500 1.35rem/1.2 var(--serif); }
.am-shop__addr { color: var(--ink-soft); font-size: 15px; }
.am-shop__map { margin-top: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); }
.am-grid-products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.am-grid-products--3 .am-card-product__media { aspect-ratio: 4 / 3; }
.am-grid-products--3 .am-card-product__body { padding: 14px 16px 16px; }
.am-grid-products--3 .am-card-product__title { font-size: 1.25rem; }
.am-features__num { white-space: nowrap; }

/* Оплата на странице заказа */
.am-thanks__pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 24px; }
.am-thanks__error { background: #fde8e8; color: #8a1c1c; border-radius: var(--radius-sm); padding: 10px 14px; }
.am-pill--ok { background: #e3f1e4; color: #24572b; }

@keyframes am-float { 50% { transform: translateY(-14px); } }
@keyframes am-spin { to { transform: rotate(360deg); } }


.am-section__head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }






/* Появление при прокрутке (только если JS работает и анимации не отключены) */
.am-js [data-reveal] { opacity: 0; transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); will-change: opacity, transform; }
.am-js [data-reveal="up"] { transform: translateY(34px); }
.am-js [data-reveal="right"] { transform: translateX(-40px); }
.am-js [data-reveal="left"] { transform: translateX(40px); }
.am-js [data-reveal="zoom"] { transform: scale(.94); }
.am-js [data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { --d: 1; } [data-delay="2"] { --d: 2; } [data-delay="3"] { --d: 3; } [data-delay="4"] { --d: 4; } [data-delay="5"] { --d: 5; }

@media (max-width: 640px) {
  .am-grid-products--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .am-js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ================================================================ */
/* Версия 1.1: единый стиль всех страниц, корзина, галерея, формы      */
/* ================================================================ */
:root { --gold-text: #8a6534; --ease: cubic-bezier(.2,.7,.2,1); }
picture { display: contents; }
.am-eyebrow { color: var(--gold-text); }

/* Типографика и ритм компактнее */
.am-section { padding: clamp(44px, 7vw, 92px) 0; }
.am-section__title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.am-section__head { margin-bottom: clamp(20px, 3vw, 36px); }
.am-section__sub { grid-column: 1; margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
.am-section__sub i { color: var(--gold-text); }
.am-page-head { position: relative; padding: clamp(20px, 4vw, 44px) 0 clamp(8px, 2vw, 16px); background: radial-gradient(900px 340px at 92% -10%, var(--blush), transparent 70%); }
.am-page-title { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.01em; }
.am-page-lead { font-size: 1rem; }
.am-btn--block { width: 100%; }

/* Кнопки: переходы, загрузка, «готово» */
.am-btn, .button, #place_order { transition: background .25s var(--ease), border-color .25s, color .25s, box-shadow .25s, transform .15s; }
.am-btn:hover { transform: translateY(-1px); }
.am-btn:active { transform: translateY(1px) scale(.99); }
.am-btn:focus-visible, .am-chip:focus-visible, .am-qty__btn:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.am-btn.is-loading, button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.am-btn.is-loading::after, button.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: am-spin .7s linear infinite; }
.am-btn--ghost.is-loading::after { border-color: rgba(107,47,58,.25); border-top-color: var(--wine); }
.am-add { position: relative; overflow: hidden; }
.am-add__done { position: absolute; inset: 0; margin: auto; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s var(--ease); }
.am-add.is-done { background: var(--ok); border-color: var(--ok); }
.am-add.is-done .am-add__label { opacity: 0; }
.am-add.is-done .am-add__done { opacity: 1; transform: none; }
.am-add__label { transition: opacity .2s; }
.am-spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--wine); animation: am-spin .8s linear infinite; }
.am-spinner--lg { width: 58px; height: 58px; border-width: 3px; }

/* Карточки товаров: наведение, метка категории */
.am-card-product { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.am-card-product:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -28px rgba(59,42,36,.45); border-color: var(--line); }
.am-card-product__media img { transition: transform .8s var(--ease); }
.am-card-product:hover .am-card-product__media img { transform: scale(1.06); }
.am-card-product__tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,253,249,.92); color: var(--ink); font-size: 11.5px; letter-spacing: .04em; backdrop-filter: blur(4px); }
.am-card-product__title a { color: var(--ink); text-decoration: none; transition: color .2s; }
.am-card-product__title a:hover { color: var(--wine); }
.am-grid-products--3 .am-card-product__meta { font-size: 13px; }
.am-card-recipe { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.am-card-recipe:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(59,42,36,.45); }
.am-card-recipe img { transition: transform .8s var(--ease); }
.am-card-recipe:hover img { transform: scale(1.06); }
.am-shop, .am-contact, .am-point { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.am-shop:hover, .am-contact:hover { box-shadow: 0 20px 40px -28px rgba(59,42,36,.4); }

/* Счётчик корзины — «прыжок» */
.am-cart-count.is-bump { animation: am-bump .5s var(--ease); }
@keyframes am-bump { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }

/* Мобильное меню — плавное раскрытие */

/* Мини-корзина */
.am-drawer { position: fixed; inset: 0; z-index: 80; }
.am-drawer__overlay { position: absolute; inset: 0; background: rgba(43,26,22,.45); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.am-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--cream); box-shadow: -30px 0 60px -30px rgba(43,26,22,.5); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); outline: none; }
.am-drawer.is-open .am-drawer__overlay { opacity: 1; }
.am-drawer.is-open .am-drawer__panel { transform: none; }
.am-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.am-drawer__head h2 { margin: 0; font-size: 1.8rem; }
.am-drawer__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform .25s var(--ease), border-color .2s; }
.am-drawer__close:hover { transform: rotate(90deg); border-color: var(--rose); }
.am-drawer__body { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.am-minicart { display: flex; flex-direction: column; flex: 1; }
.am-minicart__list { list-style: none; margin: 0; padding: 8px 22px; flex: 1; }
.am-minicart__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: start; transition: opacity .2s; animation: am-fade-in .35s var(--ease) both; }
.am-minicart__item.is-loading { opacity: .45; pointer-events: none; }
.am-minicart__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.am-minicart__info { display: grid; gap: 6px; }
.am-minicart__name { color: var(--ink); text-decoration: none; font: 500 1.15rem/1.2 var(--serif); }
.am-minicart__price { font-weight: 600; font-size: 14px; }
.am-minicart__remove { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.am-minicart__remove:hover { background: var(--paper); color: var(--danger); }
.am-minicart__foot { position: sticky; bottom: 0; padding: 18px 22px 22px; background: var(--paper); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.am-minicart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.am-minicart__total b { font: 600 1.6rem var(--serif); }
.am-minicart--empty { align-items: center; justify-content: center; text-align: center; padding: 40px 28px; gap: 6px; color: var(--ink-soft); }
.am-minicart--empty svg { color: var(--rose); margin-bottom: 8px; }
.am-minicart__empty-title { font: 500 1.6rem var(--serif); color: var(--ink); margin: 0; }
.am-qty--sm { display: inline-flex; align-items: center; gap: 2px; width: max-content; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 2px; }
.am-qty--sm .am-qty__btn { width: 30px; height: 30px; }
.am-qty__val { min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; }
@keyframes am-fade-in { from { opacity: 0; transform: translateY(6px); } }

/* Уведомления */
.am-toasts { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.am-toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s var(--ease), transform .35s var(--ease); pointer-events: auto; }
.am-toast.is-in { opacity: 1; transform: none; }
.am-toast svg { flex: none; color: #9bd3a8; }
.am-toast--error svg { color: #f3a3a3; }
.am-toast span { flex: 1; }
.am-toast__action { border: 0; background: rgba(255,255,255,.14); color: #fff; font: 600 13px var(--sans); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.am-toast__action:hover { background: rgba(255,255,255,.24); }

/* Страница товара: галерея и увеличение */
.am-gallery-p { position: sticky; top: 96px; display: grid; gap: 12px; }
.am-gallery-p__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; }
.am-gallery-p__slide { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.am-gallery-p__slide.is-active { animation: am-fade-in .4s var(--ease); }
.am-gallery-p__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.am-gallery-p__slide:hover img { transform: scale(1.04); }
.am-gallery-p__zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,253,249,.92); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow); }
.am-gallery-p__thumbs { display: flex; gap: 10px; }
.am-gallery-p__thumb { width: 76px; height: 76px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--sand); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.am-gallery-p__thumb img { width: 100%; height: 100%; object-fit: cover; }
.am-gallery-p__thumb.is-active, .am-gallery-p__thumb:hover { opacity: 1; border-color: var(--wine); }
.am-product__title { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.am-product__price { font-size: 1.5rem; margin-bottom: 10px; }
.am-product__subtitle { font-size: 1.5rem; margin: 26px 0 8px; }
.am-add-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 22px; }
.am-perks { list-style: none; padding: 16px 18px; margin: 0 0 22px; display: grid; gap: 10px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 14.5px; }
.am-perks li { display: flex; align-items: center; gap: 10px; }
.am-perks svg { color: var(--wine); flex: none; }
.am-lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(28,18,15,.92); display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
.am-lightbox.is-open { opacity: 1; }
.am-lightbox__fig { margin: 0; max-width: min(92vw, 1100px); max-height: 86vh; display: grid; gap: 10px; justify-items: center; }
.am-lightbox__fig img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; opacity: 0; transform: scale(.97); transition: opacity .3s, transform .35s var(--ease); }
.am-lightbox__fig img.is-in { opacity: 1; transform: none; }
.am-lightbox__count { color: rgba(255,255,255,.7); font-size: 13px; }
.am-lightbox__close, .am-lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s; }
.am-lightbox__close:hover, .am-lightbox__nav:hover { background: rgba(255,255,255,.24); }
.am-lightbox__close { top: 18px; right: 18px; }
.am-lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.am-lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Пустые состояния и 404 */
.am-empty-state { max-width: 520px; margin: 24px auto; text-align: center; padding: clamp(28px, 5vw, 48px) 24px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); }
.am-empty-state__icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--blush); color: var(--wine); margin-bottom: 14px; }
.am-empty-state__title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 8px; }
.am-empty-state__text { color: var(--ink-soft); margin: 0 auto 20px; max-width: 42ch; }
.am-empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.am-404 { text-align: center; padding-top: clamp(24px, 5vw, 56px); }
.am-404__code { font: 500 clamp(6rem, 18vw, 11rem)/.9 var(--serif); margin: 0; background: linear-gradient(135deg, var(--wine), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.am-404 .am-empty-state { margin-top: -8px; }
.am-404__search { max-width: 520px; margin: 20px auto 0; }

/* Контакты: форма */
.am-contact-form-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 6vw, 64px); padding: clamp(24px, 4vw, 44px); background: var(--paper); border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 4px); }
.am-contact-form-wrap .am-section__title--sm { margin-top: 0; }
.am-contact-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
.am-field { display: grid; gap: 6px; }
.am-field--wide { grid-column: 1 / -1; }
.am-field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-field label { font-size: 13.5px; font-weight: 600; }
.am-field input, .am-field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-2); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.am-field input:focus, .am-field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(107,47,58,.12); }
.am-field [aria-invalid="true"] { border-color: var(--danger); }
.am-field__err { color: var(--danger); font-size: 13px; min-height: 0; }
.am-field__err:empty { display: none; }
.am-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.am-check input { margin-top: 3px; accent-color: var(--wine); }
.am-form-msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; }
.am-form-msg.is-ok { background: #e3f1e4; color: #24572b; }
.am-form-msg.is-error { background: #fde8e8; color: #8a1c1c; }

/* Оформление заказа: аккуратнее и проще на телефоне */
form.checkout .form-row input.input-text, form.checkout textarea, form.checkout select { transition: border-color .2s, box-shadow .2s; }
form.checkout .form-row input.input-text:focus, form.checkout textarea:focus, form.checkout select:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(107,47,58,.12); outline: none; }
#payment .wc_payment_method { transition: border-color .2s, background .2s; }
#payment .wc_payment_method:has(input:checked) { border-color: var(--wine); background: var(--blush); }

/* Страница заказа: ожидание оплаты */
.am-thanks--pending .am-thanks__icon { color: var(--wine); }
.am-thanks--failed .am-thanks__icon { color: var(--danger); }
.am-thanks__check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: am-draw .7s .2s var(--ease) forwards; }
@keyframes am-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .am-gallery-p { position: static; }
  .am-contact-form-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .am-contact-form { grid-template-columns: minmax(0, 1fr); }
  .am-add-form { flex-direction: column; align-items: stretch; }
  .am-add-form .am-qty { justify-content: space-between; }
  .am-gallery-p__thumb { width: 64px; height: 64px; }
  .am-grid-products--3 .am-card-product__foot { flex-wrap: wrap; gap: 8px; }
  .am-grid-products--3 .am-card-product__body { padding: 12px 12px 14px; }
  .am-grid-products--3 .am-card-product__title { font-size: 1.12rem; }
  .am-card-product__tag { font-size: 10.5px; left: 8px; top: 8px; }
  /* Оформление: один столбец, крупные поля, кнопка «Оплатить» всегда на виду в конце */
  form.checkout .form-row { width: 100% !important; float: none !important; }
  form.checkout input.input-text, form.checkout select, form.checkout textarea { font-size: 16px; }
  #place_order { width: 100%; min-height: 56px; }
  .am-toasts { bottom: 12px; }
}
@media (max-width: 380px) {
  .am-grid-products--3 .am-add { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .am-drawer__panel, .am-drawer__overlay, .am-toast, .am-lightbox, .am-lightbox__fig img { transition: none !important; }
  .am-card-product:hover, .am-card-recipe:hover, .am-btn:hover { transform: none; }
}

/* ================================================================ */
/* v2 (встреча с заказчиками): шапка, слайдер, категории, преимущества, */
/* популярное, компактный подвал, оформление заказа                    */
/* ================================================================ */
:root { --pink: #f4dfda; --pink-2: #ecc9c1; --milk: #fffaf5; }
body { background: var(--milk); }

/* Шапка: крупный логотип, 4 пункта меню всегда видны, без «гамбургера» */
.am-header { position: sticky; top: 0; z-index: 40; background: rgba(255,250,245,.92); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.am-header.is-scrolled { border-bottom-color: var(--line-2); box-shadow: 0 8px 24px -20px rgba(59,42,36,.45); }
.am-header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 32px; min-height: 112px; transition: min-height .25s; }
.am-logo { display: block; line-height: 0; }
.am-logo img { width: clamp(200px, 19vw, 256px); height: auto; transition: width .25s; }
.am-header.is-scrolled .am-header__inner { min-height: 84px; }
.am-header.is-scrolled .am-logo img { width: clamp(150px, 13vw, 178px); }
.am-nav { justify-self: center; }
.am-nav__list { list-style: none; display: flex; gap: clamp(4px, 1.4vw, 18px); margin: 0; padding: 0; }
.am-nav__list a { position: relative; display: block; padding: 10px 6px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; letter-spacing: .01em; white-space: nowrap; }
.am-nav__list a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 1.5px; background: var(--wine); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s; }
.am-nav__list a:hover, .am-nav__list .current-menu-item > a, .am-nav__list .current_page_item > a { color: var(--wine); }
.am-nav__list a:hover::after, .am-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.am-header__actions { display: flex; align-items: center; gap: 10px; }
.am-call { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.am-call:hover { border-color: var(--rose); color: var(--wine); }
.am-cart-link { width: 46px; height: 46px; }

@media (max-width: 1100px) {
  .am-call__num { display: none; }
  .am-call { width: 46px; padding: 0; justify-content: center; }
}
/* Узкие экраны: логотип по центру, звонок и корзина по бокам, меню — отдельной строкой */
@media (max-width: 860px) {
  .am-header__inner { grid-template-columns: 46px 1fr 46px; grid-template-areas: "call logo cart" "nav nav nav"; gap: 6px 8px; min-height: 0; padding-top: 10px; }
  .am-logo { grid-area: logo; justify-self: center; }
  .am-logo img { width: clamp(150px, 46vw, 196px); }
  .am-header.is-scrolled .am-header__inner { min-height: 0; }
  .am-header.is-scrolled .am-logo img { width: clamp(112px, 32vw, 132px); }
  .am-header__actions { display: contents; }
  .am-call { grid-area: call; }
  .am-cart-link { grid-area: cart; justify-self: end; }
  .am-nav { grid-area: nav; justify-self: stretch; border-top: 1px solid var(--line-2); }
  .am-nav__list { justify-content: space-between; gap: 0; }
  .am-nav__list li { flex: 1 1 0; text-align: center; }
  .am-nav__list a { padding: 11px 2px 12px; font-size: 14.5px; }
  .am-nav__list a::after { bottom: 6px; left: 22%; right: 22%; }
}
@media (max-width: 359px) { .am-nav__list a { font-size: 13.5px; } }

/* Секции главной: компактно */
.am-section--tight { padding: clamp(28px, 4.5vw, 56px) 0; }
.am-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(16px, 2.4vw, 28px); }
.am-head__title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0; }

/* Слайдер */
.am-hero { padding: clamp(8px, 1.6vw, 20px) 0 0; }
.am-hero__frame { position: relative; border-radius: clamp(20px, 2.4vw, 32px); overflow: hidden; background: linear-gradient(135deg, var(--paper) 0%, var(--pink) 100%); isolation: isolate; }
.am-hero__track { display: grid; }
.am-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: clamp(420px, 62vh, 620px); opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.am-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.am-slide__text { align-self: center; padding: clamp(28px, 4.5vw, 72px) clamp(20px, 3vw, 40px) clamp(84px, 7vw, 100px) clamp(24px, 4.5vw, 72px); }
.am-slide__tagline { font: 600 11.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text, #8a6534); margin: 0 0 14px; }
.am-slide__eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--wine); background: rgba(255,255,255,.7); border: 1px solid var(--pink-2); border-radius: 999px; padding: 5px 12px; margin: 0 0 16px; }
.am-slide__title { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: .98; letter-spacing: -.01em; margin: 0 0 16px; color: var(--ink); }
.am-slide__lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ink-soft); max-width: 40ch; margin: 0 0 26px; }
.am-slide__media { position: relative; min-height: 100%; }
.am-slide__media picture, .am-slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.am-slide__media::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; background: linear-gradient(90deg, rgba(251,240,234,.9), transparent); z-index: 1; pointer-events: none; }
.am-slide--art .am-slide__media::before { display: none; }
.am-slide__art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: var(--wine);
  background: radial-gradient(60% 70% at 70% 40%, #fff 0, rgba(255,255,255,0) 70%), radial-gradient(50% 60% at 20% 90%, var(--pink-2) 0, rgba(236,201,193,0) 70%), linear-gradient(160deg, var(--pink) 0%, #f9ece6 60%, var(--paper) 100%); }
.am-slide__mono { width: min(56%, 340px); opacity: .55; }
.am-slide__mono text { font: italic 500 54px var(--serif); fill: currentColor; }
.am-slide__art-word { position: absolute; left: 8%; right: 8%; bottom: 10%; font: italic 500 clamp(1.4rem, 2.6vw, 2.2rem)/1.1 var(--serif); color: rgba(107,47,58,.45); text-align: right; }
.am-hero__controls { position: absolute; z-index: 3; left: clamp(24px, 4.5vw, 72px); bottom: clamp(20px, 3vw, 32px); display: flex; align-items: center; gap: 10px; }
.am-hero__arrow, .am-hero__pause { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.am-hero__arrow:hover, .am-hero__pause:hover { border-color: var(--wine); color: var(--wine); }
.am-hero__pause { width: 36px; height: 36px; margin-left: 4px; }
.am-hero__pause .am-i-play { display: none; }
.am-hero__pause[aria-pressed="true"] .am-i-pause { display: none; }
.am-hero__pause[aria-pressed="true"] .am-i-play { display: inline; }
.am-hero__dots { display: flex; gap: 2px; }
.am-hero__dot { width: 32px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.am-hero__dot span { display: block; width: 22px; height: 3px; border-radius: 3px; background: rgba(59,42,36,.18); overflow: hidden; position: relative; }
.am-hero__dot.is-active span { background: rgba(107,47,58,.25); }
.am-hero__dot.is-active span::after { content: ""; position: absolute; inset: 0; background: var(--wine); transform-origin: 0 50%; animation: am-dot var(--am-interval, 12s) linear forwards; }
.am-hero.is-paused .am-hero__dot.is-active span::after { animation-play-state: paused; }
@keyframes am-dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1023px) {
  .am-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; }
  .am-slide__media { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  .am-slide__media::before { inset: auto 0 0 0; width: auto; height: 22%; background: linear-gradient(0deg, rgba(251,240,234,.85), transparent); }
  .am-slide__text { padding: 22px clamp(20px, 4vw, 40px) 84px; }
  .am-hero__controls { left: clamp(20px, 4vw, 40px); bottom: 18px; }
}
@media (max-width: 639px) {
  .am-hero { padding-top: 4px; }
  .am-hero .am-container { padding: 0 12px; }
  .am-slide__media { aspect-ratio: 1 / 1; }
  .am-slide__title { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .am-slide__lead { margin-bottom: 20px; }
  .am-slide__text { padding: 18px 18px 78px; }
  .am-slide__text .am-btn { width: 100%; }
  .am-hero__controls { left: 12px; right: 12px; justify-content: center; bottom: 14px; }
  .am-hero__arrow { width: 40px; height: 40px; }
}

/* Категории: квадратные фото со скруглением */
.am-cats { --am-cats: 5; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--am-cats), minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.am-hcat { display: grid; gap: 10px; color: var(--ink); text-decoration: none; }
.am-hcat__media { display: block; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--pink); }
.am-hcat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.am-hcat__ph { display: block; width: 100%; height: 100%; background: linear-gradient(150deg, var(--pink), var(--paper)); }
.am-hcat__name { font: 500 clamp(1.2rem, 1.7vw, 1.5rem)/1.15 var(--serif); display: flex; justify-content: space-between; gap: 8px; }
.am-hcat__name::after { content: "→"; font-family: var(--sans); font-size: .8em; color: var(--wine); opacity: 0; transform: translateX(-6px); transition: .25s; }
.am-hcat:hover { color: var(--wine); }
.am-hcat:hover .am-hcat__media img { transform: scale(1.05); }
.am-hcat:hover .am-hcat__name::after { opacity: 1; transform: none; }
@media (max-width: 1023px) { .am-cats { grid-template-columns: repeat(min(var(--am-cats), 3), minmax(0, 1fr)); } }
@media (max-width: 639px) { .am-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Полоса преимуществ */
.am-advbar { padding: clamp(8px, 1.2vw, 14px) 0; }
.am-perks__list { list-style: none; margin: 0; padding: clamp(16px, 2vw, 22px) clamp(16px, 2.4vw, 32px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 20px; }
.am-perk { display: flex; align-items: center; gap: 12px; min-width: 0; }
.am-perk__icon { flex: none; width: 42px; height: 42px; padding: 8px; border-radius: 50%; background: var(--pink); color: var(--wine); }
.am-perk b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.am-perk small { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
@media (max-width: 1023px) { .am-perks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .am-perk__icon { width: 36px; height: 36px; padding: 6px; } .am-perk small { display: none; } }

/* Карточки товаров: квадратное фото */
.am-card-product { border-radius: 20px; }
.am-card-product__media { aspect-ratio: 1 / 1; background: var(--pink); }
.am-card-product__media img.am-placeholder-img { object-fit: cover; }
.am-card-product__body { padding: 14px 16px 16px; gap: 4px; }
.am-card-product__title { font-size: clamp(1.2rem, 1.6vw, 1.42rem); line-height: 1.15; }
.am-card-product__foot { padding-top: 10px; }
.am-card-product .am-price { font: 700 17px/1 var(--sans); white-space: nowrap; letter-spacing: 0; }
.am-grid-products--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1280px) { .am-grid-products--home:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .am-grid-products--home, .am-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 420px) {
  .am-card-product__body { padding: 12px 12px 14px; }
  .am-card-product__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .am-card-product__foot .am-btn { width: 100%; justify-content: center; }
}

/* Компактный подвал */
.am-footer { padding: clamp(32px, 4vw, 48px) 0 20px; background: #3b2a24; }
.am-footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 24px clamp(24px, 5vw, 72px); align-items: start; }
.am-footer__brand { display: flex; align-items: center; gap: 18px; }
.am-footer__brand img { width: 128px; margin: 0; flex: none; }
.am-footer__brand p { margin: 0; max-width: 40ch; }
.am-footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 28px; font-size: 14.5px; }
.am-footer__contact { display: grid; gap: 6px; font-size: 14.5px; justify-items: start; }
.am-footer__phone { font-weight: 600; font-size: 16px; }
.am-footer__msg { display: flex; gap: 14px; }
.am-footer__bottom { margin-top: 26px; padding-top: 16px; align-items: flex-start; }
.am-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; }
.am-footer__legal a, .am-footer__legal .am-linkbtn { color: #bfae9f; }
@media (max-width: 860px) {
  .am-footer__top { grid-template-columns: minmax(0, 1fr); }
  .am-footer__brand { flex-direction: column; align-items: flex-start; gap: 12px; }
  .am-footer__nav { grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 18px; }
}
@media (max-width: 420px) { .am-footer__nav { grid-template-columns: repeat(2, auto); } }

/* Оформление заказа: способы получения, интервалы, предупреждение после 16:00, СДЭК */
.am-ff { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.am-ff[hidden] { display: none; }
.am-ff > .am-note, .am-ff > .am-pickup-point, .am-ff > .am-late, .am-ff > .form-row-wide { grid-column: 1 / -1; }
.am-late { grid-column: 1 / -1; margin: 6px 0 14px; padding: 16px 18px; border-radius: 16px; background: #fff6e6; border: 1px solid #f0d58f; color: #5c4100; }
.am-late[hidden] { display: none; }
.am-late__title { font-weight: 700; font-size: 16px; margin: 0 0 6px; color: #6b4a00; }
.am-late p { margin: 0 0 12px; font-size: 14.5px; }
.am-late__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.am-late__links .am-btn { background: #fff; }
.am-late .am-late__ack { margin: 0; }
.am-field-error { color: #9b2c2c; font-size: 12.5px; margin: 2px 0 0; }
input[aria-invalid="true"] { border-color: #e3a49b !important; }
@media (max-width: 640px) { .am-ff { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) { .am-slide--art .am-slide__media { aspect-ratio: 16 / 7; } .am-slide__art-word { display: none; } .am-slide__mono { width: auto; height: 78%; } }
@media (max-width: 639px) { .am-slide--art .am-slide__media { aspect-ratio: 16 / 9; } }

.am-header__contact { display: grid; justify-items: center; gap: 8px; }
.am-contact-channels { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; line-height: 1.4; }
.am-contact-channels > * { display: inline-flex; align-items: center; min-height: 30px; }
.am-contact-channels a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.am-contact-channels [aria-disabled] { color: #71645f; cursor: default; }
.am-checkout-contact .am-contact-channels { margin-top: 8px; }
.am-checkout-contact { clear: both; margin-block: 26px 24px; }
@media (max-width: 860px) {
  .am-header__contact { display: contents; }
  .am-header__inner { grid-template-areas: "call logo cart" "channels channels channels" "nav nav nav"; }
  .am-header__contact .am-contact-channels { grid-area: channels; justify-content: center; margin-top: 4px; }
}

.am-contact-channels .am-channel { gap: 7px; text-decoration: none; font-weight: 600; }
.am-channel svg { box-sizing: content-box; padding: 8px; border-radius: 50%; color: white; flex: none; }
.am-channel svg { background: var(--wine); }
.am-header__contact .am-channel span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.am-contact-channels .am-channel:hover svg { filter: brightness(.88); }
.am-gate-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(53,36,33,.48); }
.am-gate { box-sizing: border-box; width: min(100%, 490px); max-height: 92dvh; overflow: auto; padding: clamp(20px,4vw,36px); background: var(--milk); color: var(--ink); border-radius: 22px; box-shadow: 0 18px 70px #39282138; }
.am-gate h1 { font-size: clamp(26px,4vw,36px); line-height: 1.12; margin: 0 0 12px; }
.am-gate .am-contact-channels { margin: 24px 0 16px; }
.am-gate small { display: block; }
.am-gate form { display: grid; gap: 14px; margin-top: 20px; }
.am-gate form > a { text-align: center; }
.am-gate input { accent-color: var(--wine); }

.am-gate button:disabled { opacity: .5; cursor: not-allowed; }

#place_order:disabled { opacity: .5; cursor: not-allowed; }

/* Подвал: логотипы способов оплаты */
.am-footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 24px; }
.am-footer__pay-label { font-size: 13px; color: #bfae9f; }
.am-footer__pay ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.am-footer__pay li { display: flex; align-items: center; }
.am-footer__pay img { display: block; width: auto; height: 34px; }
.am-footer__pay + .am-footer__bottom { margin-top: 18px; }

/* Категория «Корпоративные десерты»: блок про безналичный расчёт */
.am-b2b { margin: 0 0 clamp(24px, 3vw, 36px); padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: var(--cream-2); max-width: 760px; }
.am-b2b__title { margin: 0 0 10px; font-size: clamp(19px, 2vw, 22px); }
.am-b2b__list { margin: 0 0 10px; padding-left: 1.1em; }
.am-b2b__list li { margin: 4px 0; }
.am-b2b__how { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.am-b2b__how a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Слайд: заголовок с длинным словом («Корпоративные») — мельче, перенос по слогам как страховка */
.am-slide__title { hyphens: auto; overflow-wrap: break-word; }
.am-slide__title--long { font-size: clamp(2.1rem, 3.9vw, 3.4rem); }
@media (max-width: 639px) { .am-slide__title--long { font-size: clamp(1.75rem, 7.6vw, 2.2rem); } }
