/* =========================================================================
   PodoDry — основні стилі теми
   Токени взяті з дизайн-системи Figma «Podo Dry Design system»
   ========================================================================= */
:root {
  /* Blue */
  --seafoam: #f7f9fb;
  --ice: #eaf3fb;
  --ice-2: #d3e6f7;
  --misty: #a6c8e6;
  --aqua: #afd7fa;
  --aqua-50: rgba(175, 215, 250, .5);
  --ocean: #3d6f95;
  --night: #224157;
  /* Brown / neutrals */
  --espresso: #625857;
  --cocoa: #7d7372;
  --ash: #9d9594;
  --oat: #dcdcdc;
  --pearl: #b4b4b4;
  --white: #ffffff;
  /* Semantic */
  --ok: #2f7a5f; --ok-bg: #e5f3ec;
  --warn: #9a6a17; --warn-bg: #fbf1dd;
  --bad: #c0392b; --bad-bg: #f8e7e5;
  --star: #f2b01e;

  --font: "Neue Haas Grotesk Display Pro", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 8px; --r: 20px; --r-lg: 24px; --r-xl: 32px; --pill: 999px;
  --shadow: 0 10px 25px rgba(0, 0, 0, .15);
  --shadow-soft: 0 10px 30px rgba(34, 65, 87, .08);
  --container: 1296px;
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 102px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--espresso);
  font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; line-height: 1.12; color: var(--espresso); text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6vw, 80px) 0; }
.section-head { text-align: center; display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); }
.h1 { font-size: clamp(32px, 4vw, 44px); }
.h2 { font-size: clamp(26px, 2.6vw, 32px); }
.h3 { font-size: clamp(20px, 1.8vw, 24px); }
.lead { font-size: 15px; color: var(--cocoa); }
.muted { color: var(--ash); }
.ocean { color: var(--ocean); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 40px; border-radius: var(--pill); border: 1px solid var(--ocean);
  background: var(--ocean); color: var(--white); font-size: 16px; font-weight: 500; line-height: 1;
  text-align: center; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { background: var(--night); border-color: var(--night); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--ocean); }
.btn--white:hover { background: var(--ice); border-color: var(--ice); color: var(--night); }
.btn--outline { background: transparent; color: var(--ocean); }
.btn--outline:hover { background: var(--ocean); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--espresso); color: var(--espresso); font-weight: 400; }
.btn--ghost:hover { background: var(--espresso); color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn svg { flex: none; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { opacity: .7; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  border-radius: var(--pill); border: 1px solid var(--aqua); background: var(--white); color: var(--ocean);
  font-size: 16px; font-weight: 500; transition: background .2s, box-shadow .2s; white-space: nowrap;
}
.pill:hover { background: var(--ice); }
.pill.is-active, .pill[aria-selected="true"], .pill[aria-current="page"] { background: var(--aqua); border-color: var(--aqua); box-shadow: var(--shadow); }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--aqua-50); background: var(--white); color: var(--ocean); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--ocean); color: var(--white); }
.icon-btn--solid { background: var(--ocean); color: var(--white); border-color: var(--ocean); }
.icon-btn--solid:hover { background: var(--night); }

.stars { color: var(--star); letter-spacing: 1px; font-size: 14px; }

/* ---------- Forms ---------- */
.field { position: relative; display: grid; gap: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 47px; padding: 12px 24px; border-radius: var(--r-lg); border: 1px solid var(--oat);
  background: var(--white); font-size: 14px; color: var(--espresso); transition: border-color .2s; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--pearl); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--aqua); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ocean); }
.input.is-invalid, .woocommerce-invalid .input { border-color: var(--bad); }
.textarea { min-height: 138px; resize: vertical; padding-top: 16px; }
.field-error { font-size: 12px; color: var(--bad); padding-left: 24px; }
.req { color: var(--bad); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 30px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Trust bar & header ---------- */
.trustbar { background: var(--ice); color: var(--night); font-size: 13px; }
.trustbar__in { display: flex; gap: 36px; justify-content: safe center; align-items: center; min-height: 41px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.trustbar__in::-webkit-scrollbar { display: none; }
.trustbar__item { display: inline-flex; align-items: center; gap: 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(34, 65, 87, .06); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 61px; padding-block: 11px; }
.logo { display: inline-flex; flex: none; }
.logo img, .logo svg { width: 128px; height: auto; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav--aux { gap: 30px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 40px; font-size: 16px; font-weight: 500; color: var(--espresso); transition: color .2s; }
.nav a:hover, .nav .is-current > a, .nav .current-menu-item > a, .nav .current-menu-parent > a { color: var(--ocean); }
.nav .is-current > a::after, .nav .current-menu-item > a::after, .nav .current-menu-parent > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px; background: var(--aqua); }
.nav li { position: relative; }
.header__icons { display: flex; align-items: center; gap: 16px; }
.header__icon { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--ocean); }
.header__icon:hover { color: var(--night); }
.cart-count { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--night); color: var(--white); font-size: 11px; line-height: 18px; text-align: center; font-weight: 500; }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.burger { display: none; }
/* Mega-menu «Серветки» */
.mega { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px); width: min(760px, 90vw); background: var(--white); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(34, 65, 87, .14); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.nav li:hover > .mega, .nav li:focus-within > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__list { display: grid; gap: 2px; align-content: start; }
.mega__list a { display: flex; justify-content: space-between; gap: 12px; min-height: 0; padding: 10px 14px; border-radius: 14px; font-weight: 400; }
.mega__list a:hover { background: var(--ice); }
.mega__list a::after { display: none !important; }
.mega__list .price { color: var(--ash); font-size: 14px; }
.mega__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mega__tile { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; display: flex !important; align-items: flex-end !important; padding: 14px !important; color: var(--white) !important; font-weight: 500; }
.mega__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.mega__tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(34, 65, 87, .7)); z-index: -1; }

.breadcrumbs { font-size: 13px; color: var(--ash); padding-block: 22px 0; }
.breadcrumbs a:hover { color: var(--ocean); }
.page-title { text-align: center; padding-block: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px); }

/* Mobile header */
@media (max-width: 1100px) { .nav { gap: 24px; } .nav--aux { gap: 20px; } }
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: inline-grid; }
  .header__nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 100%); background: var(--white); padding: 88px 24px 32px; display: flex; flex-direction: column; gap: 8px; transform: translateX(100%); transition: transform .3s; z-index: 70; overflow-y: auto; box-shadow: -20px 0 40px rgba(34, 65, 87, .12); }
  .header__nav.is-open { transform: none; }
  .nav, .nav--aux { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--ice); }
  .nav .is-current > a::after, .nav .current-menu-item > a::after { display: none; }
  .mega { position: static; transform: none !important; opacity: 1; visibility: visible; width: auto; box-shadow: none; padding: 0 0 8px 12px; grid-template-columns: 1fr; display: none; }
  .nav li.is-open > .mega { display: grid; }
  .mega__tiles { display: none; }
  .mega__list a { border: 0; min-height: 0; font-size: 15px; }
  .header__close { position: absolute; top: 16px; right: 16px; }
  .header__in { min-height: 64px; }
  .logo img, .logo svg { width: 108px; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(34, 65, 87, .35); z-index: 65; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}
@media (min-width: 961px) { .header__close, .nav-scrim { display: none; } .header__nav { display: contents; } }

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: clamp(380px, 38vw, 526px); display: grid; place-items: center; text-align: center; color: var(--white); padding: 48px 24px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(34, 65, 87, .08); z-index: -1; }
.hero__in { display: grid; gap: 20px; max-width: 800px; justify-items: center; }
.hero__rating { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; }
.hero h1 { color: var(--white); font-size: clamp(30px, 3.6vw, 44px); }
.hero p { font-size: clamp(16px, 1.6vw, 20px); max-width: 560px; opacity: .95; }
.hero .btn { margin-top: 8px; }

/* ---------- Product cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px 15px; }
@media (max-width: 1100px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 313 / 413; border-radius: var(--r-lg); overflow: hidden; padding: 20px; color: var(--white); isolation: isolate; background: var(--ice); }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(34, 34, 34, .45) 100%); }
.pcard:hover .pcard__img { transform: scale(1.04); }
.pcard__link { position: absolute; inset: 0; z-index: 0; }
.pcard__title { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; color: var(--white); text-shadow: 0 1px 10px rgba(0, 0, 0, .2); }
.pcard__price { font-size: 15px; font-weight: 500; margin-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pcard__price del { opacity: .7; font-weight: 400; }
.pcard__price ins { text-decoration: none; }
.pcard .btn { position: relative; z-index: 1; margin-top: 18px; min-height: 54px; padding: 0 16px; }
.pcard__badge { position: absolute; top: 16px; left: 16px; z-index: 1; background: var(--white); color: var(--ocean); font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: var(--pill); }
.pcard--light { color: var(--espresso); background: var(--ice); }
.pcard--light::before { display: none; }
.pcard--light .pcard__title { color: var(--espresso); text-shadow: none; }
.pcard--light .pcard__img { object-fit: contain; object-position: center 30%; padding: 12% 10% 40%; }
@media (max-width: 760px) {
  .pcard { padding: 12px; border-radius: var(--r); }
  .pcard .btn { min-height: 42px; margin-top: 10px; font-size: 13px; }
  .pcard__price { font-size: 13px; }
}

/* ---------- Video cards ---------- */
.video-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
@media (max-width: 760px) { .video-row { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; } .video-row > * { scroll-snap-align: start; } }
.vcard { position: relative; aspect-ratio: 310 / 338; border-radius: var(--r-lg); overflow: hidden; background: var(--ice); border: 0; padding: 0; }
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vcard:hover img { transform: scale(1.04); }
.vcard__play { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ocean); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255, 255, 255, .35); transition: background .2s, transform .2s; }
.vcard:hover .vcard__play { background: var(--night); transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Reviews ---------- */
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.rating-sum { display: flex; align-items: center; gap: 12px; }
.rating-sum__val { font-size: 40px; font-weight: 500; color: var(--espresso); line-height: 1; }
.rating-sum small { display: block; font-size: 12px; color: var(--ash); }
.reviews__all { font-size: 13px; color: var(--ash); }
.reviews__all:hover { color: var(--ocean); }
.slider { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 18px; align-items: center; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-block: 4px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
@media (max-width: 900px) { .slider__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .slider { grid-template-columns: minmax(0, 1fr); } .slider .icon-btn { display: none; } .slider__track { grid-auto-columns: 85%; } }
.review { background: var(--seafoam); border: 1px solid var(--ice); border-radius: var(--r-lg); padding: 22px 24px; display: grid; gap: 12px; align-content: start; min-height: 188px; }
.review__top { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ocean); }
.review__text { font-size: 14px; color: var(--ocean); }
.review__name { font-size: 13px; font-weight: 500; color: var(--night); }
.review__meta { font-size: 12px; color: var(--aqua); }

/* ---------- Why PodoDry ---------- */
.why { border-radius: var(--r-xl); overflow: hidden; background: var(--ocean); color: var(--white); }
.why__top { padding: clamp(32px, 4vw, 52px) clamp(20px, 6vw, 80px); display: grid; gap: 28px; }
.why h2 { color: var(--white); }
.why__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(24px, 6vw, 100px); }
.why__col h3 { color: var(--aqua); font-size: 18px; margin-bottom: 16px; }
.why__col li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; padding-block: 8px; }
.why__col li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px; background: rgba(255, 255, 255, .25); }
.why__col--good li::before { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' stroke='%233D6F95' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.why__col--bad li { opacity: .85; }
@media (max-width: 760px) { .why__cols { grid-template-columns: 1fr; } }
/* before / after slider */
.compare { position: relative; aspect-ratio: 1296 / 453; overflow: hidden; background: #eef0f3; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__after img { filter: saturate(.92) brightness(1.03); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--white); transform: translateX(-1px); }
.compare__knob { position: absolute; top: 50%; left: var(--pos, 50%); width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--white); background: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--white); cursor: ew-resize; }
.compare__label { position: absolute; bottom: 16px; padding: 6px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .85); color: var(--night); font-size: 12px; font-weight: 500; }
.compare__label--l { left: 16px; } .compare__label--r { right: 16px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
@media (max-width: 640px) { .compare { aspect-ratio: 4 / 3; } }

/* ---------- FAQ / accordion ---------- */
.faq { background: var(--seafoam); border-radius: var(--r-lg); padding: 8px 6px; }
.acc__item + .acc__item { border-top: 1px solid var(--ice); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; background: none; border: 0; text-align: left; font-size: 16px; font-weight: 500; color: var(--espresso); }
.acc__btn:hover { color: var(--ocean); }
.acc__icon { flex: none; width: 16px; height: 16px; position: relative; color: var(--espresso); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; top: 50%; left: 2px; right: 2px; height: 1.4px; background: currentColor; transform: translateY(-50%); transition: transform .25s; }
.acc__icon::after { transform: translateY(-50%) rotate(90deg); }
.acc__item.is-open .acc__icon::after { transform: translateY(-50%) rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body { padding: 0 24px 22px; font-size: 15px; color: var(--cocoa); max-width: 80ch; }
.acc__body p + p { margin-top: 10px; }
.acc--lines .acc__item { border-top: 0; border-bottom: 1px solid var(--ice-2); }
.acc--lines .acc__btn { font-size: 18px; padding-inline: 24px; }

/* ---------- Consultation block ---------- */
.consult { background: var(--ice); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: center; }
.consult__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-soft); }
.consult__img img { width: 100%; height: 100%; object-fit: cover; }
.consult__text { font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; color: var(--ocean); }
.consult__sub { font-size: 16px; color: var(--ocean); margin-top: 8px; }
.consult form { display: grid; gap: 14px; margin-top: 22px; max-width: 760px; }
.consult .btn { justify-self: start; padding-inline: 32px; }
.consult a[href^="tel"] { white-space: nowrap; }
@media (max-width: 760px) { .consult { grid-template-columns: 1fr; } .consult__img { max-width: 280px; } .consult .btn { justify-self: stretch; white-space: normal; } }

/* ---------- Messenger CTA ---------- */
.mcta { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(40px, 5vw, 68px) 24px; text-align: center; color: var(--white); isolation: isolate; display: grid; gap: 14px; justify-items: center; }
.mcta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: blur(3px) brightness(1.05); transform: scale(1.06); }
.mcta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(61, 111, 149, .25); }
.mcta h2 { color: var(--white); }
.mcta p { font-size: 15px; }
.mcta__btns { display: flex; gap: 44px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.mcta__btns .btn { min-width: 276px; }
@media (max-width: 640px) { .mcta__btns { gap: 12px; width: 100%; } .mcta__btns .btn { min-width: 0; width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 8vw, 100px); }
.footer__in { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; padding-block: 24px 48px; max-width: 1180px; margin-inline: auto; }
.footer__logo img { width: 128px; }
.footer__col h4 { font-size: 16px; margin-bottom: 14px; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { font-size: 16px; color: var(--cocoa); transition: color .2s; }
.footer__col a:hover, .footer__col .current-menu-item a { color: var(--ocean); }
.footer__bottom { border-top: 1px solid var(--ice); padding-block: 24px; font-size: 15px; color: var(--cocoa); }
.footer__bottom .container { max-width: calc(1180px + 2 * var(--gutter)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pay-icons { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .footer__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__logo { grid-column: 1 / -1; } }

/* ---------- Catalog ---------- */
.filters { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
@media (max-width: 760px) { .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 10px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 18px; scrollbar-width: none; } .filters .pill { min-height: 46px; padding: 0 20px; font-size: 15px; } }
.catalog-empty { text-align: center; padding: 60px 20px; color: var(--ash); }

/* ---------- Product page ---------- */
.product-top { display: grid; grid-template-columns: minmax(0, 645px) minmax(0, 1fr); gap: 30px; padding-top: 28px; align-items: start; }
.gallery { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 21px; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 17px; max-height: 526px; overflow-y: auto; scrollbar-width: none; }
.gallery__thumb { flex: none; width: 98px; height: 98px; border-radius: var(--r); overflow: hidden; border: 0; padding: 0; background: var(--ice); box-shadow: inset 0 0 0 1px transparent; position: relative; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--aqua); }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--ice); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.seal { position: absolute; top: 18px; right: 18px; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--white); background: radial-gradient(circle at 30% 30%, #8fb8dc, var(--ocean) 70%); box-shadow: 0 10px 25px rgba(34, 65, 87, .25); font-size: 9px; font-weight: 500; line-height: 1.2; padding: 18px; }
.seal svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.seal b { display: block; font-size: 8px; letter-spacing: 1px; color: var(--aqua); margin-bottom: 3px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery__thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; } .gallery__thumb { width: 72px; height: 72px; } .seal { width: 84px; height: 84px; font-size: 8px; } }

.buybox { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.buybox__rating { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ocean); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); }
.stock--pre { color: var(--warn); }
.stock--out { color: var(--bad); }
.buybox__title { font-size: clamp(30px, 3vw, 36px); }
.buybox__desc { font-size: 15px; color: var(--cocoa); }
.buybox__price { font-size: 32px; font-weight: 500; color: var(--espresso); padding-bottom: 20px; border-bottom: 1px solid var(--ice); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buybox__price del { font-size: 20px; color: var(--ash); font-weight: 400; }
.buybox__price ins { text-decoration: none; }
.deposit-note { font-size: 14px; color: var(--warn); background: var(--warn-bg); border-radius: 16px; padding: 12px 16px; }
.buybox__label { font-size: 15px; color: var(--cocoa); }
div.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty__btn { width: 38px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--aqua-50); background: var(--seafoam); color: var(--ocean); display: grid; place-items: center; transition: background .2s, color .2s; }
.qty__btn:hover, .qty__btn--plus { background: var(--ocean); color: var(--white); border-color: var(--ocean); }
.qty__btn--plus:hover { background: var(--night); }
.qty__val { width: 44px; min-width: 32px; text-align: center; font-size: 18px; border: 0; background: none; padding: 0; -moz-appearance: textfield; }
.qty__val::-webkit-outer-spin-button, .qty__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 14px; align-items: center; }
.buy-row .btn { flex: 1; }
.pay-row { display: flex; justify-content: center; gap: 30px; color: var(--ash); }
.variants { display: grid; gap: 10px; }
.upsells { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.upsell { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: var(--seafoam); border: 1px solid var(--ice); min-height: 120px; transition: background .2s, border-color .2s; text-align: left; width: 100%; color: inherit; }
.upsell--accent { background: var(--aqua); border-color: var(--aqua); }
.upsell__name { font-size: 14px; color: var(--night); padding-right: 50px; }
.upsell__name strong { font-weight: 500; font-size: 15px; }
.upsell__price { font-size: 18px; font-weight: 500; color: var(--night); }
.upsell__price del { font-size: 15px; color: var(--ash); font-weight: 400; margin-right: 6px; }
.upsell__note { font-size: 13px; font-weight: 500; color: var(--night); margin-top: 6px; }
.upsell .icon-btn { position: absolute; top: 16px; right: 16px; }
.upsell.is-added .icon-btn { background: var(--ok); color: var(--white); border-color: var(--ok); }
@media (max-width: 520px) { .upsells { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ice); }
.ticks li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--cocoa); }
.ticks svg { flex: none; color: var(--aqua); }
.viewers { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cocoa); }
.viewers::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.product-acc { margin-top: 26px; }
@media (max-width: 960px) { .product-top { grid-template-columns: 1fr; } .buybox { position: static; } .product-acc { order: 3; } }

/* Course logic */
.logic { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 56px; align-items: stretch; }
.logic__problem { font-size: 20px; font-weight: 500; display: flex; gap: 12px; flex-wrap: wrap; }
.logic ul.dots { margin: 22px 0 46px; display: grid; gap: 12px; }
.dots li { position: relative; padding-left: 22px; font-size: 14px; color: var(--cocoa); }
.dots li::before { content: ""; position: absolute; left: 8px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.duration { display: grid; gap: 26px; margin: 22px 0 46px; }
.duration__opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; border-radius: var(--pill); border: 1px solid var(--aqua); background: var(--white); cursor: pointer; transition: box-shadow .2s, background .2s; min-height: 54px; }
.duration__opt input { position: absolute; opacity: 0; pointer-events: none; }
.duration__opt b { display: grid; place-items: center; min-height: 52px; padding: 0 22px; border-radius: var(--pill); border-right: 1px solid var(--aqua); font-size: 15px; font-weight: 500; color: var(--ocean); white-space: nowrap; transition: background .2s; }
.duration__opt span { padding: 0 16px; font-size: 15px; color: var(--cocoa); }
.duration__opt span em { font-style: normal; color: var(--ocean); font-weight: 500; white-space: nowrap; }
.duration__opt:has(input:checked) { box-shadow: var(--shadow); border-color: var(--white); }
.duration__opt:has(input:checked) b { background: var(--aqua); border-color: var(--aqua); }
.duration__opt:has(input:focus-visible) { outline: 2px solid var(--ocean); outline-offset: 3px; }
.logic__img { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; }
.logic__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .logic { grid-template-columns: 1fr; gap: 32px; } .logic__img { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .duration { gap: 14px; } .duration__opt { grid-template-columns: 1fr; border-radius: var(--r-lg); } .duration__opt b { border-right: 0; border-bottom: 1px solid var(--aqua); border-radius: var(--r-lg) var(--r-lg) 0 0; } .duration__opt span { padding: 12px 16px; } }

/* Steps */
.steps-box { background: var(--seafoam); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 608px) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: center; }
.steps-box__img { border-radius: var(--r-lg); overflow: hidden; background: var(--ice); aspect-ratio: 608 / 587; }
.steps-box__img img { width: 100%; height: 100%; object-fit: cover; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; margin: 40px 0 56px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; font-size: 15px; color: var(--cocoa); align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--aqua); display: grid; place-items: center; color: var(--aqua); font-size: 30px; font-weight: 400; line-height: 1; }
.result { display: grid; gap: 14px; }
.result p { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; font-size: 16px; color: var(--cocoa); }
.check-ico { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--aqua); display: grid; place-items: center; color: var(--aqua); }
@media (max-width: 960px) { .steps-box { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 20px; margin: 28px 0 36px; } }

/* Everything to know */
.know { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 628px); gap: 40px; align-items: stretch; }
.know__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 40px 68px; margin: 40px 0; }
.know__item { display: grid; gap: 10px; align-content: start; }
.know__item h3 { font-size: 17px; margin-top: 12px; }
.know__item p { font-size: 15px; color: var(--cocoa); }
.know .btn { max-width: 560px; width: 100%; }
.know__img { border-radius: var(--r-lg); overflow: hidden; background: var(--seafoam); display: grid; place-items: center; }
.know__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .know { grid-template-columns: 1fr; } .know__img { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .know__grid { grid-template-columns: 1fr; gap: 20px; margin: 24px 0; } }
.boost { margin-top: 34px; background: var(--aqua); border-radius: var(--r-lg); padding: 20px 30px 20px 26px; display: grid; grid-template-columns: 167px minmax(0, 1fr) auto; gap: 46px; align-items: center; }
.boost__img { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--white); aspect-ratio: 167 / 129; }
.boost__img img { width: 100%; height: 100%; object-fit: cover; }
.boost p { font-size: 16px; font-weight: 500; color: var(--ocean); max-width: 580px; }
@media (max-width: 860px) { .boost { grid-template-columns: 1fr; gap: 16px; padding: 20px; } .boost__img { display: none; } .boost .btn { width: 100%; } }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 554px); gap: 44px; justify-content: space-between; align-items: start; }
.cart-items { display: grid; gap: 22px; }
.citem { display: grid; grid-template-columns: 106px minmax(0, 1fr) auto auto 24px; gap: 16px; align-items: center; padding: 14px 24px 14px 15px; border: 1px solid var(--oat); border-radius: var(--r-lg); background: var(--white); }
.citem__img { width: 106px; height: 98px; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--aqua); background: var(--ice); }
.citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem__name { font-size: 18px; font-weight: 500; color: var(--espresso); }
.citem__name a:hover { color: var(--ocean); }
.citem__unit { font-size: 13px; color: var(--cocoa); margin-top: 6px; }
.citem__meta { font-size: 13px; color: var(--warn); margin-top: 4px; }
.citem__sum { font-size: 18px; font-weight: 500; min-width: 100px; text-align: right; color: var(--espresso); }
.citem__rm { width: 24px; height: 24px; border: 0; background: none; padding: 0; color: var(--espresso); display: grid; place-items: center; }
.citem__rm:hover { color: var(--bad); }
.back-link { margin-top: 22px; display: inline-flex; }
@media (max-width: 760px) {
  .citem { grid-template-columns: 80px minmax(0, 1fr) 24px; grid-template-areas: "img name rm" "img qty sum"; padding: 12px; gap: 8px 12px; }
  .citem__img { grid-area: img; width: 80px; height: 80px; }
  .citem__info { grid-area: name; } .citem .qty { grid-area: qty; } .citem__sum { grid-area: sum; min-width: 0; font-size: 16px; } .citem__rm { grid-area: rm; align-self: start; }
  .citem__name { font-size: 15px; }
}
.summary { background: var(--seafoam); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary__title { font-size: 24px; margin-bottom: 4px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; color: var(--cocoa); }
.summary__row--total { font-size: 18px; font-weight: 500; color: var(--espresso); border-top: 1px solid var(--ice-2); padding-top: 22px; margin-top: 8px; }
.summary__row--minor { font-size: 15px; }
.summary hr { border: 0; border-top: 1px solid var(--aqua); margin: 6px 0; }
.coupon { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 18px; margin-top: 10px; }
.coupon .input { min-height: 54px; font-size: 16px; padding-inline: 20px; }
.summary__note { text-align: center; font-size: 13px; color: var(--cocoa); }
.summary .btn { margin-top: 2px; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 420px) { .coupon { grid-template-columns: 1fr; gap: 10px; } .summary { padding: 20px; } }
.cart-empty { text-align: center; display: grid; gap: 18px; justify-items: center; padding-block: 40px 20px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(61, 111, 149, .55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: min(594px, 100%); background: var(--seafoam); border-radius: var(--r-lg); padding: 52px 28px 46px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; transform: translateY(10px); transition: transform .2s; }
.modal.is-open .modal__box { transform: none; }
.modal__box h3 { font-size: 22px; }
.modal__close { position: absolute; top: 18px; right: 22px; width: 28px; height: 28px; border: 0; background: none; padding: 0; color: var(--espresso); display: grid; place-items: center; }
.modal .btn { min-width: 186px; }
@media (max-width: 520px) { .modal__box { grid-template-columns: 1fr; padding: 44px 20px 24px; } .modal .btn { width: 100%; } }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 554px); gap: 44px; justify-content: space-between; align-items: start; }
.co-section { display: grid; gap: 20px; }
.co-section + .co-section { margin-top: 42px; }
.co-section h2 { font-size: 24px; }
.ship-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; }
.ship-opt { position: relative; display: grid; gap: 10px; align-content: start; min-height: 116px; padding: 16px 19px; border-radius: var(--r); background: var(--seafoam); cursor: pointer; transition: background .2s; }
.ship-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ship-opt b { font-size: 17px; font-weight: 500; color: var(--night); line-height: 1.25; }
.ship-opt small { font-size: 13px; color: var(--night); }
.ship-opt:hover { background: var(--ice); }
.ship-opt:has(input:checked) { background: var(--aqua); }
.ship-opt:has(input:focus-visible) { outline: 2px solid var(--ocean); outline-offset: 3px; }
@media (max-width: 640px) { .ship-opts { grid-template-columns: 1fr; gap: 10px; } .ship-opt { min-height: 0; } }
.pay-opts { display: grid; gap: 26px; }
.pay-opt { position: relative; display: flex; align-items: center; gap: 30px; min-height: 54px; border-radius: var(--pill); border: 1px solid var(--aqua); background: var(--white); cursor: pointer; transition: box-shadow .2s; font-size: 17px; color: var(--cocoa); padding-right: 20px; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt__dot { flex: none; width: 54px; height: 54px; margin: -1px; border-radius: 50%; border: 1px solid var(--aqua); display: grid; place-items: center; background: var(--white); }
.pay-opt__dot::after { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--aqua); transition: background .2s, box-shadow .2s; }
.pay-opt:has(input:checked) { box-shadow: var(--shadow); border-color: var(--white); }
.pay-opt:has(input:checked) .pay-opt__dot { background: var(--aqua); }
.pay-opt:has(input:checked) .pay-opt__dot::after { background: var(--white); box-shadow: 0 0 0 5px var(--white), 0 0 0 7px var(--aqua); width: 24px; height: 24px; background: var(--white); }
.pay-opt__desc { display: none; }
.pay-box { font-size: 14px; color: var(--cocoa); background: var(--seafoam); border-radius: 16px; padding: 14px 20px; margin-top: -12px; }
.order-review { background: var(--seafoam); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.order-review h2 { font-size: 24px; }
.oline { display: grid; grid-template-columns: 106px minmax(0, 1fr) auto; gap: 26px; align-items: center; font-size: 17px; color: var(--cocoa); }
.oline__img { width: 106px; height: 98px; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--aqua); background: var(--ice); }
.oline__img img { width: 100%; height: 100%; object-fit: cover; }
.oline__sum { color: var(--cocoa); white-space: nowrap; }
@media (max-width: 960px) { .checkout-layout { grid-template-columns: 1fr; } .order-review { position: static; order: -1; } }
@media (max-width: 520px) { .oline { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; font-size: 14px; } .oline__img { width: 64px; height: 64px; border-radius: 14px; } .order-review { padding: 20px; } }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 608px) minmax(0, 1fr); gap: clamp(24px, 4vw, 42px); align-items: center; padding-top: 24px; }
.about-hero__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 608 / 530; }
.about-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.about-hero h1 { font-size: clamp(30px, 3vw, 36px); }
.about-hero p { margin-top: 20px; font-size: 16px; color: var(--cocoa); max-width: 520px; }
.founder { background: var(--seafoam); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 608px); gap: clamp(24px, 4vw, 40px); align-items: center; }
.founder__text { padding-left: clamp(0px, 3vw, 40px); display: grid; gap: 10px; }
.founder__text h2 { font-size: 30px; }
.founder__role { font-size: 15px; font-weight: 500; color: var(--ocean); }
.founder__text p { margin-top: 26px; font-size: 15px; color: var(--cocoa); max-width: 520px; }
.founder__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 608 / 587; }
.founder__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .about-hero, .founder { grid-template-columns: 1fr; } .founder__img { order: -1; } }

/* ---------- Contacts ---------- */
.contacts-layout { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 572px); gap: 40px; justify-content: space-between; align-items: start; max-width: 1190px; margin-inline: auto; }
.contacts-layout h2 { font-size: 22px; margin-bottom: 22px; }
.msg-list { display: grid; gap: 22px; }
.msg { display: grid; grid-template-columns: 155px minmax(0, 1fr); align-items: center; min-height: 52px; border: 1px solid var(--aqua); border-radius: var(--pill); background: var(--white); transition: box-shadow .2s; }
.msg b { display: grid; place-items: center; min-height: 52px; margin: -1px; border: 1px solid var(--aqua); border-radius: var(--pill); font-size: 17px; font-weight: 500; color: var(--ocean); transition: background .2s; }
.msg span { padding: 0 32px; font-size: 17px; color: var(--cocoa); }
.msg:hover, .msg--accent { box-shadow: var(--shadow); border-color: var(--white); }
.msg:hover b, .msg--accent b { background: var(--aqua); border-color: var(--aqua); }
.cinfo { display: grid; grid-template-columns: repeat(3, auto); gap: 20px; justify-content: space-between; margin-top: 34px; }
.cinfo small { display: block; font-size: 15px; color: var(--cocoa); margin-bottom: 4px; }
.cinfo a, .cinfo span { font-size: 15px; font-weight: 500; color: var(--ocean); }
.cinfo span { color: var(--espresso); }
.cform { background: var(--seafoam); border-radius: var(--r-lg); padding: 36px 30px 36px; text-align: center; display: grid; gap: 14px; }
.cform h2 { margin: 0; font-size: 22px; }
.cform p { font-size: 15px; color: var(--cocoa); margin-bottom: 8px; }
.cform form { display: grid; gap: 16px; }
.cform .btn { justify-self: center; margin-top: 12px; min-width: 205px; }
.form-ok { padding: 16px 20px; border-radius: 16px; background: var(--ok-bg); color: var(--ok); font-size: 15px; }
@media (max-width: 960px) { .contacts-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .msg { grid-template-columns: 112px minmax(0, 1fr); } .msg span { padding: 0 14px; font-size: 14px; } .msg b { font-size: 15px; } .cinfo { grid-template-columns: 1fr; } .cform { padding: 24px 18px; } }

/* ---------- 404 ---------- */
.e404 { text-align: center; padding-block: clamp(48px, 7vw, 90px) 0; display: grid; justify-items: center; gap: 14px; }
.e404 .e404__num { font-size: clamp(110px, 14vw, 160px); font-weight: 600; color: var(--ocean); line-height: .9; letter-spacing: -.02em; }
.e404 h1 { font-size: clamp(24px, 2.4vw, 28px); }
.e404 p { font-size: 15px; color: var(--cocoa); max-width: 480px; }
.e404__btns { display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.e404__btns .btn--white { box-shadow: var(--shadow-soft); }
body.error404 { background: var(--seafoam); }
body.error404 .site-header { background: var(--seafoam); }

/* ---------- Notices / toast ---------- */
.notice { padding: 14px 20px; border-radius: 16px; background: var(--ice); color: var(--night); font-size: 15px; margin-bottom: 20px; }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.notice--err { background: var(--bad-bg); color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 200; background: var(--night); color: var(--white); padding: 14px 22px; border-radius: 16px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); display: flex; gap: 14px; align-items: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--aqua); font-weight: 500; white-space: nowrap; }

/* ---------- Mobile sticky buy ---------- */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); box-shadow: 0 -10px 30px rgba(34, 65, 87, .1); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: none; align-items: center; gap: 14px; transform: translateY(110%); transition: transform .25s; }
.sticky-buy.is-on { transform: none; }
.sticky-buy__price { font-size: 18px; font-weight: 500; white-space: nowrap; }
.sticky-buy .btn { flex: 1; min-height: 48px; }
@media (max-width: 960px) { .sticky-buy { display: flex; } }

/* ---------- My account ---------- */
.acc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.acc-nav { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h) + 16px); }
.acc-nav .pill { justify-content: space-between; width: 100%; }
.acc-nav__who { padding: 0 6px 12px; display: grid; gap: 6px; }
.acc-nav__who b { font-weight: 500; font-size: 18px; color: var(--espresso); }
.tier { display: inline-flex; width: max-content; font-size: 12px; padding: 4px 10px; border-radius: var(--pill); background: var(--ice); color: var(--ocean); }
.tier--b2b { background: var(--night); color: var(--white); }
.acc-main { display: grid; gap: 24px; min-width: 0; }
.ocard { border: 1px solid var(--oat); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.ocard__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 24px 15px 15px; }
.ocard__left { display: flex; gap: 16px; align-items: center; min-width: 0; }
.ocard__thumbs { display: flex; flex: none; }
.ocard__thumbs .citem__img + .citem__img { margin-left: -30px; }
.ocard__meta { display: grid; gap: 6px; min-width: 0; }
.ocard__id { font-size: 13px; color: var(--ash); }
.ocard__title { font-size: 18px; font-weight: 500; color: var(--espresso); }
.ocard__right { display: grid; gap: 10px; justify-items: end; }
.ocard__sum { font-size: 18px; font-weight: 500; color: var(--espresso); }
.ocard__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ocard__detail { border-top: 1px solid var(--ice); background: var(--seafoam); padding: 20px 24px; display: grid; gap: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; width: max-content; min-height: 28px; padding: 0 12px; border-radius: var(--pill); font-size: 13px; white-space: nowrap; background: var(--ice); color: var(--ocean); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--ok { background: var(--ok-bg); color: var(--ok); } .chip--warn { background: var(--warn-bg); color: var(--warn); } .chip--bad { background: var(--bad-bg); color: var(--bad); }
.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.track li { position: relative; display: grid; gap: 8px; justify-items: start; font-size: 13px; color: var(--ash); padding-right: 8px; }
.track li::before { content: ""; position: absolute; top: 8px; left: 18px; right: 0; height: 2px; background: var(--oat); }
.track li:last-child::before { display: none; }
.track i { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--oat); background: var(--white); }
.track .done { color: var(--espresso); } .track .done::before { background: var(--ocean); } .track .done i { background: var(--ocean); border-color: var(--ocean); }
.track .now { color: var(--night); } .track .now i { border-color: var(--ocean); box-shadow: 0 0 0 5px var(--aqua-50); }
.ttn { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--cocoa); }
.ttn code { font: 500 15px/1 var(--font); color: var(--night); letter-spacing: .04em; }
.ttn__copy { border: 1px solid var(--aqua-50); background: var(--white); border-radius: var(--r-sm); min-height: 30px; padding: 0 10px; font-size: 13px; color: var(--ocean); }
@media (max-width: 960px) { .acc-layout { grid-template-columns: 1fr; gap: 20px; } .acc-nav { position: static; display: flex; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; } .acc-nav .pill { width: auto; flex: none; min-height: 46px; } .acc-nav__who { display: none; } }
@media (max-width: 760px) { .ocard__row { grid-template-columns: 1fr; padding: 14px; } .ocard__right { justify-items: stretch; grid-template-columns: 1fr auto; align-items: center; } .ocard__actions { grid-column: 1 / -1; } .ocard__actions .btn { flex: 1; } .track { grid-template-columns: 1fr; gap: 12px; } .track li { grid-template-columns: 18px 1fr; gap: 12px; } .track li::before { top: 20px; left: 8px; right: auto; width: 2px; height: 100%; } }

/* ---------- Wholesale (B2B, Phase 2) ---------- */
.b2b-hero { background: var(--night); color: var(--white); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: center; }
.b2b-hero h1 { color: var(--white); }
.b2b-hero p { margin-top: 16px; color: #c9d7e3; max-width: 52ch; }
.b2b-hero .tag { display: inline-flex; padding: 6px 12px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .3); font-size: 12px; margin-bottom: 18px; color: var(--aqua); }
.b2b-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.perk { background: var(--seafoam); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; }
.perk__ico { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--aqua); display: grid; place-items: center; color: var(--ocean); font-size: 18px; font-weight: 500; }
.perk h3 { font-size: 17px; margin-top: 6px; }
.perk p { font-size: 14px; color: var(--cocoa); }
.b2b-form { background: var(--white); color: var(--espresso); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; }
.b2b-form h2 { font-size: 22px; }
@media (max-width: 960px) { .b2b-hero { grid-template-columns: 1fr; } .b2b-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .b2b-perks { grid-template-columns: 1fr; } .b2b-form { padding: 20px; } }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ice); }
.price-table th { font-weight: 500; color: var(--ash); font-size: 13px; background: var(--seafoam); }
.table-wrap { overflow-x: auto; border: 1px solid var(--oat); border-radius: var(--r-lg); }

/* ---------- WooCommerce resets ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; margin: 0 0 20px; padding: 14px 20px; border-radius: 16px; background: var(--ice); color: var(--night); font-size: 15px; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.woocommerce-error { background: var(--bad-bg); color: var(--bad); }
.woocommerce-message { background: var(--ok-bg); color: var(--ok); }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message .button, .woocommerce-info .button { color: var(--ocean); font-weight: 500; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.woocommerce form .form-row { margin: 0; padding: 0; }
.woocommerce form .form-row label:not(.ship-opt):not(.pay-opt) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.woocommerce form .form-row .required { color: var(--bad); text-decoration: none; }
.woocommerce-checkout #payment .payment_box { font-size: 14px; color: var(--cocoa); background: var(--seafoam); border-radius: 16px; padding: 14px 20px; margin: 10px 0 0; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--cocoa); }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; border-radius: var(--r-lg); }
.select2-container .select2-selection--single { height: 47px !important; border-radius: var(--r-lg) !important; border-color: var(--oat) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 45px !important; padding-left: 24px !important; font-size: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 45px !important; right: 14px !important; }
.select2-dropdown { border-color: var(--aqua) !important; border-radius: 16px !important; overflow: hidden; }

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

/* --- fixes after review --- */
button.header__icon { border: 0; background: none; padding: 0; }
.citem__sum, .ocard__sum { white-space: nowrap; }
@media (max-width: 760px) { .pcard--light .pcard__img { padding: 8% 8% 58%; object-position: center top; } .hero__rating { flex-wrap: wrap; justify-content: center; } }
.product-top__media { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 960px) { .product-top__media { display: contents; } .gallery { order: 1; } .buybox { order: 2; } .product-acc { order: 3; margin-top: 0; } }
.added_to_cart.wc-forward { display: none !important; }
.upsell.added .icon-btn, .upsell.is-added .icon-btn { background: var(--ok); border-color: var(--ok); color: var(--white); }
.add_to_cart_button.loading { opacity: .7; pointer-events: none; }
.pd-hidden { display: none !important; }
/* Контентні сторінки й блог */
.entry { max-width: 820px; margin-inline: auto; font-size: 16px; color: var(--cocoa); }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 26px; margin-top: 1.6em; } .entry h3 { font-size: 20px; margin-top: 1.4em; }
.entry a { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }
.entry ul { list-style: disc; padding-left: 1.3em; } .entry ol { padding-left: 1.3em; }
.entry img { border-radius: var(--r-lg); }
.entry table { width: 100%; border-collapse: collapse; } .entry td, .entry th { border-bottom: 1px solid var(--ice); padding: 10px 8px; text-align: left; }
.entry__cover { margin-bottom: 24px; border-radius: var(--r-lg); overflow: hidden; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.post-card { display: grid; gap: 10px; align-content: start; }
.post-card img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-card__date { font-size: 13px; color: var(--ash); }
.post-card:hover h2 { color: var(--ocean); }
.nav-links { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--aqua-50); color: var(--ocean); }
.nav-links .current { background: var(--ocean); color: var(--white); }
.woocommerce-pagination ul { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.woocommerce-pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--aqua-50); color: var(--ocean); }
.woocommerce-pagination .current { background: var(--ocean); color: var(--white); }
/* Варіативні товари (стандартна форма WooCommerce) */
.variants table.variations { width: 100%; border-collapse: collapse; }
.variants table.variations th, .variants table.variations td { display: block; text-align: left; padding: 0 0 8px; }
.variants select { width: 100%; min-height: 47px; padding: 0 24px; border-radius: var(--r-lg); border: 1px solid var(--oat); background: var(--white); }
.variants .reset_variations { font-size: 13px; color: var(--ash); }
.variants .single_variation_wrap { display: grid; gap: 12px; margin-top: 10px; }
.variants .woocommerce-variation-add-to-cart { display: flex; gap: 14px; align-items: center; }
.variants .single_add_to_cart_button { flex: 1; min-height: 54px; border-radius: var(--pill); border: 0; background: var(--ocean); color: var(--white); font-size: 16px; font-weight: 500; }
.variants .woocommerce-variation-price { font-size: 22px; font-weight: 500; }
/* Сторінки кабінету: форми та таблиці WooCommerce */
.woocommerce-MyAccount-content .woocommerce-form-row, .woocommerce-address-fields .form-row, .woocommerce-EditAccountForm .form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.woocommerce-MyAccount-content label, .woocommerce-form-login label, .woocommerce-form-register label { font-size: 14px; color: var(--cocoa); position: static !important; width: auto !important; height: auto !important; clip: auto !important; }
.woocommerce-MyAccount-content input.input-text, .woocommerce-form-login input.input-text, .woocommerce-form-register input.input-text, .woocommerce-address-fields input.input-text, .woocommerce-address-fields select { width: 100%; min-height: 47px; padding: 12px 24px; border-radius: var(--r-lg); border: 1px solid var(--oat); background: var(--white); }
.woocommerce-MyAccount-content .button, .woocommerce-form-login .button, .woocommerce-form-register .button, .woocommerce-ResetPassword .button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 40px; border-radius: var(--pill); border: 0; background: var(--ocean); color: var(--white); font-size: 16px; font-weight: 500; }
.woocommerce-MyAccount-content table, .woocommerce-order-details table, .woocommerce-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.woocommerce-MyAccount-content th, .woocommerce-MyAccount-content td, .woocommerce-table th, .woocommerce-table td { padding: 12px 10px; border-bottom: 1px solid var(--ice); text-align: left; }
.u-columns.col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.u-columns h2 { font-size: 24px; margin-bottom: 18px; }
.woocommerce-form-login, .woocommerce-form-register { background: var(--seafoam); border-radius: var(--r-lg); padding: 28px; }
.woocommerce-LostPassword a, .lost_password a { color: var(--ocean); font-size: 14px; }
.woocommerce-form__label-for-checkbox { display: inline-flex !important; gap: 8px; align-items: center; }
/* Сторінка «Дякуємо за замовлення» */
.woocommerce-order { display: grid; gap: 24px; max-width: 820px; margin-inline: auto; }
.woocommerce-thankyou-order-received { font-size: 22px; font-weight: 500; color: var(--ok); background: var(--ok-bg); padding: 20px 24px; border-radius: var(--r-lg); }
ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; background: var(--seafoam); border-radius: var(--r-lg); padding: 20px 24px; }
ul.woocommerce-order-overview li { font-size: 13px; color: var(--ash); } ul.woocommerce-order-overview strong { display: block; font-size: 16px; color: var(--espresso); font-weight: 500; margin-top: 4px; }
.woocommerce-customer-details address { font-style: normal; background: var(--seafoam); border-radius: var(--r-lg); padding: 20px 24px; }
.pd-thanks-tg { background: var(--night); color: var(--white); border-radius: var(--r-lg); padding: 24px 28px; display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.pd-thanks-tg h2 { color: var(--white); font-size: 20px; } .pd-thanks-tg p { color: #c9d7e3; font-size: 14px; margin-top: 6px; }
