/* Shared type scale for the storefront. */
:root {
  --shop-title: clamp(27px, 4vw, 54px);
  --shop-heading: clamp(22px, 3vw, 36px);
  --shop-body: 16px;
  --shop-detail: 14px;
  --shop-sans: 'Golos Text', Arial, sans-serif;
  --shop-display: 'Unbounded', Arial, sans-serif;
  --shop-gold: #ffc454;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.landing-page .hero h1, .shtil-catalog .sea-copy h1, .hero-delivery .hero-left h1,
.contacts-left .page-title, .shtil-cart .page-head h1 {
  font: 600 var(--shop-title)/1.15 var(--shop-display);
  letter-spacing: -.035em;
}
.landing-page .sh h2, .shtil-catalog .cat-head h2, .shtil-cart .rec-title,
.contacts-grid .form-title, .faq-section h2 {
  font: 600 var(--shop-heading)/1.25 var(--shop-display);
  letter-spacing: -.025em;
}
.landing-page .hero-desc, .shtil-catalog .sea-copy p, .hero-delivery .hero-sub,
.contacts-left .page-sub, .shtil-cart .cart-intro, #delivery .delivery-list li,
.landing-page .adv-cell p, .shtil-catalog .cat-head p {
  font: 400 var(--shop-body)/1.6 var(--shop-sans);
}
.landing-page .hero-desc, .landing-page .pill-text, .landing-page .hero-eyebrow,
.shtil-catalog .sea-copy p, .shtil-cart .cart-intro { color: #edf4fa; }
.landing-page .cta-wrap .label { color: var(--shop-gold) !important; }
.fc h4, .shtil-catalog .fc h4, .cta-label { color: var(--shop-gold); }
.fc ul li a, .shtil-catalog .fc ul li a, footer .footer-copy, footer .footer-policy a {
  color: #e5edf6;
  font: 400 var(--shop-detail)/1.55 var(--shop-sans);
}
.fc ul li a[href^="tel:"] { display: inline-block; white-space: nowrap; color: white; font: 600 18px/1.5 var(--shop-sans); }
.site-header .burger .burger-line { background: #123956; }
.landing-page .hero-actions .btn-amber { color: #102d47; }
.landing-page .hero-actions svg path { stroke: currentColor; }

/* A separate scrolling region leaves the close control in reach at any scroll position. */
.shtil-cart, .shtil-catalog { isolation: auto; }
.shtil-catalog dialog.modal-overlay {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  border: 0; box-sizing: border-box; visibility: hidden;
}
.shtil-catalog dialog.modal-overlay.open { visibility: visible; }
.shtil-catalog dialog::backdrop { background: transparent; }
.shtil-catalog .modal-overlay, .shtil-cart .modal-overlay, .shtil-cart .co-overlay {
  z-index: 10001;
  --dialog-top: max(12px, env(safe-area-inset-top, 0px));
  --dialog-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding: var(--dialog-top) max(12px, env(safe-area-inset-right, 0px)) var(--dialog-bottom) max(12px, env(safe-area-inset-left, 0px));
}
.shtil-catalog .modal, .shtil-cart .modal { display: block; overflow: hidden; max-height: none; }
.product-scroll {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  max-height: calc(100vh - var(--dialog-top) - var(--dialog-bottom));
  max-height: calc(100dvh - var(--dialog-top) - var(--dialog-bottom));
  overflow: auto; overscroll-behavior: contain;
}
.product-scroll .modal-info { overflow: visible; }
.shtil-catalog .modal-close, .shtil-cart .modal-close, .shtil-cart .co-close {
  width: 44px; height: 44px; top: 8px; right: 8px; color: white;
  background: #123956; border: 2px solid white; border-radius: 50%; z-index: 3;
}
.product-scroll .modal-info { padding-top: 55px; }
.shtil-catalog .m-title, .shtil-cart .m-title { color: white; font: 600 clamp(20px, 2.5vw, 28px)/1.3 var(--shop-display); }
.shtil-catalog .m-desc, .shtil-cart .m-desc { color: #edf4fa; font: 400 var(--shop-body)/1.6 var(--shop-sans); }
.shtil-catalog .m-spec, .shtil-cart .m-spec { color: #edf4fa; font: 400 var(--shop-detail)/1.6 var(--shop-sans); }
.product-scroll .m-spec b, .product-scroll .m-tag { color: var(--shop-gold); }

/* Product photography shares a frame even before images finish loading. */
.shtil-catalog .pcard-img, .shtil-cart .rc-img, .landing-page .cr-photo {
  position: relative; width: 100%; height: auto; aspect-ratio: 3/2;
  flex: none; overflow: hidden; background: #eef2f5;
}
.shtil-catalog .pcard-img img, .shtil-cart .rc-img img, .landing-page .cr-photo img {
  display: block; width: 100%; height: 100%; padding: 0; object-fit: contain;
}
.shtil-catalog .pcard, .shtil-cart .rec-card { min-width: 0; }
.shtil-catalog .pcard-name, .shtil-cart .rc-name, .landing-page .cr-name, .shtil-cart .ci-name {
  font: 600 16px/1.36 var(--shop-sans); overflow-wrap: break-word;
}
.shtil-catalog .pcard-sub, .shtil-cart .rc-sub, .landing-page .cr-sub, .shtil-cart .ci-sub {
  font: 400 var(--shop-detail)/1.5 var(--shop-sans);
}
.shtil-catalog .pcard-badge, .landing-page .cr-badge {
  top: 8px; left: 8px; z-index: 2; padding: 4px 8px;
  font: 600 13px/1.25 var(--shop-sans); color: white; background: #173e60; letter-spacing: .035em;
}
.shtil-catalog .pcard-badge[data-label^="хит"], .landing-page .cr-badge[data-label^="хит"] {
  background: var(--shop-gold); color: #132b43; font-size: 18px; font-weight: 700; padding: 5px 11px;
}
.landing-page .cr-card { height: auto; display: flex; flex-direction: column; background: #102f4c; }
.landing-page .cr-card::after { display: none; }
.landing-page .cr-label { position: static; padding: 18px; }
.landing-page .cr-tag { color: var(--shop-gold); }
.landing-page .cr-sub { color: #e6eef5; }
.shtil-catalog .pcard-btn, .shtil-cart .btn-rc-cart { min-height: 44px; font: 600 var(--shop-detail)/1.3 var(--shop-sans); }

#delivery .delivery-copy { padding: clamp(20px, 4vw, 42px); background: #123653; border-radius: 16px; }
#delivery .delivery-list li { color: #fff; }
#delivery .delivery-copy .btn { background: var(--shop-gold); color: #102f4c; }
#delivery .delivery-copy .btn path { stroke: currentColor; }
#delivery .delivery-scene { background: transparent; border: 0; box-shadow: none; color: #183a57; padding: 12px; }
#delivery .delivery-scene-title { font: 600 19px/1.4 var(--shop-sans); }
#delivery .delivery-scene-kicker, #delivery .delivery-journey li, #delivery .delivery-step-number { color: #3d566c; }
#delivery .delivery-map-label, #delivery .delivery-map-note { fill: #344f65; }
#delivery .delivery-route-base { stroke: #57778c; stroke-opacity: .65; }
#delivery .delivery-motion-toggle { color: #173d58; background: white; border-color: #bdcdd8; width: 44px; height: 44px; }
#delivery .delivery-journey { margin: 0; border-color: #ccd8df; }
#delivery .delivery-journey li { font-size: 13px; padding: 12px 4px; }
#delivery .delivery-journey li.is-current .delivery-step-number { color: #855000; }
@media (hover: none), (pointer: coarse) {
  .shtil-catalog .pcard:hover, .shtil-cart .rec-card:hover,
  .shtil-catalog .pcard:hover .pcard-img img, .landing-page .cr-card:hover img { transform: none; }
  .landing-page .cr-hover-btn { display: none; }
}
@media (max-width: 760px) {
  .product-scroll { grid-template-columns: minmax(0,1fr); }
  .product-scroll .modal-info { padding: 20px; }
  .product-scroll .modal-photo { min-height: 0; height: clamp(150px, 32vh, 300px); }
  .landing-page .cta-right, .fc-cols { grid-template-columns: minmax(0,1fr); }
  .landing-page .section-position { display: none; }
  .site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .shtil-catalog .sb-search input, .co-field input, .co-field textarea { font-size: 16px; }
}
@media (max-width: 560px) {
  .site-header .header-inner { min-height: 64px; }
  :root { --site-header-height: 64px; }
  .site-header .site-brand-mark { width: 67px; height: 48px; }
  .shtil-catalog .prod-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .shtil-catalog .pcard-body { padding: 12px; }
}
@media (max-width: 350px) {
  .shtil-catalog .prod-grid { grid-template-columns: minmax(0,1fr); }
}
.contacts-left .page-sub, .hero-delivery .hero-sub { color: #e4edf5; }
.contacts-grid .cc-sub, .hero-delivery .check-row, .shtil-cart .ci-sub { font: 400 var(--shop-detail)/1.5 var(--shop-sans); }
.contacts-grid .cc-sub { color: #cfdeeb; }
.fc ul li span, .contacts-grid .form-sub, .contacts-grid .form-check label,
.faq-section .faq-sub, .banner-mid {
  color: #dbe7ef; font: 400 var(--shop-detail)/1.55 var(--shop-sans);
}
.contacts-grid .cc-label { color: var(--shop-gold); }
.contacts-grid .inp-group input, .contacts-grid .inp-group textarea { font-size: 16px; }
@media (hover: none), (pointer: coarse) {
  .landing-page .carousel-track .cr-card { transform: none; }
}
.product-flags {
  display: flex; align-items: center; min-height: 39px; padding: 4px 8px;
  background: #f4f7fb;
}
.product-flags .pcard-badge, .product-flags .cr-badge { position: static; }

/* Show the full original photograph on pointer hover as well as touch. */
.shtil-catalog .pcard:hover .pcard-img img,
.shtil-cart .rec-card:hover .rc-img img,
.landing-page .cr-card:hover .cr-photo img { transform: none; }
