/* === Shared Page Components === */
/* Loaded on pages that use advantages and/or request form */

/* === Преимущества === */
.advantages-section {
    padding: 48px 0 40px;
}

.advantages-grid {
    display: flex;
    gap: 30px;
}

.advantage-card {
    flex: 1;
    padding: 30px 31px;
    min-height: 311px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.advantage-card-light {
    background-color: var(--bs-secondary-bg);
}

.advantage-card-light h4 {
    color: var(--bs-primary);
}

.advantage-card-light p {
    color: #000;
}

.advantage-card-blue {
    background-color: var(--bs-primary);
}

.advantage-card-blue h4 {
    color: #fff;
}

.advantage-card-blue p {
    color: #fff;
}

.advantage-icon {
    display: block;
    margin-bottom: 16px;
}

.advantage-card h4 {
    font-size: 33px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.advantage-card p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.375;
    margin: 0 0 8px;
}

/* === Форма заявки === */
.request-section {
    padding: 30px 0 60px;
}

.request-section .container-xxl {
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    padding-top: 30px;
    padding-bottom: 60px;
}

.request-header {
    margin-bottom: 40px;
    gap: 0;
}

.request-title {
    font-size: 43px;
    white-space: nowrap;
    flex-shrink: 0;
}

.request-header-divider {
    width: 1px;
    height: 40px;
    background-color: var(--bs-border-color);
    align-self: center;
    margin: 0 40px;
    flex-shrink: 0;
}

.request-subtitle {
    font-size: 16px;
    color: var(--bs-secondary-color);
    line-height: 1.5;
    padding-top: 8px;
}

.request-form {
    display: flex;
    gap: 24px;
}

.request-left,
.request-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.request-input {
    height: 70px;
    background-color: var(--bs-secondary-bg);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0 24px;
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.request-input:focus {
    outline: none;
    border-bottom-color: var(--bs-primary);
    background-color: #e6eaf3;
}

.request-input::placeholder,
.request-textarea::placeholder {
    color: var(--konpal-gray);
}

.request-textarea {
    flex: 1;
    min-height: 125px;
    background-color: var(--bs-secondary-bg);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 24px;
    font-size: 16px;
    resize: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.request-textarea:focus {
    outline: none;
    border-bottom-color: var(--bs-primary);
    background-color: #e6eaf3;
}

.request-attach {
    color: var(--bs-primary);
    font-size: 16px;
    text-decoration: none;
}

.request-attach:hover {
    text-decoration: underline;
}

.request-attach-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.request-attach-link {
    color: var(--color-accent);
    text-decoration: underline;
    font-size: 14px;
}

.request-attach-link:hover {
    text-decoration: none;
}

.request-attach-hint {
    font-size: 12px;
}

.request-attach-name {
    display: block;
    font-size: 13px;
    margin-top: 4px;
}

.request-bottom {
    gap: 16px;
}

.request-consent {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    max-width: 350px;
}

.request-consent input[type="checkbox"] {
    appearance: none;
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid var(--bs-border-color);
    flex-shrink: 0;
    cursor: pointer;
}

.request-consent input[type="checkbox"]:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.request-consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.request-consent a {
    color: #999;
    text-decoration: underline;
}

.request-submit {
    height: 62px;
    min-width: 230px;
    background-color: var(--konpal-navy);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.request-submit:hover {
    background-color: var(--konpal-navy-hover);
}

/* === Контакты === */
.contacts-info {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}

.contacts-col {
    flex: 1;
    padding: 0 32px;
}

.contacts-col:first-child {
    padding-left: 0;
}

.contacts-col:last-child {
    padding-right: 0;
}

.contacts-col:not(:last-child) {
    border-right: 1px solid var(--bs-border-color);
}

.contacts-col-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
}

.contacts-col p,
.contacts-col a {
    font-size: 16px;
    color: var(--bs-body-color);
    line-height: 1.5;
    margin-bottom: 8px;
}

.contacts-col a {
    text-decoration: none;
}

.contacts-col a:hover {
    color: var(--bs-primary);
}

.contacts-link {
    color: var(--bs-link-color) !important;
}

.contacts-link:hover {
    text-decoration: underline !important;
}

/* === О нас — описание === */
.about-page-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--bs-body-color);
    margin-bottom: 16px;
}

/* === Как мы работаем === */
.howwework-section {
    padding: 36px 0 40px;
}

.howwework-title {
    font-size: 44px;
    margin-bottom: 40px;
}

.howwework-grid {
    display: flex;
    gap: 34px;
}

.howwework-step {
    flex: 1;
}

.howwework-icon {
    margin-bottom: 16px;
}

.howwework-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--bs-body-color);
    border-top: 1px solid var(--bs-border-color);
    padding-top: 16px;
}

/* === Responsive: Advantages + Request + Contacts + HowWeWork === */
@media (max-width: 1199.98px) {
    .advantages-grid {
        flex-wrap: wrap;
    }

    .advantage-card {
        flex: 0 0 calc(50% - 16px);
        min-height: auto;
    }
}

@media (max-width: 991.98px) {
    .request-form {
        flex-direction: column;
    }

    .request-title {
        font-size: 30px;
    }

    .contacts-info {
        flex-wrap: wrap;
        gap: 24px;
    }

    .contacts-col {
        flex: 0 0 calc(50% - 12px);
        padding: 0;
    }

    .contacts-col:not(:last-child) {
        border-right: none;
    }

    .howwework-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .howwework-step {
        flex: 0 0 calc(50% - 12px);
    }

    .howwework-title {
        font-size: 30px;
    }
}

@media (max-width: 575.98px) {
    .advantages-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .advantage-card {
        min-height: auto;
        padding: 20px 16px;
    }

    .advantage-card h4 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .advantage-card p {
        font-size: 14px;
    }

    .request-bottom {
        flex-wrap: wrap;
    }

    .request-submit {
        width: 100%;
        min-width: auto;
    }

    .request-consent {
        max-width: 100%;
        margin-bottom: 8px;
    }

    .request-section {
        padding: 0 0 24px;
    }

    .request-section .container-xxl {
        border-top: none;
        border-bottom: none;
        padding-top: 8px;
        padding-bottom: 20px;
    }

    .request-header {
        margin-bottom: 16px;
    }

    .advantages-section {
        padding: 16px 0 32px;
    }

    .contacts-col {
        flex: 0 0 100%;
    }

    .howwework-grid {
        gap: 20px;
    }

    .howwework-step {
        flex: 0 0 100%;
    }

    .howwework-text {
        font-size: 17px;
    }
}
