:root {
    --top-contact-bar-height: 60px;
    --header-height: 60px;
  }
  
  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f7fb;
    color: #333;
  }
  
  /* Top Contact Bar */
  .top-contact-bar {
    min-height: 60px;
    max-height: 80px;
    background: #003366; /* Тот же цвет, что и header */
    background-image: url('/saunoStankiPhotoes/in_webp_format/image-for-header.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #004080;
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    gap: 2rem;
  }
  
  /* Header logo section in top-contact-bar */
  .top-contact-bar .header-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
  }
  
  .top-contact-bar .header-company-name {
    display: block;
  }
  
  .top-contact-bar .header-company-name a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Georgia', serif;
    font-style: italic;
  }
  
  .top-contact-bar .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .rutube-circle {
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background-color: #003366; /* красный RuTube */
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: 0.3s;
  }
  
  .rutube-circle span {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    margin-left: 5px;
  }
  
  .top-contact-bar .company-logo {
    display: flex;
    align-items: center;
  }
  
  .top-contact-bar .company-logo img {
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
  }
  
  .top-contact-bar .company-logo img:hover {
    opacity: 1;
  }
  
  .company-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  
  .company-name {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff; /* Белый цвет для видимости на синем фоне */
    margin: 0;
    font-family: 'Georgia', serif;
    font-style: italic;
    display:flex;
    justify-content: center;
  }
  
  .company-name a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }
  
  .company-name a:hover {
    opacity: 0.8;
  }
  
  .company-description {
    font-size: 0.95rem;
    color: #e6f3ff; /* Светло-голубой цвет для видимости на синем фоне */
    line-height: 1.4;
    margin: 0;
    width: 500px;
    font-weight: 400;
  }
  
  .contact-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: 500px;
    flex-shrink: 0;
    max-height: 60px;
    overflow: hidden;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff; /* Белый цвет для видимости на синем фоне */
  }
  
  /* Social links in top-contact-bar */
  .social-links-top {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-height: 40px;
    overflow: hidden;
  }
  
  .social-link-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
  }
  
  .social-link-top svg {
    fill: #ffffff;
    color: #ffffff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .social-link-top:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  }
  
  .social-link-top:hover svg {
    fill: #ffffff;
    color: #ffffff;
  }
  
  .rutube-circle-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #003366;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: 0.3s;
  }
  
  .rutube-circle-top span {
    font-size: 20px;
    color: #003366;
    background-color: #fff;
    font-weight: bold;
    margin-left: 2px;
    width: 20px;
    display: flex;
    justify-content: center;
  }
  
  .rutube-circle-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  }
  
  .contact-button {
    background: #ffffff; /* Белый фон для контраста */
    color: #003366; /* Синий текст */
    border: 2px solid #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    max-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .contact-button:hover {
    background: #f0f8ff; /* Светло-голубой при наведении */
    color: #003366;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
  }
  
  .contact-button:active {
    transform: translateY(0);
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
    .contact-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .company-info {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
    }
    
    .company-name {
        font-size: 2.2rem;
    }
    
    .company-description {
        font-size: 0.9rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        flex-shrink: 0;
        justify-content: center;
    }
    
    .contact-info {
        gap: 0.4rem;
    }
    
    .social-links-top {
        gap: 1rem;
    }
    
    .social-link-top svg {
        width: 28px;
        height: 28px;
    }
    
    .rutube-circle-top {
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .rutube-circle-top span {
        font-size: 16px;
        width: 16px;
    }
    
    .phone-number {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .contact-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
  }
  
  @media (max-width: 1024px) {
    .contact-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .company-info {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .company-description {
        font-size: 0.9rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        flex-shrink: 0;
    }
    
    .contact-info {
        gap: 0.3rem;
    }
    
    .social-links-top {
        gap: 0.8rem;
    }
    
    .social-link-top svg {
        width: 26px;
        height: 26px;
    }
    
    .rutube-circle-top {
        width: 22px;
        height: 22px;
        font-size: 18px;
    }
    
    .rutube-circle-top span {
        font-size: 14px;
        width: 14px;
    }
    
    .phone-number {
        font-size: 1.1rem;
    }
    
    .contact-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
  }
  
  @media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .company-info {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
    }
    
    .company-name {
        font-size: 1.8rem;
    }
    
    .company-description {
        font-size: 0.8rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        flex-shrink: 0;
    }
    
    .contact-info {
        gap: 0.3rem;
    }
    
    .social-links-top {
        gap: 0.6rem;
    }
    
    .social-link-top svg {
        width: 24px;
        height: 24px;
    }
    
    .rutube-circle-top {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
    
    .rutube-circle-top span {
        font-size: 12px;
        width: 12px;
    }
    
    .phone-number {
        font-size: 1rem;
    }
    
    .contact-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
  }
  
  /* Top panels */
  .top-panels {
    background: linear-gradient(#f6f9ff, #eef3fb);
    padding: 0.75rem 1rem 1.25rem 1rem;
    border-bottom: 1px solid #d6dfec;
    margin-top: 4rem;
    max-width: none; /* Убираем ограничение ширины */
    width: 90vw; /* Растягиваем на 90% ширины экрана */
    margin-left: auto; /* Центрирование */
    margin-right: auto; /* Центрирование */
    box-sizing: border-box; /* Учитываем padding в ширине */
  }
  
  .panels-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .panel {
    background: #eaf0f8;
    border: 1px solid #c7d3e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
  }
  
  .panel-header {
    background: linear-gradient(#cfd9ea, #b8c6df);
    color: #1b3e72;
    font-weight: 700;
    text-align: center;
    padding: 0.6rem 0.8rem;
    letter-spacing: 0.5px;
  }
  
  .panel-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1rem 1rem 1rem;
  }
  
  .panel-list li + li {
    margin-top: 0.6rem;
  }
  
  .panel-list a {
    display: block;
    color: #0f2a55;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
  }
  
  .panel-list a:hover {
    text-decoration: underline;
  }
  
  header {
    background-color: #003366;
    background-image: url('/saunoStankiPhotoes/in_webp_format/image-for-header.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    height: var(--header-height);
    align-items: center;
    padding: 0 2rem;
    box-sizing: border-box;
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-around; /* По умолчанию space-around для обычной навигации */
    gap: 0rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
  }
  
  /* Header Logo Section - объединенный логотип и название */
  .header-logo-section {
    display: none; /* Скрыт по умолчанию, показывается только на мобильных */
    align-items: center;
    gap: 1rem;
  }
  
  /* Header Company Name - скрыт по умолчанию */
  .header-company-name {
    display: none;
  }
  
  .header-company-name a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Georgia', serif;
    font-style: italic;
  }
  
  .logo {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .logo a {
    color: white;
    text-decoration: none;
  }
  
  .company-logo img {
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }
  
  .company-logo img:hover {
    opacity: 1;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem;
    transition: background-color 0.3s ease;
  }
  
  nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Burger Menu Styles */
  /* Mobile Social Links - показываются только на мобильных */
  .mobile-social-links {
    display: none; /* Скрыты по умолчанию */
    align-items: center;
    gap: 0.5rem; /* Уменьшенный отступ между иконками */
    margin-right: 0.5rem; /* Ближе к бургеру */
  }
  
  .mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    width: 32px; /* Увеличенный размер */
    height: 32px; /* Увеличенный размер */
  }
  
  .mobile-social-link svg {
    width: 24px; /* Увеличенный размер SVG */
    height: 24px;
  }
  
  .mobile-social-link:hover {
    transform: scale(1.1);
  }
  
  .mobile-social-link.vk:hover {
    color: #4680C2;
  }
  
  .mobile-social-link.telegram:hover {
    color: #0088cc;
  }
  
  .mobile-social-link.youtube:hover {
    color: #FF0000;
  }
  
  .mobile-social-link.rutube {
    background-color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
  }
  
  .mobile-social-link.rutube span {
    color: #003366;
    font-weight: bold;
    font-size: 14px;
  }
  
  .mobile-social-link.rutube:hover {
    background-color: #e0e0e0;
  }
  
  .burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  
  .burger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  /* Burger animation when active */
  .burger-menu-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .burger-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  
  .burger-menu-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Desktop Navigation Styles */
  .main-nav {
    display: block;
  }
  
  @media (min-width: 1201px) {
    .burger-menu-btn {
        display: none !important;
    }
    
    /* Показываем left-panel только на больших экранах где нет бургер-меню */
    .left-nav-panel {
        display: block !important;
    }
    
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding-top: 0;
        overflow-y: visible;
        left: auto;
    }
    
    /* Скрываем мобильные контактные элементы на больших экранах */
    .mobile-contact-info {
        display: none;
    }
    
    /* Показываем category-filter на больших экранах */
    .category-filter {
        display: flex !important;
    }
  }
  
  /* Mobile Navigation Styles */
  @media (max-width: 1200px) {
    .burger-menu-btn {
        display: flex;
    }
    
    /* Показываем мобильные соц-сети когда появляется бургер-меню */
    .mobile-social-links {
        display: flex;
    }
    
    /* Скрываем left-panel когда появляется бургер-меню */
    .left-nav-panel {
        display: none !important;
    }
    
    /* Изменяем justify-content на space-between для бургер-меню */
    .header-content {
        justify-content: space-between;
    }
    
    /* Скрываем весь top-contact-bar на мобильных */
    .top-contact-bar {
        display: none;
    }
    
    /* Показываем название компании в header на мобильных */
    .header-company-name {
        display: block;
    }
    
    /* Показываем header logo section на мобильных */
    .header-logo-section {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .header-logo-section .logo {
        display: flex;
        align-items: center;
    }
    
    .header-logo-section .company-logo img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
    
    /* Скрываем элементы top-contact-bar на мобильных */
    .company-description,
    .contact-actions {
        display: none;
    }
    
    /* Скрываем category-filter на мобильных */
    .category-filter {
        display: none !important;
    }
    
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #003366;
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a {
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-nav .submenu {
        position: static;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .main-nav li:hover .submenu,
    .main-nav li:focus-within .submenu {
        display: block;
    }
    
    .main-nav .submenu li {
        border-bottom: none;
    }
    
    .main-nav .submenu a {
        padding: 1rem 3rem;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    /* Стили для мобильных контактных элементов */
    .mobile-contact-info {
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 1rem;
    }
    
    .mobile-company-description {
        color: white;
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .mobile-contact-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .mobile-phone-number {
        color: white;
        font-size: 1.2rem;
        font-weight: 600;
        text-align: center;
    }
    
    .mobile-contact-button {
        background: #004080;
        color: white;
        border: none;
        padding: 0.8rem 1.5rem;
        border-radius: 5px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s ease;
        text-align: center;
        width: 100%;
        max-width: 250px;
    }
    
    .mobile-contact-button:hover {
        background: #0056b3;
    }
  }
  
  /* Dropdown menu */
  nav ul li {
    position: relative;
  }
  
  /* Overlay will be created by JavaScript */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.2);
    z-index: 998;
    pointer-events: none;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .overlay.show {
    opacity: 1;
  }
  
  nav ul li .submenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: #ffffff;
    color: #003366;
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    padding: 2rem 0;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 3px solid #003366;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  
  nav ul li .submenu.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Невидимая область для плавного перехода курсора */
  nav ul li .submenu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: 1002;
  }
  
  nav ul li .submenu li {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  nav ul li .submenu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #003366;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e6ed;
    transition: all 0.3s ease;
  }
  
  nav ul li .submenu a:hover {
    background: #eaf0f8;
    padding-left: 2rem;
  }
  
  nav ul li .submenu li:last-child a {
    border-bottom: none;
  }
  
  
  
  .hero {
    background-color: #0055aa;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
  }
  
  /* Statistics Section */
  .stats-section {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0; /* Убираем auto для предотвращения сдвигов */
    margin-left: max(250px, calc((100vw - 1200px) / 2)); /* Центрирование с учетом sidebar */
    margin-right: max(250px, calc((100vw - 1200px) / 2)); /* Симметричный отступ справа */
    max-width: 1200px; /* Ограничиваем максимальную ширину */
  }
  
  .stats-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: auto;
    min-height: 200px;
    width: 100%;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    position: relative;
    min-width: 230px;
  }
  
  .stat-item:last-child {
    border-right: none;
  }
  
  .stat-number {
    font-size: 1.9rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1;
  }
  
  .stat-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .stat-description {
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.5;
    text-align: center;
  }
  
  /* Responsive Statistics */
  @media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    
    .stat-item:nth-child(4) {
        border-right: none;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-title {
        font-size: 0.9rem;
    }
    
    .stat-description {
        font-size: 0.85rem;
    }
  }
  
  @media (max-width: 768px) {
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem 0.5rem;
        min-width: 150px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-title {
        font-size: 0.85rem;
    }
    
    .stat-description {
        font-size: 0.8rem;
        text-align: center;
    }
  }
  
  @media (max-width: 480px) {
    .stats-container {
        padding: 0 1rem;
    }
    
    .stat-item {
        padding: 0.8rem 0.3rem;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-title {
        font-size: 0.8rem;
    }
    
    .stat-description {
        font-size: 0.75rem;
    }
  }
  
  /* Увеличенные отступы между секциями */
  section {
    margin-bottom: 0;
    padding: 2rem 0;
    max-width: 1200px; /* Ограничиваем максимальную ширину */
    margin-left: max(250px, calc((100vw - 1200px) / 2)); /* Центрирование с учетом sidebar */
    margin-right: max(250px, calc((100vw - 1200px) / 2)); /* Симметричный отступ справа */
  }
  
  section:first-of-type {
    margin-top: 0;
  }
  
  section:last-of-type {
    margin-bottom: 2rem;
  }
  
  /* Left Navigation Panel */
  .left-nav-panel {
    position: absolute;
    left: 0;
    top: var(--header-height); /* Позиция сразу под header */
    width: 220px;
  
    background: #003366; /* Тот же цвет, что и header */
    background-image: url('/saunoStankiPhotoes/in_webp_format/image-for-header.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 2px solid #004080;
    z-index: 10; /* Ниже header, но выше контента */
    overflow-y: auto;
    display: none; /* Скрыта по умолчанию, показывается только на больших экранах */
  }
  
  .left-nav-menu {
    padding: 1rem 0 1rem 0;
  }
  
  .left-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Элементы в одном столбце */
  }
  
  .left-nav-list li {
    margin: 0;
    width: 100%; /* Полная ширина для вертикального расположения */
  }
  
  .left-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #004080;
    transition: all 0.3s ease;
  }
  
  .left-nav-link:hover {
    background: #004080;
    color: #ffffff;
  }
  
  .left-nav-link:last-child {
    border-bottom: none;
  }
  
  /* Main Wrapper */
  .main-wrapper {
    position: relative;
    display: block; /* Изменяем на block для вертикального расположения */
    min-height: calc(100vh - var(--header-height)); /* Высота экрана минус высота header */
  }
  
  /* Sidebar Menu */
  .sidebar-menu {
    position: absolute;
    top: 0; /* Приклеено к верху main-wrapper */
    left: 0;
    width: 250px;
    height: calc(100vh - var(--header-height)); /* Высота экрана минус высота header */
    background: #003366; /* Цвет header */
    border-right: 2px solid #004080;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 10; /* Ниже header */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  
  /* Content Area */
  .content-area {
    margin-left: 250px; /* Отступ для sidebar */
    padding: 0; /* Убираем внутренние отступы */
    width: calc(100% - 250px); /* Ширина минус ширина sidebar */
  }
  
  /* Sections inside content area */
  .content-area section {
    margin-left: 0; /* Убираем отступы для всех секций */
    padding-left: 0; /* Убираем внутренние отступы */
    width: 100%; /* Полная ширина */
    box-sizing: border-box; /* Учитываем padding в ширине */
  }
  
  .sidebar-nav {
    padding: 1.5rem 0;
  }
  
  .sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  
  .sidebar-list li {
    margin: 0;
    width: 100%;
  }
  
  .sidebar-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    background: transparent;
    border-bottom: 1px solid #004080;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .sidebar-link:hover {
    background: #004080;
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0, 64, 128, 0.3);
  }
  
  .sidebar-link:active {
    transform: translateX(2px);
  }
  
  .sidebar-link::after {
    content: ">";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1rem;
    opacity: 0.8;
    color: #ffffff;
  }
  
  .sidebar-link:hover::after {
    opacity: 1;
  }
  
  .sidebar-link:last-child {
    border-bottom: none;
  }
  
  /* Responsive Sidebar */
  @media (max-width: 1024px) {
    :root {
        --top-contact-bar-height: 50px;
        --header-height: 60px;
    }
    
    .left-nav-panel {
        top: var(--header-height); /* Позиция сразу под header */
        height: calc(100vh - var(--header-height)); /* Адаптивная высота */
    }
    
    
    .gallery {
        margin-left: auto; /* Центрирование независимо от sidebar */
        margin-right: auto; /* Центрирование независимо от sidebar */
    }
    
    .info {
        margin-left: auto; /* Центрирование независимо от sidebar */
        margin-right: auto; /* Центрирование независимо от sidebar */
    }
    
    .left-nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .main-wrapper {
        min-height: calc(100vh - var(--header-height)); /* Адаптивная высота header */
    }
    
    .sidebar-menu {
        width: 220px;
        height: calc(100vh - var(--header-height)); /* Адаптивная высота header */
    }
    
    .content-area {
        margin-left: 220px; /* Адаптивный отступ для sidebar */
        width: calc(100% - 220px); /* Адаптивная ширина */
    }
    
    .sidebar-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .sidebar-link::after {
        right: 1rem;
        font-size: 0.9rem;
    }
  }
  
  @media (max-width: 1200px) {
    /* left-nav-panel уже скрыт в медиа-запросе выше */
    
    /* Центрирование всех секций когда sidebar скрыт */
    .gallery {
        margin-left: auto !important; /* Центрирование на экранах меньше 1200px */
        margin-right: auto !important; /* Центрирование на экранах меньше 1200px */
    }
    
    .info {
        margin-left: auto !important; /* Центрирование на экранах меньше 1200px */
        margin-right: auto !important; /* Центрирование на экранах меньше 1200px */
    }
    
    section {
        margin-left: auto !important; /* Центрирование всех секций */
        margin-right: auto !important; /* Центрирование всех секций */
        max-width: 1200px; /* Ограничиваем максимальную ширину */
    }
    
    .stats-section {
        margin-left: auto !important; /* Центрирование статистики */
        margin-right: auto !important; /* Центрирование статистики */
        max-width: 1200px; /* Ограничиваем максимальную ширину */
    }
    
    .top-panels {
        margin-left: auto !important; /* Центрирование top-panels */
        margin-right: auto !important; /* Центрирование top-panels */
        max-width: 1200px; /* Ограничиваем максимальную ширину */
    }
    
    .sidebar-menu {
        position: absolute;
        left: -250px;
        top: 0;
        height: 100vh;
        transition: left 0.3s ease;
    }
    
    .sidebar-menu.open {
        left: 0;
    }
    
    .content-area {
        margin-left: 0; /* Убираем отступ на мобильных */
        width: 100%; /* Полная ширина на мобильных */
    }
    
    /* Mobile menu button */
    .mobile-sidebar-btn {
        display: block;
        position: fixed;
        top: 20px;
        left: 1rem;
        z-index: 2000;
        background: #003366;
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
  }
  
  @media (max-width: 480px) {
    :root {
        --top-contact-bar-height: 40px;
        --header-height: 60px;
    }
    
    .left-nav-panel {
        top: var(--header-height); /* Позиция сразу под header */
        height: calc(100vh - var(--header-height)); /* Адаптивная высота */
    }
    
    .sidebar-menu {
        width: 100%;
        left: -100%;
        top: 0;
        height: 100vh;
    }
    
    .sidebar-nav {
        padding: 1rem 0;
    }
    
    .sidebar-link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .mobile-sidebar-btn {
        top: 15px;
    }
  }
  
  /* Hide mobile menu button on desktop */
  .mobile-sidebar-btn {
    display: none;
  }
  
  /* Общие стили для всех заголовков */
  h1, h2, h3, h4, h5, h6 {
    color: #000000;
  }
  
  /* Заголовок в top-contact-bar теперь белый для видимости на синем фоне */
  .top-contact-bar h1 {
    color: #ffffff;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .info {
    padding: 2rem;
    max-width: none; /* Убираем ограничение ширины */
    width: 90vw; /* Растягиваем на 90% ширины экрана */
    margin-left: auto; /* Центрирование */
    margin-right: auto; /* Центрирование */
    box-sizing: border-box; /* Учитываем padding в ширине */
  }
  
  .info .machine-item {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Расположение элементов в секции about по 2 на строке */
  .info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .photos-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    width: 100%;
  }
  
  .info .machine-item {
    width: 45%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: auto; /* Убираем минимальную высоту */
    height: auto; /* Автоматическая высота */
  }
  
  .info .machine-item .image-container {
    flex: 0 0 auto;
    height: 80px; /* Сильно уменьшенная высота изображения */
    overflow: hidden;
  }
  
  .info .machine-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .info .machine-item a {
    flex: 0 0 auto;
    text-align: center;
    display: block;
    padding: 0.5rem 0.5rem 0.25rem 0.5rem; /* Уменьшенный padding */
  }
  
  .info .machine-item span {
    text-align: center;
    display: block;
    font-size: 0.9rem; /* Уменьшенный размер для компактности */
    margin: 0; /* Убираем отступы */
  }
  
  .info .machine-item p {
    flex: 0 0 auto; /* Фиксированная высота под содержимое */
    margin: 0.25rem 0.5rem 0.5rem 0.5rem; /* Минимальные отступы */
    padding: 0; /* Убираем padding */
    color: #666;
    font-size: 0.75rem; /* Еще более уменьшенный размер шрифта */
    line-height: 1.2; /* Минимальная высота строки */
    display: block; /* Простой блок вместо flex */
    text-align: center; /* Центрирование текста */
    min-height: auto; /* Убираем минимальную высоту */
    max-height: 40px; /* Максимальная высота для ограничения */
    overflow: hidden; /* Скрываем переполнение */
  }
  
  .info > p {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
  }
  
  .info .machine-item {
    width: 45%;
    margin: 20px;
  }
  
  .info .machine-item:first-of-type {
    align-self: flex-start;
  }
  
  .info .machine-item:last-of-type {
    align-self: flex-end;
  }
  
  /* Адаптивные стили для секции about */
  @media (max-width: 768px) {
    section {
        margin: 3rem 0;
        padding: 1.5rem 0;
    }
    
    .photos-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .info .machine-item {
        width: 90%;
        align-self: center !important;
        min-height: auto; /* Убираем минимальную высоту */
        height: auto; /* Автоматическая высота */
    }
    
    .info .machine-item .image-container {
        height: 70px; /* Очень компактная высота изображения */
    }
  }
  
  @media (max-width: 480px) {
    section {
        margin: 2rem 0;
        padding: 1rem 0;
    }
  }
  
  .info h2 {
    color: #000000;
    text-align: center;
  }
  
  .linkssss {
    font-size: 1.2rem;
  }
  
  .link {
    display: inline-block;
    margin-top: 1rem;
    color: #0055aa;
    text-decoration: underline;
  }
  
  .gallery {
    padding: 2rem;
    background-color: #eaf0f8;
    text-align: center;
    max-width: 1200px; /* Максимальная ширина */
    margin-left: max(250px, calc((100vw - 1200px) / 2)); /* Центрирование с учетом sidebar */
    margin-right: max(250px, calc((100vw - 1200px) / 2)); /* Симметричный отступ справа */
  
  }
  
  /* Белый фон для секции "Наши услуги" */
  #services.gallery {
    background-color: white;
  }
  
  /* Секции ниже gallery растягиваем на 90% ширины */
  #applications.gallery,
  #services.gallery {
    max-width: none; /* Убираем ограничение ширины */
    width: 90vw; /* Растягиваем на 90% ширины экрана */
    margin-left: auto; /* Центрирование */
    margin-right: auto; /* Центрирование */
    box-sizing: border-box; /* Учитываем padding в ширине */
  }
  
  .gallery h2 {
    color: #000000;
    margin-bottom: 1.5rem;
  }
  
  .grid {
    display: grid;
    gap: 2rem;
    justify-items: center;
    margin: 0 auto;
    place-items: center;
  }
  
  .category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
  }
  
  .filter-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
  }
  
  .filter-btn.active {
    color: #003366;
    text-decoration: none;
    font-weight: 700;
  }
  
  .filter-btn:hover {
    color: #003366;
    text-decoration: none;
  }
  
  .machines-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 200px));
    max-width: 1200px;
    gap: 2rem;
  }
  
  .machine-item {
    transition: all 0.5s ease;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .machine-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
  }
  
  .machine-item .image-container,
  .machine-item .image-container {
    width: 100%;
    height: auto;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    margin: 0 auto;
  }
  
  .machine-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
  }
  
  .machine-item:hover img {
    transform: scale(1.05);
  }
  
  .machines-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    gap: 1.5rem;
    transition: all 0.5s ease;
    position: relative;
    justify-items: center;
    align-items: stretch;
    justify-content: center;
  }
  
  .machines-grid.filtering {
    transform: scale(0.98);
  }
  
  .machine-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .machine-item a {
    flex: 0 0 auto;
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #333;
  }
  
  .machine-item span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #003366;
  }
  
  .machine-item p {
    flex: 1;
    margin: 0.5rem 1rem 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-end;
  }
  
  .extra-equipment {
    padding-top: 0px;
  }
  
  /* Top Panels Styles */
  .top-panels {
    background: #f5f5f7;
    padding: 2rem 1rem;
    border-top: 1px solid #d2d2d7;
  }
  
  .panels-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    align-items: center;
    justify-content: center;
  }
  
  .panel {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  
  .panel-header {
    background: transparent;
    color: #1d1d1f;
    font-weight: 600;
    text-align: center;
    padding: 0;
    margin: 0 auto 0.5rem auto;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    display: inline-block;
    width: auto;
  }
  
  .panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .panel-list li {
    margin: 0.5rem 0;
  }
  
  .panel-list a {
    display: block;
    color: #424245;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
    text-align: left;
  }
  
  .panel-list a:hover {
    color: #1d1d1f;
    text-decoration: none;
  }
  
  /* Contact Panel Styles */
  .contact-panel .contact-item {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .contact-label {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .contact-value {
    color: #424245;
    text-decoration: none;
    font-size: 1.2rem !important;
    font-weight: 700;
    transition: color 0.2s ease;
  }
  
  .contact-value:hover {
    color: #003366;
    text-decoration: none;
  }
  
  .social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
    justify-content: left;
    align-items: center;
  }
  
  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #003366;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
  }
  
  .social-link svg {
    fill: #003366;
    color: #003366;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .social-link:hover {
    background: transparent;
    color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .social-link:hover svg {
    fill: #003366;
    color: #003366;
  }
  
  /* Responsive Styles for Top Panels */
  @media (max-width: 1024px) {
    .panels-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
        justify-content: center;
    }
  }
  
  @media (max-width: 768px) {
    .panels-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        justify-content: center;
    }
    
    .contact-panel .contact-item {
        margin: 0.8rem 0;
    }
    
    .social-links {
        gap: 0.6rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
  }
  
  .process_materials {
    padding-top: 0px;
  }
  
  .applications-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    justify-items: center;
    align-items: stretch;
    justify-content: center;
  }
  
  .applications-grid .machine-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
  }
  
  .applications-grid .machine-item .image-container {
    flex: 0 0 auto;
    height: 200px;
    overflow: hidden;
  }
  
  .applications-grid .machine-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .applications-grid .machine-item a {
    flex: 0 0 auto;
    padding: 0.1rem 0.1rem;
    text-decoration: none;
    color: #333;
  }
  
  .applications-grid .machine-item p {
    flex: 1;
    margin: 0 1rem 0.1rem 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-end;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    justify-items: center;
    align-items: stretch;
    justify-content: center;
  }
  
  .services-grid .machine-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 220px;
  }
  
  .services-grid .machine-item .image-container {
    flex: 0 0 auto;
    height: 160px;
    overflow: hidden;
  }
  
  .services-grid .machine-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .services-grid .machine-item a {
    flex: 0 0 auto;
    padding: 0.25rem 1rem;
    text-decoration: none;
    color: #333;
  }
  
  .services-grid .machine-item p {
    flex: 1;
    margin: 0 1rem 0.25rem 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-end;
  }
  
  .machine-item {
    background-color: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 250px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }
  
  .image-container {
    width: 100%;
    min-width: 180px;
    height: auto;
    margin: 0 auto 0.75rem auto;
  }
  
  .image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
  }
  
  .image-container img:hover {
    transform: scale(1.05);
  }
  
  .grid a {
    text-decoration: none;
    color: #003366;
    display: block;
    text-align: center;
  }
  
  .grid span {
    background: transparent;
    color: black;
    padding: 0.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
  }
  
  .machine-item p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin: 0.5rem 0;
    line-height: 1.4;
  }
  
  .section-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, #003366, transparent);
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-photo {
    margin: 1rem auto 0 auto;
    display: flex;
    justify-content: center;
    max-width: 100%;
  }
  
  .about-photo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
  }
  
  .info img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
  }
  
  .info .machine-item a {
    text-decoration: none;
  }
  
  .info span {
    background: transparent;
    color: black;
    text-decoration: none;
    padding: 0.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
  }
  
  footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
  }
  
  .modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background-color: white;
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close:hover,
  .close:focus {
    color: #003366;
    text-decoration: none;
  }
  
  .modal-content h2 {
    color: #003366;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .modal-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.5;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-group label {
    color: #003366;
    font-weight: 600;
    font-size: 0.9rem;
  }
  
  .form-group label:has-text("*") {
    color: #d32f2f;
  }
  
  /* Стили для обязательных полей */
  .form-group input[required],
  .form-group textarea[required] {
    border-left: 3px solid #003366;
  }
  
  .form-group input[required]:focus,
  .form-group textarea[required]:focus {
    border-left-color: #003366;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
  }
  
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: #999;
  }
  
  .submit-btn {
    background: linear-gradient(135deg, #003366, #004d99);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
  }
  
  .submit-btn:hover {
    background: linear-gradient(135deg, #004d99, #003366);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
  }
  
  .submit-btn:active {
    transform: translateY(0);
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
  }
  
  @keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
  }
  
  /* Success Content Styles */
  .success-content {
    text-align: center;
    padding: 2rem 0;
  }
  
  .success-icon {
    margin-bottom: 2rem;
    animation: successBounce 0.6s ease-out;
  }
  
  .success-content h2 {
    color: #2E7D32;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
  }
  
  .success-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
  }
  
  .close-success-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.6s both;
  }
  
  .close-success-btn:hover {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
  }
  
  .close-success-btn:active {
    transform: translateY(0);
  }
  
  /* Success Animations */
  @keyframes successBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
  }
  
  @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
  }
  
  /* Form Content Styles */
  .form-content {
    animation: fadeIn 0.3s ease;
  }
  
  /* Products Submenu Styles */
  .products-submenu {
    width: 100vw !important;
    max-width: 100vw;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
  
  .submenu-columns {
    display: flex;
    gap: 3rem;
    padding: 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
  }
  
  .submenu-column {
    flex: 1;
    min-width: 0;
    max-width: 300px;
  }
  
  .submenu-column h3 {
    color: #003366;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #003366;
    padding-bottom: 0.75rem;
    text-align: center;
  }
  
  .submenu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .submenu-column ul li {
    margin-bottom: 0;
  }
  
  .submenu-column ul li a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid transparent;
  }
  
  .submenu-column ul li a:hover {
    color: #003366;
    background-color: #f8f9fa;
    border-color: #e1e5e9;
    transform: translateY(-1px);
  }
  
  /* Mobile responsiveness for products submenu */
  @media (max-width: 768px) {
    .products-submenu {
        width: 100vw !important;
        max-width: 100vw;
        left: 0 !important;
        right: 0 !important;
    }
    
    .submenu-columns {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    
    .submenu-column {
        max-width: 100%;
    }
    
    .submenu-column h3 {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .submenu-column ul li a {
        font-size: 0.9rem;
        padding: 0.4rem 0.5rem;
    }
  }
  
  /* Responsive grid for machines */
  @media (max-width: 1200px) {
    .machines-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        justify-content: center;
    }
  }
  
  @media (max-width: 768px) {
    .machines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-content: center;
    }
    
    .machine-item {
        max-width: 100%;
        min-width: 150px;
    }
    
    .image-container {
        min-width: 150px;
        height: auto;
    }
  }
  
  @media (max-width: 480px) {
    .machines-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.75rem;
        justify-content: center;
    }
    
    .machine-item {
        min-width: 140px;
        padding: 0.4rem;
    }
    
    .image-container {
        min-width: 140px;
        height: auto;
        margin-bottom: 0.5rem;
    }
  }
  
  /* Responsive styles for applications and services grids */
  @media (max-width: 1024px) {
    .applications-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        justify-content: center;
    }
    
    .applications-grid .machine-item {
        min-height: 250px;
    }
    
    .applications-grid .machine-item .image-container {
        height: 180px;
    }
    
    .services-grid .machine-item {
        min-height: 200px;
    }
    
    .services-grid .machine-item .image-container {
        height: 140px;
    }
  }
  
  @media (max-width: 768px) {
    .applications-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        justify-content: center;
    }
    
    .applications-grid .machine-item {
        min-height: 220px;
    }
    
    .applications-grid .machine-item .image-container {
        height: 160px;
    }
    
    .services-grid .machine-item {
        min-height: 180px;
    }
    
    .services-grid .machine-item .image-container {
        height: 130px;
    }
  }
  
  @media (max-width: 480px) {
    .applications-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
        justify-content: center;
    }
    
    .applications-grid .machine-item {
        min-height: 200px;
    }
    
    .applications-grid .machine-item .image-container {
        height: 140px;
    }
    
    .services-grid .machine-item {
        min-height: 160px;
    }
    
    .services-grid .machine-item .image-container {
        height: 120px;
    }
  }
  
  /* Стили для чекбоксов в модальном окне */
  .agreements-section {
      margin: 1.5rem 0;
      padding: 1rem;
      background-color: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #e9ecef;
  }
  
  .checkbox-group {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1rem;
  }
  
  .checkbox-group:last-child {
      margin-bottom: 0;
  }
  
  .checkbox-group input[type="checkbox"] {
      margin: 0;
      width: 18px;
      height: 18px;
      min-width: 18px;
      margin-top: 2px;
      accent-color: #003366;
      cursor: pointer;
  }
  
  .checkbox-group label {
      font-size: 0.9rem;
      line-height: 1.4;
      color: #333;
      cursor: pointer;
      flex: 1;
      margin: 0;
  }
  
  .checkbox-group label a {
      color: #003366;
      text-decoration: none;
      font-weight: 500;
  }
  
  .checkbox-group label a:hover {
      text-decoration: underline;
  }
  
  /* Mobile responsiveness for modal */
  @media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .success-content h2 {
        font-size: 1.5rem;
    }
    
    .success-content p {
        font-size: 1rem;
    }
    
    .success-icon svg {
        width: 60px;
        height: 60px;
    }
  }
  
  
  
  body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background-color: #f4f7fb;
      color: #333;
    }
    
   
    header {
      background-color: #003366;
  
      color: white;
      display: flex;
      max-height: 50px;
      align-items: center;
      padding: 1rem 2rem;
    }
  
    .header-content {
      display: flex;
      align-items: center;
      gap: 0rem;
      margin: 0 auto;
    }
    
    .logo {
      font-size: 2rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    
    }
    
    .logo a {
      color: white;
      text-decoration: none;
    }
    
    .company-logo img {
      border-radius: 4px;
      opacity: 0.9;
      transition: opacity 0.3s ease;
    }
    
    .company-logo img:hover {
      opacity: 1;
    }
    
    .logo {
      font-size: 2rem;
      font-weight: bold;
    }
    
    nav ul {
      list-style: none;
      display: flex;
      gap: 1rem;
      justify-content: left;
    }
    
    nav a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      padding: 1rem 0.5rem;
      transition: background-color 0.3s ease;
    }
    
    nav a:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
  /* Dropdown menu */
  nav ul li {
    position: relative;
  }
  
  /* Overlay will be created by JavaScript */
  .overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    z-index: 998;
    pointer-events: none;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .overlay.show {
    opacity: 1;
  }
  
  nav ul li .submenu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    background: #ffffff;
    color: #003366;
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    padding: 2rem 0;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 3px solid #003366;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  
  nav ul li .submenu.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Невидимая область для плавного перехода курсора */
  nav ul li .submenu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: 1002;
  }
  
  nav ul li .submenu li {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  nav ul li .submenu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #003366;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e6ed;
    transition: all 0.3s ease;
  }
  
  nav ul li .submenu a:hover {
    background: #eaf0f8;
    padding-left: 2rem;
  }
  
  nav ul li .submenu li:last-child a {
    border-bottom: none;
  }
  
  /* Overlay will be created by JavaScript */
  .overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    z-index: 998;
    pointer-events: none;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .overlay.show {
    opacity: 1;
  }
  
  nav ul li .submenu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    background: #ffffff;
    color: #003366;
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    padding: 2rem 0;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 3px solid #003366;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  nav ul li .submenu.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Невидимая область для плавного перехода курсора */
  nav ul li .submenu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: 1002;
  }
  
  
  /* JavaScript will handle the display */
  
  nav ul li .submenu li {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  nav ul li .submenu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #003366;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e6ed;
    transition: all 0.3s ease;
  }
  
  nav ul li .submenu a:hover {
    background: #eaf0f8;
    padding-left: 2rem;
  }
  
  nav ul li .submenu li:last-child a {
    border-bottom: none;
  }
    
    .hero {
      background-color: #0055aa;
      color: white;
      text-align: center;
      padding: 3rem 2rem;
    }
    
    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }
    
    .info {
      padding: 2rem;
      max-width: 800px;
      margin: auto;
    }
    
    .info .machine-item {
      margin-left: auto;
      margin-right: auto;
    }
    
    .info h2 {
      color: #003366;
      text-align: center;
    }
    
    .info p {
      font-size: 1.2rem;
    }
    
    .link {
      display: inline-block;
      margin-top: 1rem;
      color: #0055aa;
      text-decoration: underline;
    }
    
    .gallery {
      padding: 2rem;
      background-color: #eaf0f8;
      text-align: center;
    }
    
    .gallery h2 {
      color: #003366;
      margin-bottom: 1.5rem;
    }
    
    /* Контейнер для размещения обоих рядов на одной строке */
    .machines-container {
      display: flex;
      gap: 2rem;
      align-items: stretch;
      max-width: 1400px;
      margin: 0 auto;
      flex-wrap: wrap;
      justify-content: center;
      min-height: 500px;
    }
    
    .grid {
      display: grid;
      gap: 2rem;
      justify-items: center;
      margin: 0 auto;
    }
    
    .machines-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      max-width: 1200px;
      gap: 3rem;
    }
    
    .extra-equipment {
      padding-top:0px;
    }
    
    .process_materials {
      padding-top:0px;
    }
    .applications-grid {
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      max-width: 1000px;
    }
    
    .services-grid {
      grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
      max-width: 1000px;
    }
    
    .machine-item {
      background-color: white;
      border-radius: 8px;
      padding: 0.75rem;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      width: 100%;
      max-width: 300px;
      min-width: 180px;
      display: flex;
      flex-direction: column;
      align-items: center;
      max-height: 370px;
    }
  
  
  
    /* Специальный стиль для machine-item с описанием 3кс */
    .machine-item:has(.machine-3ks-description) {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 1rem;
      max-width: 100%;
      flex: 1;
      overflow: hidden;
      box-sizing: border-box;
      min-height: 410px;
    }
    
    .machine-3ks-content {
      width: 300px;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 400px;
      justify-content: flex-start;
    }
    
    .machine-3ks-content .image-container {
      width: 280px;
      height: auto;
      margin-bottom: 1rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .machine-item .machine-3ks-content .image-container img {
      width: 280px;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
      transition: transform 0.3s ease !important;
    }
    
    .machine-3ks-text {
      text-align: center;
    }
    
    .machine-3ks-text p {
      color: #444;
      font-size: 1rem;
      text-align: center;
      margin: 0.5rem 0;
      line-height: 1.6;
      font-weight: 500;
      letter-spacing: 0.3px;
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      padding: 0.75rem 1rem;
      border-radius: 8px;
      border-left: 3px solid #003366;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
    }
    
    .machine-3ks-text p:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      background: linear-gradient(135deg, #e9ecef, #dee2e6);
    }
    
    
    .machine-item:has(.machine-3ks-description) .machine-3ks-description {
      flex: 1;
      min-width: 0;
      margin-top: 0;
    }
  
    .image-container {
      width: 280px;
      height: auto;
      margin-bottom: 1rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .image-container img {
      width: 280px;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }
    
    .image-container img:hover {
      transform: scale(1.05);
    }
    
    .grid a {
      text-decoration: none;
      color: #003366;
      display: block;
      text-align: center;
    }
    
    
    .machine-item p {
      color: #444;
      font-size: 1rem;
      text-align: center;
      margin: 0.75rem 0;
      line-height: 1.6;
      font-weight: 500;
      letter-spacing: 0.3px;
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      padding: 0.75rem 1rem;
      border-radius: 8px;
      border-left: 3px solid #003366;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
    }
    
    .machine-item p:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      background: linear-gradient(135deg, #e9ecef, #dee2e6);
    }
    
    .machine-item a {
      text-decoration: none;
      display: block;
      margin: 0.5rem 0;
    }
    
    .machine-item a span {
      background: linear-gradient(135deg, #003366, #0055aa);
      color: white;
      padding: 0.75rem 1.5rem;
      font-weight: bold;
      font-size: 1.3rem;
      text-align: center;
      border-radius: 8px;
      box-shadow: 0 3px 6px rgba(0, 51, 102, 0.3);
      transition: all 0.3s ease;
      display: inline-block;
      margin: 0.5rem 0;
    }
    
    .machine-item a span:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 12px rgba(0, 51, 102, 0.4);
      background: linear-gradient(135deg, #0055aa, #003366);
    }
    
    .section-separator {
      height: 2px;
      background: linear-gradient(to right, transparent, #003366, transparent);
      margin: 3rem 0;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }
    
    .about-photo {
      margin-top: 1rem;
      display: flex;
      justify-content: center;
    }
    
    .about-photo img {
      width: 280px;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    
    
    .info img{
      width: 280px;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    
    .info .machine-item a{
      text-decoration: none;
    }
    
    .info span {
      background: transparent;
      color: black;
      text-decoration: none;
      padding: 0.5rem;
      font-weight: bold;
      font-size: 1.5rem;
      text-align: center;
    }
    
    /* Samples Section Styles */
    .samples-section {
      padding: 3rem 0;
      background-color: #f8f9fa;
    }
    
    .samples-section h2 {
      text-align: center;
      color: #003366;
      font-size: 1.5rem;
      margin-bottom: 3rem;
      font-weight: 700;
    }
    
    .samples-grid {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 3rem;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
      padding: 0 2rem;
      flex-wrap: wrap;
    }
    
    .sample-item {
      background: white;
      border-radius: 12px;
      width: 400px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .sample-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .sample-image {
      height: auto;
      overflow: visible;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .sample-image img {
      width: 280px;
      height: auto;
      object-fit: contain;
      transition: transform 0.3s ease;
    }
    
    .sample-item:hover .sample-image img {
      transform: scale(1.05);
    }
    
    .sample-description {
      padding: 1.5rem;
    }
    
    .sample-description h3 {
      color: #003366;
      font-size: 1.5rem;
      margin-bottom: 1rem;
      font-weight: 600;
    }
    
    .sample-description p {
      color: #666;
      line-height: 1.6;
      font-size: 1rem;
    }
    
    .materials-section {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
      background: white;
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .materials-section h3 {
      color: #003366;
      font-size: 1.4rem;
      margin-bottom: 2rem;
      font-weight: 600;
      text-align: center;
    }
    
    .materials-photos-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      max-width: 1200px;
      margin: 0 auto;
      justify-content: center;
    }
    
    .material-photo {
      text-align: center;
      background: white;
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      flex: 0 0 calc(25% - 1.125rem);
      min-width: 280px;
    }
    
    .material-photo:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .material-photo img {
      width: 100%;
      max-width: 280px;
      height: 200px; /* Увеличенная высота для соответствия gallery */
      object-fit: contain;
      border-radius: 8px;
      margin-bottom: 1rem;
    }
    
    .material-photo h4 {
      color: #003366;
      font-weight: 600;
      font-size: 1.3rem;
      margin-bottom: 0.75rem;
    }
    
    .material-photo p {
      color: #666;
      line-height: 1.5;
      font-size: 1rem;
      margin: 0;
    }
    
    /* Machines Row Styles */
    .machines-row {
      display: flex;
      gap: 2rem;
      margin-bottom: 2rem;
      width: 100%;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
      justify-content: center;
      align-items: stretch;
      flex: 1;
      min-height: auto; /* Убираем минимальную высоту */
      max-height: none; /* Убираем максимальную высоту */
    }
    
    .machines-row:last-child {
      margin-bottom: 0;
    }
    
  
    /* Machine Description Block - removed as now using standard machine-item structure */
    
    .machine-3ks-description {
      padding: 1.5rem;
      background-color: #f8f9fa;
      border-radius: 8px;
      border-left: 4px solid #003366;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      margin-top: 1rem;
      max-width: 100%;
      overflow-wrap: break-word;
      word-wrap: break-word;
      min-height: 300px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }
    
    .machine-3ks-description h3 {
      color: #003366;
      font-size: 1.5rem;
      margin-bottom: 1rem;
      font-weight: 600;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }
    
    .machine-3ks-description p {
      color: #666;
      line-height: 1.3; /* Уменьшенная высота строки */
      margin-bottom: 0.5rem; /* Уменьшенный отступ */
      font-size: 0.8rem; /* Уменьшенный размер шрифта */
    }
    
    .features-list {
      list-style: none;
      padding: 0;
      margin: 0;
      max-width: 100%;
      overflow-wrap: break-word;
      word-wrap: break-word;
    }
    
    .features-list li {
      padding: 0.5rem 0;
      padding-left: 1.5rem;
      position: relative;
      color: #333;
      font-size: 1rem;
      word-wrap: break-word;
      overflow-wrap: break-word;
      max-width: 100%;
    }
    
    .features-list li::before {
      content: "✓";
      position: absolute;
      left: 0;
      color: #4CAF50;
      font-weight: bold;
      font-size: 1.2rem;
    }
    
    /* Mobile responsiveness */
    @media (max-width: 768px) {
      .samples-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1rem;
      }
      
      .sample-item {
        width: 100%;
        max-width: 400px;
      }
      
      .sample-image {
        height: auto;
      }
      
      .materials-section {
        padding: 1.5rem;
        margin: 0 1rem;
      }
      
      .materials-photos-grid {
        gap: 1rem;
      }
      
      .material-photo {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 250px;
      }
      
      .material-photo img {
        height: 180px; /* Увеличенная высота для соответствия gallery на мобильных */
        width: 100%;
        max-width: 280px;
      }
      
      .machines-container {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
      }
      
      .machines-row {
        flex-direction: column;
        gap: 1.5rem;
        margin: 1rem;
        justify-content: center;
        width: calc(100% - 2rem);
        max-width: 100%;
      }
      
      .machines-row .machine-item {
        max-width: 100%;
      }
      
      .machine-item {
        max-width: 100%;
        min-width: auto;
      }
      
      .image-container {
        min-width: auto;
      }
      
      .image-container img {
        height: auto;
        width: 280px;
      }
      
      /* Мобильные стили для machine-item с описанием 3кс */
      .machine-item:has(.machine-3ks-description) {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
      }
      
      .machine-3ks-content {
        flex: none;
        width: 100%;
      }
      
      .machine-item:has(.machine-3ks-description) .machine-3ks-description {
        flex: none;
        width: 100%;
      }
      
  
      
  
      
      .machine-item:has(.machine-3ks-description) .machine-3ks-description {
        flex: none;
      }
      
      .machine-3ks-description {
        padding: 1rem;
      }
      
      .machine-3ks-description h3 {
        font-size: 1.3rem;
      }
      
      .machine-3ks-description p {
        font-size: 0.9rem;
      }
      
      .features-list li {
        font-size: 0.9rem;
      }
    }
  
    /* Extra small screens */
    @media (max-width: 480px) {
      .materials-photos-grid {
        gap: 1rem;
      }
      
      .material-photo {
        flex: 0 0 100%;
        min-width: 200px;
      }
    }
  
    footer {
      background-color: #003366;
      color: white;
      text-align: center;
      padding: 1rem;
      font-size: 1.1rem;
    }
  
    /* Гравировальный инструмент секция */
    .engraving-tools-section {
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      padding: 4rem 0;
      margin: 3rem 0;
      max-width: 1200px;
      margin-left: max(250px, calc((100vw - 1200px) / 2));
      margin-right: max(250px, calc((100vw - 1200px) / 2));
    }
  
    .section-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
    }
  
    .section-title {
      color: #003366;
      font-size: 1.5rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 3rem;
      position: relative;
    }
  
    .tools-content {
      display: flex;
      align-items: center;
      gap: 4rem;
      background: white;
      padding: 3rem;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      border: 1px solid #e2e8f0;
    }
  
    .tools-image {
      flex: 0 0 300px;
    }
  
    .tools-image img {
      width: 100%;
      height: auto;
      border-radius: 12px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
  
    .tools-info {
      flex: 1;
    }
  
    .tools-description {
      margin-bottom: 2rem;
    }
  
    .tools-description p {
      font-size: 1.1rem;
      line-height: 1.7;
      color: #374151;
      margin-bottom: 1.5rem;
    }
  
    .tools-description strong {
      color: #003366;
      font-weight: 600;
    }
  
    .tools-links {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      align-items: center;
    }
  
    .tool-link {
      display: inline-flex;
      align-items: center;
      color: #2563eb;
      text-decoration: none;
      font-weight: 500;
      font-size: 0.9rem;
      padding: 0.5rem 1rem;
      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
      border-radius: 6px;
      border: 1px solid #e0e7ff;
      transition: all 0.3s ease;
    }
  
    .tool-link:hover {
      background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
      border-color: #2563eb;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }
  
    /* Принцип работы секция */
    .work-principle-section {
      background: white;
      padding: 4rem 0;
      margin: 3rem 0;
      max-width: 1400px;
      margin-left: max(50px, calc((100vw - 1400px) / 2));
      margin-right: max(50px, calc((100vw - 1400px) / 2));
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    .work-principle-section .section-container {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .principle-steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      margin-top: 3rem;
      justify-items: center;
      max-width: 1200px;
      width: 100%;
    }
  
    .step-item {
      display: flex;
      align-items: flex-start;
      gap: 1.5rem;
      padding: 2rem;
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }
  
    .step-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: linear-gradient(180deg, #003366 0%, #2563eb 100%);
    }
  
    .step-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
      border-color: #2563eb;
    }
  
    .step-number {
      flex: 0 0 50px;
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, #003366 0%, #2563eb 100%);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      font-weight: 700;
      box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    }
  
    .step-content {
      flex: 1;
    }
  
    .step-content h3 {
      color: #003366;
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
    }
  
    .step-content p {
      color: #374151;
      line-height: 1.6;
      font-size: 1rem;
    }
  
    .inline-link {
      color: #2563eb;
      text-decoration: none;
      font-weight: 600;
      border-bottom: 2px solid transparent;
      transition: all 0.3s ease;
    }
  
    .inline-link:hover {
      border-bottom-color: #2563eb;
    }
  
    /* Адаптивность */
    @media (max-width: 1200px) {
      .engraving-tools-section,
      .work-principle-section {
        margin-left: 2rem;
        margin-right: 2rem;
      }
    }
  
    @media (max-width: 768px) {
      .engraving-tools-section,
      .work-principle-section {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 2rem 0;
      }
  
      .tools-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
      }
  
      .tools-image {
        flex: none;
        width: 100%;
        max-width: 400px;
      }
  
      .section-title {
        font-size: 1.3rem;
      }
  
      .principle-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
  
      .step-item {
        padding: 1.5rem;
      }
  
      .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
      }
    }
  
    /* Преимущества ударных станков САУНО */
    .advantages-section {
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      padding: 4rem 0;
      margin: 3rem 0;
      max-width: 1200px;
      margin-left: max(250px, calc((100vw - 1200px) / 2));
      margin-right: max(250px, calc((100vw - 1200px) / 2));
    }
  
    .advantages-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }
  
    .advantage-item {
      background: white;
      padding: 1.5rem;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
      border: 1px solid #e2e8f0;
      transition: all 0.3s ease;
    }
  
    .advantage-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
      border-color: #2563eb;
    }
  
    .advantage-text {
      font-size: 1rem;
      line-height: 1.6;
      color: #374151;
    }
  
    .advantage-title {
      color: #003366;
      font-weight: 600;
      text-decoration: underline;
      text-decoration-color: #2563eb;
      text-decoration-thickness: 2px;
      text-underline-offset: 4px;
    }
  
    /* Советы по выбору и приобретению */
    .selection-tips-section {
      background: white;
      padding: 4rem 0;
      margin: 3rem 0;
      max-width: 1200px;
      margin-left: max(250px, calc((100vw - 1200px) / 2));
      margin-right: max(250px, calc((100vw - 1200px) / 2));
    }
  
    .tips-content {
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
      padding: 2.5rem;
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      margin-top: 2rem;
    }
  
    .tips-text {
      font-size: 1.1rem;
      line-height: 1.7;
      color: #374151;
      margin: 0;
      text-align: center;
    }
  
    .tips-link {
      color: #2563eb;
      text-decoration: none;
      font-weight: 600;
      border-bottom: 2px solid transparent;
      transition: all 0.3s ease;
    }
  
    .tips-link:hover {
      border-bottom-color: #2563eb;
      color: #1d4ed8;
    }
  
    /* Адаптивность для новых секций */
    @media (max-width: 1200px) {
      .advantages-section,
      .selection-tips-section {
        margin-left: 2rem;
        margin-right: 2rem;
      }
    }
  
    @media (max-width: 768px) {
      .advantages-section,
      .selection-tips-section {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 2rem 0;
      }
  
      .advantages-list {
        grid-template-columns: 1fr;
        gap: 1rem;
      }
  
      .advantage-item {
        padding: 1.25rem;
      }
  
      .advantage-text {
        font-size: 0.95rem;
      }
  
      .tips-content {
        padding: 2rem;
      }
  
      .tips-text {
        font-size: 1rem;
        text-align: left;
      }
    }
  
    /* Machine Showcase Styles */
    .machine-showcase {
      display: flex;
      gap: 3rem;
      align-items: flex-start;
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
    }
  
    .machine-image-container {
      flex: 1;
      max-width: 100%;
      justify-content: center;
    }
  
    .main-machine-image {
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
  
    .machine-content {
      flex: 1;
      padding-left: 2rem;
    }
  
    .machine-content h2 {
      font-size: 1.8rem;
      margin-bottom: 1.5rem;
      line-height: 1.3;
    }
  
    .machine-description {
      margin-bottom: 2rem;
    }
  
    .machine-description p {
      margin-bottom: 1rem;
      line-height: 1.6;
      color: #374151;
    }
  
    .attention-block {
      background-color: #fef3c7;
      border-left: 4px solid #f59e0b;
      padding: 1rem;
      margin: 1.5rem 0;
      border-radius: 4px;
    }
  
    .attention-block p {
      margin-bottom: 0.5rem;
    }
  
    .version-info {
      background-color: #f0f9ff;
      border-left: 4px solid #3b82f6;
      padding: 1rem;
      margin: 1.5rem 0;
      border-radius: 4px;
    }
  
    .capabilities h3 {
      color: #1e40af;
      font-size: 1.2rem;
      margin-bottom: 1rem;
    }
  
    .machine-links {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
  
    .machine-links-row {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }
  
    .machine-links-row .machine-link {
      flex: 1;
      min-width: 200px;
    }
  
    .machine-link {
      color: #3b82f6;
      text-decoration: none;
      padding: 0.5rem 0;
      border-bottom: 1px solid transparent;
      transition: all 0.3s ease;
    }
  
    .machine-link:hover {
      color: #1d4ed8;
      border-bottom-color: #3b82f6;
    }
  
    @media (max-width: 768px) {
      .machine-showcase {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
      }
  
      .machine-content {
        padding-left: 0;
      }
  
      .machine-content h2 {
        font-size: 1.5rem;
      }
  
      .machine-links-row {
        flex-direction: column;
        gap: 0.5rem;
      }
  
      .machine-links-row .machine-link {
        min-width: auto;
      }
    }
  
    /* Diode Advantages Section */
    .diode-advantages-section {
      padding: 3rem 0;
      background-color: #ffffff;
      margin: 2rem 0;
      min-width: 90%;
      margin-left: max(50px, calc((10vw) / 2));
  
    }
  
    .advantages-content {
      display: flex;
      gap: 3rem;
      align-items: flex-start;
    }
  
    .advantages-images {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      justify-content: center;
      align-items: center;
    }
  
    .advantage-image {
      width: 600px;
    }
  
    .advantage-image img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
  
    .advantages-list {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      min-width: 200px;
    }
  
    .advantage-item {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      min-width: 200px;
    }
  
    .advantage-number {
      background-color: #3b82f6;
      color: white;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 1.1rem;
      flex-shrink: 0;
    }
  
    .advantage-text {
      flex: 1;
      line-height: 1.6;
    }
  
    .advantage-text strong {
      color: #1e40af;
      font-size: 1.1rem;
    }
  
    /* Modernization Section */
    .modernization-section {
      padding: 3rem 0;
      background-color: #f8fafc;
      margin: 2rem 0;
      min-width: 90%;
      margin-left: max(50px, calc((10vw) / 2));
      display: flex;
      justify-content: center;
    }
  
    .modernization-content {
      display: flex;
      gap: 3rem;
      align-items: flex-start;
    }
  
    .modernization-images {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      justify-content: center;
      align-items: center;
    }
  
    .modernization-image {
      width: 600px;
      
    }
  
    .modernization-image img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
  
    .modernization-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }
  
    .modernization-description {
      font-size: 1.1rem;
      line-height: 1.6;
      color: #374151;
    }
  
    .modernization-kit h3 {
      color: #1e40af;
      font-size: 1.3rem;
      margin-bottom: 1rem;
    }
  
    .kit-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
  
    .kit-list li {
      padding: 0.75rem 0;
      border-bottom: 1px solid #e5e7eb;
      position: relative;
      padding-left: 2rem;
      font-size: 1.1rem;
      line-height: 1.5;
    }
  
    .kit-list li:last-child {
      border-bottom: none;
    }
  
    .kit-list li::before {
      content: "✓";
      position: absolute;
      left: 0;
      top: 0.75rem;
      color: #10b981;
      font-weight: bold;
      font-size: 1.2rem;
    }
  
    /* Video Section Styles */
    .video-section {
      padding: 2rem 0;
      background-color: #f8fafc;
      margin: 2rem 0;
    }
  
    .video-container {
      max-width: 400px;
      margin-left: max(100px, calc((100vw - 600px) / 2)); /* Центрирование с учетом sidebar */
      margin-right: max(100px, calc((100vw - 500px) / 2)); /* Симметричный отступ справа */
      padding: 0 2rem;
    }
  
    .video-container iframe {
      width: 100%;
      max-width: 100%;
      height: 300px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
  
    .videos-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
      margin-left: max(100px, calc((100vw - 1280px) / 2)); /* Центрирование с учетом sidebar */
      margin-right: max(100px, calc((100vw - 1200px) / 2)); /* Симметричный отступ справа */
    }
  
    .video-item {
      display: flex;
      flex-direction: column;
    }
  
    .video-label {
      font-size: 1rem;
      font-weight: 600;
      color: #333;
      margin-bottom: 0.75rem;
      text-align: center;
    }
  
    .video-item iframe {
      width: 100%;
      height: 400px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
  
    @media (max-width: 1200px) {
      .videos-container {
        max-width: 100%;
        margin-left: 2rem;
        margin-right: 2rem;
        gap: 2rem;
        grid-template-columns: repeat(2, 1fr);
      }
    }
  
    @media (max-width: 1024px) {
      .videos-container {
        grid-template-columns: 1fr;
        margin-left: 1rem;
        margin-right: 1rem;
        gap: 2rem;
      }
    }
  
    @media (max-width: 768px) {
      .video-container {
        padding: 0 1rem;
        max-width: 100%;
        overflow: hidden;
        min-width: auto;
        margin-left: 0;
        margin-right: 0;
      }
      
      .video-container iframe {
        height: 250px;
        max-width: 100%;
        width: 100%;
      }
  
      .videos-container {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
      }
  
      .video-item {
        max-width: 100%;
        flex: 1 1 100%;
      }
  
      .video-item iframe {
        height: 250px;
        max-width: 100%;
        width: 100%;
      }
  
      .diode-advantages-section,
      .modernization-section {
        min-width: auto;
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 2rem 0;
      }
  
      .advantages-content,
      .modernization-content {
        flex-direction: column;
        gap: 2rem;
      }
  
      .advantages-images,
      .modernization-images {
        order: -1;
        width: 100%;
      }
  
      .advantage-image,
      .modernization-image {
        width: 100% !important;
        margin-top: 0 !important;
      }
  
      .advantage-image img,
      .modernization-image img {
        width: 100%;
        height: auto;
      }
  
      .advantage-item {
        flex-direction: column;
        gap: 0.5rem;
      }
  
      .advantage-number {
        align-self: flex-start;
      }
  
      .modernization-kit h3 {
        font-size: 1.2rem;
      }
  
      .kit-list li {
        font-size: 1rem;
        padding: 0.5rem 0;
      }
    }
  
    /* Tablet styles */
    @media (max-width: 1024px) and (min-width: 769px) {
      .diode-advantages-section,
      .modernization-section {
        min-width: auto;
        margin-left: 2rem;
        margin-right: 2rem;
      }
  
      .advantage-image,
      .modernization-image {
        width: 80% !important;
        margin-top: 10% !important;
      }
    }
  
    /* Small mobile styles */
    @media (max-width: 480px) {
      .diode-advantages-section,
      .modernization-section {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 1.5rem 0;
      }
  
      .section-title {
        font-size: 1.5rem;
        text-align: center;
      }
  
      .advantage-text {
        font-size: 0.95rem;
      }
  
      .advantage-text strong {
        font-size: 1rem;
      }
  
      .modernization-description {
        font-size: 1rem;
      }
  
      .modernization-kit h3 {
        font-size: 1.1rem;
      }
  
      .kit-list li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
      }
  
      .videos-container {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 0 0.5rem;
      }
  
      .video-item iframe {
        height: 200px;
      }
    }
  
  
    @media (max-width: 1600px) {
      .product-detail-container {
          grid-template-columns: 1fr 1fr;
          grid-template-areas: 
              "gallery specs"
              "gallery purchase";
          gap: 2rem;
      }
      
      .product-gallery,
      .product-specs,
      .product-purchase {
          max-width: 100%;
      }
  }
  
  @media (max-width: 968px) {
      .product-detail-container {
          grid-template-columns: 1fr;
          grid-template-areas: 
              "gallery"
              "specs"
              "purchase";
          gap: 1.5rem;
          margin: 1.5rem auto;
      }
  }
  
  @media (max-width: 768px) {
      .product-detail-container {
          gap: 1.5rem;
          margin: 1.5rem auto;
      }
      
      .main-image-container {
          padding: 0.5rem;
      }
      
      .main-product-image {
          min-height: 300px;
          min-width: 100%;
      }
      
      .product-specs {
          min-width: 90%;
      }
      
      .product-specs,
      .product-purchase {
          padding: 1rem;
      }
      
      .price-value {
          font-size: 2rem;
      }
      
      .product-tabs {
          flex-direction: column;
          margin: 1.5rem auto;
      }
      
      .tab-btn {
          border-bottom: 1px solid #e0e6ed;
          border-left: 3px solid transparent;
          text-align: left;
      }
      
      .tab-btn.active {
          border-left-color: #003366;
          border-bottom-color: #e0e6ed;
      }
      
      .tab-pane {
          padding: 1.5rem;
      }
  }
  
  /* Image Zoom Modal Styles */
  .image-zoom-modal {
      display: none;
      position: fixed;
      z-index: 20000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0);
      backdrop-filter: blur(0px);
      -webkit-backdrop-filter: blur(0px);
      align-items: center;
      justify-content: center;
  }
      
  .image-zoom-modal.show {
      display: flex;
  }
  
  .image-zoom-modal.show,
  .image-zoom-modal[style*="display: flex"] {
      background-color: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
  }
  
  .image-zoom-close {
      position: absolute;
      top: 30px;
      right: 50px;
      color: #ffffff;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
      z-index: 20001;
      transition: color 0.3s ease, transform 0.3s ease;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.5);
  }
  
  .image-zoom-close:hover {
      color: #ff0000;
      transform: rotate(90deg);
      background: rgba(0, 0, 0, 0.8);
  }
  
  .zoomed-image-content {
      max-width: 98vw;
      max-height: 98vh;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
      position: relative;
      z-index: 20001;
  }
  
  .image-zoom-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.2);
      color: white;
      border: none;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      font-size: 32px;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 20001;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(10px);
  }
  
  .image-zoom-nav:hover {
      background: rgba(255, 255, 255, 0.4);
      transform: translateY(-50%) scale(1.1);
  }
  
  .prev-zoom-btn {
      left: 30px;
  }
  
  .next-zoom-btn {
      right: 30px;
  }
  
  /* Анимация появления фона */
  @keyframes fadeInBackdrop {
      from {
          opacity: 0;
          backdrop-filter: blur(0px);
          -webkit-backdrop-filter: blur(0px);
      }
      to {
          opacity: 1;
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
      }
  }
  
  /* Responsive styles for image zoom modal */
  @media (max-width: 768px) {
      .image-zoom-close {
          top: 20px;
          right: 20px;
          font-size: 32px;
          width: 40px;
          height: 40px;
      }
      
      .image-zoom-nav {
          width: 50px;
          height: 50px;
          font-size: 24px;
      }
      
      .prev-zoom-btn {
          left: 15px;
      }
      
      .next-zoom-btn {
          right: 15px;
      }
      
      .zoomed-image-content {
          max-width: 98%;
          max-height: 95vh;
      }
  }
  
  /* Product Detail Container Styles */
  .product-detail-container {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-areas: 
          "gallery specs purchase";
      gap: 2rem;
      margin: 2rem auto 3rem auto;
      align-items: start;
      max-width: 100%;
      width: 100%;
      box-sizing: border-box;
  }
  
  .product-gallery {
      grid-area: gallery;
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }
  
  .product-specs {
      grid-area: specs;
  }
  
  .product-purchase {
      grid-area: purchase;
  }
  
  .main-image-container {
      position: relative;
      background: white;
      border-radius: 12px;
      padding: 1rem;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      overflow: hidden;
  }
  
  .main-product-image {
      width: 100%;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      display: block;
      transition: transform 0.3s ease;
      cursor: zoom-in;
      min-height: 400px;
      min-width: 400px;
  }
  
  .image-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 51, 102, 0.8);
      color: white;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 24px;
      cursor: pointer;
      transition: background 0.3s ease;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .image-nav-btn:hover {
      background: rgba(0, 51, 102, 1);
  }
  
  .prev-btn {
      left: 10px;
  }
  
  .next-btn {
      right: 10px;
  }
  
  .zoom-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(0, 51, 102, 0.8);
      color: white;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 18px;
      cursor: pointer;
      transition: background 0.3s ease;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .zoom-btn:hover {
      background: rgba(0, 51, 102, 1);
  }
  
  .thumbnail-gallery {
      display: flex;
      gap: 0.75rem;
      overflow-x: auto;
      padding: 0.5rem 0;
  }
  
  .thumbnail {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      border: 3px solid transparent;
      transition: all 0.3s ease;
      flex-shrink: 0;
  }
  
  .thumbnail:hover {
      border-color: #003366;
      transform: scale(1.05);
  }
  
  .thumbnail.active {
      border-color: #003366;
      box-shadow: 0 2px 8px rgba(0, 51, 102, 0.3);
  }
  
  /* Product Specs */
  .product-specs {
      background: white;
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      max-height: 600px;
      overflow-y: auto;
      min-width: 200px;
  }
  
  .specs-title {
      color: #003366;
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid #e0e6ed;
  }
  
  .specs-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }
  
  .spec-item {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 1rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid #f0f0f0;
  }
  
  .spec-item:last-child {
      border-bottom: none;
  }
  
  /* Чередующийся фон для полных характеристик */
  .full-specs-content .specs-list .spec-item:nth-child(odd) {
      background-color: #f5f5f5;
      padding: 0.75rem 1rem;
      margin: 0;
      border-radius: 4px;
      border-bottom: none;
  }
  
  .full-specs-content .specs-list .spec-item:nth-child(even) {
      background-color: white;
      padding: 0.75rem 1rem;
      margin: 0;
      border-radius: 4px;
      border-bottom: none;
  }
  
  .full-specs-content .specs-list {
      gap: 0.5rem;
  }
  
  .spec-label {
      color: #666;
      font-size: 0.95rem;
      font-weight: 500;
      flex: 1;
  }
  
  .spec-value {
      color: #003366;
      font-size: 0.95rem;
      font-weight: 600;
      text-align: right;
      flex: 1;
  }
  
  .view-all-specs {
      display: block;
      margin-top: 1.5rem;
      color: #003366;
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 600;
      transition: color 0.3s ease;
  }
  
  .view-all-specs:hover {
      color: #0055aa;
      text-decoration: underline;
  }
  
  /* Product Purchase */
  .product-purchase {
      background: white;
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
  }
  
  .working-field-selector {
      margin: 1rem 0;
      padding: 0.5rem 0;
  }
  
  .working-field-label {
      display: block;
      color: #333;
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
      text-align: center;
  }
  
  .working-field-select {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 2px solid #e0e6ed;
      border-radius: 8px;
      font-size: 1rem;
      color: #333;
      background-color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      padding-right: 2.5rem;
  }
  
  .working-field-select:hover {
      border-color: #003366;
  }
  
  .working-field-select:focus {
      outline: none;
      border-color: #003366;
      box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
  }
  
  .working-field-select option {
      padding: 0.5rem;
  }
  
  .product-price {
      text-align: center;
  }
  
  .price-value {
      color: #003366;
      font-size: 1.8rem;
      font-weight: 700;
      transition: opacity 0.3s ease;
  }
  
  .price-value.updating {
      opacity: 0.5;
  }
  
  .purchase-buttons {
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }
  
  .consultation-btn,
  .cart-btn {
      width: 100%;
      padding: 1rem 1.5rem;
      border: none;
      border-radius: 8px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
  }
  
  .consultation-btn {
      background: linear-gradient(135deg, #003366, #004d99);
      color: white;
  }
  
  .consultation-btn:hover {
      background: linear-gradient(135deg, #004d99, #003366);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
  }
  
  .cart-btn {
      background: #0055aa;
      color: white;
  }
  
  .cart-btn:hover {
      background: #004080;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 85, 170, 0.3);
  }
  
  .delivery-info {
      text-align: center;
      padding-top: 1rem;
      border-top: 1px solid #e0e6ed;
  }
  
  .delivery-time {
      color: #333;
      font-size: 1rem;
      margin-bottom: 0.5rem;
  }
  
  .delivery-link {
    display: none;
      color: #003366;
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 600;
      transition: color 0.3s ease;
  }
  
  .delivery-link:hover {
      color: #0055aa;
      text-decoration: underline;
  }
  
  .disclaimer {
      color: #666;
      font-size: 0.85rem;
      text-align: center;
      margin: 0;
      font-style: italic;
  }
  
  /* Product Tabs */
  .product-tabs {
      display: flex;
      gap: 0;
      border-bottom: 2px solid #e0e6ed;
      margin: 2rem auto;
      max-width: 100%;
      width: 100%;
      box-sizing: border-box;
  }
  
  .tab-btn {
      flex: 1;
      padding: 1rem 1.5rem;
      background: transparent;
      border: none;
      border-bottom: 3px solid transparent;
      color: #666;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-bottom: -2px;
  }
  
  .tab-btn:hover {
      color: #003366;
      background: #f8f9fa;
  }
  
  .tab-btn.active {
      color: #003366;
      border-bottom-color: #003366;
      background: transparent;
  }
  
  /* Tab Content */
  .tab-content {
      min-height: 200px;
      max-width: 100%;
      width: 100%;
      margin: 0 auto 2rem auto;
      box-sizing: border-box;
  }
  
  .tab-pane {
      display: none;
      padding: 2rem;
      background: white;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .tab-pane.active {
      display: block;
  }
  
  .full-specs-content h3 {
      color: #003366;
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
  }
  
  .video-content {
      text-align: center;
      padding: 2rem;
  }
  
  .video-content p {
      color: #333;
      font-size: 1.1rem;
      margin-bottom: 1.5rem;
  }
  
  .video-container {
      max-width: 800px;
      margin: 0 auto 2rem;
      padding: 0 1rem;
  }
  
  /* Центрирование видео во вкладке */
  .tab-content .videos-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
      max-width: 1200px !important;
      min-width: auto !important;
      margin: 0 auto !important;
      margin-left: auto !important;
      margin-right: auto !important;
      padding: 0 2rem;
      width: 100% !important;
  }
  
  .tab-content .video-item {
      width: 100%;
      display: flex;
      flex-direction: column;
  }
  
  .tab-content .video-label {
      font-size: 1rem;
      font-weight: 600;
      color: #333;
      margin-bottom: 0.75rem;
      text-align: center;
  }
  
  .tab-content .video-item iframe {
      width: 100%;
      height: 400px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  @media (max-width: 1024px) {
      .tab-content .videos-container {
          grid-template-columns: 1fr;
      }
  }
  
  .video-container iframe {
      width: 100%;
      height: 400px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  @media (max-width: 768px) {
      .video-container {
          padding: 0 0.5rem;
          max-width: 100%;
          overflow: hidden;
      }
      
      .video-container iframe {
          height: 250px;
          max-width: 100%;
          width: 100%;
      }
  }
  
  .video-link {
      display: inline-block;
    margin-top: 1.5rem;
      padding: 1rem 2rem;
      background: linear-gradient(135deg, #003366, #004d99);
      color: white;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 600;
      transition: all 0.3s ease;
  }
  
  .video-link:hover {
      background: linear-gradient(135deg, #004d99, #003366);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
  }
  
  /* Responsive styles for product detail */
  @media (max-width: 1600px) {
      .product-detail-container {
          grid-template-columns: 1fr 1fr;
          grid-template-areas: 
              "gallery specs"
              "gallery purchase";
          gap: 2rem;
      }
      
      .product-gallery,
      .product-specs,
      .product-purchase {
          max-width: 100%;
      }
  }
  
  @media (max-width: 968px) {
      .product-detail-container {
          grid-template-columns: 1fr;
          grid-template-areas: 
              "gallery"
              "specs"
              "purchase";
          gap: 1.5rem;
          margin: 1.5rem auto;
      }
  }
  
  @media (max-width: 768px) {
      .product-detail-container {
          gap: 1.5rem;
          margin: 1.5rem auto;
      }
      
      .main-image-container {
          padding: 0.5rem;
      }
      
      .main-product-image {
          min-height: 300px;
          min-width: 100%;
      }
      
      .product-specs {
          min-width: 90%;
      }
      
      .product-specs,
      .product-purchase {
          padding: 1rem;
      }
      
      .price-value {
          font-size: 1.6rem;
      }
      
      .product-tabs {
          flex-direction: column;
          margin: 1.5rem auto;
      }
      
      .tab-btn {
          border-bottom: 1px solid #e0e6ed;
          border-left: 3px solid transparent;
          text-align: left;
      }
      
      .tab-btn.active {
          border-left-color: #003366;
          border-bottom-color: #e0e6ed;
      }
      
      .tab-pane {
          padding: 1.5rem;
      }
  }
  
  /* Image Zoom Modal Styles */
  .image-zoom-modal {
      display: none;
      position: fixed;
      z-index: 20000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0);
      backdrop-filter: blur(0px);
      -webkit-backdrop-filter: blur(0px);
      align-items: center;
      justify-content: center;
  }
      
  .image-zoom-modal.show {
      display: flex;
  }
  
  .image-zoom-modal.show,
  .image-zoom-modal[style*="display: flex"] {
      background-color: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
  }
  
  .image-zoom-close {
      position: absolute;
      top: 30px;
      right: 50px;
      color: #ffffff;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
      z-index: 20001;
      transition: color 0.3s ease, transform 0.3s ease;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.5);
  }
  
  .image-zoom-close:hover {
      color: #ff0000;
      transform: rotate(90deg);
      background: rgba(0, 0, 0, 0.8);
  }
  
  .zoomed-image-content {
      max-width: 98vw;
      max-height: 98vh;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
      position: relative;
      z-index: 20001;
  }
  
  .image-zoom-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.2);
      color: white;
      border: none;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      font-size: 32px;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 20001;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(10px);
  }
  
  .image-zoom-nav:hover {
      background: rgba(255, 255, 255, 0.4);
      transform: translateY(-50%) scale(1.1);
  }
  
  .prev-zoom-btn {
      left: 30px;
  }
  
  .next-zoom-btn {
      right: 30px;
  }
  
  /* Анимация появления фона */
  @keyframes fadeInBackdrop {
      from {
          opacity: 0;
          backdrop-filter: blur(0px);
          -webkit-backdrop-filter: blur(0px);
      }
      to {
          opacity: 1;
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
      }
  }
  
  /* Responsive styles for image zoom modal */
  @media (max-width: 768px) {
      .image-zoom-close {
          top: 20px;
          right: 20px;
          font-size: 32px;
          width: 40px;
          height: 40px;
      }
      
      .image-zoom-nav {
          width: 50px;
          height: 50px;
          font-size: 24px;
      }
      
      .prev-zoom-btn {
          left: 15px;
      }
      
      .next-zoom-btn {
          right: 15px;
      }
      
      .zoomed-image-content {
          max-width: 98%;
          max-height: 95vh;
      }
  }
  
  /* Top Contact Bar */
  /* Top Contact Bar */
  .top-contact-bar {
      min-height: 60px;
      max-height: 80px;
      background: #003366; /* Тот же цвет, что и header */
      background-image: url('/saunoStankiPhotoes/in_webp_format/image-for-header.webp');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-bottom: 1px solid #004080;
      padding: 0.5rem 0;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      box-sizing: border-box;
  }
  
  .contact-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      gap: 2rem;
  }
  
  /* Header logo section in top-contact-bar */
  .top-contact-bar .header-logo-section {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-shrink: 0;
  }
  
  .top-contact-bar .header-company-name {
      display: block;
  }
  
  .top-contact-bar .header-company-name a {
      color: white;
      text-decoration: none;
      font-size: 1.2rem;
      font-weight: 700;
      font-family: 'Georgia', serif;
      font-style: italic;
  }
  
  .top-contact-bar .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
  }
  
  .rutube-circle {
    font-size: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: #003366; /* красный RuTube */
    color: #fff;
    font-size: 22px;
    font-weight: bold;
  
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: 0.3s;
  }
  
  .rutube-circle span {
      font-size: 20px;
      color: #fff;
      font-weight: bold;
      margin-left: 5px;
  }
  
  .top-contact-bar .company-logo {
      display: flex;
      align-items: center;
  }
  
  .top-contact-bar .company-logo img {
      border-radius: 4px;
      opacity: 0.9;
      transition: opacity 0.3s ease;
      width: 50px;
      height: 50px;
      object-fit: contain;
      display: block;
      flex-shrink: 0;
  }
  
  .top-contact-bar .company-logo img:hover {
      opacity: 1;
  }
  
  .company-info {
      flex: 1;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0.75rem;
  }
  
  .company-name {
      font-size: 2.6rem;
      font-weight: 700;
      color: #ffffff; /* Белый цвет для видимости на синем фоне */
      margin: 0;
      font-family: 'Georgia', serif;
      font-style: italic;
      display:flex;
      justify-content: center;
  }
  
  .company-name a {
      color: inherit;
      text-decoration: none;
      transition: opacity 0.3s ease;
  }
  
  .company-name a:hover {
      opacity: 0.8;
  }
  
  .company-description {
      font-size: 0.95rem;
      color: #e6f3ff; /* Светло-голубой цвет для видимости на синем фоне */
      line-height: 1.4;
      margin: 0;
      margin-left: 1.25rem; /* Восстанавливаем расстояние до описания */
      width: 500px;
      font-weight: 400;
  }
  
  .contact-actions {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 1.5rem;
      width: 500px;
      flex-shrink: 0;
      max-height: 60px;
      overflow: hidden;
  }
  
  .contact-info {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
  }
  
  .phone-number {
      font-size: 1.3rem;
      font-weight: 700;
      color: #ffffff; /* Белый цвет для видимости на синем фоне */
  }
  
  /* Social links in top-contact-bar */
  .social-links-top {
      display: flex;
      gap: 1rem;
      justify-content: center;
      align-items: center;
      max-height: 40px;
      overflow: hidden;
  }
  
  .social-link-top {
      display: flex;
      align-items: center;
      justify-content: center;
      width: auto;
      height: auto;
      border-radius: 0;
      background: transparent;
      color: #ffffff;
      text-decoration: none;
      transition: all 0.3s ease;
      border: none;
      padding: 0;
  }
  
  .social-link-top svg {
      fill: #ffffff;
      color: #ffffff;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .social-link-top:hover {
      background: transparent;
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  }
  
  .social-link-top:hover svg {
      fill: #ffffff;
      color: #ffffff;
  }
  
  .rutube-circle-top {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      background-color: #003366;
      color: #fff;
      font-size: 18px;
      font-weight: bold;
      text-decoration: none;
      box-shadow: 0 4px 6px rgba(0,0,0,0.2);
      transition: 0.3s;
  }
  
  .rutube-circle-top span {
      font-size: 20px;
      color: #003366;
      background-color: #fff;
      font-weight: bold;
      margin-left: 2px;
      width: 20px;
      display: flex;
      justify-content: center;
  }
  
  .rutube-circle-top:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  }
  
  .contact-button {
      background: #ffffff; /* Белый фон для контраста */
      color: #003366; /* Синий текст */
      border: 2px solid #ffffff;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
      white-space: nowrap;
      max-height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
  }
  
  .contact-button:hover {
      background: #f0f8ff; /* Светло-голубой при наведении */
      color: #003366;
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
  }
  
  .contact-button:active {
      transform: translateY(0);
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
      .contact-content {
          flex-direction: column;
          text-align: center;
          gap: 1.5rem;
      }
      
      .company-info {
          flex-direction: row;
          gap: 0.5rem;
          justify-content: center;
          align-items: center;
      }
      
      .company-name {
          font-size: 2.2rem;
      }
      
      .company-description {
          font-size: 0.9rem;
          width: 100%;
          margin-top: 1rem;
          margin-left: 1.5rem; /* Восстанавливаем расстояние до описания */
      }
      
      .contact-actions {
          flex-direction: column;
          gap: 1rem;
          width: 100%;
          flex-shrink: 0;
          justify-content: center;
      }
      
      .contact-info {
          gap: 0.4rem;
      }
      
      .social-links-top {
          gap: 1rem;
      }
      
      .social-link-top svg {
          width: 28px;
          height: 28px;
      }
      
      .rutube-circle-top {
          width: 24px;
          height: 24px;
          font-size: 20px;
      }
      
      .rutube-circle-top span {
          font-size: 16px;
          width: 16px;
      }
      
      .phone-number {
          font-size: 1.1rem;
          font-weight: 600;
      }
      
      .contact-button {
          padding: 0.6rem 1.2rem;
          font-size: 0.9rem;
      }
  }
  
  @media (max-width: 1024px) {
      .contact-content {
          flex-direction: column;
          text-align: center;
          gap: 1.5rem;
      }
      
      .company-info {
          flex-direction: row;
          gap: 0.5rem;
          justify-content: center;
          align-items: center;
      }
      
      .company-name {
          font-size: 2rem;
      }
      
      .company-description {
          font-size: 0.9rem;
          width: 100%;
          margin-top: 1rem;
          margin-left: 1.5rem; /* Восстанавливаем расстояние до описания */
      }
      
      .contact-actions {
          flex-direction: column;
          align-items: center;
          width: 100%;
          flex-shrink: 0;
      }
      
      .contact-info {
          gap: 0.3rem;
      }
      
      .social-links-top {
          gap: 0.8rem;
      }
      
      .social-link-top svg {
          width: 26px;
          height: 26px;
      }
      
      .rutube-circle-top {
          width: 22px;
          height: 22px;
          font-size: 18px;
      }
      
      .rutube-circle-top span {
          font-size: 14px;
          width: 14px;
      }
      
      .phone-number {
          font-size: 1.1rem;
      }
      
      .contact-button {
          padding: 0.6rem 1.2rem;
          font-size: 0.9rem;
      }
  }
  
  @media (max-width: 768px) {
      .contact-content {
          flex-direction: column;
          text-align: center;
          gap: 1.5rem;
      }
      
      .company-info {
          flex-direction: row;
          gap: 0.5rem;
          justify-content: center;
          align-items: center;
      }
      
      .company-name {
          font-size: 1.8rem;
      }
      
      .company-description {
          font-size: 0.8rem;
          width: 100%;
          margin-top: 1rem;
      }
      
      .contact-actions {
          flex-direction: column;
          gap: 1rem;
          width: 100%;
          flex-shrink: 0;
      }
      
      .contact-info {
          gap: 0.3rem;
      }
      
      .social-links-top {
          gap: 0.6rem;
      }
      
      .social-link-top svg {
          width: 24px;
          height: 24px;
      }
      
      .rutube-circle-top {
          width: 20px;
          height: 20px;
          font-size: 16px;
      }
      
      .rutube-circle-top span {
          font-size: 12px;
          width: 12px;
      }
      
      .phone-number {
          font-size: 1rem;
      }
      
      .contact-button {
          padding: 0.5rem 1rem;
          font-size: 0.8rem;
      }
  }
  
  /* Header */
  header {
      background-color: #003366;
      background-image: url('/saunoStankiPhotoes/in_webp_format/image-for-header.webp');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      color: white;
      display: flex;
      height: var(--header-height);
      align-items: center;
      padding: 0 2rem;
      box-sizing: border-box;
      max-height: 50px;
  }
  
  .header-content {
      display: flex;
      align-items: center;
      justify-content: space-around; /* По умолчанию space-around для обычной навигации */
      gap: 0rem;
      margin: 0 auto;
      width: 100%;
      max-width: 1200px;
  }
  
  /* Header Logo Section - объединенный логотип и название */
  .header-logo-section {
      display: none; /* Скрыт по умолчанию, показывается только на мобильных */
      align-items: center;
      gap: 1rem;
  }
  
  /* Header Company Name - скрыт по умолчанию */
  .header-company-name {
      display: none;
  }
  
  .header-company-name a {
      color: white;
      text-decoration: none;
      font-size: 1.5rem;
      font-weight: 700;
      font-family: 'Georgia', serif;
      font-style: italic;
  }
  
  .logo {
      font-size: 2rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 0.5rem;
  }
  
  .logo a {
      color: white;
      text-decoration: none;
  }
  
  .company-logo img {
      border-radius: 4px;
      opacity: 0.9;
      transition: opacity 0.3s ease;
  }
  
  .company-logo img:hover {
      opacity: 1;
  }
  
  nav ul {
      list-style: none;
      display: flex;
      gap: 1rem;
  }
  
  nav a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      padding: 1rem 0.5rem;
      transition: background-color 0.3s ease;
  }
  
  nav a:hover {
      background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Burger Menu Styles */
  /* Mobile Social Links - показываются только на мобильных */
  .mobile-social-links {
    display: none; /* Скрыты по умолчанию */
    align-items: center;
    gap: 0.5rem; /* Уменьшенный отступ между иконками */
    margin-right: 0.5rem; /* Ближе к бургеру */
  }
  
  .mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    width: 32px; /* Увеличенный размер */
    height: 32px; /* Увеличенный размер */
  }
  
  .mobile-social-link svg {
    width: 24px; /* Увеличенный размер SVG */
    height: 24px;
  }
  
  .mobile-social-link:hover {
    transform: scale(1.1);
  }
  
  .mobile-social-link.vk:hover {
    color: #4680C2;
  }
  
  .mobile-social-link.telegram:hover {
    color: #0088cc;
  }
  
  .mobile-social-link.youtube:hover {
    color: #FF0000;
  }
  
  .mobile-social-link.rutube {
    background-color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
  }
  
  .mobile-social-link.rutube span {
    color: #003366;
    font-weight: bold;
    font-size: 14px;
  }
  
  .mobile-social-link.rutube:hover {
    background-color: #e0e0e0;
  }
  
  .burger-menu-btn {
      display: none;
      flex-direction: column;
      justify-content: space-around;
      width: 30px;
      height: 30px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 1001;
  }
  
  .burger-line {
      width: 100%;
      height: 3px;
      background-color: white;
      border-radius: 2px;
      transition: all 0.3s ease;
      transform-origin: center;
  }
  
  /* Burger animation when active */
  .burger-menu-btn.active .burger-line:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
  }
  
  .burger-menu-btn.active .burger-line:nth-child(2) {
      opacity: 0;
  }
  
  .burger-menu-btn.active .burger-line:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Desktop Navigation Styles */
  .main-nav {
      display: block;
  }
  
  @media (min-width: 1201px) {
      .burger-menu-btn {
          display: none !important;
      }
      
      /* Скрываем стрелочки на десктопе */
      .mobile-submenu-toggle {
          display: none !important;
      }
      
      /* Восстанавливаем hover поведение на десктопе */
      .main-nav li:hover .submenu,
      .main-nav li:focus-within .submenu {
          display: block;
      }
      
      /* Показываем left-panel только на больших экранах где нет бургер-меню */
      .left-nav-panel {
          display: block !important;
      }
      
      /* Показываем news-block только на больших экранах вместе с left-nav-panel */
      .news-block {
          display: block !important;
      }
      
      .main-nav {
          position: static;
          width: auto;
          height: auto;
          background-color: transparent;
          padding-top: 0;
          overflow-y: visible;
          left: auto;
      }
      
      /* Скрываем мобильные контактные элементы на больших экранах */
      .mobile-contact-info {
          display: none;
      }
      
      /* Показываем category-filter на больших экранах */
      .category-filter {
          display: flex !important;
      }
  }
  
  /* Mobile Navigation Styles */
  @media (max-width: 1200px) {
      .burger-menu-btn {
          display: flex;
      }
      
      /* Показываем мобильные соц-сети когда появляется бургер-меню */
      .mobile-social-links {
          display: flex;
      }
      
      /* Скрываем left-panel когда появляется бургер-меню */
      .left-nav-panel {
          display: none !important;
      }
      
      /* Скрываем news-block когда появляется бургер-меню */
      .news-block {
          display: none !important;
      }
      
      /* Изменяем justify-content на space-between для бургер-меню */
      .header-content {
          justify-content: space-between;
      }
      
      /* Скрываем весь top-contact-bar на мобильных */
      .top-contact-bar {
          display: none;
      }
      
      /* Показываем название компании в header на мобильных */
      .header-company-name {
          display: block;
      }
      
      /* Показываем header logo section на мобильных */
      .header-logo-section {
          display: flex;
          align-items: center;
          gap: 0.5rem;
      }
      
      .header-logo-section .logo {
          display: flex;
          align-items: center;
      }
      
      .header-logo-section .company-logo img {
          width: 40px;
          height: 40px;
          object-fit: contain;
      }
      
      /* Скрываем элементы top-contact-bar на мобильных */
      .company-description,
      .contact-actions {
          display: none;
      }
      
      /* Скрываем category-filter на мобильных */
      .category-filter {
          display: none !important;
      }
      
      .main-nav {
          display: block;
          position: fixed;
          top: 0;
          left: -100%;
          width: 100%;
          height: 100vh;
          background-color: #003366;
          transition: left 0.3s ease;
          z-index: 1000;
          padding-top: 80px;
          overflow-y: auto;
      }
      
      .main-nav.active {
          left: 0;
      }
      
      .main-nav ul {
          flex-direction: column;
          gap: 0;
          padding: 0;
          margin: 0;
      }
      
      .main-nav li {
          width: 100%;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
          position: relative;
      }
      
      .main-nav .nav-item-wrapper {
          display: flex;
          align-items: center;
          justify-content: space-between;
          width: 100%;
      }
      
      .main-nav a {
          padding: 1.5rem 2rem;
          font-size: 1.2rem;
          flex: 1;
          box-sizing: border-box;
      }
      
      .main-nav .mobile-submenu-toggle {
          display: flex !important;
          align-items: center;
          justify-content: center;
          width: 40px;
          height: 40px;
          color: white;
          font-size: 0.8rem;
          cursor: pointer;
          transition: transform 0.3s ease;
          user-select: none;
          padding-right: 1rem;
      }
      
      .main-nav li.submenu-open .mobile-submenu-toggle {
          transform: rotate(90deg);
      }
      
      .main-nav .submenu {
          position: static;
          background-color: rgba(0, 0, 0, 0.2);
          box-shadow: none;
          width: 100%;
          opacity: 1;
          visibility: visible;
          transform: none;
          display: none;
      }
      
      .main-nav li.submenu-open .submenu {
          display: block;
      }
      
      .main-nav .submenu li {
          border-bottom: none;
      }
      
      .main-nav .submenu a {
          padding: 1rem 3rem;
          font-size: 1rem;
          color: rgba(255, 255, 255, 0.8);
      }
      
      /* Стили для мобильных контактных элементов */
      .mobile-contact-info {
          padding: 2rem;
          border-bottom: 1px solid rgba(255, 255, 255, 0.2);
          margin-bottom: 1rem;
      }
      
      .mobile-company-description {
          color: white;
          font-size: 0.9rem;
          line-height: 1.4;
          margin-bottom: 1.5rem;
          text-align: center;
      }
      
      .mobile-contact-actions {
          display: flex;
          flex-direction: column;
          gap: 1rem;
          align-items: center;
      }
      
      .mobile-phone-number {
          color: white;
          font-size: 1.2rem;
          font-weight: 600;
          text-align: center;
      }
      
      .mobile-contact-button {
          background: #004080;
          color: white;
          border: none;
          padding: 0.8rem 1.5rem;
          border-radius: 5px;
          font-size: 0.9rem;
          font-weight: 500;
          cursor: pointer;
          transition: background-color 0.3s ease;
          text-align: center;
          width: 100%;
          max-width: 250px;
      }
      
      .mobile-contact-button:hover {
          background: #0056b3;
      }
  }
  
  /* Dropdown menu */
  nav ul li {
      position: relative;
  }
  
  /* Overlay will be created by JavaScript */
  .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      background: rgba(0, 0, 0, 0.2);
      z-index: 998;
      pointer-events: none;
      display: none;
      opacity: 0;
      transition: opacity 0.3s ease;
  }
  
  .overlay.show {
      opacity: 1;
  }
  
  nav ul li .submenu {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      background: #ffffff;
      color: #003366;
      border-radius: 0;
      box-shadow: 0 6px 18px rgba(0,0,0,0.15);
      padding: 2rem 0;
      z-index: 1001;
      max-height: 80vh;
      overflow-y: auto;
      border-top: 3px solid #003366;
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.15s ease, transform 0.15s ease;
  }
  
  nav ul li .submenu.show {
      opacity: 1;
      transform: translateY(0);
  }
  
  /* Невидимая область для плавного перехода курсора */
  nav ul li .submenu::before {
      content: '';
      position: absolute;
      top: -20px;
      left: 0;
      width: 100%;
      height: 20px;
      background: transparent;
      z-index: 1002;
  }
  
  nav ul li .submenu li {
      display: block;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
  }
  
  nav ul li .submenu a {
      display: block;
      padding: 1rem 1.5rem;
      color: #003366;
      text-decoration: none;
      font-size: 1.1rem;
      border-bottom: 1px solid #e0e6ed;
      transition: all 0.3s ease;
  }
  
  nav ul li .submenu a:hover {
      background: #eaf0f8;
      padding-left: 2rem;
  }
  
  nav ul li .submenu li:last-child a {
      border-bottom: none;
  }
  
  /* Modal Styles */
  /* Modal Styles */
  .modal {
      display: none;
      position: fixed;
      z-index: 10000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
      animation: fadeIn 0.3s ease;
  }
  
  .modal.show {
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .modal-content {
      background-color: white;
      margin: auto;
      padding: 2rem;
      border-radius: 12px;
      width: 90%;
      max-width: 500px;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      animation: slideIn 0.3s ease;
  }
  
  .close {
      color: #aaa;
      float: right;
      font-size: 28px;
      font-weight: bold;
      position: absolute;
      top: 15px;
      right: 20px;
      cursor: pointer;
      transition: color 0.3s ease;
  }
  
  .close:hover,
  .close:focus {
      color: #003366;
      text-decoration: none;
  }
  
  .modal-content h2 {
      color: #003366;
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      text-align: center;
  }
  
  .modal-content p {
      color: #666;
      font-size: 1rem;
      margin-bottom: 2rem;
      text-align: center;
      line-height: 1.5;
  }
  
  .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
  }
  
  .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
  }
  
  .form-group label {
      color: #003366;
      font-weight: 600;
      font-size: 0.9rem;
  }
  
  .form-group label:has-text("*") {
      color: #d32f2f;
  }
  
  /* Стили для обязательных полей */
  .form-group input[required],
  .form-group textarea[required] {
      border-left: 3px solid #003366;
  }
  
  .form-group input[required]:focus,
  .form-group textarea[required]:focus {
      border-left-color: #003366;
  }
  
  .form-group input,
  .form-group textarea {
      padding: 16px 20px;
      border: 2px solid #e1e5e9;
      border-radius: 8px;
      font-size: 1.15rem;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
      background-color: #fff;
      min-height: 50px;
      box-sizing: border-box;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
      outline: none;
      border-color: #003366;
      box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
  }
  
  .form-group input::placeholder,
  .form-group textarea::placeholder {
      color: #999;
  }
  
  .submit-btn {
      background: linear-gradient(135deg, #003366, #004d99);
      color: white;
      border: none;
      padding: 14px 24px;
      border-radius: 8px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 0.5rem;
  }
  
  .submit-btn:hover {
      background: linear-gradient(135deg, #004d99, #003366);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
  }
  
  .submit-btn:active {
      transform: translateY(0);
  }
  
  /* Animations */
  @keyframes fadeIn {
      from {
          opacity: 0;
      }
      to {
          opacity: 1;
      }
  }
  
  @keyframes slideIn {
      from {
          opacity: 0;
          transform: translateY(-50px) scale(0.9);
      }
      to {
          opacity: 1;
          transform: translateY(0) scale(1);
      }
  }
  
  /* Success Content Styles */
  .success-content {
      text-align: center;
      padding: 2rem 0;
  }
  
  .success-icon {
      margin-bottom: 2rem;
      animation: successBounce 0.6s ease-out;
  }
  
  .success-content h2 {
      color: #2E7D32;
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 1rem;
      animation: fadeInUp 0.6s ease-out 0.2s both;
  }
  
  .success-content p {
      color: #666;
      font-size: 1.1rem;
      margin-bottom: 2rem;
      animation: fadeInUp 0.6s ease-out 0.4s both;
  }
  
  .close-success-btn {
      background: linear-gradient(135deg, #4CAF50, #2E7D32);
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      animation: fadeInUp 0.6s ease-out 0.6s both;
  }
  
  .close-success-btn:hover {
      background: linear-gradient(135deg, #2E7D32, #4CAF50);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
  }
  
  .close-success-btn:active {
      transform: translateY(0);
  }
  
  /* Success Animations */
  @keyframes successBounce {
      0% {
          opacity: 0;
          transform: scale(0.3);
      }
      50% {
          opacity: 1;
          transform: scale(1.1);
      }
      100% {
          opacity: 1;
          transform: scale(1);
      }
  }
  
  @keyframes fadeInUp {
      from {
          opacity: 0;
          transform: translateY(30px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  /* Form Content Styles */
  .form-content {
      animation: fadeIn 0.3s ease;
  }
  
  /* Products Submenu Styles */
  .products-submenu {
      width: 100vw !important;
      max-width: 100vw;
      left: 0 !important;
      right: 0 !important;
      transform: none !important;
  }
  
  .submenu-columns {
      display: flex;
      gap: 3rem;
      padding: 2rem 3rem;
      max-width: 1200px;
      margin: 0 auto;
      justify-content: center;
  }
  
  .submenu-column {
      flex: 1;
      min-width: 0;
      max-width: 300px;
  }
  
  .submenu-column h1 {
      color: #003366;
      font-size: 1.1 rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 2px solid #003366;
      padding-bottom: 0.75rem;
      text-align: center;
  }
  
  .submenu-column h3 {
      color: #003366;
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 2px solid #003366;
      padding-bottom: 0.75rem;
      text-align: center;
  }
  
  .submenu-column ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
  }
  
  .submenu-column ul li {
      margin-bottom: 0;
  }
  
  .submenu-column ul li a {
      color: #333;
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 500;
      transition: all 0.3s ease;
      display: block;
      padding: 0.5rem 0.75rem;
      border-radius: 4px;
      text-align: center;
      border: 1px solid transparent;
  }
  
  .submenu-column ul li a:hover {
      color: #003366;
      background-color: #f8f9fa;
      border-color: #e1e5e9;
      transform: translateY(-1px);
  }
  
  /* Mobile responsiveness for products submenu */
  @media (max-width: 768px) {
      .products-submenu {
          width: 100vw !important;
          max-width: 100vw;
          left: 0 !important;
          right: 0 !important;
      }
      
      .submenu-columns {
          flex-direction: column;
          gap: 2rem;
          padding: 1.5rem 1rem;
          max-width: 100%;
      }
      
      .submenu-column {
          max-width: 100%;
      }
      
      .submenu-column h3 {
          font-size: 0.85rem;
          margin-bottom: 1rem;
      }
      
      .submenu-column ul li a {
          font-size: 0.9rem;
          padding: 0.4rem 0.5rem;
      }
  }
  
  /* Responsive grid for machines */
  @media (max-width: 1200px) {
      .machines-grid {
          grid-template-columns: repeat(3, 1fr);
          gap: 1.25rem;
          justify-content: center;
      }
  }
  
  @media (max-width: 768px) {
      .gallery h1 {
          margin-bottom: 4rem;
      }
      
      .machines-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 1rem;
          justify-content: center;
      }
      
      .machine-item {
          max-width: 100%;
          min-width: 150px;
      }
      
      .image-container {
          min-width: 150px;
          height: auto;
      }
  }
  
  @media (max-width: 480px) {
      .gallery h1 {
          margin-bottom: 4.5rem;
      }
      
      .machines-grid {
          grid-template-columns: repeat(1, 1fr);
          gap: 0.75rem;
          justify-content: center;
      }
      
      .machine-item {
          min-width: 140px;
          padding: 0.4rem;
      }
      
      .image-container {
          min-width: 140px;
          height: auto;
          margin-bottom: 0.5rem;
      }
  }
  
  /* Responsive styles for applications and services grids */
  @media (max-width: 1024px) {
      .applications-grid,
      .services-grid {
          grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
          gap: 1.5rem;
          justify-content: center;
      }
      
      .applications-grid .machine-item {
          min-height: 250px;
      }
      
      .applications-grid .machine-item .image-container {
          height: 180px;
      }
      
      .services-grid .machine-item {
          min-height: 200px;
      }
      
      .services-grid .machine-item .image-container {
          height: 140px;
      }
  }
  
  @media (max-width: 768px) {
      .applications-grid,
      .services-grid {
          grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
          gap: 1rem;
          justify-content: center;
      }
      
      .applications-grid .machine-item {
          min-height: 220px;
      }
      
      .applications-grid .machine-item .image-container {
          height: 160px;
      }
      
      .services-grid .machine-item {
          min-height: 180px;
      }
      
      .services-grid .machine-item .image-container {
          height: 130px;
      }
  }
  
  @media (max-width: 480px) {
      .applications-grid,
      .services-grid {
          grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
          gap: 0.75rem;
          justify-content: center;
      }
      
      .applications-grid .machine-item {
          min-height: 200px;
      }
      
      .applications-grid .machine-item .image-container {
          height: 140px;
      }
      
      .services-grid .machine-item {
          min-height: 160px;
      }
      
      .services-grid .machine-item .image-container {
          height: 120px;
      }
  }
  
  /* Стили для чекбоксов в модальном окне */
  .agreements-section {
      margin: 1rem 0;
      padding: 0.75rem;
      background-color: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #e9ecef;
  }
  
  .checkbox-group {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
  }
  
  .checkbox-group:last-child {
      margin-bottom: 0;
  }
  
  .checkbox-group > div {
      display: flex;
      align-items: center;
      flex-shrink: 0;
      max-height: 30px;
      min-width: 20px;
      overflow: hidden;
  }
  
  .checkbox-group input[type="checkbox"] {
      margin: 0;
      width: 16px;
      height: 20px;
      min-width: 16px;
      accent-color: #003366;
      cursor: pointer;
      flex-shrink: 0;
      outline: none;
  }
  
  .checkbox-group input[type="checkbox"]:focus {
      outline: 2px solid #003366;
      outline-offset: 2px;
  }
  
  .checkbox-group input[type="checkbox"]:focus-visible {
      outline: 2px solid #003366;
      outline-offset: 2px;
  }
  
  .checkbox-group label {
      font-size: 0.85rem;
      line-height: 1.3;
      color: #333;
      cursor: pointer;
      flex: 1;
      margin: 0;
  }
  
  .checkbox-group label a {
      color: #003366;
      text-decoration: none;
      font-weight: 500;
  }
  
  .checkbox-group label a:hover {
      text-decoration: underline;
  }
  
  /* Mobile responsiveness for modal */
  @media (max-width: 768px) {
      .modal-content {
          width: 95%;
          padding: 1.5rem;
          margin: 1rem;
      }
      
      .modal-content h2 {
          font-size: 1.5rem;
      }
      
      .contact-form {
          gap: 1rem;
      }
      
      .form-group input,
      .form-group textarea {
          padding: 14px 18px;
          font-size: 1.05rem;
          min-height: 48px;
      }
      
      .submit-btn {
          padding: 12px 20px;
          font-size: 1rem;
      }
      
      .success-content h2 {
          font-size: 1.5rem;
      }
      
      .success-content p {
          font-size: 1rem;
      }
      
      .success-icon svg {
          width: 60px;
          height: 60px;
      }
  }
  
  @media (max-width: 1200px) {
      /* submenu-open имеет приоритет - должно быть первым */
      .main-nav li.submenu-open .submenu {
          display: block !important;
      }
      
      /* На мобильных устройствах отключаем hover/focus-within для submenu */
      .main-nav li:not(.submenu-open):hover .submenu,
      .main-nav li:not(.submenu-open):focus-within .submenu {
          display: none !important;
      }
  }

  .delivery-warranty-section {
    padding: 3rem 0;
    background-color: #ffffff;
    margin: 2rem 0;
    margin-left: max(250px, calc((100vw - 1200px) / 2)); /* Центрирование с учетом sidebar */
    margin-right: max(250px, calc((100vw - 1200px) / 2)); /* Симметричный отступ справа */
 
  }

  .delivery-warranty-section .section-container {
    max-width: 1200px;
    margin-left: max(250px, calc((100vw - 1200px) / 2)); /* Центрирование с учетом sidebar */
    margin-right: max(250px, calc((100vw - 1200px) / 2)); /* Симметричный отступ справа */
    margin: 0 auto;
    padding: 0 2rem;
  }

  .delivery-warranty-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
  }

  @media (max-width: 768px) {
    .delivery-warranty-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  }

  .delivery-block,
  .warranty-block {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .delivery-block .section-title,
  .warranty-block .section-title {
    color: #1e40af;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
  }

  .delivery-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
  }

  .delivery-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 2rem;
  }

  .delivery-list li:last-child {
    border-bottom: none;
  }

  .delivery-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
  }

  .delivery-note {
    background: #dbeafe;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
  }

  .delivery-note p {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .warranty-content {
    color: #374151;
  }

  .warranty-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .warranty-content p:last-child {
    margin-bottom: 0;
  }

/* Стили для дополнительной информации о станке */
.additional-info-section,
.purchase-info-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.additional-info-section .section-container,
.purchase-info-section .section-container {
  max-width: 100%;
}

.info-block {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #003366;
}

.info-block .section-title {
  color: #003366;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #003366;
}

.subsection-title {
  color: #003366;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

.subsection-title:first-child {
  margin-top: 0;
}

.content-text {
  line-height: 1.8;
  color: #444;
}

.content-text p {
  margin-bottom: 1rem;
}

.info-link {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-link:hover {
  color: #0055aa;
  text-decoration: underline;
}

/* Два блока на одном уровне */
.two-columns-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}

.column-block {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #003366;
}

.block-title {
  color: #003366;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.block-image {
  margin: 1rem 0;
  text-align: center;
}

.block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.block-content {
  line-height: 1.8;
  color: #444;
}

/* Преимущества */
.advantages-subsection {
  margin: 2rem 0;
}

.advantages-subsection:first-child {
  margin-top: 0;
}

.advantages-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.advantages-list li {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.7;
  color: #444;
}

.advantages-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #003366;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Блок с изображением слева */
.info-block.with-image {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.image-left {
  flex: 0 0 300px;
}

.image-left img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.content-right {
  flex: 1;
}

.image-top {
  width: 100%;
  text-align: center;
}

.image-top img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.content-bottom {
  width: 100%;
}

.work-steps {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.work-steps li {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #444;
}

/* Две фотографии на одном уровне */
.two-images-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.image-item {
  text-align: center;
}

.image-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Примеры с фото слева */
.example-block {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.example-block.with-image-left {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.example-image {
  flex: 0 0 250px;
}

.example-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.example-content {
  flex: 1;
}

.example-content h4 {
  color: #003366;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.example-content ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.example-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #444;
}

/* Адаптивные стили */
@media (max-width: 968px) {
  .additional-info-section,
  .purchase-info-section {
    padding: 0 1rem;
  }

  .info-block {
    padding: 1.5rem;
  }

  .two-columns-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-block.with-image {
    flex-direction: column;
  }

  .image-left {
    flex: 0 0 auto;
    width: 100%;
  }

  .two-images-row {
    grid-template-columns: 1fr;
  }

  .example-block.with-image-left {
    flex-direction: column;
  }

  .example-image {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .info-block .section-title {
    font-size: 1.5rem;
  }

  .subsection-title {
    font-size: 1.2rem;
  }

  .block-title {
    font-size: 1.1rem;
  }
}

/* Unified block headings */
.section-title {
    color: #003366;
    font-size: 1.7rem;
}

@media (max-width: 768px) {
    .videos-container {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
    
    .video-item {
        width: 100%;
    }
    
    .video-item iframe {
        width: 100%;
        height: 240px;
    }
}
  

/* Mobile nav scroll fix */
@media (max-width: 768px) {
    .main-nav {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: calc(100dvh + 80px);
        padding-bottom: 4rem;
        box-sizing: border-box;
    }
}


/* Mobile video centering for videoTab */
@media (max-width: 768px) {
  #videoTab .videos-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  #videoTab .video-item {
    width: 100%;
    max-width: 600px;
  }

  #videoTab .video-item iframe {
    width: 100%;
    height: 250px;
  }
}
