/* ==========================================================================
   Tal-Forn — design system
   Layout is measured against the 736px-wide reference (padaria.jpg).
   --r is one reference pixel: it scales with the viewport and is capped so
   a 1440px desktop renders the reference at roughly 2x.
   ========================================================================== */

:root {
  --color-cream: #F5EEE6;
  --color-cream-light: #FBF7F2;
  --color-paper: #F6EADC;
  --color-ink: #2B1D15;
  --color-brown: #2A1B14;
  --color-brown-deep: #241610;
  --color-red: #A82A1E;
  --color-red-hover: #8F2219;
  --color-muted: #6E5F55;
  --color-border: #D9CEC1;
  --color-rule-dark: #5A4639;
  --color-wheat: #B8A28B;
  --color-on-dark: #F3EAE0;
  --color-white: #FFFFFF;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  --r: clamp(1px, calc(100vw / 736), 1.95px);
  --canvas: calc(736 * var(--r));
  --gutter: calc(40 * var(--r));

  /* small text never drops below these floors */
  --fs-label: max(calc(7 * var(--r)), 9px);
  --fs-small: max(calc(9.6 * var(--r)), 12px);
  --fs-nav: max(calc(10.5 * var(--r)), 13px);

  --ease: 180ms ease;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button,
input { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 8px 14px;
  background: var(--color-ink); color: var(--color-on-dark);
}
.skip-link:focus { top: 12px; }

.wrap {
  position: relative;
  width: 100%;
  max-width: var(--canvas);
  margin-inline: auto;
}

/* ---------- Shared pieces ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--r));
  width: calc(158 * var(--r));
  height: calc(30 * var(--r));
  min-height: 38px;
  background: var(--color-red);
  color: var(--color-cream-light);
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background-color var(--ease);
}
.btn:hover { background: var(--color-red-hover); }
.btn:focus-visible { outline-color: var(--color-red); }

.btn--small {
  width: calc(121 * var(--r));
  height: calc(27 * var(--r));
  gap: calc(10 * var(--r));
}

.btn__arrow {
  width: max(calc(13 * var(--r)), 16px);
  height: max(calc(6 * var(--r)), 8px);
  flex: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--r));
  font-family: var(--font-ui);
  font-size: max(calc(6.5 * var(--r)), 9px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eyebrow--ruled { justify-content: center; }

.eyebrow--ruled::before,
.eyebrow--ruled::after,
.eyebrow--trailing::after {
  content: "";
  width: calc(32 * var(--r));
  height: 1px;
  background: var(--color-muted);
  opacity: 0.6;
}

.eyebrow-text {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: max(calc(22 * var(--r)), 32px);
  height: max(calc(22 * var(--r)), 32px);
  color: inherit;
}
.icon-btn svg {
  width: max(calc(13.5 * var(--r)), 18px);
  height: max(calc(13.5 * var(--r)), 18px);
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-ink);
  --logo-size: calc(15.5 * var(--r));
}

.logo__mark {
  font-family: var(--font-display);
  font-size: max(var(--logo-size), 18px);
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  white-space: nowrap;
}

.logo__slash {
  position: relative;
  display: inline-block;
  font-weight: 400;
  margin-inline: 0.05em;
}

.logo__sprig {
  position: absolute;
  left: 0.05em;
  bottom: 0.75em;
  width: 1.7em;
  height: 2.1em;
  color: currentColor;
}

.logo__sub {
  margin-top: 0.75em;
  font-size: max(calc(5.6 * var(--r)), 7.5px);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}

.header__inner {
  display: grid;
  grid-template-columns: calc(219 * var(--r)) 1fr auto;
  align-items: center;
  padding: calc(27 * var(--r)) calc(48 * var(--r)) 0 calc(46 * var(--r));
}

.header__inner > .logo { justify-self: start; }

.main-nav ul {
  display: flex;
  gap: calc(24 * var(--r));
}

.main-nav a {
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-block: 4px;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.main-nav a:hover { text-decoration-line: underline; }

.header__tools {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--r));
  color: var(--color-ink);
}

.cart-btn { position: relative; }

.cart-badge {
  position: absolute;
  top: calc(-1 * var(--r));
  right: calc(-2 * var(--r));
  display: grid;
  place-items: center;
  min-width: max(calc(10 * var(--r)), 14px);
  height: max(calc(10 * var(--r)), 14px);
  padding-inline: 2px;
  border-radius: 999px;
  background: var(--color-red);
  color: var(--color-cream-light);
  font-size: max(calc(6.5 * var(--r)), 9px);
  font-weight: 600;
  line-height: 1;
}

.menu-btn { display: none; }

/* search / account popovers */
.popover {
  position: absolute;
  top: calc(100% + 6px);
  right: calc(30 * var(--r));
  width: min(300px, calc(100vw - 32px));
  padding: 14px 16px;
  background: var(--color-cream-light);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
}

.popover__form {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-ink);
}

.popover__form input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
}
.popover__form input:focus { outline: none; }
.popover__form:focus-within { border-bottom-width: 2px; }

.popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popover__note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-muted);
}
.popover__note:empty { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: calc(387 * var(--r));
  background: var(--color-paper);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(400 * var(--r));
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  /* feathers the photo's left edge into the hero ground */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 26%);
  mask-image: linear-gradient(to right, transparent, #000 26%);
}

.hero__content {
  padding-top: calc(92 * var(--r));
  padding-left: calc(45 * var(--r));
}

.hero__title {
  font-family: var(--font-display);
  font-size: calc(72 * var(--r));
  font-weight: 500;
  line-height: 0.74;
  letter-spacing: -0.035em;
  color: var(--color-ink);
}
.hero__title span { display: block; }

.hero__text {
  margin-top: calc(26 * var(--r));
  font-size: max(calc(13.2 * var(--r)), 14px);
  line-height: 1.38;
}

.hero .btn { margin-top: calc(16 * var(--r)); }

/* ---------- Products ---------- */

.products {
  padding: calc(22 * var(--r)) 0 calc(25 * var(--r));
  background: var(--color-cream);
}

.products__title {
  margin-top: calc(9 * var(--r));
  text-align: center;
  font-family: var(--font-display);
  font-size: calc(23.5 * var(--r));
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(16 * var(--r));
  margin-top: calc(18 * var(--r));
  padding-inline: var(--gutter);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-cream-light);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: calc(10 * var(--r)) calc(11 * var(--r)) 0;
}

.product-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: max(calc(12.6 * var(--r)), 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.product-card__price {
  font-size: max(calc(12 * var(--r)), 14px);
}

.product-card__desc {
  margin-top: calc(5 * var(--r));
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--color-muted);
}

.product-card__add {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(11 * var(--r));
  margin-top: auto;
  padding-block: calc(8 * var(--r)) calc(9 * var(--r));
  min-height: 34px;
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: color var(--ease);
}
.product-card__add:hover { color: var(--color-red); }
/* spacer between description and divider */
.product-card__desc { margin-bottom: calc(14 * var(--r)); }

.products__empty {
  margin-top: 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 16px;
}

/* ---------- Story ---------- */

.story {
  display: grid;
  grid-template-columns: calc(373 / 736 * 100%) 1fr;
  min-height: calc(250 * var(--r));
}

.story__media img,
.story__media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
  display: block;
  background: #efe6dc;
}

.story__panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(32 * var(--r)) calc(32 * var(--r)) calc(26 * var(--r));
  background: var(--color-cream-light);
}

.story__content {
  position: relative;
  z-index: 1;
  max-width: calc(218 * var(--r));
}

.story__title {
  margin-top: calc(16 * var(--r));
  font-family: var(--font-display);
  font-size: calc(35 * var(--r));
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.story__title span { display: block; white-space: nowrap; }

.story__text {
  margin-top: calc(13 * var(--r));
  font-size: var(--fs-small);
  line-height: 1.5;
}

.story .btn { margin-top: calc(18 * var(--r)); }

.story__art {
  position: absolute;
  top: calc(10 * var(--r));
  right: calc(16 * var(--r));
  bottom: calc(10 * var(--r));
  width: calc(100 * var(--r));
  color: var(--color-wheat);
}

.wheat-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story__values {
  position: absolute;
  left: calc(38 * var(--r));
  top: calc(152 * var(--r));
  display: grid;
  gap: calc(9 * var(--r));
  font-size: max(calc(5.4 * var(--r)), 8px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9E8C7C;
}

/* ---------- Visit ---------- */

.visit {
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
}

.visit__inner {
  display: grid;
  grid-template-columns: calc(250 * var(--r)) 1fr;
  gap: calc(48 * var(--r));
  padding: calc(40 * var(--r)) calc(46 * var(--r)) calc(44 * var(--r));
}

.visit__title {
  margin-top: calc(14 * var(--r));
  font-family: var(--font-display);
  font-size: calc(33 * var(--r));
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.visit__title span { display: block; }

.visit__meta {
  margin-top: calc(8 * var(--r));
  font-size: var(--fs-small);
  color: var(--color-muted);
}

.visit__details {
  margin: calc(18 * var(--r)) 0 calc(20 * var(--r));
  border-top: 1px solid var(--color-border);
}

.visit__details div {
  display: grid;
  grid-template-columns: calc(78 * var(--r)) 1fr;
  gap: 12px;
  padding-block: calc(8 * var(--r));
  border-bottom: 1px solid var(--color-border);
}

.visit__details dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-top: 0.2em;
}

.visit__details dd {
  margin: 0;
  font-size: max(calc(10.5 * var(--r)), 13px);
}

.visit__details a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.visit__details a:hover { color: var(--color-red); }

.visit__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: calc(8 * var(--r)) calc(12 * var(--r));
  padding-bottom: calc(12 * var(--r));
  border-bottom: 1px solid var(--color-border);
}

.visit__score {
  font-family: var(--font-display);
  font-size: calc(33 * var(--r));
  font-weight: 500;
  line-height: 1;
}

.visit__stars {
  color: var(--color-red);
  font-size: max(calc(10 * var(--r)), 13px);
  letter-spacing: 0.15em;
}

.visit__count {
  font-size: var(--fs-small);
  color: var(--color-muted);
}

.review {
  padding-block: calc(12 * var(--r));
  border-bottom: 1px solid var(--color-border);
}

.review blockquote {
  margin: 0;
  font-size: max(calc(11 * var(--r)), 14px);
  font-style: italic;
  line-height: 1.4;
}

.review__by {
  margin-top: calc(6 * var(--r));
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.review__by span {
  margin-left: 0.6em;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-brown);
  color: var(--color-on-dark);
}

.footer__inner {
  display: grid;
  grid-template-columns: calc(175 * var(--r)) 1px calc(287 * var(--r)) 1px 1fr;
  align-items: start;
  padding: calc(20 * var(--r)) calc(42 * var(--r)) calc(24 * var(--r)) calc(41 * var(--r));
  min-height: calc(139 * var(--r));
}

.logo--footer {
  align-self: center;
  justify-self: start;
  color: var(--color-on-dark);
  --logo-size: calc(16.6 * var(--r));
  margin-top: calc(-4 * var(--r));
}

.footer__rule {
  align-self: stretch;
  width: 1px;
  background: var(--color-rule-dark);
}

.footer__nav {
  display: grid;
  grid-template-columns: calc(77 * var(--r)) calc(94 * var(--r)) 1fr;
  padding-left: calc(31 * var(--r));
}

.footer__col h2 {
  font-size: max(calc(9.6 * var(--r)), 13px);
  font-weight: 600;
  margin-bottom: calc(5 * var(--r));
}

.footer__col li { line-height: 1; }

.footer__col a {
  display: inline-block;
  padding-block: calc(2.4 * var(--r));
  font-size: max(calc(9 * var(--r)), 12px);
  line-height: 1.1;
  opacity: 0.92;
  transition: opacity var(--ease);
}
.footer__col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.footer__news { padding-left: calc(32 * var(--r)); }

.newsletter__label {
  display: block;
  font-size: max(calc(6.4 * var(--r)), 9px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.newsletter__field {
  display: flex;
  align-items: center;
  margin-top: calc(7 * var(--r));
  height: max(calc(25 * var(--r)), 36px);
  border: 1px solid rgba(243, 234, 224, 0.55);
  transition: border-color var(--ease);
}
.newsletter__field:focus-within { border-color: var(--color-on-dark); }

.newsletter__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 calc(10 * var(--r));
  background: transparent;
  border: 0;
  font-size: max(calc(8.4 * var(--r)), 13px);
}
.newsletter__field input::placeholder { color: rgba(243, 234, 224, 0.62); }
.newsletter__field input:focus { outline: none; }

.newsletter__field button {
  display: grid;
  place-items: center;
  width: max(calc(28 * var(--r)), 36px);
  height: 100%;
}
.newsletter__field button svg {
  width: max(calc(11 * var(--r)), 15px);
  height: max(calc(6 * var(--r)), 8px);
}

.newsletter__msg {
  min-height: 1.2em;
  margin-top: 4px;
  font-size: max(calc(7.6 * var(--r)), 12px);
  color: rgba(243, 234, 224, 0.8);
}
.newsletter__msg.is-error { color: #F0B4A6; }

.social {
  display: flex;
  gap: calc(10 * var(--r));
  margin-left: calc(-4 * var(--r));
}

.social a {
  display: grid;
  place-items: center;
  width: max(calc(18 * var(--r)), 32px);
  height: max(calc(18 * var(--r)), 32px);
  opacity: 0.9;
  transition: opacity var(--ease);
}
.social a:hover { opacity: 1; }
.social svg {
  width: max(calc(10.5 * var(--r)), 15px);
  height: max(calc(10.5 * var(--r)), 15px);
}

/* ---------- Cart drawer, overlay, toast ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(36, 22, 16, 0.35);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(380px, 100vw);
  padding: 22px 24px;
  background: var(--color-cream-light);
  border-left: 1px solid var(--color-border);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__head h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cart-list { flex: 1; overflow-y: auto; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--color-border);
}
.cart-item img { width: 64px; height: 44px; object-fit: cover; }
.cart-item__name { font-size: 17px; }
.cart-item__price { font-size: 15px; color: var(--color-muted); }

.qty {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border: 1px solid var(--color-border);
}
.qty button { width: 28px; height: 28px; font-size: 16px; }
.qty button:hover { color: var(--color-red); }
.qty output { min-width: 24px; text-align: center; font-size: 15px; }

.cart-item__remove {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-empty {
  padding-top: 24px;
  font-size: 17px;
  color: var(--color-muted);
}

.cart-drawer__foot {
  padding-top: 16px;
  border-top: 1px solid var(--color-ink);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
}
.cart-note { margin-top: 4px; font-size: 14px; color: var(--color-muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 45;
  padding: 10px 18px;
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-size: 15px;
  letter-spacing: 0.02em;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Tablet: keep the desktop composition, give small text more room
   ========================================================================== */

@media (min-width: 601px) and (max-width: 900px) {
  .product-card__desc { line-height: 1.25; }
  .story__content { max-width: calc(230 * var(--r)); }
  .story__art { opacity: 0.75; }
  .story__values li { white-space: nowrap; }

  /* text floors make the link columns wider than the reference grid */
  .footer__inner { grid-template-columns: auto 1px auto 1px minmax(0, 1fr); padding-inline: 24px; }
  .logo--footer { padding-right: 20px; }
  .footer__nav { grid-template-columns: repeat(3, auto); column-gap: 18px; padding-inline: 20px; }
  .footer__news { padding-left: 20px; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 600px) {
  :root { --r: 1px; }

  .header__inner {
    grid-template-columns: 1fr auto;
    padding: 18px 16px 0 20px;
  }

  .logo .logo__mark { font-size: 17px; }

  .menu-btn { display: inline-grid; }
  .header__tools { gap: 2px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    margin-top: 6px;
    padding: 8px 18px;
    background: var(--color-cream-light);
    border: 1px solid var(--color-border);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 12px 0; font-size: 18px; background: none; }

  .hero { height: auto; min-height: 690px; }
  .hero__media {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 300px;
    object-position: 45% 60%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
    mask-image: linear-gradient(to bottom, transparent, #000 22%);
  }
  .hero__content { padding: 104px 20px 0; }
  .hero__title { font-size: clamp(54px, 16vw, 70px); line-height: 0.8; }
  .hero__text { margin-top: 20px; font-size: 17px; }
  .hero .btn { width: 190px; height: 46px; margin-top: 18px; }

  .products { padding: 44px 0 40px; }
  .products__title { font-size: 30px; padding-inline: 20px; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; padding-inline: 20px; }
  .product-card__body { padding: 14px 16px 0; }
  .product-card__title { font-size: 20px; }
  .product-card__price { font-size: 19px; }
  .product-card__desc { font-size: 15px; margin-bottom: 16px; }
  .product-card__add { min-height: 46px; font-size: 11px; }

  .story { grid-template-columns: 1fr; }
  .story__media img,
  .story__media-video { aspect-ratio: 3 / 2; height: auto; }
  .story__panel { padding: 40px 20px 44px; }
  .story__content { max-width: 70%; }
  .story__title { font-size: 40px; }
  .story__text { font-size: 15px; }
  .story .btn { width: 160px; height: 44px; }
  .story__art { top: 24px; right: 4px; bottom: 24px; width: 92px; opacity: 0.8; }
  .story__values { display: none; }

  .visit__inner { grid-template-columns: 1fr; gap: 36px; padding: 44px 20px; }
  .visit__title { font-size: 38px; }
  .visit__details div { grid-template-columns: 110px 1fr; padding-block: 12px; }
  .visit__details dd { font-size: 17px; }
  .visit__score { font-size: 40px; }
  .review blockquote { font-size: 17px; }
  .visit .btn { width: 170px; height: 44px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 20px 32px;
  }
  .logo--footer { justify-self: start; margin-top: 18px; }
  .footer__rule { width: auto; height: 1px; }
  .footer__nav { grid-template-columns: repeat(3, auto); justify-content: space-between; padding-left: 0; }
  .footer__col a { padding-block: 7px; font-size: 15px; }
  .footer__col h2 { font-size: 16px; }
  .footer__news { padding-left: 0; }
  .newsletter__label { font-size: 11px; }
  .newsletter__field { height: 46px; }
  .newsletter__field input { font-size: 16px; }
  .social { gap: 6px; margin-top: 4px; }
  .social a { width: 44px; height: 44px; }
  .social svg { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  .story__content { max-width: 100%; }
  .story__art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
