/* Phone typography and touch targets. Keep small screens readable. */
/* Preserve browser font preferences; iOS also exposes Dynamic Type here.
   Do not multiply this by preferred-text-scale: that would scale twice. */
html { font-size: 100%; }
@supports (font: -apple-system-body) {
  @media (hover: none) { html { font: -apple-system-body; } }
}
body { overflow-wrap: anywhere; }
/* Keep enlarged Russian headings readable instead of splitting at arbitrary letters. */
h1, h2 { hyphens: auto; }
.button, .detail-button, .header .phone, .text-link { white-space: normal; }
.header { flex-wrap: wrap; }
.product-card .price, .purchase-price > span { overflow-wrap: normal; }
.purchase-actions { flex-wrap: wrap; }
.quantity { flex-shrink: 0; min-height: 3rem; height: auto; }
.quantity button { min-height: 3rem; }
.header .phone { max-width: 100%; }
.hero-categories a { min-width: 0; }

.hero-categories { display: none; }

/* Native radio choices keep keyboard selection and a visible selected state. */
.single-variant { margin: 0 0 24px; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.single-variant strong { color: var(--gold); font-size: 1.25rem; font-weight: 400; white-space: nowrap; margin-left: 6px; }
.variant-options { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.variant-options legend { padding: 0; margin-bottom: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.variant-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-choice { position: relative; cursor: pointer; }
.variant-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.variant-choice > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 96px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 1.0625rem; line-height: 1.4; }
.variant-choice small { font-size: 0.875rem; color: var(--muted); }
.variant-choice input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 600; }
.variant-choice input:checked + span small { color: inherit; font-weight: 400; }
.variant-choice:hover > span { border-color: var(--gold); }
.variant-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 4px; }
.variant-options:disabled .variant-choice { cursor: default; opacity: .65; }
.product-purchase .purchase-price { margin-bottom: 10px; }
.purchase-minimum { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); margin: 0 0 22px; }
.purchase-minimum strong { color: var(--text); font-weight: 400; white-space: nowrap; }

/* Product cards share one clear reading order at every screen size. */
.product-card { display: flex; flex-direction: column; }
.product-card[hidden] { display: none; }
.product-info { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.product-info h3 { font-size: 1.125rem; line-height: 1.45; min-height: 0; margin-bottom: 10px; }
.product-info h3 a:hover { color: var(--gold); }
.product-info .availability { font-size: 0.875rem; line-height: 1.5; margin-bottom: 18px; }
.product-info .card-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.product-info .price { font-size: 1.5rem; line-height: 1.3; white-space: normal; }
.product-card .detail-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: auto; min-height: 48px; padding: 12px 14px; border-radius: var(--radius); font-size: 1rem; color: var(--text); }
.product-card .detail-button:hover { color: var(--bg); }
.detail-label { display: inline; }

@media (max-width: 700px) {
  body { font-size: 1.0625rem; line-height: 1.6; }
  .header { gap: 10px; }
  .header .brand img { width: 48px; height: 48px; }
  .js .menu-toggle { width: 44px; height: 44px; }
  .js .menu-toggle > span { font-size: 1.3125rem; }
  .header .phone { font-size: 1rem; line-height: 1.4; }
  .header .phone span { display: none; }
  .header .cart-link { min-width: 44px; min-height: 44px; font-size: 0.875rem; justify-content: center; }
  .header .cart-link svg { width: 24px; height: 24px; }
  .header nav a { font-size: 1.0625rem; min-height: 48px; }

  .eyebrow, .section-head .eyebrow, .article-card .eyebrow,
  .contact-panel .eyebrow {
    font-size: 0.875rem;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: .04em;
  }
  .hero .intro, .page-heading .intro, .section-head > p,
  .about > div p, .contact-help p { font-size: 1.0625rem; line-height: 1.65; }
  .hero .intro br { display: none; }
  .hero { display: block; min-height: 0; padding-bottom: 24px; }
  .hero-copy { padding: 28px 0 18px; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(2.5rem, 11.3vw, 3.625rem); margin-bottom: 20px; }
  .hero .intro { max-width: 34ch; margin-bottom: 22px; }
  .hero .quick-link { margin-top: 8px; }
  .hero-photo { inset: 0 -20px 0 24%; opacity: .22; border-radius: 0; }
  .hero-caption, .hero-bottom { display: none; }
  .hero-categories { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-categories a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 0.9375rem; line-height: 1.4; }
  .hero-categories a:hover { border-color: var(--gold); }
  .hero-categories a span { color: var(--gold); }
  .photo-caption { font-size: 0.875rem; line-height: 1.5; max-width: 230px; }
  .hero-bottom { font-size: 0.875rem; letter-spacing: 0; }
  .hero-bottom > span { display: none; }
  .hero-bottom > a { min-height: 44px; display: flex; align-items: center; margin-left: auto; }
  .button, .purchase-actions .button, .article-aside .button,
  #quick-order-dialog .button, .empty-state .button {
    font-size: 1.0625rem;
    line-height: 1.4;
    min-height: 48px;
    padding: 14px 18px;
    gap: 16px;
  }
  .text-link, .section-head > .text-link, .quick-link {
    font-size: 1rem;
    line-height: 1.5;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 10px;
  }
  .hero .quick-link { padding-block: 10px; }
  .service-strip a { display: flex; gap: 7px; padding-block: 10px; }
  .service-strip a span { font-size: 0.875rem; }
  .service-strip strong { font-size: 1.125rem; line-height: 1.5; }
  .service-strip small { font-size: 0.9375rem; line-height: 1.6; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head > .text-link { flex-shrink: 1; }
  .category-tile > span:last-child { font-size: 1.0625rem; padding: 16px 12px; }
  .category-tile > span:last-child > span { flex-shrink: 0; }

  .breadcrumbs { font-size: 0.875rem; gap: 8px; line-height: 1.6; }
  .breadcrumbs a { min-height: 32px; display: inline-flex; align-items: center; }
  .breadcrumbs [aria-current=page] { align-self: center; }
  .category-tabs .filter, .filter { font-size: 1rem; line-height: 1.4; min-height: 48px; padding: 12px 15px; }
  .search input { font-size: 1.0625rem; min-height: 48px; }
  .filter-controls { flex-wrap: wrap; gap: 12px; }
  .filter-controls .check, .check { font-size: 1rem; min-height: 44px; line-height: 1.5; }
  .check input { width: 20px; height: 20px; }
  .sort select { font-size: 1rem; min-height: 48px; max-width: 100%; }
  .result-count { font-size: 0.875rem; line-height: 1.5; }
  .product-info { padding: 16px 12px; }
  .product-info h3 { font-size: 1.0625rem; line-height: 1.4; min-height: 0; }
  .availability, .weight, .product-info del { font-size: 0.875rem; line-height: 1.5; }
  .product-info .availability { margin-bottom: 14px; }
  .product-tag { font-size: 0.875rem; line-height: 1.35; max-width: calc(100% - 16px); top: 8px; left: 8px; padding: 7px 8px; }
  .product-info .card-bottom { gap: 12px; }
  .price { font-size: 1.5rem; line-height: 1.3; white-space: normal; }
  .product-card .detail-button { width: 100%; height: auto; min-height: 48px; display: flex; justify-content: space-between; padding: 10px; border-radius: var(--radius); font-size: 1rem; color: var(--text); }
  .product-card .detail-button:hover { color: var(--bg); }
  .detail-label { display: inline; }

  .muted, .empty-state p, .notice, .source-notes summary,
  .source-notes details > div { font-size: 1rem; line-height: 1.7; }
  .small-note, .modal-note { font-size: 0.9375rem; line-height: 1.7; }
  .article-card .text-link { font-size: 1rem; }
  .prose, .article-aside p:not(.eyebrow), .product-lead,
  .contact-panel p, .contact-info p { font-size: 1.0625rem; line-height: 1.75; }
  .article-text > p:first-child { font-size: 1.1875rem; }
  .prose h3, .prose h4 { font-size: 1.3125rem; line-height: 1.5; }
  .specs { font-size: 1rem; line-height: 1.7; }
  .specs dt { font-size: 0.875rem; }
  .specs dd { font-size: 1.0625rem; }
  .stock-status, .field-label, .modal-grid label { font-size: 1rem; line-height: 1.5; }
  .variant-select, .text-input, .modal-grid select { font-size: 1.0625rem; line-height: 1.5; min-height: 48px; }
  .gallery-main > span { font-size: 0.875rem; }
  .gallery-thumb { min-width: 64px; min-height: 64px; }
  .purchase-delivery span { font-size: 0.9375rem; line-height: 1.5; }
  .purchase-delivery b { font-size: 1rem; line-height: 1.5; }
  .purchase-price > span { font-size: 2.125rem; }
  .quantity, .cart-item .quantity { width: 144px; height: 48px; }
  .quantity button, .cart-item .quantity button { width: 44px; min-height: 44px; font-size: 1.3125rem; }
  .quantity input, .quantity-value { font-size: 1.125rem; }
  .cart-item-name { font-size: 1.125rem; line-height: 1.5; }
  .cart-item-info > p { font-size: 0.9375rem; line-height: 1.6; }
  .cart-line-total { font-size: 1.375rem; }
  .cart-item-controls { flex-wrap: wrap; gap: 12px; }
  .remove-item { font-size: 1rem; min-height: 44px; }
  .summary-row, .checkout-line { font-size: 1rem; line-height: 1.6; }
  .summary-row.total { font-size: 1.5rem; }
  .checkout-line { flex-wrap: wrap; gap: 6px 12px; }
  .checkout-layout legend { font-size: 1.25rem; }
  .delivery-options { font-size: 1.0625rem; }
  .delivery-options label { min-height: 44px; }
  .delivery-options input { width: 20px; height: 20px; }
  .order-preview > p, .order-preview pre, #quick-text { font-size: 1rem; line-height: 1.7; }
  .faq summary { font-size: 1.125rem; line-height: 1.5; }
  .faq summary span { font-size: 0.875rem; }
  .faq details > div { font-size: 1.0625rem; line-height: 1.7; }
  .delivery-facts span { font-size: 1rem; }
  .contact-info p span { font-size: 0.9375rem; }
  .socials { font-size: 1rem; line-height: 1.5; }
  .socials a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer p { font-size: 1rem; line-height: 1.7; }
  .site-footer nav h3 { font-size: 0.875rem; line-height: 1.5; }
  .site-footer nav a { font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
  .footer-bottom { font-size: 0.875rem; line-height: 1.6; }
  .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
  .toast { font-size: 1rem; line-height: 1.6; }
  .close { min-width: 44px; min-height: 44px; }
}

@media (max-width: 360px) {
  .hero-categories a { font-size: 0.875rem; padding-inline: 10px; }
  .hero-categories a span { display: none; }
  .header { gap: 10px; }
  .header .phone { order: 5; width: 100%; text-align: left; padding-top: 4px; }
  .header .cart-link { margin-left: auto; }
  .header #site-nav { order: 6; }
  .product-grid, .category-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product-image { aspect-ratio: 1.25; padding: 20px; }
  .category-image { aspect-ratio: 1.6; }
  .product-info { padding: 20px; }
  .product-info h3 { min-height: 0; margin-bottom: 12px; }
  .product-info .card-bottom { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .product-card .detail-button { width: auto; min-width: 116px; padding-inline: 10px; gap: 8px; }
  .category-tile > span:last-child { font-size: 1rem; padding-inline: 10px; flex-wrap: wrap; }
  .filter-controls { align-items: stretch; flex-direction: column; width: 100%; }
  .sort select { width: 100%; }
  .purchase-actions { flex-wrap: wrap; }
  .purchase-actions .button { flex-basis: 100%; }
  .summary-row.total { font-size: 1.375rem; }
}

@media (max-width: 700px) {
  .hero-photo { border-radius: var(--radius); }
  .header .phone, .footer-contact-inner > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .source-notes summary { min-height: 48px; display: flex; align-items: center; }
}

@media(max-width:700px){.hero-caption{right:16px;bottom:100px;max-width:220px;font-size:1rem;line-height:1.6}.text-input{resize:vertical}}

/* Reflow narrow cards according to text size as well as viewport size. */
@media (max-width: 43.75em) {
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
  .hero-categories { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
  .header .phone { flex-shrink: 1; }
}

/* Let controls grow with larger text instead of clipping their labels. */
.header .cart-link, .js .menu-toggle { flex-shrink: 0; }
.quantity, .cart-item .quantity { min-height: 3rem; height: auto; }
.quantity button, .cart-item .quantity button { min-height: 3rem; }
.quantity input { min-width: 0; }
.purchase-actions .button { flex: 1 1 10rem; }
.product-purchase .purchase-price { flex-wrap: wrap; }
@media (max-width: 43.75em) {
  .hero-categories a { overflow-wrap: anywhere; }
  .header .phone { margin-left: auto; flex: 1 1 10rem; }
  .filter-controls, .catalog-tools { flex-wrap: wrap; }
  .filter-controls .sort { max-width: 100%; }
  .cart-item-controls { flex-wrap: wrap; }
  .summary-row { flex-wrap: wrap; }
  .hero h1 { overflow-wrap: normal; }
}
.footer-contact-inner > a { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .header .cart-link { order: 3; margin-left: auto; }
  .header .phone { order: 4; flex: 0 1 auto; }
}
.quantity, .cart-item .quantity { width: min(100%, 9rem); }
.quantity button, .cart-item .quantity button { flex: 1 1 2.75rem; min-width: 44px; width: auto; }
.quantity input, .quantity-value { min-width: 2ch; }

/* Delivery amounts must wrap when user text size outgrows a narrow phone. */
@media (max-width: 43.75em) {
  .delivery-facts > div { min-width: 0; flex-wrap: wrap; gap: 6px 16px; }
  .delivery-facts strong { white-space: normal; }
}
