: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.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;
    }
    
    .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;
    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;
    }
    
    /* Показываем 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);
    }
    
    .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;
}

/* News Block */
.news-block {
    position: absolute;
    left: 0;
    top: calc(var(--header-height) + 415px);
    width: 222px;
    background: #ffffff;
    border-right: 2px solid #e0e0e0;
    border-top: 2px solid #e0e0e0;
    z-index: 10;
    display: none; /* Скрыт по умолчанию, показывается только на больших экранах */
    padding: 1rem 0;
    overflow-y: auto;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.news-item:first-child {
    padding-top: 1.25rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    display: block;
    color: #1a1a1a;
    text-decoration: underline;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    transition: color 0.3s ease;
    margin-bottom: 0.25rem;
}

.news-title:hover {
    color: #003366;
}

.news-date {
    color: #6d28d9;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
}

.news-archive {
    display: block;
    color: #6d28d9;
    text-decoration: underline;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.news-archive:hover {
    color: #5b21b6;
}

/* 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: 300px;
}

.info .machine-item .image-container {
    flex: 0 0 auto;
    height: 200px;
    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: 1rem;
}

.info .machine-item span {
    text-align: center;
    display: block;
}

.info .machine-item p {
    flex: 1;
    margin: 0 1rem 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.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: 250px;
    }
    
    .info .machine-item .image-container {
        height: 180px;
    }
}

@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: 1.5rem;
    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: 60vw; /* Растягиваем на 90% ширины экрана */
    margin-left: auto; /* Центрирование */
    margin-right: auto; /* Центрирование */
    box-sizing: border-box; /* Учитываем padding в ширине */
}

.gallery h1 {
    color: #000000;
    margin-bottom: 3rem;
    max-height: 10px;
    /* font-size: 1.8rem; */
}

.gallery h2 {
    color: #000000;
    margin-bottom: 2rem;
    max-height: 20px;
}

.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.95rem;
    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: white;
    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%;
}

.machines-grid .machine-item a {
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem 0;
    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;
}

.machines-grid .machine-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 51, 102, 0.4);
    background: linear-gradient(135deg, #0055aa, #003366);
}

.machine-item span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #003366;
}

.machines-grid .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;
}

.machines-grid .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 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(2, 1fr);
    max-width: 800px;
    justify-items: center;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
}

.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: 150px;
    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);
}

.image-container a {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
    background: white;
}

.image-container a:hover {
    text-decoration: none;
    background: white;
}

.machines-grid .machine-item .image-container a {
    background: white;
    padding: 0;
    margin: 0;
}

.machines-grid .machine-item .image-container a:hover {
    background: white;
    transform: none;
    box-shadow: none;
}

.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 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) {
    .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 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 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 {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 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 {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        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;
    }
}

/* Telegram Popup Modal Styles */
.telegram-popup-modal {
    display: none !important;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.telegram-popup-modal.show {
    display: flex !important;
}

.telegram-popup-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.telegram-popup-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.telegram-popup-close:hover,
.telegram-popup-close:focus {
    color: #003366;
    text-decoration: none;
}

.telegram-popup-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.telegram-popup-image {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.telegram-popup-image:hover {
    transform: scale(1.05);
}

.telegram-popup-image img {
    width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.telegram-popup-right {
    flex: 1;
    text-align: center;
}

.telegram-popup-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.telegram-popup-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.telegram-popup-content h2 {
    color: #003366;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.4;
}

.telegram-popup-button {
    display: inline-block;
    background: linear-gradient(135deg, #0088cc, #0066aa);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-popup-button:hover {
    background: linear-gradient(135deg, #0066aa, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 136, 204, 0.4);
    color: white;
    text-decoration: none;
}

.telegram-popup-button:active {
    transform: translateY(0);
}

/* Responsive styles for Telegram popup */
@media (max-width: 768px) {
    .telegram-popup-content {
        width: 95%;
        padding: 2rem 1.5rem;
        max-width: 450px;
    }
    
    .telegram-popup-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .telegram-popup-image img {
        width: 100%;
        max-width: 250px;
    }
    
    .telegram-popup-content h2 {
        font-size: 1.3rem;
    }
    
    .telegram-popup-logo img {
        width: 100px;
        height: 100px;
    }
    
    .telegram-popup-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* 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;
    }
}


/* 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;
    }
}
