/* ==========================================================================
   ОБЩИЕ СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ И СТРАНИЦ УСЛУГ
   Файл: css/service-pages.css
   ========================================================================== */

/* 1. Интерактивные контакты (шапка и подвал) */
.header-phone,
.contacts-footer a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.header-phone:hover,
.header-phone:focus-visible,
.contacts-footer a:hover,
.contacts-footer a:focus-visible {
    color: var(--gold);
    outline: none;
}

.contacts-footer a {
    color: inherit;
    text-decoration: none;
}

.contacts-footer a:hover,
.contacts-footer a:focus-visible {
    text-decoration: underline;
}

/* 2. Интро-блок услуги с маркерным списком */
.service-intro {
    max-width: 920px;
    margin: 0 auto;
}

.service-intro__lead {
    margin: 0 0 26px;
    color: var(--gray-mid);
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    line-height: 1.75;
}

.service-intro ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 42px;
    margin: 28px 0 34px;
    padding: 0;
    list-style: none;
}

.service-intro li {
    position: relative;
    padding-left: 22px;
    color: var(--gray-mid);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.service-intro li::before {
    position: absolute;
    top: 0.56em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    content: "";
}

/* 3. Отступы тематических секций услуг */
.section-service-intro,
.section-admin-intro,
.section-arbitration-intro,
.section-consultation-intro {
    padding-top: 72px;
    padding-bottom: 24px;
}

.section-service-list,
.section-admin-services,
.section-arbitration-services,
.section-consultation-topics {
    padding-top: 24px;
    padding-bottom: 72px;
}

.section-service-faq,
.section-admin-faq,
.section-arbitration-faq,
.section-consultation-faq {
    padding-top: 72px;
    padding-bottom: 72px;
}

/* 4. Сетка цен */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.pricing-grid .card-service {
    min-height: 100%;
}

/* 5. Темный блок кейсов и практики */
.service-cases {
    padding: 84px 0;
    background: #1d2d47;
}

.service-cases__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.service-cases__grid .service-case:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
}

.service-case {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 30px;
    border: 1px solid rgba(201, 165, 82, 0.28);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.service-case__type {
    display: block;
    margin-bottom: 15px;
    color: var(--gold);
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-case h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.12;
}

.service-case p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.service-case__result {
    margin-top: auto !important;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.service-case__result strong {
    color: var(--gold);
    font-weight: 600;
}

/* 6. Альтернативная сетка кейсов (3 колонки с flexbox) */
.cases-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.cases-card {
    width: calc(33.333% - 16px);
    display: flex;
    flex-direction: column;
    padding: 36px;
    border: 1px solid rgba(201, 165, 82, 0.3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cases-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.cases-label {
    color: var(--gold);
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cases-card h3 {
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cases-card p {
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.cases-card .cases-result {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.cases-card .cases-result strong {
    color: var(--gold);
}

/* 7. Аккордеон FAQ */
.faq-accordion {
    max-width: 1100px;
    margin: 0 auto;
}

.faq-accordion__item {
    margin-bottom: 12px;
    border: 1px solid rgba(25, 42, 68, 0.14);
    border-left: 3px solid #1d2d47;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(20, 30, 45, 0.05);
}

.faq-accordion__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 27px 38px;
    color: #172846;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    list-style: none;
}

.faq-accordion__item summary::-webkit-details-marker {
    display: none;
}

.faq-accordion__item summary::after {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    content: "";
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.2s ease;
}

.faq-accordion__item[open] summary::after {
    transform: rotate(225deg) translate(-3px, -3px);
}

.faq-accordion__item[open] summary {
    border-bottom: 1px solid rgba(25, 42, 68, 0.12);
}

.faq-accordion__answer {
    padding: 22px 38px 28px;
}

.faq-accordion__answer p {
    max-width: 920px;
    margin: 0;
    color: var(--gray-mid);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

/* 8. Адаптивность для мобильных и планшетов */
@media (max-width: 1024px) {
    .cases-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 820px) {
    .service-intro ul,
    .service-cases__grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .service-intro__lead {
        font-size: 16px;
    }

    .section-service-intro,
    .section-admin-intro,
    .section-arbitration-intro,
    .section-consultation-intro {
        padding-top: 52px;
        padding-bottom: 20px;
    }

    .section-service-list,
    .section-admin-services,
    .section-arbitration-services,
    .section-consultation-topics {
        padding-top: 20px;
        padding-bottom: 52px;
    }

    .service-cases {
        padding: 56px 0;
    }

    .service-cases__grid .service-case:last-child {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

    .section-service-faq,
    .section-admin-faq,
    .section-arbitration-faq,
    .section-consultation-faq {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .faq-accordion__item summary {
        gap: 16px;
        padding: 20px 22px;
        font-size: 16px;
    }

    .faq-accordion__answer {
        padding: 18px 22px 22px;
    }

    .faq-accordion__answer p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .cases-card {
        width: 100%;
    }
}

@media (min-width: 821px) {
    .cards-3x2 .card-service--centered {
        grid-column: 2 / 3;
    }
}

/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ЦЕН (prices.html)
   ========================================================================== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pricing-table th {
    background: #1d2d47;
    color: #ffffff;
    padding: 20px 24px;
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(29, 45, 71, 0.08);
    color: #2A2A28;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table td:last-child {
    color: #1d2d47;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.pricing-table tr:hover td {
    background-color: rgba(201, 165, 82, 0.05);
}

.price-section {
    padding: 40px 0;
}

.price-section .section-title {
    font-size: 32px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .pricing-table thead {
        display: none;
    }
    .pricing-table tr {
        display: block;
        margin-bottom: 15px;
        border-bottom: 2px solid rgba(29, 45, 71, 0.08);
    }
    .pricing-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 12px 20px;
    }
    .pricing-table td:last-child {
        text-align: right;
    }
    .pricing-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: rgba(29, 45, 71, 0.6);
        font-size: 14px;
        margin-right: 15px;
    }
}