:root {
  --paper: #f6f2ed;
  --header: #f6f1ea;
  --ink: #211d19;
  --quiet: #5b544c;
  --card: #efeae4;
  --warm: #e9e0d5;
  --white: #fcf9f5;
  --line: #d8cec2;
  --sans: "Golos Text", Arial, sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --brand: "Baskervville", Georgia, serif;
  --width: 1170px;
  --gutter: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #775946;
  outline-offset: 3px;
}
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
hr { border: 0; border-top: 1px solid var(--line); }
.container, .shop-shell { width: min(100%, var(--width)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: absolute; inset: 4px auto auto 4px; z-index: 5; background: var(--white); padding: 12px; }
.muted { color: var(--quiet); }
.icon { display: inline-block; object-fit: contain; vertical-align: middle; flex: none; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-weight: 500; }
.button { min-height: 48px; padding: 0 21px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); text-align: center; transition: background .16s; }
.button:hover { background: #41372e; }
.button--secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.button--secondary:hover { background: var(--warm); }
.button .icon, .text-link .icon { max-width: 22px; height: auto; }
.text-link { border: 0; background: none; padding: 0; min-height: 30px; font-size: 13px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-header { background: var(--header); }
.header-inner {
  max-width: var(--width); margin-inline: auto; min-height: 61px; padding: 0 43px 0 60px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px;
}
.wordmark { display: inline-flex; align-items: center; gap: 5px; width: max-content; font: 27px/1.2 var(--brand); letter-spacing: -.025em; white-space: nowrap; }
.wordmark .icon { max-width: 22px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(13px, 1.9vw, 24px); white-space: nowrap; font-size: 13px; font-weight: 500; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; justify-content: end; align-items: center; gap: 12px; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 43px; padding: 0; border: 0; background: transparent; }
.icon-button:hover { opacity: .68; }
.icon-button .icon { max-width: 24px; height: auto; }
.cart-control { margin-right: 9px; }
.cart-control span { position: absolute; top: 4px; right: -6px; font-size: 11px; font-weight: 500; }
.mobile-menu, .mobile-kicker { display: none; }
.hero { background: var(--warm); overflow: hidden; }
.hero-inner { position: relative; isolation: isolate; width: min(100%, var(--width)); min-height: 557px; margin-inline: auto; }
.hero-visual { position: absolute; inset: 0 0 0 37.1%; overflow: hidden; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-visual::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 95px; background: linear-gradient(90deg, var(--warm), transparent); pointer-events: none; }
.hero-caption { position: absolute; right: 31px; bottom: 26px; display: inline-flex; align-items: center; gap: 6px; border-radius: 3px; padding: 7px 11px; background: var(--paper); font-size: 11.5px; font-weight: 500; }
.hero-caption .icon { max-width: 15px; height: auto; }
.hero-copy { position: relative; z-index: 1; width: fit-content; padding: 58px 0 67px 68px; }
.hero-kicker { font-size: 11px; font-weight: 500; letter-spacing: .29em; text-transform: uppercase; }
.hero h1 { margin-top: 18px; font: 70px/.92 var(--brand); letter-spacing: -.027em; }
.hero h1 span { display: flex; align-items: center; gap: 12px; }
.hero h1 .icon { max-width: 56px; height: auto; }
.hero-description { margin-top: 23px; font-size: 17px; line-height: 1.36; letter-spacing: .01em; }
.hero-cta { width: 257px; margin-top: 27px; }
.hero-perks { display: flex; gap: 23px; margin-top: 35px; font-size: 12.6px; line-height: 1.27; }
.hero-perks a { min-width: 127px; }
.hero-perks .icon { display: block; margin-bottom: 6px; max-width: 24px; height: auto; }
.home-catalog { padding-top: 30px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.section-heading h2, .fitting-band h2 { font-size: 31px; }
.section-heading a { flex: none; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card { position: relative; background: var(--card); border-radius: 9px; padding: 10px; min-width: 0; transition: box-shadow .18s; }
.product-card:hover { box-shadow: 0 5px 18px #211d1910; }
.product-card__link { display: block; }
.product-card__photo { overflow: hidden; border-radius: 5px; aspect-ratio: 235 / 198; background: #fff; }
.product-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.home-products .product-card__photo { aspect-ratio: 235 / 146; }
.product-card__body { padding: 8px 4px 16px; min-width: 0; }
.product-card__body h2 { font-size: 21px; line-height: 1.2; }
.product-card__body p { color: var(--quiet); font-size: 13px; margin-block: 4px 5px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.price-current { font-size: 16px; font-weight: 600; white-space: nowrap; }
.price-old, .discount { font-size: 11.5px; white-space: nowrap; color: var(--quiet); }
.discount { font-size: 10.5px; }
.favorite-button { display: grid; place-items: center; border: 0; background: var(--white); border-radius: 50%; color: var(--ink); }
.product-card > .favorite-button { position: absolute; z-index: 1; right: 16px; top: 16px; width: 33px; height: 33px; }
.favorite-button img { width: 18px; height: 18px; }
.favorite-button[aria-pressed="true"] { background: #dfc9bc; color: #672b28; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 27px; }
.promo-card { display: grid; grid-template-columns: 43% 1fr; height: 218px; border-radius: 9px; overflow: hidden; background: var(--warm); }
.promo-card > img { height: 100%; width: 100%; min-height: 0; object-fit: cover; }
.promo-winter { grid-template-columns: 36% 1fr; position: relative; }
.promo-winter::after { content: ""; position: absolute; inset: 0 auto 0 calc(36% - 1px); width: 79px; pointer-events: none; background: linear-gradient(90deg, var(--warm), transparent); }
.promo-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 17px 0 17px 29px; }
.promo-copy h2 { font-size: clamp(24px, 2.45vw, 32px); line-height: 1.04; white-space: nowrap; }
.promo-copy p { font-size: 13px; line-height: 1.34; margin-top: 9px; }
.promo-copy .text-link { margin-top: 12px; border-bottom: 1px solid #a99c8d; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; list-style: none; padding: 23px 10px 22px; font-size: 13px; line-height: 1.33; }
.features li { display: flex; gap: 13px; align-items: center; }
.features .icon { max-width: 31px; height: auto; }
.fitting-band { background: var(--header); padding: 29px 0 26px; }
.fitting-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; list-style: none; counter-reset: fitting; margin: 24px 0 20px; }
.fitting-steps li { position: relative; min-height: 86px; padding: 0 0 17px 36px; border-bottom: 1px solid var(--line); counter-increment: fitting; }
.fitting-steps li::before { content: counter(fitting, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: var(--quiet); font: 17px var(--serif); }
.fitting-steps h3 { font-size: 21px; }
.fitting-steps p { margin-top: 6px; font-size: 14px; color: var(--quiet); }
.site-footer { background: var(--header); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.1fr; gap: 19px 22px; min-height: 153px; padding-top: 30px; padding-bottom: 25px; }
.footer-logo { align-self: start; font-size: 24px; }
.footer-logo .icon { max-width: 19px; }
.footer-grid nav, .footer-contacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 500; }
.footer-grid nav a:hover, .footer-contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contacts a:first-child { white-space: nowrap; }
.footer-contacts span { color: var(--quiet); font-size: 12px; font-weight: 400; }
.footer-note { grid-column: 1 / -1; align-self: end; font-size: 11px; color: var(--quiet); }
.shop-shell { padding-top: 24px; padding-bottom: 42px; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: var(--quiet); font-size: 12px; margin-bottom: 23px; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }
.shop-heading { margin-bottom: 22px; }
.shop-heading h1 { font-size: clamp(34px, 4.2vw, 48px); }
.shop-heading p { margin-top: 10px; color: var(--quiet); font-size: 16px; }
.catalog-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 16px; }
.catalog-tab { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); font-size: 12px; font-weight: 500; }
.catalog-tab.is-active, .catalog-tab:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.catalog-controls { display: flex; align-items: end; gap: 14px; justify-content: space-between; border-top: 1px solid var(--line); padding: 13px 0 17px; }
.catalog-search { max-width: 270px; flex: 1 1 auto; }
.catalog-controls label, .checkout-fields label, .dialog-search label { display: grid; align-content: start; gap: 5px; font-weight: 500; font-size: 12px; }
.catalog-fields { display: flex; gap: 10px; align-items: end; }
.catalog-controls input, .catalog-controls select, .checkout-fields input, .checkout-fields select, .dialog-search input {
  min-height: 44px; min-width: 0; width: 100%; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; background: transparent;
}
.catalog-controls .button { min-height: 44px; padding-inline: 15px; }
.catalog-controls select { padding-right: 24px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 590fr) minmax(0, 426fr); gap: clamp(26px, 5vw, 58px); align-items: start; }
.gallery-main { display: grid; overflow: hidden; border-radius: 9px; aspect-ratio: 590 / 452; background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.gallery-thumb { width: min(88px, calc((100% - 30px) / 4)); aspect-ratio: 1; padding: 0; border-radius: 6px; overflow: hidden; border: 1px solid transparent; background: #fff; }
.gallery-thumb.is-active { border-color: var(--ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-info .shop-heading { margin-bottom: 19px; }
.product-info .shop-heading h1 { font-size: clamp(32px, 3.8vw, 44px); }
.product-info > .price { gap: 17px; margin-bottom: 30px; }
.product-info > .price .price-current { font-size: 26px; }
.product-info > .price .price-old, .product-info > .price .discount { font-size: 13px; }
.product-info > .price .discount { background: #ead9c9; border-radius: 7px; padding: 3px 9px; color: var(--ink); }
.size-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.size-picker legend { padding: 0; margin-bottom: 9px; font-weight: 500; }
.size-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.size-button { min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 4px; background: transparent; }
.size-button:hover, .size-button.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.purchase-actions { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; margin: 17px 0 22px; }
.purchase-actions .favorite-button { border: 1px solid var(--line); border-radius: 4px; background: transparent; }
.purchase-actions .favorite-button[aria-pressed="true"] { background: #dfc9bc; }
.product-perks { display: grid; gap: 10px; list-style: none; padding: 17px 0 7px; border-top: 1px solid var(--line); font-size: 13px; }
.product-details { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; border-top: 1px solid var(--line); margin-top: 31px; padding-top: 26px; }
.product-details h2 { font-size: 27px; margin-bottom: 13px; }
.product-details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; font-size: 13px; }
.product-details dd { margin: 0; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-card, .service-note, .empty-state { background: var(--card); border-radius: 12px; padding: 23px 27px; }
.service-card h2, .service-note h2, .checkout-panel h2, .empty-state h2 { font-size: 27px; }
.service-card p, .service-card ul, .service-note p { margin-top: 10px; }
.service-card ul { padding-left: 19px; display: grid; gap: 5px; color: var(--quiet); }
.service-note { margin-top: 22px; background: var(--warm); }
.service-note .text-link { margin-top: 7px; }
.empty-state { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 55px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 686fr) minmax(330px, 362fr); gap: 26px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: flex; gap: 17px; padding: 12px; background: var(--card); border-radius: 12px; }
.cart-item__photo { width: clamp(96px, 15vw, 155px); aspect-ratio: 1; flex: none; border-radius: 7px; overflow: hidden; background: #fff; align-self: flex-start; }
.cart-item__photo img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__info { padding: 8px 0 5px; }
.cart-item h2 { font-size: 23px; }
.cart-item p { font-size: 13px; margin-top: 3px; }
.cart-item .price-current { display: block; margin-top: 4px; }
.quantity-control { display: inline-flex; gap: 9px; align-items: center; margin-top: 9px; }
.quantity-control button:not(.cart-remove) { min-width: 33px; min-height: 33px; border: 1px solid var(--line); border-radius: 4px; background: transparent; }
.cart-remove { margin-left: 4px; color: var(--quiet); }
.checkout-panel { background: var(--header); border: 1px solid var(--line); border-radius: 12px; padding: 19px 21px; }
.checkout-steps { display: grid; grid-template-columns: 1fr 1.24fr .9fr; gap: 5px; list-style: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checkout-steps li > * { display: flex; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; }
.checkout-steps button { background: transparent; border: 0; padding: 0; }
.checkout-steps li > * > span:first-child { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 100%; background: var(--warm); }
.checkout-steps .is-active > * > span:first-child { background: var(--ink); color: var(--white); }
.checkout-fields { display: grid; gap: 13px; margin: 15px 0 21px; }
.checkout-fields p { font-size: 12px; }
.checkout-summary { display: grid; gap: 4px; }
.checkout-form > .button { width: 100%; margin-top: 15px; }
.order-totals { display: grid; gap: 6px; color: var(--quiet); font-size: 13px; }
.order-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.order-totals dd { margin: 0; text-align: right; }
.order-total { border-top: 1px solid var(--line); padding-top: 9px; font-size: 16px; font-weight: 500; color: var(--ink); }
.order-note { margin-top: 5px; font-size: 11px; }
.checkout-confirmation { display: grid; gap: 13px; margin-top: 14px; }
.about-page .product-info > p { margin-bottom: 15px; }
.about-page .button { margin-top: 10px; }
dialog { width: min(440px, calc(100% - 28px)); padding: 19px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
dialog::backdrop { background: #211d1960; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.dialog-head h2 { font-size: 27px; }
.dialog-nav a { display: block; border-top: 1px solid var(--line); padding: 11px 0; font: 18px var(--serif); }
.dialog-search { display: grid; gap: 10px; }
dialog p + .button { margin-top: 12px; }
[hidden] { display: none !important; }

@media (max-width: 1080px) {
  .header-inner { padding-inline: 34px; gap: 13px; }
  .desktop-nav { gap: 13px; }
  .header-actions { gap: 6px; }
}
@media (max-width: 870px) {
  :root { --gutter: 22px; }
  .header-inner { display: flex; justify-content: space-between; gap: 9px; padding-inline: 16px; min-height: 56px; }
  .header-inner .wordmark { margin-right: auto; font-size: 23px; }
  .header-inner .wordmark .icon { max-width: 16px; }
  .desktop-nav, .profile-control { display: none; }
  .mobile-menu { display: inline-grid; }
  .header-actions { gap: 6px; }
  .hero-copy { padding-left: 31px; }
  .hero-visual { left: 41%; }
  .hero h1 { font-size: 57px; }
  .hero-perks { gap: 9px; }
  .hero-perks a { min-width: 98px; }
  .product-card__body h2 { font-size: 17px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .home-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-layout { gap: 22px; }
  .cart-layout { gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(304px, 1fr); }
  .promo-copy { padding-left: 18px; }
  .promo-copy h2 { font-size: 25px; }
  .promo-copy p { font-size: 11px; }
}
@media (max-width: 650px) {
  :root { --gutter: 18px; }
  body { font-size: 13px; }
  .header-inner { gap: 4px; padding-inline: 11px 14px; }
  .header-inner .wordmark { font-size: clamp(17px, 5.2vw, 21px); gap: 3px; }
  .header-actions { gap: 3px; }
  .header-actions .icon-button, .mobile-menu { width: 30px; }
  .header-actions .icon-button .icon { max-width: 22px; }
  .cart-control { margin-right: 0; }
  .hero-inner { min-height: 0; }
  .hero-visual { position: relative; inset: auto; height: clamp(189px, 60.5vw, 285px); }
  .hero-visual::after, .desktop-caption, .desktop-kicker, .hero-perks { display: none; }
  .mobile-kicker { display: block; }
  .hero-copy { width: 100%; padding: 14px 20px 40px; }
  .hero-kicker { font-size: 9px; letter-spacing: .20em; }
  .hero h1 { font-size: 49px; margin-top: 9px; line-height: .94; }
  .hero h1 .icon { max-width: 36px; }
  .hero h1 span { gap: 8px; }
  .hero-description { margin-top: 9px; font-size: 14px; }
  .hero-cta { width: 100%; margin-top: 17px; }
  .home-catalog { padding-top: 23px; }
  .section-heading { margin-bottom: 17px; align-items: center; }
  .section-heading h2 { font-size: clamp(18px, 6vw, 23px); }
  .section-heading .text-link { font-size: 11px; gap: 4px; }
  .section-heading .icon { max-width: 15px; }
  .product-grid, .home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { padding: 7px; }
  .product-card__body { padding: 5px 3px 11px; }
  .product-card__body h2 { font-size: 17px; }
  .product-card__body p { font-size: 10.5px; line-height: 1.32; min-height: 2.64em; margin: 3px 0 4px; }
  .product-card__photo { aspect-ratio: 159 / 137; }
  .home-products .product-card__photo { aspect-ratio: 159 / 107; }
  .product-card .price { gap: 3px 5px; }
  .product-card .price-current { font-size: 12.5px; }
  .product-card .price-old { font-size: 9.5px; }
  .product-card .discount { font-size: 9px; }
  .product-card > .favorite-button { width: 29px; height: 29px; right: 10px; top: 10px; }
  .favorite-button img { width: 16px; height: 16px; }
  .promo-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 21px; }
  .promo-card { grid-template-columns: 48.6% 1fr; height: 164px; }
  .promo-winter { grid-template-columns: 34% 1fr; }
  .promo-winter::after { left: calc(34% - 1px); width: 64px; }
  .promo-copy { padding: 12px 0 12px 17px; }
  .promo-copy h2 { font-size: 23px; }
  .promo-copy p { margin-top: 7px; font-size: 11px; }
  .promo-copy .text-link { gap: 6px; margin-top: 6px; font-size: 11px; min-height: 28px; }
  .features { grid-template-columns: 1fr 1fr; gap: 12px 8px; padding: 18px 0 21px; font-size: 10.5px; }
  .features li { gap: 7px; }
  .features .icon { max-width: 24px; }
  .fitting-band { padding: 22px 0 28px; }
  .fitting-band h2 { font-size: 26px; }
  .fitting-steps { grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
  .fitting-steps li { min-height: 0; padding: 0 0 12px 34px; }
  .fitting-steps h3 { font-size: 18px; }
  .fitting-steps p { font-size: 12px; }
  .fitting-band .button { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1.5fr; gap: 11px 15px; min-height: 0; padding-block: 20px; }
  .footer-logo, .footer-contacts { grid-column: 1 / -1; }
  .footer-contacts { grid-row: 2; gap: 3px; }
  .footer-grid nav { gap: 8px; }
  .footer-note { margin-top: 3px; }
  .shop-shell { padding-top: 19px; padding-bottom: 32px; }
  .breadcrumbs { margin-bottom: 16px; }
  .shop-heading { margin-bottom: 17px; }
  .shop-heading h1 { font-size: 34px; }
  .shop-heading p { font-size: 14px; }
  .catalog-controls { display: grid; gap: 7px; padding-top: 10px; }
  .catalog-search { max-width: none; }
  .catalog-fields { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 7px; }
  .catalog-fields .button { grid-column: 1 / -1; min-height: 37px; }
  .catalog-controls select, .catalog-controls input { font-size: 13px; min-height: 38px; }
  .product-layout, .product-details, .service-grid, .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .product-layout { gap: 24px; }
  .gallery-main { aspect-ratio: 354 / 306; }
  .gallery-thumbs { gap: 7px; }
  .gallery-thumb { width: min(73px, calc((100% - 21px) / 4)); }
  .product-info > .price { margin-bottom: 20px; }
  .size-grid { gap: 5px; }
  .size-button { flex: 0 0 calc((100% - 30px) / 7); min-width: 0; }
  .product-details { gap: 14px; margin-top: 20px; padding-top: 20px; }
  .service-card, .service-note { padding: 17px; }
  .service-card h2, .service-note h2, .checkout-panel h2, .empty-state h2 { font-size: 23px; }
  .cart-item h2 { font-size: 17px; }
  .cart-item { gap: 12px; }
  .cart-item__info { padding-top: 3px; min-width: 0; }
  .cart-item p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

.dialog-close { font-size: 27px; }
.product-card__photo { position: relative; }
.product-card__photo img {
  position: absolute;
  inset: 73% auto auto 50%;
  width: var(--photo-width, 100%);
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, var(--photo-bottom, -70%));
}
.product-card[data-product="true-star"] { --photo-width: 118%; --photo-bottom: -61.4%; }
.product-card[data-product="marathon"] { --photo-width: 116%; --photo-bottom: -59.4%; }
.product-card[data-product="superstar-dots"] { --photo-width: 105%; --photo-bottom: -67.6%; }
.product-card[data-product="true-star"] .product-card__photo img,
.product-card[data-product="marathon"] .product-card__photo img { filter: brightness(1.075); }
.catalog-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 50px;
  margin-bottom: 13px;
  border-top: 1px solid var(--line);
}
.catalog-filter summary { display: flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 500; list-style: none; }
.catalog-filter summary::-webkit-details-marker { display: none; }
.catalog-filter summary img { max-width: 17px; height: auto; }
.catalog-filter .catalog-controls {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 3;
  width: min(100%, 530px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 28px #211d1925;
}
.catalog-count { color: var(--quiet); font-size: 12px; }
.catalog-sort { margin-left: auto; }
.catalog-sort select { padding: 7px 22px 7px 7px; border: 0; background: transparent; font-size: 13px; }
.product-perks li { display: flex; align-items: center; gap: 10px; }
.product-perks img { width: 19px; height: 19px; object-fit: contain; }
.checkout-steps li, .checkout-steps button { display: flex; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; }
.checkout-steps li > span:first-child { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--warm); }
.checkout-steps .is-active > span:first-child { background: var(--ink); color: var(--white); }
@media (max-width: 650px) {
  .catalog-filter .catalog-controls { gap: 11px; }
  .catalog-filter .catalog-fields { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-filter .catalog-fields .button { grid-column: auto; }
}
