﻿* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #0d0d0d;
    color: #e6e6e6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    width: 100%;
    flex: 1 0 auto; /* растягивается, прижимая футер к низу */
    padding: 60px 30%;
    /* для центрирования контента внутри можно использовать flex,
       но это уже зависит от конкретной страницы */
}

@media (max-width: 768px){
    .main-content {
        width: 100%;
        flex: 1 0 auto; /* растягивается, прижимая футер к низу */
        padding: 60px 15%;
        /* для центрирования контента внутри можно использовать flex,
       но это уже зависит от конкретной страницы */
    }
}

@media (max-width: 480px) {
    .main-content {
        width: 100%;
        flex: 1 0 auto; /* растягивается, прижимая футер к низу */
        padding: 60px 8%;
        /* для центрирования контента внутри можно использовать flex,
       но это уже зависит от конкретной страницы */
    }
}
.company-card {
    max-width: 100%;
    width: 100%;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 50px 40px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.company-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 20px;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid #2a2a2a;
}

.detail-label {
    font-size: 0.95rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.05rem;
    color: #e6e6e6;
    font-weight: 400;
    text-align: right;
}

    .detail-value.highlight {
        color: #d4af37;
        font-weight: 600;
    }

/* ----- Блок документов ----- */
.documents-section {
    margin-top: 10px;
    border-top: 1px solid #2a2a2a;
    padding-top: 20px;
}

.documents-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 14px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c0c0c0;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s ease;
    padding: 8px 14px;
    border-radius: 12px;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
}

    .doc-link:hover {
        border-color: #d4af37;
        color: #d4af37;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
        transform: translateX(4px);
    }

.doc-icon {
    font-size: 1.4rem;
}

.doc-name {
    flex: 1;
}

.doc-arrow {
    color: #555;
    transition: 0.3s;
}

.doc-link:hover .doc-arrow {
    color: #d4af37;
    transform: translateX(4px);
}

/* ----- Кнопка назад (опционально) ----- */
.back-link {
    display: inline-block;
    margin-top: 6px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    align-self: flex-start;
}

    .back-link:hover {
        text-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
        transform: translateX(-4px);
    }

/* ----- Адаптивность ----- */
@media (max-width: 600px) {
    .company-card {
        padding: 30px 20px;
    }

    .company-title {
        font-size: 1.8rem;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 8px 0;
    }

    .detail-value {
        text-align: left;
        width: 100%;
    }

    .doc-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
/*++++++++++++++++++++++++++++++++++++++++++*/
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #1a1a1a;
    border: 1px solid #d4af37;
    border-radius: 16px;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
    z-index: 1000;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

    .dropdown-menu.open {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #e6e6e6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s ease;
    border-bottom: 1px solid #2a2a2a;
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: #d4af37;
        color: #0d0d0d;
    }

    .dropdown-item .dropdown-icon {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }

/* Адаптивность */
@media (max-width: 480px) {
    .dropdown-menu {
        right: -10px;
        min-width: 200px;
    }

    .dropdown-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
/*+++++++++++++++++++Сертификаты+++++++++++++++++++++++++++++++*/
.certificates-page {
    max-width: 1200px;
    margin: 0 auto;
}

.certificates-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d4af37;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.certificates-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2a2a2a;
}

/* ----- Сетка сертификатов ----- */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}

.certificate-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

    .certificate-card:hover {
        transform: translateY(-6px);
        border-color: #d4af37;
        box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
    }

.certificate-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #0d0d0d;
    overflow: hidden;
    position: relative;
}

    .certificate-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        display: block;
    }

.certificate-card:hover .certificate-image-wrapper img {
    transform: scale(1.05);
}

.certificate-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.certificate-name {
    font-size: 1rem;
    font-weight: 600;
    color: #d4af37;
    line-height: 1.3;
}

.certificate-date {
    font-size: 0.85rem;
    color: #888;
}

.empty-certificates {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #777;
    font-size: 1.1rem;
}

/* ----- Модальное окно ----- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

    .modal-overlay.active {
        display: flex;
    }

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .modal-content img {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 12px;
        border: 2px solid #d4af37;
        box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
        object-fit: contain;
    }

.modal-title {
    margin-top: 14px;
    color: #d4af37;
    font-size: 1.1rem;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    background: #1a1a1a;
    color: #d4af37;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}

    .modal-close:hover {
        background: #d4af37;
        color: #0d0d0d;
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ----- Адаптивность ----- */
@media (max-width: 768px) {
    .certificates-title {
        font-size: 1.6rem;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .certificate-info {
        padding: 10px 12px 12px;
    }

    .certificate-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 24px 12px;
    }

    .certificates-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .modal-close {
        top: -44px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}
/*+++++++++++++++++++++++++++ДОСТАВКА+++++++++++++++++++++++++++++++++++++*/
.delivery-page {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 50px 45px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.delivery-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d4af37;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.delivery-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2a2a2a;
}

.delivery-section {
    margin-bottom: 32px;
}

    .delivery-section h2 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #d4af37;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
    }

    .delivery-section p {
        font-size: 1rem;
        color: #d0d0d0;
        margin-bottom: 10px;
    }

    .delivery-section ul {
        list-style: none;
        padding-left: 0;
        margin: 10px 0;
    }

        .delivery-section ul li {
            position: relative;
            padding-left: 26px;
            margin-bottom: 8px;
            color: #d0d0d0;
        }

            .delivery-section ul li::before {
                content: "✦";
                position: absolute;
                left: 0;
                color: #d4af37;
                font-size: 0.9rem;
            }

.highlight {
    color: #d4af37;
    font-weight: 600;
}

.delivery-note {
    background: #0d0d0d;
    border-left: 3px solid #d4af37;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #c0c0c0;
}

/* ----- Адаптивность ----- */
@media (max-width: 768px) {
    .delivery-page {
        padding: 32px 22px;
        border-radius: 22px;
    }

    .delivery-title {
        font-size: 1.6rem;
    }

    .delivery-section h2 {
        font-size: 1.2rem;
    }

    .delivery-section p,
    .delivery-section ul li,
    .delivery-note {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 12px;
    }

    .delivery-page {
        padding: 24px 16px;
    }

    .delivery-title {
        font-size: 1.35rem;
    }

    .delivery-subtitle {
        font-size: 0.9rem;
    }
}