
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Gotham Pro Light */
@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro_light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro_lightitalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Gotham Pro Regular */
@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro_italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Gotham Pro Medium */
@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro_medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro_mediumitalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Gotham Pro Bold */
@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro_bolditalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Gotham Pro Black */
@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro_black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('gothampro_blackitalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Gotham Pro', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f7f7f7; 
    background-image: url(image/background.png);
    min-height: 100vh;
    height: 100vh;
    position: relative;
    background-size: cover;
}

#company {
    min-height: 100%;
    height: 100%;
    background: white;}

#map {background: white;}

#map .page-title {font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    padding-top: 0px;
    line-height: 30px;}

.contact-details {
    display: flex;
    flex-direction: column;
    font-size: 24px;
    gap: 15px;
    padding-bottom: 60px;}

.container {
    width: 90%;
    max-width: 1200px; 
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    position: relative;
    z-index: 10;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    background: white;
    box-shadow: 0px 0px 6px #0000002b;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.logo-icon {
    margin-right: 10px;
}

.nav a {
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    transition: color 0.3s;
}

.nav a:hover {
    color: #000;
}


.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; 
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 10% auto;
    width: 90%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
    line-height: 1.1;
}

.hero-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.hero-text--main {
    font-weight: 400;
    text-align: left;
}
.hero-text--secondary {
    font-weight: 600;
    text-align: left;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.btn {
    padding: 8px 35px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border: 2px solid;
}

.btn--primary {
    background-color: transparent;
    border-color: #000; 
    color: #000;
}

.btn--primary:hover {
    background-color: #000;
    color: #fff;
}

.btn--secondary {
    background-color: #fff;
    border-color: #000; 
    color: #000;
}

.btn--secondary:hover {
    background-color: #f0f0f0;
}


.footer {
    position: absolute;
    width: 100%;
    bottom: 0px;
    z-index: 10;
    padding: 20px 0;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: white;
    box-shadow: 0px 0px 6px #0000002b;
}

.footer-content {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    color: #777;
}

.footer-link:hover {
    text-decoration: underline;
}

.paragraph {
    position: relative;
    margin-left: 30vh;
    padding: 20px 0px;}

.section-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}
.map {
    border-radius: 25px;
    overflow: clip;
    width: 900px; }

#details {margin-top: 0px;}

#details .section-title  {margin: 0px 0 25px 0;}

#docs {margin-top: 0px;}

#docs .section-title {
    font-size: 1rem;
    margin: 20px 0 15px 0;}

@media (max-width: 768px) {

.paragraph {
    position: relative;
    margin-left: 0vh;
    padding: 20px 0px;
}


    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        margin-top: 10px;
    }

    .nav a {
        margin: 0 10px;
    }
    
    .hero-content {
        padding: 60px 0;
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }
    
    .footer-content {
        justify-content: center;
    }
}

/* --- Стили для Кнопки Гамбургер --- */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 20; 
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}


* --- Стили для страницы "О компании" (company.html) --- */

.company-main {
    padding-top: 50px; /* Отступ сверху */
    padding-bottom: 100px; /* Отступ снизу, чтобы не налезать на футер */
}

/* Общий заголовок страницы */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Заголовки секций (О компании, Структурные подразделения и т.д.) */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 30px 0 40px 0;
}

.section {
    margin-top: 90px;
}

/* Общая информация о компании */
.text-block {
    line-height: 1;
}

.company-list {
    list-style: none; /* Убираем стандартные маркеры */
    padding-left: 0;
    margin: 3px 0 25px 0;
}

.company-list li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

/* СТРУКТУРНЫЕ ПОДРАЗДЕЛЕНИЯ (Grid) */
.departments-grid {
    display: grid;
    /* 3 колонки на десктопе */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 20px;
}

.department-card {
    padding: 15px 0;
}

.department-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
}

.department-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
}

/* СОТРУДНИКИ (Grid) */
.staff-grid {
    display: grid;
    /* 4 колонки на десктопе */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 20px;
}

.staff-member {
    /* Добавляем отступы, чтобы избежать прилипания */
    padding-bottom: 20px; 
}

.staff-photo {
    width: 100%;
    /* Используем aspect-ratio или фиксированную высоту для квадратных изображений */
    height: auto; 
    max-width: 200px; /* Ограничиваем максимальный размер */
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
}

.staff-name {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
    line-height: 1.2;
}

.staff-position {
    font-size: 0.8rem;
    font-weight: 400;
    color: #555;
}

#Employees {padding-bottom: 100px;}

/* --- Адаптивность для страницы "О компании" --- */
@media (max-width: 1024px) {
    /* На средних экранах делаем подразделения в 2 колонки */
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* На средних экранах делаем сотрудников в 2 колонки */
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        padding-left: 0; /* Убираем сдвиг на мобильных */
        text-align: left;
    }
    
    /* На мобильных устройствах подразделения и сотрудники в 1 колонку */
    .departments-grid,
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 90%; 
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #eee;
        flex-direction: column; 
        padding: 15px 0;
        
        height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s;
    }

    .nav a {
        margin: 10px 0;
        padding: 8px 20px;
        text-align: center;
        width: 100%;
    }
    
    .nav.is-open {
        display: flex;
        height: auto; 
        opacity: 1;
        pointer-events: auto;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    #map .footer {
    margin-top: 20px;
    position: relative;}

    .section-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    padding-bottom: 50px;}
    
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .header-content {
        flex-direction: row; 
        justify-content: space-between;
    }
}

@media (max-width: 1340px) {

.map {width: 435px;}

}
#map .footer {margin-top: 20px; position: relative;}