/* === STATS SECTION === */
.stats-section {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    background: #252525;
    color: #fff;
    padding: 60px 20px 60px;
    box-sizing: border-box;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-card {
    background: #2f2f2f;
    /* border-radius: 6px; */
    /* строгие углы */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    padding: 40px 30px;
    width: 280px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    background: #303030;
    -webkit-box-shadow: 0 0 20px 0 rgba(219, 61, 14, 0.2);
    -moz-box-shadow: 0 0 20px 0 rgba(219, 61, 14, 0.2);
    box-shadow: 0 0 20px 0 rgba(219, 61, 14, 0.2);
}

.stat-value {
    font-size: 64px;
    font-weight: 800;
    color: #DB3D0E;
    /* акцентный цвет */
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'PF-Din', Helvetica, Arial, sans-serif;
}

.stat-text {
    font-size: 14px;
    line-height: 1.5em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e0e0e0;
}

/* === GALLERY === */
/* GALLERY */
:root {
    --gap: 20px;
    --narrow-percent: 40%;
    /* узкая колонка */
    --wide-percent: 60%;
    /* широкая колонка */
}

/* .gallery-section {
    padding: 60px 0;
} */

.gallery-section .center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap);
    /* чтобы боковые отступы были равны */
    box-sizing: border-box;
    background: #252525;
}

.gallery-title {
    font-size: 28px;
    color: #FFF;
    font-family: "PF-Din", Helvetica, Arial, sans-serif;
    margin: 60px 0 24px 0;
    text-transform: uppercase;
}

/* grid as column of rows; gap vertical = --gap */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    /* вертикальный gap между строками */
}

/* each row is a flex container with horizontal gap = --gap */
.gallery-row {
    display: flex;
    gap: var(--gap);
    /* горизонтальный gap между элементами */
    align-items: stretch;
}

/* item base */
.gallery-item {
    position: relative;
    overflow: hidden;
    /* border-radius: 6px; */
    background: #000;
    min-height: 220px;
    /* высота карточки; можно увеличить */
    display: block;
}



/* sizes: narrow / wide */
.gallery-item.narrow {
    flex: 0 0 var(--narrow-percent);
    /* фиксированная ширина в процентах */
}

.gallery-item.wide {
    flex: 0 0 var(--wide-percent);
}

/* image styling: no stretching, use cover */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ключевое: cover */
    display: block;
    transition: transform 0.45s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* hover zoom (optional) */
.gallery-item:hover img {
    transform: scale(1.06);
}

/* overlay with white text */
.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15));
    color: #fff;
    box-sizing: border-box;
}

.gallery-text h3 {
    text-align: start;
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.1;
    color: #fff;
}

.gallery-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

/* ensure exact equal outer edges: remove extra spacing on rows */
.gallery-row:first-child {
    /* optional alignment tweaks if needed */
}

@media (max-width: 991px) {
    :root {
        --gap: 16px;
    }

    .gallery-grid {
        gap: var(--gap);
    }

    .gallery-row {
        flex-direction: column;
        gap: var(--gap);
    }

    .gallery-item.narrow,
    .gallery-item.wide {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .gallery-item {
        min-height: 200px;
        /* border-radius: 4px; */
    }

    .gallery-overlay {
        padding: 14px;
    }

    .gallery-title {
        font-size: 22px;
        margin-bottom: 18px;
        text-align: center;
    }

    .gallery-section .center {
        padding-left: var(--gap);
        padding-right: var(--gap);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;

    /* строгие углы */
    background: #000;
    min-height: 220px;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* cover — без искажений */
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Партнеры */
.partners-wrapper {
    width: 100%;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
    max-width: 1200px;
}

.partners-group-title {
    font-size: 24px;
    color: #111;
    margin: 40px 0 25px;
    font-family: 'PF-Din', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    align-items: center;
    justify-items: center;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    height: 140px;
    width: 100%;
    max-width: 240px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-logo-item:hover {
    background: #f9f9f9;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo-item:hover .partner-logo {
    transform: scale(1.05);
}

/* адаптивность */
@media (max-width: 991px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .partner-logo-item {
        max-width: 100%;
        height: 120px;
    }

    .partner-logo {
        max-width: 140px;
    }
}

@media (max-width: 575px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .partners-group-title {
        font-size: 22px;
        margin: 32px 0 18px;
    }

    .partner-logo-item {
        height: 110px;
    }
}

/* Кнопка ACTION на главной */
.action-button {
    width: 220px;
    background: #DB3D0E;
    color: #fff;
    text-align: center;
    font-family: 'HN-Thin', Helvetica, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 14px 0;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.action-button:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FF5C2D, #DB3D0E);
}

.action-button:active {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Контакты */

.contacts-section {
    color: #252525;
    padding: 40px 0 0 0;
    background-color: #F2F2F2;
    font-family: Helvetica, Arial, sans-serif;
}

.contacts-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-card strong {
    font-weight: 700;
}

.contact-card a {
    color: #DB3D0E;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}


.requisites-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.requisites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.requisites-list div {
    line-height: 1.5;
}

.requisites-list a {
    color: #DB3D0E;
    text-decoration: none;
}

.requisites-list a:hover {
    text-decoration: underline;
}

/* ВЕРТУШКИ */


.flip-container,
.front,
.back {
    width: 318px;
}

/* ------ */
.box {
    width: 318px;
}

.box .inner {
    width: 318px;
}