
/* ========================================
   1. ОСНОВНЫЕ НАСТРОЙКИ
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #1A1A1A;
    color: #eeeeee;
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
}

p {
    line-height: 1.5;
}


/* ========================================
   2. ВЕРХНЯЯ ШАПКА
======================================== */


/* ===== ВЕРХНЯЯ ШАПКА ===== */

.site-header {
    width: 100%;
    min-height: 160px;
    padding: 25px 4%;

    background-color: #1a1a1a;
    color: #eeeeee;

    display: grid;
    grid-template-columns: 1.25fr 1.1fr 0.95fr 1.2fr;
    align-items: center;
    gap: 25px;
}

/* Логотип слева */

/* Логотип и название компании */

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 95px;
    height: 70px;
    flex-shrink: 0;
    object-fit: contain;
}

.brand-name {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.15;
    white-space: nowrap;
}

/* Логотип на небольших экранах */

@media (max-width: 600px) {
    .brand-logo {
        width: 75px;
        height: 58px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-link {
        gap: 10px;
    }
}


/* Блоки контактов */

.header-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

/* Иконки: часы, почта, телефон */

.contact-icon {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
}

/* Текст контактов */

.contact-text {
    min-width: 0;
    color: #eeeeee;
    font-size: 15px;
    line-height: 1.4;
}

.contact-text > span {
    display: block;
    color: #dddddd;
}

.contact-text p {
    margin: 7px 0 0;
    line-height: 1.4;
}

.contact-text a {
    color: #dddddd;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-text a:hover {
    color: #ffad22;
}

.phone-item {
    align-items: center;
}

/* ===== КРАСНОЕ МЕНЮ ===== */

nav {
    width: 100%;
    min-height: 60px;
    padding: 0 15px;

    background-color: #b80e0e;

    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    font-weight: bold;

    transition: background-color 0.2s, color 0.2s;
}

nav a:hover,
nav a:focus-visible {
    background-color: #ffffff;
    color: #111111;
}

/* ===== ПЛАНШЕТЫ ===== */

@media (max-width: 1100px) {
    .site-header {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
        padding: 28px 5%;
    }

    .brand-logo {
        width: 250px;
    }
}

/* ===== ТЕЛЕФОНЫ ===== */

@media (max-width: 600px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 25px 22px;
    }

    .brand-logo {
        width: 250px;
    }

    .contact-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    nav {
        flex-direction: column;
        padding: 0;
    }

    nav a {
        min-height: 48px;
        padding: 12px;
        font-size: 16px;
    }
}



/* ========================================
   3. КРАСНОЕ МЕНЮ
======================================== */

nav {
    background-color: #a92727;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    padding: 0;
}

nav a {
    display: block;
    padding: 18px 22px;

    color: #ffffff;
    text-decoration: none;
    font-size: 18px;

    transition:
        background-color 0.25s,
        color 0.25s;
}

nav a:hover,
nav a:focus-visible {
    background-color: #ffffff;
    color: #111111;
}


/* ========================================
   4. ОСНОВНОЕ СОДЕРЖИМОЕ
======================================== */

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 25px;
}

h1 {
    font-size: 32px;
}

h2 {
    margin-top: 35px;
    font-size: 26px;
}

.intro {
    margin-bottom: 35px;
}


/* ========================================
   5. ГЛАВНАЯ КАРТОЧКА ГЕРОН-МИР
======================================== */

.featured-product {
    display: flex;
    justify-content: center;
    margin: 25px 0 40px;
}

.featured-product .product-card {
    width: 100%;
    max-width: 520px;
}


/* ========================================
   6. СЕТКА ОБОРУДОВАНИЯ
======================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;

    align-items: stretch;
    margin-top: 25px;
}

/* Карточки */

.product-card {
    min-width: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 25px;

    background-color: #262626;
    border: 1px solid #3a3a3a;
    border-radius: 5px;

    transition:
        border-color 0.25s,
        transform 0.25s;
}

.product-card:hover {
    border-color: #a92727;
    transform: translateY(-3px);
}

.product-card h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 12px 0;
}

.product-card p {
    font-size: 14px;
    color: #cccccc;
}

/* Изображения оборудования */

.product-image {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: contain;
    margin-bottom: 18px;
}

/* Кнопка Подробнее */

.details-button {
    display: inline-block;

    width: 100%;
    margin-top: auto;
    padding: 13px 18px;

    background-color: #a92727;
    border-radius: 4px;

    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;

    transition:
        background-color 0.25s,
        color 0.25s;
}

.details-button:hover,
.details-button:focus-visible {
    background-color: #ffffff;
    color: #111111;
}



/* ========================================
   ПОДВАЛ САЙТА
======================================== */

.site-footer {
    width: 100%;
    background-color: #0d0d0d;
    color: #eeeeee;

    padding: 55px 8%;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    column-gap: 70px;
    align-items: start;

    font-size: 17px;
    line-height: 1.35;
}

/* Заголовок K40A.RU */
.footer-column h3 {
    margin: 0 0 65px;
    color: #b20b0b;
    font-size: 24px;
    font-weight: bold;
}

/* Заголовки колонок */
.footer-column h4 {
    margin: 0 0 22px;
    color: #eeeeee;
    font-size: 22px;
    font-weight: bold;
}

/* Текст */
.footer-column p {
    margin: 0 0 28px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Красные ссылки */
.footer-column a {
    color: #b20b0b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #ffad22;
}

/* Электронная почта ниже телефона */
.footer-column h4:not(:first-child) {
    margin-top: 95px;
}

/* Адаптация для планшетов */
@media (max-width: 900px) {
    .site-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        padding: 40px 5%;
    }

    .footer-column h3 {
        margin-bottom: 35px;
    }

    .footer-column h4:not(:first-child) {
        margin-top: 45px;
    }
}

/* Адаптация для телефонов */
@media (max-width: 600px) {
    .site-footer {
        grid-template-columns: 1fr;
        padding: 32px 22px;
        gap: 28px;
        font-size: 15px;
    }

    .footer-column h3 {
        margin-bottom: 25px;
    }

    .footer-column h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .footer-column h4:not(:first-child) {
        margin-top: 35px;
    }
}


/* ========================================
   8. ПЛАНШЕТЫ
======================================== */

@media (max-width: 1050px) {
    .site-header {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ========================================
   9. ТЕЛЕФОНЫ
======================================== */

@media (max-width: 600px) {
    .site-header {
        padding: 22px 18px;
        gap: 25px;
    }

    .brand-logo {
        width: 240px;
    }

    .header-item {
        gap: 14px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        border-width: 4px;
        font-size: 28px;
    }

    .contact-text {
        font-size: 14px;
    }

    nav {
        flex-direction: column;
        align-items: stretch;
    }

    nav a {
        padding: 14px 18px;
        text-align: center;
        font-size: 16px;
    }

    main {
        padding: 22px 16px;
    }

    h1 {
        font-size: 27px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        padding: 20px;
    }

    .product-image {
        height: 240px;
    }

    .featured-product .product-card {
        max-width: 100%;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 22px;
    }
}


/* ========================================
   10. УМЕНЬШЕННАЯ АНИМАЦИЯ
======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


.site-footer {
    background-color: #0f0c0f !important;
    min-height: 300px !important;
    padding: 60px 8% !important;
}


/* ===== Карточки оборудования ===== */

.product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

/* Картинки шкафов */
.product-image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 18px;
}

/* Названия */
.product-card h3 {
    text-align: left;
    margin: 12px 0 18px;
}

/* Описания */
.product-card p {
    text-align: left;
}

/* Кнопка на всю ширину карточки */
.details-button {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;

    width: 100%;
    min-height: 54px;
    margin-top: auto;
    padding: 14px 12px;

    text-align: center;
    box-sizing: border-box;
}

/* Расстояние между карточками и подвалом */
main {
    padding-bottom: 45px;
}

.site-footer {
    margin-top: 0;
}

/* Для небольших экранов */
@media (max-width: 600px) {
    .product-image {
        height: 260px;
    }

    .details-button {
        min-height: 50px;
    }

    main {
        padding-bottom: 30px;
    }
}

/* Описание компании */
.intro-text {
    max-width: 1250px;
    margin: 55px auto 45px;
    text-align: justify;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
}

/* Заголовок «Наше оборудование» */
.section-title {
    text-align: center;
    margin: 45px auto 35px;
}
.location-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}



/* ===== СТРАНИЦА ДОКУМЕНТАЦИИ ===== */

.documentation-page {
    max-width: 1250px;
    margin: 0 auto;
    padding: 55px 24px 80px;
    color: #fff;
}

.documentation-heading {
    margin-bottom: 55px;
    text-align: center;
}

.documentation-label {
    color: #b20b0b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.documentation-heading h1 {
    margin: 15px 0 18px;
    color: #fff;
    font-size: 46px;
}

.documentation-heading > p {
    max-width: 750px;
    margin: 0 auto;
    color: #bfc3cc;
    font-size: 18px;
    line-height: 1.7;
}

.documentation-list h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 28px;
}

.documentation-subtitle {
    margin-bottom: 28px;
    color: #bfc3cc;
    font-size: 16px;
    line-height: 1.7;
}

.document-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 24px;
    background: #232323;
    border: 1px solid #414141;
    border-radius: 6px;
    transition: border-color 0.25s ease,
                background-color 0.25s ease;
}

.document-item:hover {
    border-color: #b20b0b;
    background-color: #282323;
}

.pdf-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 58px;
    border: 2px solid #b20b0b;
    border-radius: 5px;
    color: #b20b0b;
    font-size: 13px;
    font-weight: 800;
    position: relative;
}

.pdf-icon::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    right: 7px;
    height: 1px;
    background: #b20b0b;
    opacity: 0.7;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-info h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.document-info p {
    margin: 0;
    color: #aeb4c0;
    font-size: 14px;
    line-height: 1.6;
}

.document-download {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 125px;
    padding: 13px 16px;
    border: 1px solid #b20b0b;
    border-radius: 4px;
    color: #fff;
    background: #b20b0b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

.document-download:hover {
    background: #b20b0b;
    border-color: #b20b0b;
}

@media (max-width: 700px) {
    .documentation-page {
        padding: 35px 16px 50px;
    }

    .documentation-heading {
        margin-bottom: 38px;
    }

    .documentation-heading h1 {
        font-size: 34px;
    }

    .documentation-heading > p {
        font-size: 16px;
    }

    .documentation-list h2 {
        font-size: 24px;
    }

    .document-item {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px;
    }

    .document-info {
        flex-basis: calc(100% - 65px);
    }

    .document-info h3 {
        font-size: 20px;
    }

    .document-download {
        margin-left: 62px;
    }
}
.equipment-heading {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.equipment-heading h1 {
    margin-bottom: 24px;
}

.equipment-heading p {
    margin: 0 auto;
    line-height: 1.8;
}

.back-home {
    display: inline-block;
    margin-top: 45px;
    color: #fffffe;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.back-home:hover {
    color: #b20b0b;
}

/* Отступ перед подвалом на странице оборудования */
.back-home-wrapper {
    margin: 0 auto 80px;
    padding: 0 24px;
    max-width: 1400px;
    box-sizing: border-box;
}



