/* style.css — основной стиль */
:root{
  --container: 1200px;
  --accent: #0c2d57;
  --muted: #6b7280;
  --bg: #f8fafc;
  --card: #ffffff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color:#222;
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
li.nav-item.has-children.submenu-open:focus-visible {
    outline: none;
}
h1 {
    font-size: 1.5em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
/* Utility container */
.container {
    width: calc(100% - 40px);
    max-width: 1600px;
    margin: 0 auto;
}
  .container { max-width: 1200px; margin: 30px auto; padding: 0 20px; box-sizing: border-box; }
h1 {
    font-size: 1.5em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
/* container */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 99999;
}
section.seo-text.container h2 {
    text-align: center;
}
section.info.container h3 {
    text-align: center;
}
.info-grid img {
    width: 100px;
}
.info-grid1 {
    display: flex
;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}
.contact-info h2 {
    text-align: center;
}
.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
img.single-img {
    width: 75%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    border-radius: 12px;
}
/* Чтобы контент под меню не прятался */
body {
    padding-top: 95px;
}
.brand img { width: 200px; max-width: 100%; display: block; }

/* burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger-bar {  display: none; }

/* nav list (mobile default: hidden via display) */
#nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;              /* mobile: hidden by default */
  flex-direction: column;
  gap: 6px;
}

/* open class used by JS to show mobile menu */
#nav-list.open { display: flex; }

/* nav item/link */
.nav-item { position: relative; }
.nav-link {
    display: inline-block;
    padding: 10px 14px;
    text-decoration: none;
    color: #222;
    border-radius: 6px;
    font-weight: 500;
    transition: background .18s, color .18s;
   
}
.nav-link:hover { background: #f2f6fb; color: var(--accent); }

/* submenu toggle (mobile button) */
.submenu-toggle {
    background: none;
    border: 0;
    margin-left: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    padding: 6px;
    text-align: right;
    width: 50%;
}

/* ---------------- SUBMENU - mobile behavior (default) ----------------
   - mobile-first: submenu is a normal block in the flow, hidden by display:none
   - JS will add .open (display:block) to show it on mobile
*/
.submenu {
  display: none;              /* mobile: hidden by default */
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(15,20,30,0.06);
}
.submenu.open { display: block; }   /* JS toggles this on mobile */

.submenu li a {
  display: block;
  padding: 8px 14px;
  color: #333;
  text-decoration: none;
}
.submenu li a:hover { background: #f6f9ff; color: var(--accent); }


/* =================== DESKTOP: override and hover-friendly dropdown =================== */
@media (min-width: 992px) {

  /* show full nav in row */
  #nav-list,
  #nav-list.open {             /* ensure visible even if [hidden] attribute present */
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin-left: auto;
  }

  /* make submenus absolutely positioned and visible by CSS hover (not by display toggles) */
  .nav-item .submenu {
    position: absolute;
    top: calc(100% - 1px);     /* overlap parent's bottom by 1px to avoid microsgap */
    left: 0;
    display: block;            /* keep element present (we'll hide it via opacity/visibility) */
    min-width: 250px;
    padding: 8px 0;
    border: 1px solid #e6e9ee;
    background: #fff;
    box-shadow: 0 8px 28px rgba(12,20,30,0.08);
    z-index: 1000;

    /* hidden state via visibility/opacity to allow smooth transitions
       and to keep element in DOM so hover can target it without gap */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;      /* prevents accidental hover when hidden */
  }

  /* visible state on hover/focus-within and when submenu itself hovered */
  .nav-item.has-children:hover > .submenu,
  .nav-item.has-children:focus-within > .submenu,
  .nav-item.has-children > .submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* hide the mobile-only toggle button on desktop */
  .submenu-toggle { display: none; }

  /* ensure nav-link hover looks good on desktop */
  .nav-link { padding: 12px 16px; }
}


/* ================== МЕГАМЕНЮ — корректная сетка ================== */
@media (min-width: 992px) {
  /* сам контейнер мегаменю */
     .submenu.megamenu {
        position: absolute;
        top: calc(100% - 1px);
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        min-width: 1000px;
        max-width: 1200px;
        background: #fff;
        border: 1px solid #e6e9ee;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 8px 28px rgba(12, 20, 30, 0.08);
        padding: 30px 40px;
        display: flex
;
        justify-content: space-between;
        gap: 20px;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s 
ease, transform .2s 
ease;
    }

  /* показать при наведении */
  .nav-item.has-children:hover > .submenu.megamenu,
  .nav-item.has-children:focus-within > .submenu.megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  /* каждая колонка */
  .megamenu .submenu-column {
    flex: 1 1 25%;       /* 4 колонки ровно */
    min-width: 0;
    padding: 0 10px;
  }

  .megamenu .submenu-column h4 {
    font-size: 15px;
    margin: 0 0 10px;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1px solid #e6e9ee;
    padding-bottom: 6px;
  }

  .megamenu .submenu-column ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
  }

    .megamenu .submenu-column li a {
        display: block;
        padding: 5px;
        color: #333;
        text-decoration: none;
        transition: color .2s;
    }

  .megamenu .submenu-column li a:hover {
    color: var(--accent);
  }
}

/* ================== Мобильная адаптация мегаменю ================== */
@media (max-width: 991px) {
  .submenu.megamenu {
    position: static;
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: none;
    padding: 15px 20px;
    box-shadow: none;
    border: none;
  }
  .submenu.megamenu.open {
    display: flex;
  }
  .megamenu .submenu-column {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
}


/* ===== Кнопки внизу мобильного меню ===== */
.mobile-contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.menu-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Телефон */
.call-btn {
  background: #0c2d57;
  color: #fff;
}
.call-btn:hover {
  background: #154b8b;
}

/* WhatsApp */
.whatsapp-btn {
  background: #25D366;
  color: #fff;
}
.whatsapp-btn:hover {
  background: #1ebe5d;
}

/* Скрываем эти кнопки на десктопе */
@media (min-width: 992px) {
  .mobile-contact-buttons {
    display: none !important;
  }
}



/* ======== ЗАТЕМНЕНИЕ И ФИКСАЦИЯ BODY ПРИ ОТКРЫТОМ БУРГЕРЕ ======== */

body.menu-open {
  overflow: hidden; /* блокируем прокрутку страницы */
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 9998;
}



/* HERO */


.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slider .slide.inactive {
  opacity: 0;
  z-index: 1;
}










.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  background: rgba(0,0,0,0.5);
  padding: 30px;
  border-radius: 8px;
  max-width: 50%;
  color: #fff;
  margin-left: 5%;
}

.slide-content h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.slide-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero-cta {
    display: inline-block;
    padding: 12px 24px;
    background: #000000;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s 
ease;
}
.hero-cta:hover {
  background: #d32f2f;
}

/* Кнопки переключения */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0px;
    z-index: 2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex
;
    justify-content: center;
}
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }
.slider-btn:hover { background: rgba(0,0,0,0.7); }

/* Индикаторы */
/* Индикаторы поверх слайдов */
.hero-slider .slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 9999; /* Важно: быть поверх слайдов */
  pointer-events: auto;
}

/* Самыe точки */
.hero-slider .slider-dots button,
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.18s ease, opacity 0.25s ease;
}
.hero-slider .slider-dots button.active,
.slider-dot.active {
  background: #f44336; /* активный цвет */
  transform: scale(1.08);
}

/* Если нужно, чтобы точки были чуть заметнее на мобильных — увеличьте размеры */
@media (max-width: 480px) {
  .hero-slider .slider-dots button { width: 14px; height: 14px; }
}

/* NEWS GRID */
.news-section{ padding:60px 0; }
.news-section h2{ margin:0 0 20px; color:var(--accent); }
.news-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
}
.news-item{
  background:var(--card);padding:12px;border-radius:8px;box-shadow:0 6px 20px rgba(10,20,40,0.04);
}
.news-thumbnail img{ width:100%; height:150px; object-fit:cover; border-radius:6px 6px 0 0; display:block; }
.news-item h3{ font-size:16px; margin:10px 0; color:#111 }
.news-item .excerpt{ color:var(--muted); font-size:14px }

/* PRODUCTS GRID */
.products-section{ padding:60px 0;  }
.products-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
}
.product-card{
  background:var(--card); padding:16px;border-radius:8px; text-align:left; box-shadow:0 6px 16px rgba(10,20,40,0.04);
}
.product-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin-bottom: 10px;
}
.product-card.catalog-card img {
    height: 220px;
}
.product-card h3{ margin:8px 0; color:var(--accent) }
.product-card p{ color:var(--muted); font-size:14px }
.catalog-card{ display:flex; flex-direction:column; align-items:flex-start; justify-content:center; text-align:left; }
.catalog-btn{ display:inline-block;margin-top:8px;padding:8px 12px;background:var(--accent); color:#fff; border-radius:6px; text-decoration:none; }

/* info */
.info{ padding:40px 0; }
.info-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.info-grid > div{ background:var(--card); padding:18px; border-radius:8px; }

/* FOOTER */
.site-footer {
    background: #2f2f2f;
    color: #fff;
    padding-top: 40px;
    font-size: 14px;
}
.site-footer a {
    color: #fff;
    text-decoration: none;
    padding-bottom: 4px;
    padding-top: 4px;
}
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.footer-col h4 { margin-bottom: 12px; font-size: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }

.footer-middle {
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 20px 0;
}
.footer-middle-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-info { flex: 2; min-width: 280px; }
.footer-links { flex: 1; min-width: 220px; }
.footer-links ul {
    display: grid
;
    grid-template-columns: repeat(4, auto);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}
.footer-links img { width: 24px; height: 24px; display: inline-block; }

.footer-bottom {
  text-align: center;
  padding: 15px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.footer-links a img {
  transition: opacity 0.3s ease;
}
.footer-links a:hover img {
  opacity: 0.7;
}
.footer-links .foot90 {
    display: flex
;
    align-items: center;
    background: #ffffff29;
    border-radius: 10px;
    margin-top: 30px;
    padding: 5px;
}
.blk2 {
    width: 50%;
    padding: 0;
}
.blk2 img {
    width: 100%;
    height: fit-content;
}
.blk1 {
    width: 80%;
    height: fit-content;
    padding: 5px;
}
/* Responsive */
@media (max-width: 991px){
	
.footer-links {
    flex: 1;
    min-width: 220px;
}
	.footer-info {
    flex: 1;
    min-width: 280px;
}
	
	/* burger (mobile) */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger-bar { display: block; width: 22px; height: 3px; background: #333; border-radius: 2px; }
	.nav-link {
    display: inline-block;
    padding: 10px 14px;
    text-decoration: none;
    color: #222;
    border-radius: 6px;
    font-weight: 500;
    transition: background .18s, color .18s;
    width: 40%;
}
	.nav-link {
    width: 40%;
}
	

  

	
 #nav-list.open {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;        /* меню прокручивается */
    overflow-x: hidden;
    padding: 60px 20px 40px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    transform: translateX(0);
  }

  /* скрытое состояние (по умолчанию) */
  #nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
  }

  /* когда бургер открыт */
  body.menu-open #nav-list.open {
    transform: translateX(0);
  }
	
	
 
     .nav-item {
        margin-bottom: 6px;
        width: 100%;
    }
  .submenu{ position:static; display:none; box-shadow:none; }
     .submenu.open {
        display: block;
        background: #dcdcdc;
    }
  .news-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 750px){

.footer-links ul {
    display: flex
;
    grid-template-columns: repeat(4, auto);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-items: center;
    flex-wrap: wrap;
}
	.slide-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 8px;
    max-width: 80%;
    color: #fff;
    margin-left: 10%;
}
}

@media (max-width: 480px){
  .news-grid, .products-grid { grid-template-columns: 1fr; }
}

span.city-label {
    font-size: 16px;
    font-weight: 600;
}

.city-selector {
    display: flex
;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-direction: column;
    margin-left: 10px;
}
.city-btn {
  background: var(--accent, #0077cc);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.city-btn:hover {
  opacity: 0.8;
}

/* --- Модалка --- */
.city-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.city-modal.open {
  display: flex;
}
.city-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
}
.city-modal-content h2 {
  margin-bottom: 20px;
}
.city-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.city-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.city-list button {
  background: #f2f6fb;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 12px;
  width: 100%;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.city-list button:hover {
  background: var(--accent, #0077cc);
  color: #fff;
}
.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
section.city-info.container {
    display: flex
;
    gap: 10px;
    align-items: center;
}
.cont-city1 {
    width: 50%;
}
.contacts-grid {
    display: flex
;
    gap: 10px;
    padding: 10px;
    background: #50505040;
    border-radius: 10px;
    margin-top: 15px;
}
.cont-city2 {
    display: flex
;
    flex-direction: column;
    width: 80%;
}
.cont-city2 h3 {
    text-align: center;
    font-size: 1.5em;
}
a {
    color: #1e4b93;
    font-weight: 600;
}
.footer-info {
    display: flex
;
    align-items: flex-start;
    justify-content: flex-start;
    column-gap: 50px;
}
.footer-info22 {
    display: flex
;
    justify-content: center;
    width: 50%;
    column-gap: 80px;
}

.contact-map {
    display: flex
;
    justify-content: flex-end;
}
@media (max-width: 1190px){
.brand img {
    width: 130px;
    max-width: 100%;
    display: block;
}
	span.city-label {
    display: none;
}
}
@media (max-width: 991px){
.footer-info22 {
    display: flex
;
    justify-content: center;
    width: 50%;
    column-gap: 80px;
    flex-direction: column;
}
	.cont-city1 {
    width: 100%;
}
	section.city-info.container {
    display: flex
;
    gap: 10px;
    flex-direction: column;
}
	.contacts-grid {
    display: flex
;
    gap: 10px;
    padding: 10px;
    background: #50505040;
    border-radius: 10px;
    justify-content: space-around;
    align-items: center;
}
	.cont-city2 {
    display: flex
;
    flex-direction: column;
    width: 100%;
}
}

@media (max-width: 480px){
    .contacts-grid {
        display: flex
;
        gap: 10px;
        padding: 10px;
        background: #50505040;
        border-radius: 10px;
        justify-content: space-around;
        align-items: center;
        flex-direction: column;
	}}

.contact-form-section {
    max-width: 600px;
    min-width: 365px;
    /* margin: 60px auto; */
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-form-section h2 {
  text-align: center;
  margin-bottom: 15px;
}

.contact-form-section p {
    text-align: center;
    margin-bottom: 0px;
    color: #666;
}

.contact-form .form-group {
  margin-bottom: 18px;
}
.contact-info {
    padding: 15px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0078ff;
  outline: none;
}

.btn-submit {
    display: block;
    width: 100%;
    background: #1e4b93;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s 
ease;
}
.btn-submit:hover {
  background: #005fcc;
}

.form-status {
    margin-top: 0px;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 991px){
    .contacts-grid {
        display: block;
        gap: 10px;
        padding: 10px;
        background: #50505040;
        border-radius: 10px;
        margin-top: 15px;
    }
	.contact-form-section {
    max-width: 600px;
    min-width: 200px;
    width: 100%;
    /* margin: 60px auto; */
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
}
@media (max-width: 480px){

.footer-info {
    display: flex
;
    align-items: flex-start;
    justify-content: flex-start;
    column-gap: 15px;
}
	.footer-middle-grid {
    display: flex
;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

}



/* Небольшая базовая стилизация для блока страницы (вынести в style.css при необходимости) */
    .page-hero {
      position: relative;
      height: 200px;
      overflow: hidden;
      display: flex;
      align-items: center;
      color: #fff;
    }
    .page-hero .hero-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
      filter: saturate(.95) brightness(.6);
    }
    .page-hero .hero-inner {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .breadcrumbs { font-size: 14px; color: rgba(255,255,255,0.95); }
    .breadcrumbs a { color: rgba(255,255,255,0.95); text-decoration: none; }
    .breadcrumbs a:hover { text-decoration: underline; }
    .hero-title { font-size: 28px; font-weight:700; margin:0; }

  

 .two-cols {
    display: grid
;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: center;
}
    .two-cols img {
    width: 100%;
    height: auto;
    border-radius: 16px;
  
}

    

    .seo-text { margin-top: 26px; line-height:1.6; color:#222; }

    /* адаптив */
    @media(max-width: 1024px){
      .two-cols { grid-template-columns: 1fr; }
     
    }
    
	  
	.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.card-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 360px;
    transition: transform 0.3s 
ease, box-shadow 0.3s 
ease;
}

.card-photo a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s 
ease, transform 0.4s 
ease;
}
.card-overlay a {
    margin-top: 10px;
    background: #1e4b93;
    padding: 5px;
    border-radius: 5px;
    width: auto;
    display: flex
;
    justify-content: center;
}
.card-overlay a:hover {
    background: #042964;
}
.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(#ffffffd4 0%, rgb(255 255 255) 90%);
    box-sizing: border-box;
}

.card-overlay h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #1e4b93;
    
}

.card-overlay p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.95;
    color: black;
}

.card-photo:hover .card-bg {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.card-photo:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}

/* адаптив */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card-photo { height: 200px; }
}  


/* ===== Блок "Основные преимущества" ===== */
.features {
  padding: 60px 0;
  text-align: center;
}

.features h3 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #222;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h4 {
  font-size: 1.2rem;
  color: #004b8d;
  margin-bottom: 10px;
}

.feature-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


.rack-info {
  margin: 60px auto;
}

.rack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.rack-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.rack-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.rack-text p {
  line-height: 1.6;
  margin-bottom: 1em;
  color: #333;
}

/* адаптив */
@media (max-width: 900px) {
  .rack-grid {
    grid-template-columns: 1fr;
  }
  .rack-image {
    order: -1;
  }
}


.recommendations {
  margin: 80px auto;
  text-align: center;
}

.recommendations h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.recommend-grid {
    display: grid
;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.recommend-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s 
ease;
    text-align: left;
}

.recommend-card h4 {
  font-size: 1.1rem;
  color: #0b4a8b;
  margin-bottom: 0.5rem;
}

.recommend-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.recommend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  background: #fff;
}



.faq-section {
  margin: 80px auto;
  max-width: 1000px;
}

.faq-section h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent, #0b4a8b);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-question {
  width: 100%;
  background: #111;
  color: #fff;
  font-size: 1rem;
  text-align: left;
  border: none;
  padding: 16px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #333;
}

.faq-answer {
  display: none;
  padding: 15px 20px;
  background: #fff;
  border-left: 3px solid var(--accent, #0b4a8b);
  border-radius: 0 0 8px 8px;
  color: #333;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question {
  background: var(--accent, #0b4a8b);
}


/* ---------- ШАПКА ---------- */
.product-header {
  height: 150px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.product-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}
.breadcrumbs {
  font-size: 14px;
  margin-top: 6px;
  color: rgba(255,255,255,0.85);
}
.breadcrumbs a {
  color: #fff;
  text-decoration: underline;
}

/* ---------- ДВЕ КОЛОНКИ ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 992px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}
section.container.product-main {
    background: white;
    padding-bottom: 20px;
    border-radius: 10px;
}
/* ---------- ГАЛЕРЕЯ ---------- */
.gallery-slider {
  width: 100%;
}
.gallery-slider .main-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 15px;
  position: relative;
}
.gallery-slider .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    border-radius: 12px;
}
.gallery-slider .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.gallery-slider .thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.gallery-slider .thumbs img.active,
.gallery-slider .thumbs img:hover {
  opacity: 1;
  border-color: var(--accent, #004080);
  transform: scale(1.05);
}

/* ---------- ТАБЫ ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  border-bottom: 2px solid #e5e5e5;
}
.tab-btn {
  background: #f5f5f5;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 500;
  margin-right: 4px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  transition: all 0.3s ease;
}
.tab-btn:hover {
  background: #eee;
}
.tab-btn.active {
  background: var(--accent, #004080);
  color: #fff;
}
.tab-content {
  display: none;
  margin-top: 20px;
  line-height: 1.6;
}
.tab-content.active {
    display: block;
    height: 230px;
    overflow-y: scroll;
}
/* ---------- ССЫЛКА СКАЧАТЬ ---------- */
.download-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-btn {
  display: inline-block;
  padding: 10px 16px;
  background-color: var(--accent, #0072ce);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background-color: #005fa3;
}

.download-btn::before {
  content: "⬇ ";
  font-size: 16px;
}


/* ---------- ПРЕИМУЩЕСТВА / ОСОБЕННОСТИ ---------- */
ul.features-list,
ul.spec-list {
  list-style: disc;
  margin-left: 20px;
  line-height: 1.6;
}

/* ---------- ТЕХ. ХАРАКТЕРИСТИКИ ---------- */
.tech-section {
  margin-top: 60px;
}
.tech-section h2 {
  margin-bottom: 15px;
}
.tech-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.tech-section th,
.tech-section td {
  border: 1px solid #ddd;
  padding: 10px;
}
.tech-section th {
  background: #f5f5f5;
  text-align: left;
}

/* ---------- ЛАЙТБОКС ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 910000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.7;
}

.lightbox .nav-btn:hover {
  opacity: 1;
}

.lightbox .nav-btn.prev { left: 40px; }
.lightbox .nav-btn.next { right: 40px; }

body.no-scroll {
  overflow: hidden;
}


/* ---------- АДАПТИВ ---------- */
@media (max-width: 1024px) {
  .product-section {
    grid-template-columns: 1fr;
  }
  .product-info {
    margin-top: 20px;
  }
}

.container h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.page-header {
    height: 150px;
    color: #fff;
    display: flex
;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.catalog-section {
  margin: 40px 0;
}
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.catalog-filter select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 30px 0;
}

.catalog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.catalog-thumb {
    width: 100%;
    height: 300px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.catalog-info {
  padding: 16px;
}

.catalog-info h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.catalog-info .product-link {
  text-decoration: none;
  color: #003366;
  transition: color 0.2s ease;
}

.catalog-info .product-link:hover {
  color: var(--accent, #0072ce);
}

.catalog-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 10px;
  min-height: 60px;
}

.btn-link {
  display: inline-block;
  color: var(--accent, #0072ce);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: #005fa3;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}
.table-bordered>thead>tr>th, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td {
    border: 1px solid #ddd;
}
.table-condensed>thead>tr>th, .table-condensed>tbody>tr>th, .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td, .table-condensed>tbody>tr>td, .table-condensed>tfoot>tr>td {
    padding: 5px;
}
.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td
Специфичность: (0,1,3)
 {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
.text-primary {
    color: #073862;
    font-weight: 600;
}
.table-responsive {
    overflow-x: auto;
    min-height: 0.01%;
}
.table-bordered {
    border: 1px solid #ddd;
}
.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
    border-collapse: collapse;
    border-spacing: 0;
}
section.container.specs h3 {
    font-size: 1.6rem;
}
/* -------- КАТЕГОРИИ ТОВАРА -------- */
.product-categories {
    margin-top: 10px;
    border-top: 1px solid #eee;
}
.product-categories h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-tag {
  background: var(--accent, #004080);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.category-tag:hover {
  background: #002e5e;
  transform: translateY(-2px);
}


/* --- Chrome, Edge, Safari --- */
.tab-content.active::-webkit-scrollbar {
  width: 8px; /* ширина полосы */
}

/* скрываем стрелки */
.tab-content.active::-webkit-scrollbar-button {
  display: none;
}

/* убираем фон под ползунком */
.tab-content.active::-webkit-scrollbar-track {
  background: transparent;
}

/* сам ползунок */
.tab-content.active::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* цвет ползунка */
  border-radius: 4px;
}

/* при наведении — немного темнее */
.tab-content.active::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* --- Firefox --- */
.tab-content.active {
  scrollbar-width: thin; /* тонкий скролл */
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* ползунок / фон */
}

.footer-info2 li {
    margin-top: 8px;
}


.dop-block {
    display: flex
;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 16px;
    padding: 10px 10px;
    margin: 0px auto;
    flex-wrap: wrap;
    text-align: right;
    width: 15%;
    right: -246px;
    margin-top: -104px;
    position: relative;
}

.dop-block img {
    width: 50px;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform .3s 
ease;
}

.dop-block img:hover {
  transform: scale(1.03);
}

.dop-text {
    flex: 1;
    min-width: 300px;
    color: #222;
    font-size: 12px;
    line-height: 1.6;
}
@media (max-width: 1190px) {
	
	    .dop-block {
        right: -45%;
        margin-top: -70px;
    }
	 .dop-text {
    display: none;
}
}




/* Только для мобильных */
@media (max-width: 992px) {
	form.catalog-filter {
    display: flex
;
    flex-direction: column;
    gap: 10px;
}
  .zn_custom_html {
    display: block;
    overflow-x: auto;
  }

  .zn_custom_html table {
    display: table;
  }
	    .dop-block {
        right: -43%;
        margin-top: -70px;
    }
}


@media (max-width: 710px) {
.catalog-filter select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    max-width: 30ch;
}
	    .container h1 {
        font-size: 20px;
        font-weight: 700;
        margin: 0;
        line-height: 20px;
    }
}

@media (max-width: 380px) {
	.footer-info2 ul {
    margin-top: 0px;
    margin-bottom: 0px;
}
	    .dop-block {
        display: none;
    }
	    .footer-grid {
        grid-template-columns: repeat(1, 1fr);
    }
	    .footer-info {
        display: flex
;
        align-items: flex-start;
        justify-content: flex-start;
        column-gap: 15px;
        flex-direction: column;
    }
	.container {
    width: 100%;
}
}

.catalog-thumb-link {
    width: 100%;
}


.category-content {
    line-height: 1.7;
    margin: 40px 0;
    padding-left: 0;
}
.category-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-left: 4px solid #004080;
    padding-left: 10px;
}
.category-content .category-text {
  font-size: 1rem;
  color: #333;
}

@media (max-width: 710px) {
.category-content h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 22px;
    border-left: 4px solid #004080;
    padding-left: 10px;
}
}
@media (max-width: 350px) {
    .container h1 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        line-height: 20px;
    }
	.breadcrumbs {
    font-size: 12px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.85);
}
	    .category-content h2 {
        font-size: 1rem;
        margin-bottom: 15px;
        line-height: 16px;
        border-left: 4px solid #004080;
        padding-left: 10px;
    }
	.category-content .category-text {
    font-size: 0.8rem;
    color: #333;
}
}


/* SEO side block: image left, text right */

.seo-side-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr; /* картинка 1fr, текст 1.25fr — можно подправить */
  gap: 32px;
  align-items: center;
  /* Ограничение ширины контейнера: при использовании .container его можно не повторять */
  max-width: 1200px;
  margin: 0 auto;
}

/* Картинка: красивый обрез, фиксированная высота на десктопе */
.seo-image {
  margin: 0;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
 
}
.seo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  transition: transform .35s ease;
}
/* лёгкая анимация при hover на десктопе */
@media (hover: hover) and (pointer: fine) {
  .seo-image img:hover {
    transform: scale(1.03);
  }
}

/* Текстовая колонка */
.seo-text-col h2 {
  margin-top: 0;
  line-height: 1.2;
  margin-bottom: 18px;
}
.seo-text-col p {
  margin: 0 0 14px;
  color: #333;
  line-height: 1.6;
}

/* Responsive: на узких экранах — картинка сверху, текст снизу */
@media (max-width: 900px) {
  .seo-side-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .seo-image {
    height: auto;
  }
  .seo-image img {
    height: auto;
    object-position: center;
  }
  .seo-text-col h2 {
    font-size: 22px;
  }
}

/* Дополнительно: для плавности загрузки LCP, если нужно */
.seo-image img[loading="eager"] {
  /* подсказка браузеру — выглядит опционально */
}


.seo-bottom {
  margin-top: 80px;
  margin-bottom: 80px;
}
.seo-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.seo-bottom-text {
  flex: 1 1 50%;
}
.seo-bottom-text h2 {
      text-align: center;
  margin-bottom: 1rem;
}
.seo-bottom-text p {
  
  line-height: 1.7;
}
.seo-bottom-text .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 24px;
  background: #004080;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}
.seo-bottom-text .btn:hover {
  background: #0066cc;
}
.seo-bottom-img {
  flex: 1 1 40%;
  text-align: center;
}
.seo-bottom-img img {
  width: 100%;
  max-width: 550px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
@media (max-width: 900px) {
  .seo-bottom-inner {
    flex-direction: column-reverse;
  }
  .seo-bottom-text, .seo-bottom-img {
    flex: 1 1 100%;
  }
}
section.container.seo-bottom {
    background: #ffffff;
    border-radius: 12px;
}

section.contact-form-section.container h4 {
    text-align: center;
    font-size: 20px;
}




/* ====== Контактная форма (общая секция) ====== */
.contact-form-section.wide-bg {
    width: 100%;
    background: #1e4b9329;
    padding: 60px 20px;
    display: flex
;
    justify-content: center;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.contact-form-inner {
  max-width: 600px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 40px 30px;
  text-align: center;
}

.contact-form-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #222;
}

/* ====== Форма ====== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 0 3px rgba(0,64,128,0.1);
}

/* ====== Кнопка ====== */
.btn-submit {
  background: #004080;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.btn-submit:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ====== Статус ====== */
.form-status {
  font-size: 14px;
  color: #333;
  margin-top: 10px;
}

/* ====== Адаптив ====== */
@media (max-width: 768px) {
  .contact-form-inner {
    padding: 30px 20px;
  }
  .contact-form-title {
    font-size: 1.6rem;
  }
}




/* ====== Виды ИБП ====== */

.ups-types .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.ups-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.ups-type-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ups-type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.ups-type-image {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.ups-type-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ups-type-content h3 {
  font-size: 1.25rem;
  color: #003366;
  margin: 0;
}

.ups-type-content p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.more-link {
  margin-top: auto;
  font-weight: 600;
  color: #0066cc;
  transition: color 0.25s;
}

.ups-type-card:hover .more-link {
  color: #004a99;
}

@media (max-width: 768px) {
  .ups-type-image {
    height: 160px;
  }
  .ups-type-content h3 {
    font-size: 1.1rem;
  }
}


.application-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 80px auto;
  max-width: 1200px;
  padding: 40px 20px;
}


.application-block .app-image img {
    width: 100%;
    max-width: 270px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.application-block .app-content {
  flex: 1;
}

.application-block h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    margin-top: 0;
}

.application-block p {
  color: #444;
  margin-bottom: 24px;
  line-height: 1.6;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.app-card {
  display: block;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: all .3s ease;
  border: 1px solid #e2e2e2;
}

.app-card:hover {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  .application-block {
    flex-direction: column;
    text-align: center;
  }
    .application-block.reverse {
        flex-direction: column-reverse;
    }
  .app-cards {
    grid-template-columns: 1fr;
  }
}
