*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
} 

body {
    background-color: #FFFFFF;
    padding: 0;
    position: relative;
    padding-top: 140px;
}

html {
    scroll-behavior: smooth;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.map-image,
.logo-img,
.footer-logo img,
.mission-logo img {
    opacity: 1 !important;
    transition: none !important;
    visibility: visible !important;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    width: 100%;
    height: 100px;
    background-color: #0D256F;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.4s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 140px;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 140px;
    padding: 20px 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    height: 150%;
    max-height: 160px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    margin: 0 25px;
    display: flex;
    align-items: center;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: white;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #aab6e6;
}

.nav-link:hover .nav-icon {
    fill: #aab6e6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.login-btn {
    background-color: white;
    color: #0D256F;
    border: none;
    padding: 8px 35px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 20px;
}

.login-btn:hover {
    background-color: #aab6e6;
    transform: translateY(-2px);
}

.btn-icon {
    width: 26px;
    height: 26px;
    margin-right: 10px;
    fill: #0D256F;
}

.login-btn:hover .btn-icon {
    fill: #0D256F;
}

.nav-link.active {
    color: #aab6e6 !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #aab6e6;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: #0D256F;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1a3d7c;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 0px;
}

.menu-toggle span:nth-child(2) {
    top: 8px;
}

.menu-toggle span:nth-child(3) {
    top: 16px;
}

.menu-toggle.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.nav-menu.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 140px;
    left: 0;
    width: 100%;
    background-color: #0D256F;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-menu.active .nav-item {
    margin: 10px 0;
}

.rectangle-2 {
    width: 100%;
    height: calc(80vh + 140px);
    min-height: calc(619.2px + 140px); /* 774px * 0.9 = 696.6px */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.33), rgba(0, 0, 0, 0.33)), url("../images/Rectangle3.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 11.11%;
    overflow: hidden;
    margin-top: -140px;
    padding-bottom: -50px;
}

.rectangle-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Контейнер для масштабируемого контента */
.distributor-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    transform-origin: top left;
    /* Масштаб будет управляться JS или медиа-запросами */
}

/* Автоматическое масштабирование контента в зависимости от высоты окна */
@media (max-height: 800px) {
    .distributor-wrapper {
        transform: scale(0.9);
    }
}

@media (max-height: 700px) {
    .distributor-wrapper {
        transform: scale(0.8);
    }
}

@media (max-height: 600px) {
    .distributor-wrapper {
        transform: scale(0.7);
    }
}

/* Защита от слишком маленького текста */
@media (max-height: 500px) {
    .distributor-wrapper {
        transform: scale(0.6);
    }
    .distributor-official-cell,
    .distributor-distributor-cell,
    .distributor-materials-cell {
        font-size: 16px !important;
        white-space: normal !important;
    }
    .specialization-grid-cell-1,
    .specialization-grid-cell-2 {
        font-size: 12px !important;
        white-space: normal !important;
    }
}

.distributor-text,
.specialization-container {
    position: relative;
    z-index: 2;
}

.distributor-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.distributor-grid-row {
    display: grid;
    width: 100%;
}

.distributor-grid-row-1 {
    grid-template-columns: auto 1fr;
    gap: 18px;
    margin-bottom: 30;
}

.distributor-grid-row-2 {
    grid-template-columns: 1fr;
}

.distributor-grid-cell {
    display: flex;
    align-items: center;
    text-align: left;
    justify-self: start;
}

.distributor-official-cell {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 5vw, 60px);
    line-height: 1.2;
    text-transform: uppercase;
    color: #2554E6;
    white-space: nowrap;
}

.distributor-distributor-cell {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 5vw, 60px);
    line-height: 1.2;
    text-transform: uppercase;
    color: #FFFFFF;
    white-space: nowrap;
}

.distributor-materials-cell {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 5vw, 60px);
    line-height: 1.2;
    word-spacing: 8px;
    text-transform: uppercase;
    color: #FFFFFF;
    white-space: nowrap;
    margin-top: -10px;
}

.specialization-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 200px;
}

.specialization-grid-table-1,
.specialization-grid-table-2 {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    width: 100%;
}

.specialization-grid-cell-1,
.specialization-grid-cell-2 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.2;
    color: #FFFFFF;
    text-align: left;
    padding: 0;
    white-space: nowrap;
}

.distributor-text,
.specialization-container,
.distributor-grid,
.distributor-grid-row,
.distributor-grid-row-1,
.distributor-grid-row-2 {
    justify-content: flex-start;
    justify-items: start;
    margin-left: 0;
    margin-right: auto;
}

.rectangle-7 {
    width: 100%;
    background: #0D256F;
    position: relative;
    padding: 80px 0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -140px;
    z-index: 1;
}

.mission-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mission-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.mission-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.35;
    text-align: center;
    color: #FFFFFF;
    max-width: 764px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.mission-logo {
    width: 400px;
    height: 400px;
    background: #0D256F;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    position: relative;
    border-radius: 10px;
    padding: 10px;
}

.mission-logo img {
    max-width: 110%;
    max-height: 110%;
    object-fit: cover;
}

.logo-text-overlay {
    display: none;
}

.mission-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    text-align: center;
    z-index: 2;
}

.logo-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-text-description {
    white-space: normal;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    margin: 0 auto;
    text-align: center;
    hyphens: auto;
}

.mission-line {
    white-space: nowrap;
    display: block;
    text-align: center;
    margin: 0 auto;
}

.logo-text-container {
    display: none;
}

.logo-text-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.values-section {
    width: 100%;
    background: #FFFFFF;
    position: relative;
    height: auto;
    padding: 60px 0;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 100%;
    padding: 0 20px;
    width: 100%;
}

.values-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 100%;
    text-transform: uppercase;
    color: #202020;
    text-align: center;
    width: 100%;
    margin-bottom: 50px;
}

.values-tables-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.values-grid-table {
    display: flex;
    justify-content: center;
    width: 100%;
}
.values-grid-1 {
    width: 100%;
    margin: 0 auto;
}

.values-grid-2 {
    width: auto;
    margin: 0 auto;
}

.values-grid-1 .values-grid-row-1 {
    display: grid;
    grid-template-columns: 60px 3fr 60px 3fr 60px 3fr;
    gap: 20px;
    align-items: start;
    width: 100%;
    margin: 0 auto;
}

.values-grid-2 .values-grid-row-1 {
    display: grid;
    grid-template-columns: 50px 300px 50px 300px;
    gap: 20px;
    align-items: start;
    width: auto;
    margin: 0 auto;
}

.values-grid-col-icon {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px;
}

.value-image {
    position: relative;
    top: -20px;
    max-width: 100%;
    height: auto;
}

.values-grid-col-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0 10px;
}

.value-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #0D256F;
}

.value-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #202020;
}

/* Р‘Р»РѕРє СЃ СЌР»Р»РёРїСЃР°РјРё */
.ellipses-container {
    position: relative;
    width: 100%;
    height: 1200px; /* РЈРјРµРЅСЊС€Р°РµРј РІС‹СЃРѕС‚Сѓ РґР»СЏ Р»СѓС‡С€РµРіРѕ РѕС‚РѕР±СЂР°Р¶РµРЅРёСЏ */
    background: #FFFFFF;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ellipses-group {
    position: relative;
    width: 80%;
    max-width: 1200px;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8); /* РќР°С‡Р°Р»СЊРЅС‹Р№ РјР°СЃС€С‚Р°Р± */
    transition: transform 0.3s ease;
}

.ellipse {
    border-radius: 50%;
    border: 2px solid rgba(13, 37, 111, 0.1);
    position: absolute;
    pointer-events: none;
    width: 800px;
    height: 800px;
}

.ellipse-1 {
    width: 700px;
    height: 700px;
    top: 5px;
    left: 10px;
}

.ellipse-2 {
    width: 500px;
    height: 500px;
    top: 100px;
    left: 100px;
}

.ellipse-3 {
    width: 700px;
    height: 700px;
    top: 350px;
    left: 600px;
}

.ellipse-4 {
    width: 500px;
    height: 500px;
    top: 450px;
    left: 700px;
}

.circle-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circle-item {
    position: absolute;
    width: 96px;
    height: 96px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 10;
}

.circle-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.circle-icon {
    width: 59px;
    height: 59px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.circle-icon img {
    max-width: 100%;
    max-height: 100%;
}

.circle-text {
    width: 108px;
    min-height: 26px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 13px;
    text-align: center;
    color: #202020;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 1000px) {
    .application-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .application-title {
        font-size: 36px;
        margin-bottom: 50px;
    }
    
    .application-item {
        font-size: 16px;
        padding: 12px 18px;
    }
}

@media (max-width: 768px) {
    .application-section {
        padding: 60px 0;
    }
    
    .application-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
    }
    
    .application-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .application-item {
        font-size: 15px;
        padding: 10px 15px;
    }
}

@media (max-width: 1200px) {
    .ellipses-container {
        height: 2500px;
    }
    
    .ellipse-1 {
        left: 100px;
    }
    
    .ellipse-3 {
        left: 500px;
    }
    
    .ellipse-2 {
        left: 580px;
    }
    
    .ellipse-4 {
        left: 180px;
    }
}

@media (max-width: 768px) {
    .ellipses-container {
        height: 2000px;
    }
    
    .ellipse-1,
    .ellipse-3 {
        width: 300px;
        height: 300px;
    }
    
    .ellipse-2,
    .ellipse-4 {
        width: 200px;
        height: 200px;
    }
    
    .ellipse-1 {
        top: 1800px;
        left: 50px;
    }
    
    .ellipse-2 {
        top: 1850px;
        left: 100px;
    }
    
    .ellipse-3 {
        top: 1900px;
        left: 150px;
    }
    
    .ellipse-4 {
        top: 1950px;
        left: 200px;
    }
}

@media (max-width: 480px) {
    .ellipses-container {
        height: 1500px;
    }
    
    .ellipse-1,
    .ellipse-3 {
        width: 200px;
        height: 200px;
    }
    
    .ellipse-2,
    .ellipse-4 {
        width: 150px;
        height: 150px;
    }
    
    .ellipse-1 {
        top: 1350px;
        left: 20px;
    }
    
    .ellipse-2 {
        top: 1380px;
        left: 60px;
    }
    
    .ellipse-3 {
        top: 1400px;
        left: 100px;
    }
    
    .ellipse-4 {
        top: 1430px;
        left: 140px;
    }
}

.full-width-section {
    width: 100%;
    background: #0D256F;
    padding: 70px 0;
    position: relative;
    z-index: 1;
}

.advantages-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.advantages-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 100%;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
    width: 100%;
    margin-bottom: 60px;
    letter-spacing: 1.5px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    margin: 0 auto 0 140px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.advantage-number {
    font-family: 'Inter', bold;
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    color: #FFFFFF66;
    min-width: 50px;
    margin-right: 20px;
    flex-shrink: 0;
    background: #0D256F;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-content {
    flex: 1;
}

.advantage-subtitle {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #FFFFFF;
    max-width: 600px;
    margin-bottom: 0;
}

.branches-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 0;
    position: relative;
    scroll-margin-top: 140px;
}

.branches-container {
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    gap: 20px;
    align-items: stretch;
}

.branches-info {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Равномерный интервал между элементами */
    padding: 20px 0; /* Опционально: отступ сверху и снизу */
    padding-left: 11.5%; /* Добавляем отступ слева */
}

.branch-item {
    padding: 15px 20px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid #eee; /* Опционально: разделитель */
}

.branch-item:last-child {
    border-bottom: none; /* Убираем разделитель у последнего */
}

.branch-content {
    max-width: 280px;
}

.branch-city {
    font-size: 16px;
    margin-bottom: 8px; /* Как у h3 в .footer-info */
    font-weight: 600;
    color: #1E1E1E;
}

.branch-address,
.branch-email,
.branch-phone {
    font-size: 13px;
    margin: 3px 0; /* Близко к line-height у p в .footer-info */
    line-height: 1.4;
    color: #1E1E1E;
}

.branches-map {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: 400px; /* Фиксированная высота */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.branches-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.map-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: linear-gradient(45deg, #e0e0e0 25%, #f0f0f0 25%, #f0f0f0 50%, #e0e0e0 50%, #e0e0e0 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    min-height: 250px;
    box-sizing: border-box;
}

.map-placeholder img {
    opacity: 1 !important;
    display: block !important;
}

.footer-container {
    width: 100%;
    background-color: #1E1E1E;
    color: white;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.footer-container::after {
    content: '';
    display: block;
    height: 60px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-text {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
    padding-left: 11.5%;
}

.footer-info {
    margin-bottom: 25px;
}

.footer-info h3 {
    font-family:'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    line-height: 2;
}

.footer-info p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #ccc;
    line-height: 1;
}

.footer-logo {
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1E1E1E;
    border-radius: 12px;
    padding: 20px;
}

.footer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.copyright {
    font-family: 'Inter', sans-serif;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #333;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: 400;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* AI */
#ai-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1a3d7c;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
}

#ai-chat-toggle:hover {
    background-color: #2a5da8;
    transform: scale(1.05);
}

#ai-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#ai-chat-container.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#ai-chat-header {
    background-color: #1a3d7c;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ai-chat-header span {
    font-weight: bold;
}

#ai-chat-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

#ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message {
    background-color: #f0f4ff;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    align-self: flex-start;
    position: relative;
}

.user-message {
    background-color: #1a3d7c;
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    align-self: flex-end;
    position: relative;
}

#ai-chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

#ai-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

#ai-chat-send {
    background-color: #1a3d7c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
}

#ai-chat-send:hover {
    background-color: #2a5da8;
}

/* ==================== РњР•Р”РРђ-Р—РђРџР РћРЎР« ==================== */

/* AI С‡Р°С‚ */
@media (max-width: 768px) {
    #ai-chat-container {
        width: 90%;
        right: 5%;
        left: 5%;
        height: 60%;
    }
    
    #ai-chat-toggle {
        bottom: 10px;
        right: 10px;
    }
}

/* Р‘Р»РѕРє С„РёР»РёР°Р»РѕРІ */
@media (max-width: 768px) {
    .branches-info,
    .branches-map {
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 1000px) {
    .branch-city {
        font-size: 15px;
    }
    
    .branch-content {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .branches-container {
        flex-direction: column;
    }
    
    .branch-item {
        padding: 0 15px;
        min-height: 70px;
    }
    
    .branch-content {
        max-width: 100%;
    }
    
    .branch-item:first-child {
        margin-bottom: 20px;
    }
    
    .branch-item:nth-child(2) {
        margin-bottom: 20px;
    }
    
    .map-placeholder {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .branch-city {
        font-size: 14px;
    }
    
    .branch-address, .branch-email, .branch-phone {
        font-size: 12px;
    }
    
    .branch-item {
        padding: 0 10px;
        min-height: 60px;
    }
    
    .map-placeholder {
        min-height: 180px;
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .logo-text-description {
        max-width: 95%;
    }
}

@media (max-width: 1000px) {
    .mission-logo {
        width: 500px;
        height: 500px;
    }
    
    .mission-text {
        font-size: 18px;
        max-width: 90%;
    }
    
    .mission-title {
        font-size: 28px;
    }
    
    .logo-title {
        font-size: 28px;
    }
    
    .values-title {
        font-size: 36px;
    }
    
    .value-image {
        width: 85px;
        height: 85px;
        margin-bottom: 10px;
    }
    
    .value-subtitle {
        font-size: 18px;
    }
    
    .value-description {
        font-size: 15px;
    }
}

@media (max-width: 850px) {
    .mission-logo {
        width: 420px;
        height: 420px;
    }
    
    .mission-title {
        font-size: 24px;
    }
    
    .mission-text {
        font-size: 16px;
    }
    
    .rectangle-7 {
        padding: 80px 0;
    }
    
    .logo-title {
        font-size: 24px;
    }
    
    .values-title {
        font-size: 32px;
        margin-bottom: 60px;
    }
    
    .value-image {
        width: 80px;
        height: 80px;
        margin-bottom: 18px;
    }
    
    .value-subtitle {
        font-size: 17px;
    }
    
    .value-description {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .logo-text-description {
        max-width: 100%;
        font-size: clamp(14px, 3vw, 16px);
        padding: 0 15px;
        text-align: left;
        text-justify: auto;
    }
    
    .rectangle-2 {
        padding: 0 5%;
        height: 600px;
        justify-content: flex-start;
        padding-top: 100px;
        background-attachment: scroll;
    }
    
    .values-title {
        margin-bottom: 40px;
    }
}

@media (max-width: 650px) {
    .mission-logo {
        width: 350px;
        height: 350px;
    }
    
    .mission-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .mission-text {
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 1.4;
    }
    
    .rectangle-7 {
        padding: 60px 0;
        min-height: 600px;
    }
    
    .logo-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .values-title {
        font-size: 28px;
        margin-bottom: 35px;
    }
    
    .value-subtitle {
        font-size: 18px;
    }
    
    .value-image {
        width: 75px;
        height: 75px;
        margin-bottom: 15px;
    }
    
    .value-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-text-description {
        font-size: clamp(13px, 2.8vw, 14px);
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .mission-logo {
        width: 280px;
        height: 280px;
    }
    
    .mission-title {
        font-size: 18px;
    }
    
    .mission-text {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .rectangle-7 {
        padding: 40px 0;
        min-height: 500px;
    }
    
    .logo-title {
        font-size: 18px;
    }
    
    .values-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .value-subtitle {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .value-description {
        font-size: 13px;
    }
    
    .value-image {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
}

/* РҐРµРґРµСЂ Рё РЅР°РІРёРіР°С†РёСЏ */
@media (max-width: 1000px) {
    .nav-item {
        margin: 0 15px;
    }
    
    .nav-link {
        font-size: 24px;
    }
    
    .login-btn {
        font-size: 24px;
        padding: 13px 30px;
    }
    
    .header {
        height: 130px;
        padding: 0 30px;
    }
    
    .logo-img {
        max-height: 90px;
    }
    
    body {
        padding-top: 130px;
    }
    
    .nav-menu.active {
        top: 130px;
    }
}

@media (max-width: 850px) {
    .header {
        padding: 0 20px;
    }
    
    .nav-item {
        margin: 0 8px;
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .login-btn {
        padding: 10px 25px;
        font-size: 16px;
    }
    
    .logo-img {
        max-height: 65px;
    }
    
    .nav-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .nav-link {
        font-size: 22px;
    }
    
    .nav-menu.active .nav-link {
        font-size: 20px;
        padding: 12px 0;
    }
    
    .login-btn {
        font-size: 20px;
        padding: 10px 25px;
    }
    
    .header {
        height: 120px;
        padding: 0 20px;
    }
    
    .logo-img {
        max-height: 70px;
    }
    
    body {
        padding-top: 120px;
    }
    
    .nav-menu.active {
        top: 120px;
    }
    
    .nav-item {
        margin: 12px 0;
    }
}

@media (max-width: 650px) {
    .nav-menu {
        display: none;
    }
    
    .logo-img {
        max-height: 55px;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Р‘Р»РѕРє "РћС„РёС†РёР°Р»СЊРЅС‹Р№ РґРёСЃС‚СЂРёР±СЊСЋС‚РѕСЂ" - РћР‘РќРћР’Р›Р•РќРќР«Р• РњР•Р”РРђ-Р—РђРџР РћРЎР« */
@media (max-width: 1920px) {
    .distributor-official-cell,
    .distributor-distributor-cell,
    .distributor-materials-cell {
        font-size: 4.5vw;
    }
    
    .specialization-grid-cell-1,
    .specialization-grid-cell-2 {
        font-size: 1.8vw;
    }
}

@media (max-width: 1200px) {
    .distributor-official-cell,
    .distributor-distributor-cell,
    .distributor-materials-cell {
        font-size: 5vw;
    }
    
    .specialization-grid-cell-1,
    .specialization-grid-cell-2 {
        font-size: 2vw;
    }
}

@media (max-width: 1000px) {
    .distributor-official-cell,
    .distributor-distributor-cell,
    .distributor-materials-cell {
        font-size: 6vw;
    }
    
    .specialization-grid-cell-1,
    .specialization-grid-cell-2 {
        font-size: 2.5vw;
        white-space: normal;
    }
    
    .rectangle-7 {
        margin-top: -80px;
    }
}

@media (max-width: 850px) {
    .distributor-official-cell,
    .distributor-distributor-cell,
    .distributor-materials-cell {
        font-size: 7vw;
        white-space: normal;
    }
    
    .specialization-grid-cell-1,
    .specialization-grid-cell-2 {
        font-size: 3vw;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .distributor-official-cell,
    .distributor-distributor-cell,
    .distributor-materials-cell {
        font-size: 8vw;
        white-space: normal;
    }
    
    .specialization-container {
        margin-top: 15px;
        gap: 6px;
    }
    
    .specialization-grid-cell-1,
    .specialization-grid-cell-2 {
        font-size: 3.5vw;
        white-space: normal;
    }
    
    .rectangle-7 {
        margin-top: -60px;
    }
}

@media (max-width: 480px) {
    .distributor-official-cell,
    .distributor-distributor-cell,
    .distributor-materials-cell {
        font-size: 9vw;
    }
    
    .distributor-materials-cell {
        margin-top: -5px;
    }
    
    .specialization-container {
        margin-top: 10px;
        gap: 4px;
    }
    
    .specialization-grid-cell-1,
    .specialization-grid-cell-2 {
        font-size: 4vw;
    }
    
    .rectangle-7 {
        margin-top: -40px;
    }
}

/* Р‘Р»РѕРє "РќР°С€Рё С†РµРЅРЅРѕСЃС‚Рё" */
@media (max-width: 1000px) {
    .values-grid-1 .values-grid-row-1 {
        grid-template-columns: 80px 1fr 80px 1fr 80px 1fr;
        gap: 15px;
        max-width: 900px;
    }
    
    .values-grid-2 .values-grid-row-1 {
        grid-template-columns: 80px 1fr 80px 1fr;
        gap: 15px;
    }
    
    .value-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .values-tables-container {
        gap: 30px;
    }
    
    .values-grid-1 .values-grid-row-1,
    .values-grid-2 .values-grid-row-1 {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
    }
    
    .values-grid-col-icon {
        justify-content: center;
        padding-top: 0;
        margin-bottom: 10px;
    }
    
    .values-grid-col-text {
        text-align: center;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .value-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .values-grid-2 .values-grid-row-1 {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
    }
    
    .values-grid-2 .values-grid-col-icon {
        justify-content: center;
        padding-top: 0;
        margin-bottom: 10px;
    }
    
    .values-grid-2 .values-grid-col-text {
        text-align: center;
        padding: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .values-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .values-section {
        padding: 30px 0;
    }
}

/* Р‘Р»РѕРє СЃ СЌР»Р»РёРїСЃР°РјРё - РјРµРґРёР°-Р·Р°РїСЂРѕСЃС‹ */
@media (max-width: 1200px) {
    .ellipse-1 {
        left: 100px;
    }
    .ellipse-2 {
        left: 180px;
    }
    .ellipse-3 {
        left: 500px;
    }
    .ellipse-4 {
        left: 580px;
    }
}

@media (max-width: 768px) {
    .ellipses-container {
        height: 800px;
    }
    
    .ellipse-1,
    .ellipse-3 {
        width: 300px;
        height: 300px;
    }
    
    .ellipse-2,
    .ellipse-4 {
        width: 200px;
        height: 200px;
    }
    
    .ellipse-1 {
        top: 2300px;
        left: 50px;
    }
    .ellipse-2 {
        top: 2350px;
        left: 100px;
    }
    .ellipse-3 {
        top: 2450px;
        left: 200px;
    }
    .ellipse-4 {
        top: 2500px;
        left: 250px;
    }
}

@media (max-width: 480px) {
    .ellipses-container {
        height: 600px;
    }
    
    .ellipse-1,
    .ellipse-3 {
        width: 200px;
        height: 200px;
    }
    
    .ellipse-2,
    .ellipse-4 {
        width: 150px;
        height: 150px;
    }
    
    .ellipse-1 {
        top: 2350px;
        left: 20px;
    }
    .ellipse-2 {
        top: 2380px;
        left: 60px;
    }
    .ellipse-3 {
        top: 2450px;
        left: 100px;
    }
    .ellipse-4 {
        top: 2480px;
        left: 140px;
    }
}

/* Р‘Р»РѕРє РїСЂРµРёРјСѓС‰РµСЃС‚РІ */
@media (max-width: 1000px) {
    .advantages-title {
        font-size: 36px;
    }
    
    .advantages-grid {
        gap: 35px 40px;
    }
    
    .advantage-number {
        font-size: 22px;
        min-width: 45px;
        margin-right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .advantage-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 968px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .full-width-section {
        padding: 50px 0;
    }
    
    .advantages-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .advantage-item {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .full-width-section {
        padding: 40px 0;
    }
    
    .advantages-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .advantage-number {
        font-size: 20px;
        min-width: 40px;
        margin-right: 12px;
        width: 40px;
        height: 40px;
    }
    
    .advantage-subtitle {
        font-size: 16px;
    }
}

/* Р¤СѓС‚РµСЂ */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-text {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-logo {
        align-self: center;
    }
}

/* РљРЅРѕРїРєР° РІРѕР·РІСЂР°С‚Р° РІРІРµСЂС… - Р°РґР°РїС‚Р°С†РёСЏ */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .footer-container::after {
        height: 70px; /* РњРµРЅСЊС€Рµ РјРµСЃС‚Р° РЅР° РјРѕР±РёР»СЊРЅС‹С… */
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-container {
        padding: 50px 20px; /* РЈРјРµРЅСЊС€РµРЅ РїР°РґРґРёРЅРі РЅР° РјРѕР±РёР»СЊРЅС‹С… */
    }
    
    .footer-container::after {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .distributor-grid-row-1 {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .distributor-official-cell,
    .distributor-distributor-cell,
    .distributor-materials-cell {
        white-space: normal;
        text-align: center;
        justify-self: center;
    }

    .specialization-grid-cell-1,
    .specialization-grid-cell-2 {
        white-space: normal;
        text-align: center;
    }

    .specialization-container {
        margin-top: 100px;
    }
}