/* =========================================================
   uslugi.css — Стили для страниц услуг в папке /uslugi/
   Подключать ПОСЛЕ ../style.css:
   <link rel="stylesheet" href="../style.css">
   <link rel="stylesheet" href="uslugi.css">
   ========================================================= */

/* ---------- Переопределения .title-fill для страниц услуг ---------- */

.title-fill {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    text-transform: uppercase;
    letter-spacing: calc(-1 * clamp(0px, -4.0909px + 1.1364vw, 10px));
    font-size: clamp(3rem, 14vw, 12rem);
    background: url('../assets/experts-bg.jpg') center/cover no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    line-height: 0.8;
    display: block;
    width: 100%;
    text-align: center;
}

.title-fill:after,
.title > .title-fill:after {
    content: none !important;
}

/* ---------- .page-subtitle (подзаголовок страницы услуги) ---------- */

.page-subtitle {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(1.2rem, 0.8rem + 1.5vw, 2rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-top: 8px;
    line-height: 1.2;
    color: #000;
}

.title > .page-subtitle::after,
.page-subtitle::after {
    content: none !important;
}

@media screen and (max-width: 400px) {
    .page-subtitle {
        font-size: clamp(1rem, 0.7rem + 1.5vw, 1.4rem);
        margin-top: 4px;
    }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .title-fill {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}

/* ---------- .site-subtitle (переопределение для страниц услуг) ---------- */

.site-subtitle {
    grid-column: 1 / -1;
    text-align: center;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 400;
    font-variation-settings: "wdth" 125;
    margin-top: 2px;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* ---------- .service-content (переопределение для страниц услуг) ---------- */

.service-content {
    grid-column: 2 / -1;
}

/* ---------- .service-hero (компактная версия для страниц услуг) ---------- */

.service-hero {
    margin-bottom: clamp(12px, 3px + 2vw, 24px);
}

.service-hero h2 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(1.2rem, 0.8rem + 2vw, 2rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: clamp(8px, 2px + 1.5vw, 16px);
}

.service-hero p {
    font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    line-height: 1.3;
    max-width: 60ch;
}

/* ---------- .service-section (компактная версия для страниц услуг) ---------- */

.service-section {
    margin-bottom: clamp(12px, 3px + 2vw, 24px);
    border-top: 1px solid black;
    padding-top: clamp(8px, 2px + 1.5vw, 16px);
}

.service-section h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: clamp(6px, 1.5px + 1vw, 12px);
}

.service-section p,
.service-section li {
    font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    line-height: 1.3;
    max-width: 70ch;
}

.service-section ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-section ul li {
    position: relative;
    padding-left: 1.2em;
}

.service-section ul li::before {
    content: "—";
    position: absolute;
    left: 0;
}

/* ---------- .service-cta ---------- */

.service-cta {
    display: flex;
    gap: clamp(8px, 2.5455px + 1.5152vw, 20px);
    flex-wrap: wrap;
    margin-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.service-cta a {
    display: inline-block;
    border: 1px solid black;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-variation-settings: "wdth" 125;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.15s, color 0.15s;
}

.service-cta a:hover {
    background-color: black;
    color: white;
    text-decoration: none;
}

/* ---------- .price-table ---------- */

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: clamp(8px, 2.5455px + 1.5152vw, 20px);
}

.price-table th,
.price-table td {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.price-table th {
    font-weight: 700;
    border-bottom: 1px solid black;
}

.price-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* ---------- .breadcrumb ---------- */

.breadcrumb {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-variation-settings: "wdth" 125;
    margin-bottom: clamp(8px, 2.5455px + 1.5152vw, 20px);
    color: #666;
}

.breadcrumb a:hover {
    color: black;
}

/* ---------- .anchor-links ---------- */

.anchor-links {
    display: flex;
    gap: clamp(8px, 2px + 1.5vw, 16px);
    flex-wrap: wrap;
    margin-bottom: clamp(12px, 3px + 2vw, 24px);
    padding: clamp(8px, 2px + 1.5vw, 16px) 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.anchor-links a {
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.85rem);
    font-variation-settings: "wdth" 125;
    color: #333;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.anchor-links a:hover {
    color: black;
}

/* ---------- .seo-block ---------- */

.seo-block {
    border-top: 1px solid black;
    padding-top: clamp(8px, 2px + 1.5vw, 16px);
    margin-bottom: clamp(12px, 3px + 2vw, 24px);
}

.seo-block h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: clamp(6px, 1.5px + 1vw, 12px);
}

.seo-block p {
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.85rem);
    line-height: 1.4;
    max-width: 75ch;
    margin-bottom: 0.5em;
    color: #333;
}

/* ---------- Медиа-запросы для страниц услуг ---------- */

@media screen and (max-width: 400px) {
    .title-fill {
        font-size: clamp(2.5rem, 12vw, 10rem);
        letter-spacing: -2px;
    }

    .site-subtitle {
        font-size: 0.65rem;
        padding: 0 4px;
    }

    .service-content {
        grid-column: 1 / -1;
    }
}

/* Больший межстрочный интервал для читаемости */
p, li {
    line-height: 1.7;
}
/* Выделение ключевых цифр */
strong, b {
    color: #1a5276; /* или ваш акцентный цвет */
}
