html { min-height: 100%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 20px;
  background: #fff;
  color: #666;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 18px;
}
a { color: #9a0000; text-decoration: underline; }
a:hover { color: #666; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.site-shell { width: 1024px; max-width: calc(100% - 40px); margin: 0 auto; }

.site-header { height: 90px; background: #fff; }
.header-inner { height: 100%; display: grid; grid-template-columns: 250px 380px 250px; gap: 72px; align-items: center; padding: 0; }
.header-phone { width: 250px; display: grid; gap: 0; justify-self: start; margin: 0; }
.header-phone a { display: grid; grid-template-columns: 20px auto; align-items: center; gap: 8px; color: #1d2e3e; text-decoration: none; white-space: nowrap; }
.header-phone strong { color: #1d2e3e; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 18px; line-height: 24px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.header-phone span { color: #676767; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; font-weight: 400; }
.header-phone img { width: 18px; height: 18px; }
.site-logo { width: 380px; justify-self: center; }
.site-logo img { width: 100%; display: block; }
.header-contacts { width: 250px; display: grid; gap: 6px; justify-self: end; margin: 0; color: #505050; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; font-weight: 600; }
.header-contacts > span, .header-contacts > a { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: center; color: #505050; text-decoration: none; }
.address-copy { display: grid; gap: 0; }
.address-copy span { display: block; white-space: nowrap; }
.header-contacts img { width: 18px; margin: 0; }

.navigation-wrap { position: relative; z-index: 5; height: 246px; margin-top: 0; margin-bottom: 10px; }
.menu-toggle { display: none; }
.top-nav { min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; overflow: visible; background: #a90000; border-radius: 6px; }
.top-nav a { display: flex; align-items: center; min-height: 34px; padding: 0 7px; color: #fff; font-size: 12px; line-height: 16px; text-decoration: none; white-space: nowrap; }
.top-nav a:not(:last-child)::after { content: "•"; position: relative; left: 8px; color: #fff; }
.top-nav a.active, .top-nav a:hover { background: #008dcc; border-radius: 5px; }
.top-nav a.active::after, .top-nav a:hover::after { color: #fff; }
.hero-slider { position: relative; width: 1024px; height: 171px; margin-top: 24px; overflow: hidden; border-radius: 6px; background: #e8e8e8; }
.hero-slider-track, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 1024px; height: 171px; display: block; object-fit: cover; }
.slider-arrow { position: absolute; z-index: 3; top: 50%; width: 35px; height: 35px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.48); color: #fff; font: 30px/1 Georgia, serif; cursor: pointer; opacity: 0; transform: translateY(-50%); transition: opacity .2s, background .2s; }
.hero-slider:hover .slider-arrow, .slider-arrow:focus { opacity: 1; }
.slider-arrow:hover { background: #9a0000; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { position: absolute; z-index: 3; left: 50%; bottom: 8px; display: flex; gap: 6px; transform: translateX(-50%); }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(0,0,0,.35); cursor: pointer; }
.slider-dots button.is-active { background: #a90000; }
.callback-button { position: fixed; z-index: 20; right: 48px; bottom: 33px; width: 140px; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: #a6e3f9; color: #050505; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.16); transition: transform .2s, box-shadow .2s; }
.callback-button:hover, .callback-button:focus-visible { color: #050505; transform: translateY(-3px); box-shadow: 0 7px 20px rgba(0,0,0,.22); }
.callback-button:focus-visible { outline: 3px solid #9a0000; outline-offset: 3px; }
.callback-icon { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callback-button span { font: 700 21px/1 Arial, sans-serif; text-transform: uppercase; }

h1, h2, h3 { margin-top: 0; }
h1 { margin-bottom: 20px; color: #9a0000; font-size: 24px; line-height: 29px; font-weight: 700; text-align: center; text-transform: uppercase; }
h2 { color: #0088cc; font-size: 16px; line-height: 22px; font-weight: 700; text-transform: uppercase; }
.textured-box { background: #f4f4f3 url('../images/bg.jpg') repeat; border-radius: 6px; }
.home-catalog { min-height: 375px; margin-bottom: 37px; padding: 17px 0 39px; text-align: center; }
.home-catalog h1 { margin: 0 15px 17px; }
.home-catalog h2 { margin: 0 12px; padding: 0; color: #565656; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 20px; }
.home-products { width: 900px; max-width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); margin: 31px auto 0; }
.home-products a { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; color: #a91414; font-size: 13px; line-height: 17px; }
.product-image { width: 145px; height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.home-products img { max-width: 135px; max-height: 104px; display: block; margin: 0 auto 17px; object-fit: contain; }
.home-about { margin: 0 10px 52px; color: #666; font-size: 14px; line-height: 18px; }
.home-about p { margin: 0 0 8px; }

.home-gallery { margin-bottom: 40px; padding: 24px 28px 29px; }
.gallery-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.gallery-header h2 { margin: 0; padding: 0; color: #9a0000; font-size: 25px; line-height: 30px; }
.gallery-controls { display: flex; gap: 6px; }
.gallery-controls button { width: 34px; height: 30px; padding: 0; border: 1px solid #aaa; background: #fff; color: #9a0000; font: 24px/1 Georgia, serif; cursor: pointer; }
.gallery-controls button:hover { background: #9a0000; color: #fff; }
.gallery-viewport { overflow: hidden; }
.gallery-track { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x mandatory; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 calc((100% - 42px) / 4); height: 178px; padding: 0; overflow: hidden; border: 1px solid #aaa; background: #ddd; cursor: zoom-in; scroll-snap-align: start; }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; grid-template-columns: 70px minmax(0, 1100px) 70px; align-items: center; justify-content: center; padding: 45px; background: rgba(0,0,0,.9); }
.gallery-lightbox img { max-width: 100%; max-height: calc(100vh - 90px); justify-self: center; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.gallery-lightbox button { width: 54px; height: 54px; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font: 36px/1 Georgia, serif; cursor: pointer; }
.lightbox-close { position: absolute; top: 20px; right: 22px; }

.news-section { min-height: 378px; margin-bottom: 30px; padding: 28px 30px 45px; }
.news-section > h2, .reviews-section > h2 { margin: 0 0 25px; padding: 0; color: #9a0000; font-size: 25px; line-height: 30px; text-align: center; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; }
.news-grid article img { width: 100%; height: 112px; display: block; object-fit: cover; border: 1px solid #a9a9a9; }
.news-cover { display: block; width: 100%; height: auto; margin-bottom: 20px; }
.navigation-wrap:not(:has(.hero-slider)) { height: auto; margin-bottom: 24px; }
.header-address:hover .address-copy { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .gallery-track { scroll-behavior: auto; }
}
.news-grid h3 { margin: 12px 0 3px; font-size: 16px; line-height: 18px; }
.news-grid h3 a { color: #111; text-decoration: none; }
.news-grid time { color: #b50000; font-size: 13px; font-style: italic; font-weight: 700; }
.news-grid p { margin: 6px 0 0; color: #555; line-height: 17px; }
.advantages-section { width: 100%; margin: 0 0 40px; }
.advantages-mobile { display: block; padding: 25px 20px 21px; border: 1px solid #aaa; }
.advantages-mobile h2 { margin: 0 0 18px; color: #9a0000; font-size: 25px; line-height: 30px; text-align: center; }
.advantages-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.advantages-grid article { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.advantages-grid strong { color: #aaa; font-size: 50px; line-height: 52px; }
.advantages-grid span { font-size: 13px; line-height: 16px; }
.reviews-section { min-height: 354px; margin-bottom: 40px; padding: 20px 20px 35px; text-align: center; }
.reviews-section > h2 { margin-bottom: 20px; }
.reviews-grid { display: flex; align-items: flex-start; justify-content: center; gap: 28px; }
.reviews-grid a { display: block; }
.reviews-grid img { width: auto; height: 248px; display: block; border: 1px solid #b3b3b3; }

.inner-main { margin-top: 0; }
.inner-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 34px; align-items: start; margin-bottom: 60px; }
.product-sidebar { display: grid; padding: 7px 20px 13px; background: #f4f4f3 url('../images/bg.jpg') repeat; border-radius: 6px; }
.product-sidebar a { min-height: 62px; display: grid; grid-template-columns: 66px 1fr; gap: 10px; align-items: center; color: #a00000; font-size: 14px; line-height: 16px; text-decoration: none; }
.product-sidebar a:hover { color: #4f88b3; }
.product-sidebar span { width: 66px; height: 55px; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
.product-sidebar img { width: 62px; height: 50px; object-fit: contain; }
.page-content { color: #666; font-size: 14px; line-height: 18px; }
.page-content h1 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #eee; text-align: left; font-size: 20px; line-height: 24px; }
.page-content h2 { margin: 20px 0 10px; padding: 10px 0 0; }
.page-content h3 { color: #b03e3b; }
.page-content p { margin: 0 0 10px; }
.page-content strong { color: #1d2e3e; }
.page-content ol { margin: 4px 0 11px 25px; padding: 0; }
.page-content li { margin-bottom: 9px; padding-left: 4px; }
.offer-note { margin-top: 40px !important; font-style: italic; }
.price-table { width: 100%; border-collapse: collapse; color: #666; font-size: 13px; text-align: center; }
.price-table th { padding: 7px 9px; background: #088fd0; color: #fff; font-weight: 700; line-height: 15px; }
.price-table td { height: 31px; padding: 5px 9px; border: 1px solid #078fd0; }
.table-scroll { width: 100%; overflow-x: auto; }
.contact-map { width: 100%; height: 410px; border: 0; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.photo-gallery a { display: block; overflow: hidden; border: 1px solid #ccc; }
.photo-gallery img { width: 100%; height: 220px; display: block; object-fit: cover; }
.news-single time { display: block; margin-bottom: 12px; color: #b50000; font-size: 13px; font-style: italic; font-weight: 700; }

.site-footer { padding-bottom: 19px; }
.footer-nav { min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 15px; border-top: 1px solid #777; border-bottom: 1px solid #777; }
.footer-nav a { color: #555; font-size: 12px; text-decoration: none; white-space: nowrap; }
.footer-nav i { color: #a00000; font-style: normal; }
.footer-info { display: grid; grid-template-columns: 1.45fr .9fr 1.1fr 1fr .7fr; gap: 35px; align-items: center; padding-top: 34px; color: #777; font-size: 11px; line-height: 16px; }
.footer-info > div, .footer-info > a { display: flex; align-items: center; gap: 13px; color: #777; text-decoration: none; }
.footer-info img { width: 24px; flex: 0 0 24px; }
.footer-info .creator { display: grid; gap: 0; }
.creator strong { color: #111; font-family: Georgia, serif; font-size: 16px; }
.creator span { white-space: nowrap; }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: minmax(160px, 1fr) minmax(300px, 350px) minmax(180px, 1fr); gap: 16px; }
  .header-phone, .header-contacts { width: 100%; }
  .header-phone strong { font-size: 16px; }
  .header-contacts { font-size: 11px; line-height: 14px; }
  .site-logo { width: 100%; }
  .top-nav a { padding: 0 6px; font-size: 11px; }
  .top-nav a:not(:last-child)::after { left: 7px; }
  .navigation-wrap { height: auto; }
  .top-nav { flex-wrap: wrap; }
  .hero-slider { width: 100%; height: auto; aspect-ratio: 1024 / 171; }
  .hero-slide img { width: 100%; height: 100%; }
  .footer-nav { flex-wrap: wrap; }
  .callback-button { right: 30px; }
}

@media (max-width: 768px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { padding: 12px; font-size: 14px; line-height: 21px; }
  .site-shell { width: 100%; max-width: none; margin: 0; }

  .site-header { height: auto; }
  .header-inner { height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "logo logo" "phone phone" "contacts contacts"; gap: 11px 18px; padding: 2px 0 12px; }
  .site-logo { position: static; grid-area: logo; width: min(290px, 82vw); justify-self: center; transform: none; }
  .header-phone { position: static; grid-area: phone; width: 100%; gap: 5px; margin: 0; align-self: start; }
  .header-phone a { grid-template-columns: 16px minmax(0, 1fr); gap: 6px; }
  .header-phone strong { font-size: 18px; line-height: 26px; }
  .header-phone span { font-size: 10px; line-height: 15px; }
  .header-phone img { width: 16px; height: 16px; }
  .header-contacts { position: static; grid-area: contacts; width: 100%; gap: 5px; margin: 0; font-size: 10px; line-height: 13px; align-self: start; }
  .header-contacts > span, .header-contacts > a { grid-template-columns: 16px minmax(0, 1fr); gap: 6px; align-items: start; }
  .header-contacts img { width: 16px; }

  .navigation-wrap { width: 100%; height: auto; margin: 0 0 20px; padding: 0; }
  .menu-toggle { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border: 0; border-radius: 6px; background: #a90000; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
  .menu-icon { font-size: 21px; line-height: 1; }
  .top-nav { width: 100%; min-height: 0; display: none; margin-top: 6px; padding: 5px; border-radius: 6px; }
  .top-nav.is-open { display: grid; }
  .top-nav a { position: relative; min-height: 40px; display: flex; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 12px; line-height: 15px; white-space: normal; }
  .top-nav a:last-child { border-bottom: 0; }
  .top-nav a:not(:last-child)::after { content: none; }
  .top-nav a.active { border-radius: 4px; }
  .hero-slider { width: 100%; height: 96px; margin-top: 12px; border-radius: 6px; }
  .hero-slide img { width: 100%; height: 96px; object-fit: cover; }
  .slider-arrow { width: 30px; height: 30px; font-size: 24px; opacity: .72; }
  .slider-prev { left: 7px; }
  .slider-next { right: 7px; }
  .slider-dots { bottom: 5px; }
  .slider-dots button { width: 7px; height: 7px; }

  .callback-button { right: 14px; bottom: 14px; width: 78px; height: 78px; gap: 3px; }
  .callback-icon { width: 42px; height: 42px; stroke-width: 1.8; }
  .callback-button span { font-size: 12px; }
  h1 { font-size: 22px; line-height: 26px; }

  .home-main { width: 100%; }
  .home-catalog { min-height: 0; margin-bottom: 22px; padding: 22px 12px 24px; }
  .home-catalog h1 { margin: 0 0 14px; font-size: 21px; line-height: 25px; }
  .home-catalog h2 { margin: 0; font-size: 13px; line-height: 18px; }
  .home-products { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
  .home-products a { min-height: 154px; justify-content: center; padding: 10px 5px; border: 1px solid rgba(154,0,0,.12); border-radius: 6px; background: rgba(255,255,255,.62); font-size: 12px; line-height: 15px; text-decoration: none; }
  .home-products a:last-child { width: calc(50% - 5px); grid-column: 1 / -1; justify-self: center; }
  .product-image { width: 100%; height: 96px; align-items: center; }
  .home-products img { max-width: 105px; max-height: 86px; margin: 0 auto 9px; }
  .home-about { min-height: 0; margin: 0 4px 25px; font-size: 14px; line-height: 21px; }
  .home-about p { margin-bottom: 10px; }

  .home-gallery { width: 100%; margin-bottom: 22px; padding: 19px 14px 20px; }
  .gallery-header { margin-bottom: 13px; }
  .gallery-header h2 { font-size: 21px; line-height: 26px; }
  .gallery-controls button { width: 36px; height: 34px; }
  .gallery-track { gap: 10px; }
  .gallery-item { flex-basis: 86%; height: 210px; }
  .gallery-lightbox { grid-template-columns: 38px minmax(0, 1fr) 38px; padding: 24px 4px; }
  .gallery-lightbox button { width: 36px; height: 36px; font-size: 26px; }
  .lightbox-close { top: 12px; right: 12px; }

  .news-section { width: 100%; min-height: 0; margin-bottom: 22px; padding: 21px 15px 25px; }
  .news-section > h2, .reviews-section > h2 { margin-bottom: 18px; font-size: 21px; line-height: 26px; }
  .news-grid { grid-template-columns: 1fr; gap: 24px; }
  .news-grid article img { width: 100%; height: auto; aspect-ratio: 2.46 / 1; object-fit: cover; }
  .news-grid h3 { margin-top: 9px; font-size: 15px; line-height: 19px; }
  .news-grid p { font-size: 13px; line-height: 18px; }

  .advantages-section { width: 100%; margin-bottom: 22px; }
  .advantages-desktop { display: none; }
  .advantages-mobile { display: block; padding: 20px 12px 16px; }
  .advantages-mobile h2 { margin: 0 0 15px; color: #9a0000; font-size: 21px; line-height: 26px; text-align: center; }
  .advantages-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .advantages-grid article { min-height: 105px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 9px 6px; border: 1px solid #d4d4d4; border-radius: 6px; background: rgba(255,255,255,.68); text-align: center; }
  .advantages-grid article:last-child { grid-column: 1 / -1; }
  .advantages-grid strong { color: #aaa; font-size: 36px; line-height: 38px; }
  .advantages-grid span { font-size: 11px; line-height: 14px; }

  .reviews-section { width: 100%; min-height: 0; margin-bottom: 24px; padding: 20px 13px 22px; }
  .reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .reviews-grid img { width: 100%; height: auto; }

  .inner-main { width: 100%; margin-top: 0; }
  .inner-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 28px; }
  .product-sidebar { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 9px; }
  .product-sidebar a { min-width: 0; min-height: 68px; grid-template-columns: 46px minmax(0, 1fr); gap: 5px; padding: 3px; font-size: 11px; line-height: 14px; }
  .product-sidebar span { width: 46px; height: 48px; }
  .product-sidebar img { width: 44px; height: 44px; }
  .page-content { min-width: 0; font-size: 14px; line-height: 21px; }
  .page-content h1 { font-size: 21px; line-height: 25px; }
  .page-content ol { margin-left: 20px; }
  .table-scroll { border: 1px solid #ddd; }
  .price-table { min-width: 680px; }
  .contact-map { height: 300px; }
  .photo-gallery { grid-template-columns: 1fr; }
  .photo-gallery img { height: auto; }

  .site-footer { width: 100%; padding-bottom: 90px; }
  .footer-nav { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 12px 4px; }
  .footer-nav i { display: none; }
  .footer-nav a { padding: 6px 0; font-size: 10px; line-height: 13px; white-space: normal; }
  .footer-info { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 18px 4px 0; font-size: 10px; line-height: 14px; }
  .footer-info > div, .footer-info > a { align-items: flex-start; gap: 7px; min-width: 0; }
  .footer-info img { width: 19px; flex-basis: 19px; }
  .footer-info .creator { grid-column: 1 / -1; }
  .creator strong { font-size: 13px; }
}

@media (max-width: 350px) {
  .header-inner { grid-template-areas: "logo logo" "phone phone" "contacts contacts"; gap: 8px; }
  .site-logo { width: min(260px, 88vw); }
  .header-phone { grid-template-columns: 1fr; gap: 7px; }
  .header-phone strong { font-size: 18px; }
  .header-phone span { font-size: 9px; }
  .header-contacts { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 8px; }
}
