/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'stenga';
    src: url('/fonts/stenga.ttf');
}


:root {
    --primary-color: #0479AF;
    --gradient-start: #009BA5;
    --gradient-end: #1D76B8;
    --text-color: #333;
    --light-color: #fff;
    --dark-color: #222;
    --gray-color: #f5f5f5;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
    font-family: stenga;
    font-weight: normal;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #036a95;
    transform: translateY(-2px);
}

/* Сетка */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1 0 100%;
}

.col-2 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-3 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
}

.col-4 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Шапка */
.header-top {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-bottom {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-weight: 700;
}

.logo-text span:last-child {
    font-size: 14px;
    font-weight: 400;
}

.header-contacts {
    display: flex;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.contact-item:last-child {
    margin-right: 0;
}

.contact-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-item span {
    font-size: 14px;
}

.header-nav {
    display: flex;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding: 20px 0;
    display: block;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: rgba(255,255,255,0.8);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Контакты в мобильном меню */
.mobile-contacts {
    display: none;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-contacts .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--light-color);
}

.mobile-contacts .contact-item:last-child {
    margin-bottom: 0;
}

.mobile-contacts .contact-item i {
    margin-right: 15px;
    color: var(--light-color);
    width: 20px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Херо-блок */
.hero {
    height: 70vh;
    min-height: 555px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: -1;
}

.hero-title {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: var(--light-color);
    font-size: 52px;
    font-weight: 700;
    max-width: 800px;
    text-align: left;
    line-height: 1.3;
    font-family: stenga;
    font-weight: normal;
}

/* Блок "Подробнее о нас" */
.about-text {
    margin-bottom: 40px;
}

.about-text p {
    margin-bottom: 20px;
}

.full-width-img {
    width: 100%;
    object-fit: cover;
    margin-top: 40px;
    border-radius: 8px;
}

/* Блок "Наши задачи" */
.tasks {
    background: linear-gradient(50deg, var(--gradient-start), var(--gradient-end));
    color: var(--light-color);
}

.tasks .section-title {
    color: var(--light-color);
}

.tasks .row {
    row-gap: 40px; /* Вертикальный отступ между рядами */
}

.task-card {
    background-color: var(--light-color);
    color: var(--text-color);
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.task-card:hover {
    transform: translateY(-5px);
}

.task-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Блок "АО ДРУК В ЦИФРАХ" */
.stats {
    background: linear-gradient(50deg, var(--gradient-start), var(--gradient-end));
    color: var(--light-color);
}

.stats .section-title {
    color: var(--light-color);
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.stats-row:first-child {
    margin-bottom: 40px;
}

.stat-item {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
    padding: 0 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 36px;
    color: var(--light-color);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--light-color);
}

.stat-text {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

/* Блок "Производственные мощности" */
.power-item {
    margin-bottom: 60px;
}

.power-item:last-child {
    margin-bottom: 0;
}

.power-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.power-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.power-img {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: 8px;
    overflow: hidden;
}

.power-text {
    flex: 0 0 60%;
    max-width: 60%;
    padding-left: 30px;
}

.power-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.power-table th, .power-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.power-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.power-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.power-list {
    list-style: none;
    margin-bottom: 15px;
}

.power-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.power-list li:before {
    content: "•";
    color: var(--primary-color);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Блок "Квоты добычи" */
.quota-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.quota-card {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 10px;
    margin-bottom: 20px;
}

.quota-card-inner {
    background-color: var(--gray-color);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s;
    position: relative;
    min-height: 280px;
}

.quota-card-inner:hover {
    transform: translateY(-5px);
}

.quota-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.quota-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: var(--light-color);
    z-index: 2;
}

.quota-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.quota-desc {
    font-size: 16px;
    opacity: 0.9;
}

.quota-annotation {
    font-style: italic;
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Блок "ВБР" */
.vbr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.vbr-table th, .vbr-table td {
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.vbr-table th {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
}

.vbr-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.vbr-description {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Блок "Свяжитесь с нами" */
.contact-section {
    background-color: var(--gray-color);
    padding: 80px 0;
}

.contact-section .section-title {
    margin-bottom: 50px;
}

.contact-info {
    padding-right: 40px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-details {
    list-style: none;
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.contact-form-container {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form-container h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.contact-social {
    margin-top: 30px;
}

.contact-social h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Подвал */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--light-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    margin-right: 10px;
}

.footer-info {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--light-color);
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contacts i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    margin-right: 10px;
    color: #525252;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Формы и модальные окна */
.popup-form {
    display: none;
    max-width: 500px;
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    margin: 0 auto;
}

.form-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    margin-top: 5px;
    margin-right: 10px;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-color);
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Анимация при скролле */
.header-bottom.scrolled {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Адаптивность */
@media (max-width: 1400px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .quota-card {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 1200px) {
    div.items a {
        width: 47% !important;
    }


    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .contact-section {
        padding: 70px 0;
    }

    .contact-info {
        padding-right: 30px;
    }

    .contact-item {
        margin-right: 20px;
    }

    .nav-menu li {
        margin: 0 10px;
    }

    .quota-card {
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
    }

    .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .stat-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 992px) {

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Скрываем верхнюю часть с контактами на мобильных */
    .header-top {
        display: none;
    }

    .header-contacts {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }

    .contact-item {
        margin-right: 0;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
    }

    .header-nav {
        width: 100%;
        display: none;
        flex-direction: column;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        padding-top: 10px;
        text-align: center;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu a {
        padding: 15px 0;
    }

    /* Показываем контакты в мобильном меню */
    .mobile-contacts {
        display: block;
    }

    .header-nav.active {
        display: flex;
    }

    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 28px;
        left: 30px;
        bottom: 30px;
    }

    .col-2, .col-3, .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tasks .row {
        row-gap: 30px; /* Уменьшаем отступ на мобильных */
    }

    .power-img, .power-text {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .power-text {
        padding-left: 0;
        padding-top: 20px;
    }

    .power-table {
        font-size: 14px;
    }

    .vbr-table {
        display: block;
        overflow-x: auto;
    }

    .quota-card {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .stat-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-form-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    div.items a {
        width: 100% !important;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .contact-section {
        padding: 50px 0;
    }

    .contact-form-container {
        padding: 25px;
    }

    .contact-info h3, .contact-form-container h3 {
        font-size: 22px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 22px;
        left: 20px;
        bottom: 20px;
        max-width: 300px;
    }

    .quota-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-text {
        font-size: 16px;
    }

    .stat-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .stat-icon {
        font-size: 30px;
    }

    .tasks .row {
        row-gap: 20px; /* Еще уменьшаем отступ на планшетах */
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .header-contacts {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-item {
        margin-bottom: 10px;
    }

    .contact-item:last-child {
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 18px;
        left: 15px;
        bottom: 15px;
        max-width: 250px;
    }

    .task-card {
        padding: 20px;
    }

    .quota-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-form-container {
        padding: 20px;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 30px;
    }

    .footer-title {
        text-align: center;
    }

    .footer-links, .footer-contacts {
        text-align: center;
    }

    .footer-contacts li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon-wrapper {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .tasks .row {
        row-gap: 15px; /* Минимальный отступ на мобильных */
    }
}

@media (max-width: 500px) {
    div.items a {
        width: 100% !important;
    }

    .hero-title {
        font-size: 16px;
        max-width: 200px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .form-title {
        font-size: 20px;
    }

    .popup-form {
        padding: 30px 20px;
    }
}

footer.footer ul {
    padding: 0;
}

div.items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}
div.items a {
    display: flex;
    flex-direction: column;
    border-radius: 9px;
    width: 30%;
    border: 1px solid #ddd;
    padding: 10px;
    background: linear-gradient(45deg, #f2f2f2, #fff);
}
div.items h4 { background-color: #eee; padding: 5px; border-radius: 9px;
    white-space: nowrap; /* Запрет переноса строки */
    overflow: hidden; /* Скрытие текста, выходящего за пределы */
    text-overflow: ellipsis; /* Добавление многоточия */
}
div.items h6 { margin-bottom: 30px;}
div.items div.edit_btn { justify-content: end;  margin-top: auto; }

div.items a { text-decoration: none; color: #333;}



div.item_view table { display: table;}
div.item_view td,
div.item_view th
{ border: 1px solid #bbb; padding: 2px; }


div.item_view table tr td { padding: 2px 5px;}
div.item_view table tr:first-child td { padding: 5px 20px; text-align: center;}

/*
div.item_view thead { background-color: #e2efda !important;}
div.item_view th { text-align: center;}
div.item_view tbody tr:first-child td:nth-child(2) { background-color: #c6e0b4; }
div.item_view tbody td:nth-child(6) { background-color: #c6e0b4; }
div.item_view tbody td:nth-child(7) { background-color: #c6e0b4; }

div.item_view tbody tr:first-child td:nth-child(6) { background-color: transparent ; }
div.item_view tbody tr:first-child  td:nth-child(7) { background-color: transparent; }
div.item_view tbody tr:first-child td:nth-child(8) { background-color: #c6e0b4; }
div.item_view tbody tr:first-child  td:nth-child(9) { background-color: #c6e0b4; }
div.item_view tbody tr:last-child { font-weight: bold;}
div.item_view tbody tr:last-child td:nth-child(6) { background-color: transparent; }
div.item_view tbody tr:last-child  td:nth-child(5) { background-color: #ddebf7; }
div.item_view tbody tr:last-child  td:nth-child(4) { background-color: #ddebf7; }
div.item_view tbody tr:last-child  td:nth-child(3) { background-color: #ddebf7; }
div.item_view tbody tr:last-child  td:nth-child(2) { background-color: #ddebf7; }
*/
#regnow label {
    font-size: 12px;
    font-weight: bold;
}
.lang_selector {
    text-decoration: none;
}
.lang_selector::after {
    content: none !important;
}
#navbarDropdownMenuLink::after {
    content: none !important;
}

.lang_selector li a.dropdown-item {
    margin: 3px !important;
    padding: 0;
    color: #222;
}
.lang_selector li a.dropdown-item:hover {
    text-decoration: none;
}
.lang_selector li a.dropdown-item:after {
    content: normal;
}
