/* Shared interface rules. Loaded after page-specific and legacy styles. */
:root {
  --ui-ink: #142c49;
  --ui-copy: #42536a;
  --ui-line: #ccd6e2;
  --ui-red: #bd1734;
}
body { line-height: 1.6; }
html { scrollbar-gutter: stable; background-color: #dce7f2; }

/* Quiet navigation: native document load, with a small local entrance only. */
@view-transition { navigation: none; }
.reveal, .reveal.show { opacity: 1 !important; transform: none !important; transition: none !important; }
.hero, .section, .card { animation: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .hero, .legal-hero { animation: hero-settle 330ms cubic-bezier(.215, .61, .355, 1) both !important; }
}
@keyframes hero-settle {
  from { opacity: .94; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .legal-hero { animation: none !important; }
}
main, section, article, .hero-inner > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
/* Keep scrolling content in opaque surfaces, without backdrop-compositing seams. */
.hero, .section, .legal-hero, .legal-content {
  background-color: #f7f9fc !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.hero::before, .section::before { content: none !important; }
.hero h1 { font-size: clamp(30px, 4.1vw, 54px) !important; line-height: 1.1 !important; text-wrap: balance; }
.section h2, .box h2 { font-size: clamp(25px, 2.6vw, 35px) !important; line-height: 1.2 !important; text-wrap: balance; }
.section h3 { line-height: 1.3; }
.hero .lead, .hero > p, .section-head p { max-width: 68ch; color: var(--ui-copy); }
.hero .kicker, .section .kicker {
  max-width: 100%; width: fit-content; white-space: normal;
  background: #e9eff6 !important; color: #23486f !important;
  border: 1px solid #d8e2ed !important; box-shadow: none !important;
  font-size: 11px !important; line-height: 1.5; letter-spacing: .06em !important;
  padding: 7px 11px !important;
}
.btn, .btn-main, .btn-ghost, .btn-tg {
  min-height: 48px !important; border-radius: 14px !important;
  font-size: 16px; line-height: 1.4; text-align: center;
  white-space: normal; transition: background-color .18s, box-shadow .18s !important;
}
.btn-red, .btn-main, .box .btn-main {
  background: #bd1734 !important; color: #fff !important;
  box-shadow: 0 7px 18px #bd173420 !important;
}
.btn-navy, .btn-ghost, .box .btn-ghost {
  background: #fff !important; color: #1b365d !important;
  border: 1px solid #b9c9dc !important; box-shadow: none !important;
}
.btn-tg, .box .btn-tg { background: #15547a !important; color: #fff !important; }
.btn:hover, .btn-main:hover, .btn-ghost:hover, .btn-tg:hover {
  transform: none !important; filter: none !important; box-shadow: 0 4px 15px #142c491a !important;
}
.btn::before { display: none !important; }
.btn-red:hover, .btn-main:hover { background: #a5122b !important; }
.btn-navy:hover, .btn-ghost:hover { background: #edf3f9 !important; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #176fbc !important; outline-offset: 3px !important;
}
button:disabled { cursor: default; }
.flow-btn:disabled { opacity: .4; box-shadow: none !important; }
.flow-slide { opacity: 1; filter: none; transform: none; transition: box-shadow .2s !important; }
.flow-slide.is-active { box-shadow: 0 7px 20px #142c4914 !important; }
.topbar { background: #f7faff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.topbar .header-social, .topbar .mobile-menu-toggle { min-width: 44px !important; min-height: 44px !important; }
.topbar .brand { min-width: 0; text-decoration: none; }
.topbar .brand > span { white-space: nowrap; }
.topbar .nav a { white-space: nowrap; }
.topbar .nav a[aria-current], .mobile-menu-panel a[aria-current] { background: #bd1734 !important; color: #fff !important; border-color: #bd1734 !important; }
@media (min-width: 901px) and (max-width: 1200px) {
  .topbar { gap: 10px !important; padding: 12px !important; }
  .topbar .brand { gap: 6px !important; flex-shrink: 0; }
  .topbar .brand > span { font-size: 18px !important; letter-spacing: .06em !important; }
  .topbar .brand img { width: 40px !important; height: 40px !important; min-width: 40px !important; }
  .topbar .nav { gap: 5px !important; flex-shrink: 1; min-width: 0; }
  .topbar .nav a { padding: 8px !important; font-size: 12px !important; }
  .topbar .header-actions { gap: 6px !important; flex-shrink: 0; }
  .topbar .header-phone { padding-inline: 10px !important; }
  .topbar .header-phone span { font-size: 12px !important; }
  .topbar .header-social { width: 44px !important; height: 44px !important; }
}
.product-detail .product-visual img { height: min(52vw, 420px) !important; object-fit: contain !important; }
.product-detail .product-visual { background: #f1f5f9; }
.product-detail .hero > .row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.product-detail .hero .btn-tg { background: #fff !important; color: #1b365d !important; border: 1px solid #b9c9dc !important; box-shadow: none !important; }
@media (max-width: 600px) {
  .product-detail .hero > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail .hero > .row > .btn { min-width: 0; padding-inline: 10px; }
  .product-detail .hero > .row > .btn:first-child { grid-column: 1 / -1; }
}
.contact-dialog {
  width: min(420px, calc(100% - 32px)); padding: 28px; border: 1px solid #ccd6e2;
  border-radius: 20px; background: #fff; color: #142c49; box-shadow: 0 20px 70px #0003;
}
.contact-dialog::backdrop { background: #142c4980; }
.contact-dialog h2 { margin: 0 24px 12px 0; font-size: 24px; line-height: 1.3; }
.contact-dialog p { color: #42536a; }
.contact-dialog__number { display: block; margin: 18px 0; font-size: 24px; }
.contact-dialog > .btn { display: inline-flex; padding: 12px 20px; align-items: center; justify-content: center; text-decoration: none; }
.contact-dialog__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #edf3f9; color: #142c49; font-size: 28px; cursor: pointer; }
.main-home .hero .hero-photo { min-height: 320px; }
@media (min-width: 961px) {
  .main-home .hero-inner { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 28px; }
  .main-home .hero h1 { font-size: clamp(36px, 3.6vw, 48px) !important; line-height: 1.12 !important; }
}
.main-home .hero .hero-photo img { transform: none !important; }
.main-home .offer-card:first-child .offer-photo img { object-fit: cover; object-position: center 48%; padding: 0; }
.main-home .offer-copy h3 { min-height: 2.6em; }
.main-home .offer-copy .offer-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.main-home .offer-card { box-shadow: 0 5px 20px #142c4908; }
.main-home .advantage-card .adv-item { grid-template-columns: minmax(0, 1fr) !important; padding: 16px !important; }
.main-home .advantage-card .adv-item > div { min-width: 0; }
.main-home .advantage-card .adv-item p { margin: 7px 0 0; }
.main-home .process-card .proof-video { margin: 20px 0 0 !important; height: auto !important; aspect-ratio: 16/10; }
.main-home .process-gallery-action { margin: 16px 0 0 !important; }
.main-home .process-card h2 { max-width: 18ch; }
.main-home .shipment-grid img { object-position: center; }
.landscape-section .landscape-grid article { background: #fff; border-radius: 18px; display: flex; flex-direction: column; }
.landscape-section .landscape-grid article > strong { color: var(--ui-ink); font-size: 22px; margin-top: auto; }
.landscape-section .landscape-grid article > .actions { margin-top: auto; padding-top: 16px; }
.landscape-section .landscape-grid article p { color: var(--ui-copy); }
.landscape-section > h2 { margin-bottom: 16px; }
.landscape-section > h3 { margin: 28px 0 16px; }
.landscape-section .landscape-grid article > img + h3 { margin-top: 16px; }
.landscape-section .landscape-grid + p { margin-top: 20px; }
.landscape-section .landscape-grid img { height: auto; aspect-ratio: 4/3; }
.landscape-section .landscape-grid > a { display: block; min-width: 0; }
.landscape-section .landscape-grid article .btn { min-width: 0; }
.landscape-section .landscape-grid .material-product-image { height: 220px; object-fit: contain; background: #f1f5f9; }
.landscape-intro .hero-inner > div > p { max-width: 60ch; font-size: 18px; }
.landscape-jump-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; }
.landscape-jump-links a { color: #23486f; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
#seo-directions .actions { gap: 8px 18px; }
#seo-directions .actions .btn {
  background: transparent !important; box-shadow: none !important; border: 0 !important;
  min-width: 0; min-height: 44px !important; padding: 6px 0 !important;
  border-radius: 0 !important; text-decoration: underline; text-underline-offset: 4px; font-weight: 600 !important;
}
.product-page .product-panel, .product-page .product-hero-photo { border-radius: 18px; }
.products .product { height: 100%; }
.products .product > .btn { margin: 0 20px 20px; }
.products .product-price { margin-top: auto; }
.field { min-height: 48px; border-radius: 12px !important; }
.field:user-invalid { border-color: #a01e34 !important; background: #fff7f8 !important; }
.field-label { color: var(--ui-ink); }
.field-error { display: block; margin: 6px 0 0; color: #a01e34; font-size: 13px; line-height: 1.5; }
.field-error[hidden] { display: none !important; }
[aria-invalid="true"].field { border-color: #a01e34 !important; }
.form-status { border: 1px solid #ccd6e2; border-left: 4px solid #23486f; }
.form-status[data-state="error"] { border-color: #dca7ae; border-left-color: #a01e34; }
.form-status[data-state="success"] { border-color: #a4c9ad; border-left-color: #27613a; }
.lead-product-context { font-size: 15px; line-height: 1.6; border-radius: 12px; }
.site-legal { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; }
.site-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.product-title-trigger { display: inline; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent !important; color: inherit !important; box-shadow: none; font: inherit; text-align: left; line-height: inherit; cursor: pointer; }
.product-title-trigger:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-title-trigger:focus-visible { outline: 3px solid #315f94; outline-offset: 4px; }

/* Proof points are supporting text, visually separate from controls. */
.main-home .hero .badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.main-home .hero .badge { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 0 !important; min-height: 0 !important; border: 0; border-radius: 0; background: transparent !important; color: #23405f !important; box-shadow: none; font-size: 14px; font-weight: 500; line-height: 1.5; }
.main-home .hero .badge::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #bc1739; }

/* Keep catalogue navigation concise while preserving full labels and tap areas. */
nav[aria-label="Разделы каталога"].section.actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-top: 16px; padding: 14px 18px;
}
nav[aria-label="Разделы каталога"] .btn {
  min-width: 0; width: auto; min-height: 48px !important; padding: 10px 14px;
}

/* Documents keep their actual proportions; never reserve the source pixel height. */
.document-gallery .document-card img { display: block; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none; aspect-ratio: 689 / 919 !important; object-fit: contain; }
.document-gallery .document-card a { display: block; height: auto; min-height: 0; }
.document-gallery .document-card figcaption { margin: 0; padding: 12px 16px; }
.document-card .document-caption-text { display: block; margin-top: 6px; color: #475569; font-size: 15px; font-weight: 400; line-height: 1.5; }
.document-card .document-caption-hint { display: block; margin-top: 8px; color: #475569; font-size: 13px; font-weight: 400; line-height: 1.5; }
.status-page { margin: 0; }
.status-page .wrap { max-width: 1120px; margin: 0 auto; padding: 22px 18px 70px; }
.status-page .topbar {
  display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between;
  position: relative; top: 0; gap: 16px !important; padding: 14px 18px;
  border: 1px solid #dce3ed; border-radius: 18px;
}
.status-page .topbar .brand { display: flex; align-items: center; flex-wrap: nowrap !important; gap: 8px; text-decoration: none; }
.status-page .topbar .nav { display: flex !important; flex-wrap: wrap !important; gap: 8px; overflow: visible; margin: 0; }
.status-page .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid #ccd6e2; border-radius: 999px; text-decoration: none; }
.status-page .hero { margin-top: 24px; border: 1px solid #dce3ed; border-radius: 26px; background: linear-gradient(145deg, #fff, #f1f4f8) !important; box-shadow: 0 12px 34px #142c4914; }
.status-page .hero h1 { max-width: 22ch; margin: 20px 0; }
.status-page .hero p { max-width: 65ch; }
.status-page .hero .badge { display: inline-flex; padding: 6px 11px; border-radius: 999px; background: #e9eff6 !important; color: #23486f !important; font-size: 12px; font-weight: 700; }
.status-page .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.status-page .btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; text-decoration: none; }
@media (max-width: 800px) {
  .main-home .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .main-home .offer-copy h3 { min-height: 0; }
  .main-home .offer-photo { height: 220px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(29px, 7.5vw, 38px) !important; }
  .hero .lead, .hero > p { font-size: 17px !important; line-height: 1.6 !important; }
  .main-home .hero .hero-photo { min-height: 200px !important; }
  .main-home .hero .badges { gap: 8px; margin-top: 18px; }
  .main-home .hero .badge { min-height: 0 !important; padding: 0 !important; }
  nav[aria-label="Разделы каталога"].section.actions { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; }
  nav[aria-label="Разделы каталога"] .btn { font-size: 14px; min-height: 44px !important; padding: 9px 12px; }
  .topbar .brand img { width: 36px !important; min-width: 36px !important; max-width: 36px !important; height: 36px !important; flex: 0 0 36px !important; }
  .topbar .brand { gap: 6px !important; flex-wrap: nowrap !important; }
  .topbar .brand > span { font-size: 17px !important; letter-spacing: .07em !important; }
  .topbar { gap: 6px !important; padding: 8px 12px !important; }
  .topbar .header-actions { margin-top: 2px !important; gap: 10px !important; }
  .topbar .header-phone { min-height: 44px !important; padding-inline: 12px !important; }
  .topbar .header-phone span { font-size: 12px !important; }
  .main-home .offer-grid { gap: 20px; }
  .main-home .offer-copy { padding: 20px; }
  .main-home .offer-copy h3 { font-size: 24px; }
  .main-home .offer-copy .offer-price { font-size: 20px; }
  .main-home .shipment-grid img { height: auto; aspect-ratio: 4/3; }
  .landscape-photo-grid { gap: 10px; }
  .site-legal > span { display: none; }
}
@media (max-width: 360px) {
  .topbar .brand > span { font-size: 15px !important; letter-spacing: .035em !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .flow-slide { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Review fix: keep fractions readable and get mobile shoppers to the products sooner. */
.product-title-trigger .product-fraction { white-space: nowrap; }
@media (max-width: 700px) {
  .catalog-page .hero { padding: 18px !important; }
  .catalog-page .hero .kicker, .catalog-page #catalog .section-head .kicker { display: none !important; }
  .catalog-page .hero h1 { font-size: 26px !important; text-wrap: wrap !important; line-height: 1.12 !important; margin-block: 10px !important; }
  .catalog-page .hero .lead { font-size: 15px !important; line-height: 1.45 !important; margin-bottom: 0 !important; }
  .catalog-page .hero-photo, .catalog-page .hero .actions { display: none !important; }
  .catalog-page nav[aria-label="Разделы каталога"] { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; padding: 12px !important; }
  .catalog-page nav[aria-label="Разделы каталога"] .btn { min-width: 0; padding: 10px 8px !important; font-size: 13px !important; }
  .catalog-page #catalog { padding: 18px !important; }
  .catalog-page #catalog .section-head { margin-bottom: 16px !important; }
  .catalog-page #catalog .section-head p { font-size: 14px !important; line-height: 1.5 !important; margin-block: 8px !important; }
}

/* Price pages use the same mobile header spacing as the catalogue. */
body.price-page { margin: 0; }
@media (max-width: 700px) {
  .price-page .topbar { padding: 8px 12px !important; gap: 6px !important; }
}
