/* =====================================================
   SEO-страницы: направления, услуги, города
   Баннер берётся общий (.page-hero из style.css), здесь — подгонка
===================================================== */

/* ---------- Баннер ---------- */
.page-hero {
    margin-top: 0;              /* отступ под шапку уже даёт body */
    padding: 72px 0 64px;
    min-height: 0;
}
.page-hero h1 {
    margin: 0 0 16px;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.page-hero .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
}
.page-hero .breadcrumbs a { color: #fff; opacity: .9; }
.page-hero .breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.page-hero .page-lead {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .92);
}
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .page-actions { justify-content: center; }

.page-draft {
    display: inline-block;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 14px;
}

/* Баннер с картинкой: текст слева, фото справа */
.page-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}
.page-hero-grid.no-image { grid-template-columns: 1fr; text-align: center; }
.page-hero-grid:not(.no-image) .page-lead { margin-left: 0; }
.page-hero-grid:not(.no-image) .page-actions { justify-content: flex-start; }
.page-hero:has(.page-hero-grid:not(.no-image)) .breadcrumbs { justify-content: flex-start; }
.page-hero-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .45);
}

/* ---------- Секции ---------- */
.page-section { padding: 64px 0; }
.page-section-alt { background: var(--bg-light); }
.page-section .section-title { font-size: 34px; line-height: 1.2; margin-bottom: 24px; }

.page-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 20px;
}
.page-section-head .section-title { margin-bottom: 0; }
.page-section-head > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.page-section-head > a:hover { background: var(--primary-color); color: #fff; }

/* подзаголовок раздела (на /services/) */
.page-section .page-lead {
    max-width: 760px;
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-light);
}

/* ---------- Карточки ---------- */
.page-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.page-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.page-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 16px 32px -12px rgba(15, 23, 42, .18);
}
.page-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}
.page-card-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}
.page-card-title::after {
    content: '→';
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform .2s;
}
.page-card:hover .page-card-title::after { transform: translateX(4px); }
.page-card-text {
    flex: 1;                     /* цена всегда прижата к низу */
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-light);
}
.page-card-price {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ---------- Цены ---------- */
.page-prices {
    max-width: 820px;
    padding: 6px 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}
.page-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}
.page-price-row:last-child { border-bottom: none; }
.page-price-row b { font-size: 17px; color: var(--primary-color); white-space: nowrap; }
.page-price-note { max-width: 820px; margin-top: 14px; font-size: 14px; color: var(--text-light); }

/* ---------- Текст ---------- */
.page-body { max-width: 820px; font-size: 17px; line-height: 1.75; color: #334155; }
.page-body h2 { margin: 36px 0 14px; font-size: 26px; font-weight: 800; color: var(--text-dark); }
.page-body h2:first-child { margin-top: 0; }
.page-body p { margin: 0 0 16px; }
.page-body ul { list-style: disc; margin: 0 0 16px; padding-left: 22px; }   /* в style.css у ul list-style: none */
.page-body li { margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.page-faq-item {
    max-width: 820px;
    margin-bottom: 12px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
}
.page-faq-item[open] { border-color: var(--primary-color); }
.page-faq-item summary {
    position: relative;
    padding: 18px 52px 18px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.page-faq-item summary::-webkit-details-marker { display: none; }
.page-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
}
.page-faq-item[open] summary::after { content: '−'; }
.page-faq-item > div { padding: 0 20px 18px; font-size: 15px; line-height: 1.6; color: var(--text-light); }

/* ---------- Города ---------- */
.page-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.page-chips a {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--text-dark);
    transition: border-color .2s, color .2s;
}
.page-chips a:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* ---------- Финальный призыв (градиент, как .cta-section) ---------- */
.page-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}
.page-cta .section-title { color: #fff; margin-bottom: 14px; }
.page-cta p { max-width: 640px; margin: 0 auto 26px; font-size: 18px; color: rgba(255, 255, 255, .92); }
.page-cta .page-actions { justify-content: center; }

/* ---------- Адаптив ---------- */
@media (max-width: 968px) {
    .page-hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .page-hero-grid:not(.no-image) .page-lead { margin-left: auto; }
    .page-hero-grid:not(.no-image) .page-actions { justify-content: center; }
    .page-hero:has(.page-hero-grid:not(.no-image)) .breadcrumbs { justify-content: center; }
    .page-hero-img { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .page-hero { padding: 44px 0 40px; }
    .page-hero h1 { font-size: 30px; }
    .page-hero .page-lead { font-size: 16px; }
    .page-actions .btn { width: 100%; justify-content: center; }
    .page-section { padding: 44px 0; }
    .page-section .section-title { font-size: 26px; }
    .page-section-head > a { width: 100%; justify-content: center; }
    .page-prices { padding: 4px 16px; }
    .page-price-row { font-size: 15px; }
    .page-cta p { font-size: 16px; }
}
