* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; /* Единый шрифт для всего */
}

:root {
    --light-grey: #f8f9fa;
    --medium-grey: #e9ecef;
    --dark-grey: #343a40;
    --accent-blue: #0056b3;
    --black: #1a1a1a;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: white;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

ul {
    padding-inline-start: 0;
}

.wide-section {
    width: 100%;
    padding: 120px 0; /* Увеличил высоту для "воздуха" */
    max-width: 1920px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--medium-grey);
}

.bg-grey {
    background-color: var(--light-grey);
}

.container {
    width: 100%;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    padding: 0 40px;
}

/* Заголовки крупными буквами */
.section-title {
    font-size: 44px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 70px;
    color: var(--black);
    text-align: center;
    text-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}

/* Хедер - адрес */
.header-address-lines {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.city-label {
    font-size: 13px;
    opacity: 0.7;
    text-transform: none;
}

/* Hero Section с фоновым изображением */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(315deg, rgba(26, 43, 58, 0.95) 20%, rgba(44, 90, 107, 0.9) 100%),
                url('/img/fon3.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 20px auto;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    gap: 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    max-height: 120px;
    width: auto;
    height: auto;
}

.menu {
    display: flex;
    gap: 30px;
    font-weight: 600;
    font-size: 18px;
    color: white;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    display: inline-block;
    position: relative;
}

.menu a:hover {
    color: white;
    background-color: transparent;
    border-bottom: 2px solid white;
}

.hero-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main-title {
    font-size: 72px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0 0 30px 0;
    letter-spacing: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-align: center;
    line-height: 1.5;
    max-width: 900px;
}

/* 1. Кнопка в самом верху */
.btn-top {
    border: 2px solid white;
    color: white;
    padding: 12px 28px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.btn-top:hover {
    background: white;
    color: #000;
}



/* Стили для новых контактов в хедере */
.header-contacts {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-left: 20px;
    margin-right: auto;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header-contact-item:hover {
    opacity: 0.8;
}

.header-contact-item span {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.header-icon {
    width: 20px;
    height: auto;
    object-fit: contain;
}

.header-contact-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    padding-left: 30px;
    transition: color 0.3s ease;
}

.header-email:hover {
    color: white;
}

/* Основной контент */
main {
    position: relative;
    margin: auto;
    max-width: 1920px;
    z-index: 2;
    padding-top: 0;
}

main iframe {
    border-radius: 0;
    border: 3px solid #9e9e9e;
}

.section__title-wrapper {
    background-color: #1a2b3a;
    border-radius: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 40px;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-align: center;
    margin-bottom: 40px;
}

.content-block {
    max-width: 900px;
    text-align: center;
}

.description {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0 0 25px 0;
}

.description strong {
    color: #ffffff;
    font-weight: 600;
}

/* Виды деятельности */
.activities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Выравнивание карточек по центру */
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Центрирование всей сетки в контейнере */
}

.activity-card {
    flex: 0 1 450px; /* Фиксированная ширина карточек для стабильного центра */
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.activity-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: transparent;
}

.activity-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.activity-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px 0;
}

.activity-card p {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

/* Карточки продукции (Картинка с надписью сверху) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    height: 450px; /* Сделал чуть выше */
    overflow: hidden;
    background-color: var(--black);
}

.product-img {
    width: 100%;
    height: 100%;
    background: #ccc; /* Заглушка, если нет фото */
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Флексбокс для центрирования */
    align-items: center; /* Центр по вертикали */
    justify-content: center; /* Центр по горизонтали */
    background: rgba(0, 0, 0, 0.4); /* Полупрозрачный фон сразу */
    transition: background 0.4s ease;
    padding: 20px;
}

.product-card:hover .product-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.product-overlay h3 {
    margin: 0;
    font-size: 24px;
    color: white;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    pointer-events: none; /* Чтобы текст не мешал наведению */
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

/* Иконки вместо эмодзи */
.activity-icon-svg, .service-icon-svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px auto;
    color: #0077a1;
}

.activity-icon-svg svg, .service-icon-svg svg {
    width: 100%;
    height: 100%;
}

/* Карточки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 50px 30px;
    border: 1px solid var(--accent-grey);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: transparent;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    text-transform: uppercase;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Контакты */
.no-padding { padding: 0; }

.contact-bottom-info {
    color: white;
    padding: 40px 0;
}

.contact-info-grid {
    border-top: 3px solid var(--medium-grey);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.info-item h4 {
    font-size: 32px !important; /* Крупный заголовок (Адрес, Связь и т.д.) */
    font-weight: 800;
    margin-bottom: 20px;
    color: #0077a1; /* Белый на черном фоне */
}

.info-item p {
    font-size: 18px;
    color: black;
}

/* Карточки Услуг и Деятельности - Единый стиль */
.activity-card, .service-card {
    background: white;
    padding: 60px 40px;
    border: 1px solid var(--medium-grey);
    text-align: center;
    transition: all 0.4s ease;
}

.activity-card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.activity-card h3, .service-card h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--black);
}

.activity-card p, .service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Фикс для Хедера (лого + контакты + меню) */
.header-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.city-label {
    color: rgba(255, 255, 255, 0.6);
}

/* --- Секция Объекты --- */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
}

.object-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.object-card:hover {
    transform: translateY(-10px);
}

.object-image-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #eee;
}

.object-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.object-info {
    padding: 30px;
}

.object-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-grey);
    color: #0077a1;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: 5px;
}

.object-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--black);
}

.object-info p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.contacts-flex {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto 40px auto;
    max-width: 1920px;
}

.contact-mini-block {
    align-items: center;
    background: #1a2b3a;
    border-radius: 0;
    border: 1px solid #9e9e9e;
    box-shadow: 6px 6px 0px #9e9e9e;
    padding: 40px 32px;
    min-width: 340px;
    max-width: 380px;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-mini-block h3 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.logo-wrapper-contact {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper-contact img {
    max-height: 120px;
    width: auto;
    height: auto;
    margin-bottom: 20px;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 24px;
    align-items: center;
    width: 100%;
}

.contact-info-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.contact-info-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
}

.contact-info-value {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
}

.contact-links {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.external-link {
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: #e8e8e8;
}

/* Футер */
footer {
    width: 100%;
    max-width: 100%;
    background: #f7f7f7;
    border-radius: 0;
    margin: 0;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    border: none;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    border-top: 2px solid #e3e3e3;
    padding: 50px 60px 30px 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 60px;
    border-right: 1px solid #e3e3e3;
}

.footer-logo img {
    max-width: 160px;
    height: auto;
}

.footer-columns {
    display: flex;
    gap: 60px;
    margin-left: 80px;
    padding: 20px 0px;
    flex-wrap: wrap;
}

.footer-column {
    max-width: 300px;
}

.footer-column h3 {
    font-size: 20px;
    font-weight: 600;
    color: #60626b;
    margin: 0 0 20px 0;
}

.footer-description {
    font-size: 16px;
    font-weight: 400;
    color: #60626b;
    line-height: 1.6;
    margin: 0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    font-size: 16px;
    font-weight: 400;
    color: #60626b;
    line-height: 1.8;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #60626b;
    font-size: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-text {
    font-size: 16px;
    font-weight: 400;
    color: #60626b;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #60626b;
    font-weight: 500;
    font-size: 16px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #000000;
}

.footer-bottom {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px 60px;
    border-top: 1px solid #e3e3e3;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 400;
    color: #60626b;
    margin: 0;
}

/* Кнопка Наверх */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0077a1;
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Класс, который будет добавляться через JS при скролле */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--black);
    transform: translateY(-5px);
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .header-contacts {
        gap: 20px;
        margin-left: 0;
    }
    .header-contact-item span {
        font-size: 12px;
    }

    .hero-section {
        min-height: 80vh;
    }

    .hero-content {
        padding: 30px 40px;
    }

    .header-nav {
        margin-bottom: 60px;
    }

    .logo-wrapper img {
        max-height: 90px;
    }

    .menu {
        gap: 10px;
        font-size: 16px;
    }

    .menu a {
        padding: 10px 10px;
        font-size: 12px;
    }

    .activity-card, .service-card {
        padding: 30px 20px;
    }

    .activity-card {
        flex: 0 1 300px;
        min-height: 300px;
    }

    .product-card {
        height: 400px;
    }

    .description {
        font-size: 18px;
    }

    .main-title {
        font-size: 50px;
    }

    .section-title {
        font-size: 38px;
        font-weight: 800;
        margin-bottom: 60px;
    }

    .wide-section {
        padding: 60px 0;
    }

    .no-padding {
        padding: 0;
    }

    .title {
        font-size: 42px;
        font-weight: 700;
    }

    .hero-subtitle {
        font-size: 24px;
    }
    
    .section__title-wrapper {
        width: 100%;
        padding: 40px 30px;
    }

    .product-overlay h3 {
        font-size: 22px;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacts-flex {
        flex-direction: column;
        gap: 30px;
    }

    iframe {
        width: 100% !important;
        height: 400px !important;
    }

    .contacts-full-wrapper{
        align-items: center;
    }

    .contact-mini-block {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    footer {
        width: 100%;
    }

    .footer-content {
        padding: 40px 30px;
    }

    .footer-columns {
        gap: 40px;
        margin-left: 40px;
    }

    .footer-logo img {
        max-width: 140px;
        height: auto;
    }
}

@media (max-width: 991px) {
    /* Промежуточный этап для планшетов: 2 колонки вместо 3 */
    .products-grid,
    .services-grid,
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .header-nav {
        gap: 10px;
    }

    .logo-wrapper img {
        max-height: 70px;
    }
}

@media (max-width: 767px) {
    .description {
        font-size: 16px;
    }

    iframe {
        height: 500px !important;
    }

    .footer-logo img {
        max-width: 80px;
    }

    .footer-logo {
        padding-right: 20px;
    }

    .footer-columns {
        margin-left: 20px;
    }

    .wide-section {
        padding: 60px 0;
    }

    .no-padding {
        padding: 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
        word-wrap: break-word;
    }

    .activity-icon-svg, .service-icon-svg {
        width: 40px;
        height: 40px;
    }

    .products-grid,
    .services-grid,
    .contact-info-grid,
    .objects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .title {
        font-size: 32px;
    }

    .header-nav {
        gap: 20px;
        padding-bottom: 15px;
    }

    .header-contacts {
        align-items: center;
        margin: 15px 0 0 0;
        gap: 15px;
    }

    .header-contact-item span {
        font-size: 10px;
    }

    .logo-wrapper img {
        max-height: 70px;
    }

    .menu {
        flex-direction: column;
        gap: 0;
        text-align: center;
        display: none;
    }

    .hero-content {
        padding: 20px 15px;
        justify-content: center;
    }

    .main-title {
        font-size: 36px; /* Уменьшаем главный заголовок */
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.4;
    }

    .service-card, .activity-card {
        padding: 30px 20px;
    }

    .product-card {
        height: 350px; 
    }

    .product-overlay h3 {
        font-size: 20px;
    }

    .object-info p {
        font-size: 14px;
    }

    .object-tag {
        font-size: 10px;
    }

    .object-info h3 {
        font-size: 18px;
    }

    .contact-info-grid {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .info-item h4 {
        font-size: 22px !important;
    }

    .info-item p {
        font-size: 16px;
    }

    .footer-column h3 {
        font-size: 16px;
        margin: 0 0 5px 0;
    }

    .footer-description {
        font-size: 12px;
    }

    .contact-text {
        font-size: 12px;
    }

    .footer-columns {
        gap: 10px;
    }

    .footer-list li {
        font-size: 12px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .info-item h4 {
        font-size: 20px !important;
    }

    .info-item p {
        font-size: 14px;
    }

    .activity-card h3, .service-card h3 {
        font-size: 18px;
    }

    .activity-card p, .service-card p {
        font-size: 14px;
    }

    .main-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .title {
        font-size: 28px;
    }

    .activity-card {
        padding: 25px 15px;
    }

    .contact-mini-block {
        padding: 25px 15px;
    }

    .description {
        font-size: 14px;
    }
}

@media (max-width: 365px) {
    .header-nav {
        gap: 10px;
    }

    .title {
        font-size: 22px;
    }

    .description {
        font-size: 12px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .activity-card h3, .service-card h3 {
        font-size: 16px;
    }

    .activity-card p, .service-card p {
        font-size: 12px;
    }

    .product-overlay h3 {
        font-size: 18px;
    }

    .activity-card {
        flex: 0 1 450px;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    body {
        zoom: 0.8; 
    }
    .hero-content {
        min-height: 130vh;
    }
}

