* {
    box-sizing: border-box;
}
body {
    width: 100%;
    min-height: 100vh;
    font-family: Inter, 'Montserrat', Arial, Helvetica, sans-serif;
    margin: 0;
}
.background-black h2 {
  color: white;
}
.background-black{ 
    background-color: #232323;
}
.block {  
    padding: 50px 0;
}

h1, h2 {
    display: inline-block;
    width: auto;
    font-size: 48px;
    text-decoration: none;
    text-transform: unset;
    padding: 0;
    line-height: 48px;
    margin: 0;
}

h2 {
    padding: 20px 0;
}

::-webkit-scrollbar {
    width: 0;
} 

@font-face {
    font-family: 'Inter';
    src: url(../fonts25/Inter/Inter-Regular.otf);
    font-weight: normal;
    font-style: normal;
}

.container-new {
    max-width: 1728px;
    margin: 0 auto;
    padding: 0px 25px;
}

.header {
    background-color: #232323;
    position: sticky;
    top: 0;
    z-index: 100000;
}

:root {
    --dark-bg: #232323;
    --text-light: #ffffff;
    --accent-color: #D12D45;
}

.header-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: relative;
    background-color: var(--dark-bg);
    padding: 0 20px;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    width: 36px;
    height: 36px;
    display: block;
}

.dots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}



.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: 1001;
    max-height: 50px;
}

.logo-img {
    max-height: 56px;
    height: 100%;
    width: auto;
    max-width: 200px;
    transition: transform 0.3s ease;
}

.phone-icon {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1001;
    transition: all 0.3s ease;
    gap: 10px;
    color: white;
    text-decoration: none;
    background: rgba(245, 245, 245, 0.1);
    border-radius: 4px;
    padding: 0 20px;
    height: 48px;
    line-height: 48px;
    white-space: nowrap;
}

.phone-icon:hover {
    background: rgba(245, 245, 245, 0.2);
}

.phone-icon svg {
    flex-shrink: 0;
}

.phone-icon span {
    display: none;
}

.main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #232323;
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 80px 20px 30px;
    text-align: left;
    overflow-y: auto;
}

.mobile-menu-toggle:checked ~ .main-nav {
    left: 0;
}

.mobile-menu-toggle:checked ~ .mobile-menu-btn .dots-grid {
    display: none;
}

.mobile-menu-toggle:checked ~ .mobile-menu-btn .close-icon {
    display: block;
}

.mobile-menu-toggle:checked ~ .header-logo {

}

.mobile-menu-toggle:checked ~ .phone-icon {
   
}

.menu-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-block {
    margin-bottom: 40px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 15px;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 20px;
    display: inline-block;
    padding: 8px 0;
    opacity: 0.6;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    position: relative;
}

.nav-link:hover {
    opacity: 1;
}

.action-button {
    display: block;
    padding: 0 34px;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-weight: 400;
    font-size: 18px;
    height: 48px;
    line-height: 48px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.action-button:hover {
    background: #b8253b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.bottom-block {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 80px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.submenu-toggle {
    display: none;
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 15px;
    padding-top: 0px;
}

.submenu a {
    color: #ffffff;
    opacity: 0.6;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 8px 0;
    transition: opacity 0.3s;
}

.submenu a:hover {
    opacity: 1;
}

.submenu-toggle:checked ~ .submenu {
    display: block;
}

/* Красивые стрелки для подменю */
.submenu-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
    position: relative;
    width: 12px;
    height: 12px;
}

.submenu-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transform: translateY(-50%);
}

.submenu-toggle:checked ~ .nav-link .submenu-arrow {
    transform: rotate(180deg);
}

/* Десктопная версия */
@media (min-width: 968px) {
    .header-container {
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
    }

    .mobile-menu-btn {
        display: none;
    }

    .header-logo {
        position: static;
        transform: none;
        margin-right: 40px;
        order: 1;
        max-width: 230px;
        height: auto;
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        order: 2;
        flex-grow: 1;
        overflow: visible;
    }

    .menu-content {
        flex-direction: row;
        align-items: center;
        height: auto;
        padding: 0;
        justify-content: space-between;
    }

    .menu-block {
        margin-bottom: 0;
        flex-grow: 1;
        margin-right: 20px;
    }

    .nav-list {
        display: flex;
        align-items: center;
        height: 100px;
        gap: 0;
        justify-content: center;
    }

    .nav-item {
        margin-bottom: 0;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-link {
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 15px;
        font-size: 16px;
    }

    .menu-button-container {
        order: 3;
        margin-left: 20px;
    }

    .phone-icon {
        order: 4;
        margin-left: 20px;
    }

    .phone-icon span {
        display: inline;
    }

    .bottom-block {
        display: none;
    }

    /* Подменю в десктопе */
    .has-submenu {
        position: relative;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: var(--dark-bg);
        padding: 15px 0;
        display: none;
        border-radius: 0 0 4px 4px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .has-submenu:hover .submenu {
        display: block;
    }

    .has-submenu:hover .submenu-arrow {
        transform: rotate(180deg);
    }

    .submenu li {
        padding: 8px 20px;
    }

    .submenu a {
        padding: 6px 0;
        white-space: nowrap;
    }

    /* Центрирование подменю */
    .nav-list > .has-submenu .submenu {
        left: 100%;
        transform: translateX(-50%);
    }


} 

/* Адаптивные стили */
@media (max-width: 991px) {
    h2 {
        font-size: 35px;
        font-weight: 600;
        line-height: 35px;
    }
    .block {  
        padding: 40px 0;
    }
}

@media (max-width: 968px) {
    .block {
        padding: 32px 0;
    }
    h1 {
        font-size: 32px;
        line-height: 30px;
    } 
    h2 {
        font-size: 24px;
        line-height: 30px;
    } 
    .container-new {
        padding: 0 15px;
    }
}

@media (min-width: 968px){
    .header-container {
        padding: 0 20px;
    }
    .header-logo {
        margin-right: 20px;
        max-width: 200px;
    }
    .nav-list {
        gap: 0;
    }
    .nav-link {
        font-size: 16px;
        padding: 0 12px;
    }
    .phone-icon {
        padding: 0 15px;
        font-size: 14px;
    }
    .menu-button-container {
        margin-left: 15px;
    }
    .action-button {
        font-size: 16px;
    }
}

@media (min-width: 968px) and (max-width: 1175px) {
    .header-container {
        padding: 0 15px;
    }
    .header-logo {
        margin-right: 15px;
        max-width: 160px;
    }
    .phone-icon {
        padding: 0 12px;
        font-size: 14px;
        height: 40px;
        line-height: 40px;
    }
    .phone-icon span {
        display: none;
    }
    .menu-button-container {
        margin-left: 10px;
    }
    .action-button {
        font-size: 14px;
        height: 40px;
        line-height: 40px;
        padding: 0 20px;
    }
    .nav-link {
        font-size: 14px;
        padding: 0 8px;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .header-logo {
        max-width: 140px;
    }
    .nav-link {
        font-size: 13px;
        padding: 0 6px;
    }
}

@media (max-width: 450px) {
    h1 {
        font-size: 28px;
        line-height: 30px;
    }
    .phone-icon {
        padding: 0 12px;
    }
}

/* Изменения для мобильной версии (до 968px) */
@media (max-width: 968px) {
    .header-container {
        grid-template-columns: auto 1fr auto; /* Оставляем три колонки */
        padding: 0 15px; /* Уменьшаем отступы */
    }
    
    .phone-icon {
        width: auto; /* Убираем растягивание */
        padding: 0 12px; /* Компактные отступы */
        justify-self: end; /* Прижимаем к правому краю */
        background: transparent; /* Убираем фон */
    }
    
    .phone-icon:hover {
        background: transparent; /* Убираем фон при наведении */
    }
    
    .phone-icon svg {
        margin: 0; /* Убираем отступы у иконки */
    }
    
    /* Уменьшаем отступы в шапке для компактности */
    .header-container {
        padding: 0 10px;
        height: 50px;
    }
    
    /* Уменьшаем размер логотипа для мобильных */
    .logo-img {
        padding: 10px;
        line-height: 50px;
        height: 50px;
    }
}
.phone-icon {
    transition: transform 0.2s ease;
}

.phone-icon:active {
    transform: scale(0.9);
}

.social-links{
    text-align: center;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

/* Сброс стилей чекбокса */
.mobile-menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Стили кнопки */
.mobile-menu-btn {
    position: relative;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 1001;
}

/* Стили точек (по умолчанию видны) */
.dots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.menu-dot {
    display: block;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
}

/* Стили крестика (по умолчанию скрыт) */
.close-icon {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 24px;
    line-height: 1;
    opacity: 0;
    transition: all 0.3s ease;
    
} 

/* Состояние при открытом меню */
.mobile-menu-toggle:checked ~ .mobile-menu-btn .dots-grid {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle:checked ~ .mobile-menu-btn .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.mobile-menu-toggle:checked ~ .main-nav {
    left: 0;
}
.footer-text-soc{
        text-align: center;
    color: #FFFFFF;
    font-size: 16px;
    letter-spacing: 0.8px;
}

/* breadcrumbs */

    .breadcrumbs {
        font-size: 16px;
        padding: 20px 0;
        line-height:20px;
    }
    
    .breadcrumbs a {
        color: #D12D45;
        text-decoration: none;
         text-transform: capitalize;
    }

    
    .breadcrumbs a:hover {
        text-decoration: underline;
    }
    
    .breadcrumbs span {
        color: #000000;
    }
    
    .breadcrumbs .separator {
        color: #999;
        margin: 0 5px;
    }
    /* breadcrumbs */
    /* button-black*/
      .button-container {
    text-align: center;
    margin-top: 50px;
  }
 .button-black {
    display: inline-block;
    background-color: #232323;
    color: white;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #232323;
  }
  .background-black .button-black {
    background-color: #ffffff;
    color: #000000;
  }
 
  .button-black:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  @media (max-width: 900px) {
    
    .button-container {
      margin-top: 40px;
    }
  }
    @media (max-width: 600px) {
    
    .button-black {
      padding: 14px 32px;
      font-size: 16px;
    }
  }

    /* Маленькие мобильные устройства */
  @media (max-width: 400px) {
    
    .button-container {
      margin-top: 30px;
    }
    
    .button-black {
      padding: 12px 24px;
      font-size: 15px;
    }
  }
    /* button-black*/