/* Static Pages Styles - Стили для статических/информационных страниц */

.static-page,
.static-page-container {
    min-height: calc(100vh - 200px);
    padding: 40px;
    background-color: #fff;
}

/* Для страницы контактов - используем flexbox для центрирования */
.static-page-contact,
.contact-page,
.static-page-container.contact-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 370px);
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.contact-page .static-contact {
    font-weight: 300;
    font-size: 14px;
}

.contact-page .static-contact .flex-row {
    justify-content: space-between;
    width: 100%;
    max-width: 290px;
}

.static-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Для страницы контактов - контейнер растягивается */
.static-page-contact .static-container,
.contact-page .static-container,
.static-page-container.contact-page .static-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    min-height: 0;
    width: 100%;
}

/* Вертикальное центрирование для страницы контактов */
.static-page .static-content-centered {
    justify-content: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.static-title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 32px 0;
    color: #000;
    letter-spacing: -0.5px;
    text-align: center;
}

.static-updated {
    font-size: 14px;
    color: #666;
    margin: 0 0 40px 0;
    font-weight: 300;
}

.static-content {
    line-height: 1.7;
    color: #333;
}

/* Центрирование контента на странице контактов */
.contact-page .static-content,
.static-page-container.contact-page .static-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-page .static-section,
.static-page-container.contact-page .static-section {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.contact-page .static-contact,
.static-page-container.contact-page .static-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-page .static-contact p,
.static-page-container.contact-page .static-contact p {
    text-align: center;
    margin: 0 0 20px 0;
}

.contact-page .static-contact p {
    text-align: center;
    margin: 0 0 20px 0;
}

.contact-page .static-contact p:last-child {
    margin-bottom: 0;
}

/* Центрирование контента на странице контактов */
.static-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.static-content-centered .static-section {
    width: 100%;
    max-width: 250px;
    text-align: center;
    margin-top: -75px;
    margin-bottom: 0;
}

.static-section {
    margin-bottom: 48px;
}

.static-section:last-child {
    margin-bottom: 0;
}

.static-section-title {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
    color: #000;
    padding-bottom: 12px;
}

.static-subsection-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 32px 0 16px 0;
    color: #000;
}

.static-section p {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #333;
}

.static-section p:last-child {
    margin-bottom: 0;
}

.static-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.static-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #333;
}

.static-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
}

.static-list li:last-child {
    margin-bottom: 0;
}

.static-list li strong {
    font-weight: 500;
    color: #000;
}

.static-list-numbered {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    counter-reset: item;
}

.static-list-numbered li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    counter-increment: item;
}

.static-list-numbered li:before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
}

.static-list-numbered li:last-child {
    margin-bottom: 0;
}

.static-section a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.static-section a:hover {
    text-decoration-color: #000;
}

.contact-info {
    margin-top: 16px;
}

.contact-info p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    max-width: 550px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info p strong {
    font-weight: 500;
    color: #000;
    display: block;
}

.contact-info a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.contact-info a:hover {
    text-decoration-color: #000;
}

.company-details {
    margin-top: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #000;
    min-width: 150px;
    margin-right: 24px;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-value {
    color: #333;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.detail-value a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.detail-value a:hover {
    text-decoration-color: #000;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .static-page {
        padding: 24px;
    }

    .static-title {
        font-size: 24px;
    }

    .static-section-title {
        font-size: 16px;
    }

    .static-subsection-title {
        font-size: 16px;
    }

    .static-section {
        margin-bottom: 32px;
    }

    .detail-row {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .detail-label {
        min-width: 100%;
        margin-right: 0;
        margin-bottom: 0;
    }

    .detail-value {
        font-weight: 300;
    }

    .contact-info {
        padding: 20px 16px;
    }

    .contact-info p {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .static-title {
        font-size: 24px;
    }

    .static-section-title {
        font-size: 16px;
    }

    .static-section p,
    .static-list li,
    .static-list-numbered li {
        font-size: 14px;
    }
}
