/* Общие стили */
:root {
    --color-bg: #f0f2f5;
    --color-surface: #ffffff;
    --color-surface-muted: #e8ecf1;
    --color-text: #1c2430;
    --color-text-muted: #5c6573;
    --color-accent: #c0392b;
    --color-accent-hover: #a93226;
    --color-header: #1a2332;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-soft: 0 4px 24px rgba(26, 35, 50, 0.08);
    --max-content: min(1520px, 100% - 48px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.container--wide {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 56px);
}

/* Шапка сайта */
.header {
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 14px 0 12px;
    border-bottom: 1px solid var(--color-surface-muted);
}

.logo {
    min-width: 0;
    flex: 1;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo h1,
.logo-title {
    color: var(--color-header);
    font-size: clamp(1.05rem, 3.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.logo p {
    color: var(--color-text-muted);
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    margin-top: 2px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.header-call:hover {
    background: var(--color-accent-hover);
}

.header-call__icon {
    display: block;
    flex-shrink: 0;
}

.header-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: none;
    border-radius: 10px;
    background: var(--color-surface-muted);
    cursor: pointer;
    color: var(--color-header);
    transition: background 0.2s ease;
}

.header-burger:hover {
    background: #dde3ea;
}

.header-burger__line {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.header--menu-open .header-burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header--menu-open .header-burger__line:nth-child(2) {
    opacity: 0;
}

.header--menu-open .header-burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .header-burger__line {
        transition: none;
    }
}

.contact-info .phone {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--color-header);
}

.contact-info .phone a {
    color: var(--color-header);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info .phone a:hover {
    color: var(--color-accent);
}

.contact-info-note {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: 4px;
}

.contact-info--desktop {
    text-align: right;
    flex-shrink: 0;
}

.header-nav {
    padding: 12px 0 16px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-nav--catalog {
    justify-content: center;
    gap: 10px 14px;
}

.site-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--color-surface-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
    color: var(--color-accent);
    background: #dde3ea;
}

.site-nav a[aria-current="page"] {
    color: #fff;
    background: var(--color-header);
    font-weight: 600;
    pointer-events: none;
}

.site-nav-sep {
    width: 1px;
    align-self: stretch;
    min-height: 1.25em;
    margin: 2px 8px;
    background: #c5cdd6;
    flex-shrink: 0;
}

.page-home .site-nav a:not([aria-current="page"]) {
    background: transparent;
    border: 1px solid var(--color-surface-muted);
}

.page-home .site-nav a:not([aria-current="page"]):hover {
    border-color: #c5cdd6;
    background: var(--color-surface-muted);
}

/* Десктоп: полная навигация, телефон в шапке */
@media (min-width: 880px) {
    .header-top {
        align-items: flex-end;
        padding: 16px 0 14px;
    }

    .header-tools {
        display: none;
    }

    .header-nav {
        display: block !important;
        padding: 12px 0 16px;
        border-bottom: none;
    }

    .header--menu-open .header-burger__line:nth-child(1),
    .header--menu-open .header-burger__line:nth-child(2),
    .header--menu-open .header-burger__line:nth-child(3) {
        transform: none;
        opacity: 1;
    }
}

/* Мобильная навигация: выезжающая панель под строкой шапки (скрыта только при JS) */
@media (max-width: 879px) {
    .contact-info--desktop {
        display: none;
    }

    html.site-js-nav .header:not(.header--menu-open) .header-nav {
        display: none;
    }

    html:not(.site-js-nav) .header-burger {
        display: none;
    }

    .header--menu-open .header-nav {
        display: block;
        padding: 10px 0 16px;
        border-bottom: 1px solid var(--color-surface-muted);
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .site-nav a {
        width: 100%;
        text-align: center;
        border-radius: var(--radius-md);
        padding: 12px 16px;
        box-sizing: border-box;
    }

    .site-nav--catalog {
        justify-content: stretch;
    }

    .site-nav-sep {
        width: 100%;
        height: 1px;
        min-height: 1px;
        margin: 6px 0;
        align-self: stretch;
    }
}

/* Основной контент */
.main {
    padding: 40px 0;
}

.main--home {
    padding: 0;
}

/* Главная: hero */
.home-hero {
    background: linear-gradient(135deg, #1a2332 0%, #2d3a4f 48%, #243044 100%);
    color: #f4f6f9;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    margin-bottom: 0;
}

.home-hero__inner {
    max-width: min(920px, 100%);
    margin: 0 auto;
    text-align: center;
}

.home-hero__eyebrow {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}

.home-hero__title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #fff;
}

.home-hero__lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 42rem;
    margin: 0 auto 1.75rem;
}

.home-hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.home-hero__cta-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Секции главной */
.section-panel {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-panel--light {
    background: var(--color-surface);
}

.section-panel--muted {
    background: var(--color-bg);
}

.section-heading {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.section-heading__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-header);
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.section-heading__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 32px;
}

/* Секция услуг */
.services {
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.services-grid--wide {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

@media (max-width: 1100px) {
    .services-grid--wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid--wide {
        grid-template-columns: 1fr;
    }
}

.service-item {
    background-color: #f4f6f9;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: var(--radius-md);
    border: 1px solid rgba(26, 35, 50, 0.06);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: none;
    border-color: rgba(26, 35, 50, 0.12);
    box-shadow: var(--shadow-soft);
}

.service-item h3 {
    color: var(--color-header);
    margin-bottom: 12px;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    font-weight: 600;
}

.service-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Секция товаров */
.products {
    background-color: #fff;
    padding: 40px 0;
}

.product-category {
    margin-bottom: 50px;
}

.product-category--wide {
    max-width: 100%;
    margin-bottom: clamp(3rem, 6vw, 4rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}

.product-category--wide:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-category h3 {
    color: var(--color-header);
    margin-bottom: 12px;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
}

.product-category__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-category__title-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

.product-category__title-link:focus-visible {
    outline: 2px solid #c0392b;
    outline-offset: 3px;
    border-radius: 2px;
}

.product-category--wide > p:first-of-type {
    color: var(--color-text-muted);
    max-width: 52rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.slider-container--wide {
    padding: 24px clamp(48px, 6vw, 72px);
    margin-left: calc(-1 * clamp(12px, 3vw, 28px));
    margin-right: calc(-1 * clamp(12px, 3vw, 28px));
    width: calc(100% + 2 * clamp(12px, 3vw, 28px));
}

@media (min-width: 1400px) {
    .slider-container--wide {
        margin-left: -2rem;
        margin-right: -2rem;
        width: calc(100% + 4rem);
    }
}

@media (max-width: 768px) {
    .slider-container--wide {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding-left: 44px;
        padding-right: 44px;
    }
}

.page-lead {
    font-size: 18px;
    color: #555;
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
    line-height: 1.65;
}

.page-section {
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 24px;
}

.page-section h2 {
    font-size: 24px;
    margin-bottom: 18px;
}

.page-section p,
.page-section li {
    margin-bottom: 12px;
    color: #444;
}

.page-section ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.price-banner {
    background: linear-gradient(135deg, #1a2332 0%, #2d3a4f 55%, #243044 100%);
    color: #fff;
    padding: 28px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 24px auto 32px;
    max-width: 520px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* .page-section p задаёт серый цвет — явно возвращаем контраст в баннере */
.price-banner p {
    color: #fff;
    margin: 0;
}

.price-banner .price-value {
    font-size: clamp(2rem, 4vw, 2.35rem);
    font-weight: 700;
    margin: 10px 0 8px;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.price-banner .price-note {
    font-size: clamp(0.875rem, 1.6vw, 0.95rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.94);
    opacity: 1;
    margin: 0;
}

.price-banner .price-note + .price-value {
    margin-top: 6px;
}

.price-banner .price-banner__eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.price-banner .price-banner__caption {
    font-size: clamp(0.8125rem, 1.5vw, 0.9rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    margin: 0.65rem 0 0;
}

.inclusion-list {
    list-style: none;
    padding: 0;
    max-width: 640px;
    margin: 0 auto;
}

.inclusion-list li {
    padding: 12px 0 12px 36px;
    border-bottom: 1px solid #ecf0f1;
    position: relative;
    margin-bottom: 0;
}

.inclusion-list li::before {
    content: "✓";
    position: absolute;
    left: 8px;
    color: #27ae60;
    font-weight: bold;
}

.disclaimer-box {
    background: #f4f6f8;
    border-left: 4px solid #95a5a6;
    padding: 16px 20px;
    margin-top: 28px;
    font-size: 14px;
    color: #555;
    border-radius: 0 8px 8px 0;
}

/* Страница «Кремация под ключ»: карточка пакета — цена и перечень */
.page-kremacija .kremacia-package {
    margin: clamp(1.75rem, 4vw, 2.75rem) 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 35, 50, 0.08);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.25rem, 3.5vw, 2rem);
}

.page-kremacija .kremacia-package__grid {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.page-kremacija .kremacia-package__price-col {
    position: relative;
    padding-right: clamp(1.25rem, 3vw, 2rem);
}

.page-kremacija .kremacia-package__main-col {
    padding-left: clamp(1.25rem, 3vw, 2rem);
    border-left: 1px solid var(--color-surface-muted);
    min-width: 0;
}

.page-kremacija .price-banner--kremacia {
    margin: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 88px;
    padding: clamp(1.25rem, 2.8vw, 1.65rem) clamp(1rem, 2.2vw, 1.25rem);
    border-radius: var(--radius-md);
}

.page-kremacija .price-banner--kremacia .price-value {
    font-size: clamp(1.75rem, 4vw, 2.1rem);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.page-kremacija .kremacia-package__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-surface-muted);
}

.page-kremacija .kremacia-package__head h2 {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--color-header);
    line-height: 1.3;
}

.page-kremacija .kremacia-package__head-note {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.page-kremacija .inclusion-list--kremacia {
    max-width: none;
    margin: 0;
    background: #f6f8fa;
    border-radius: var(--radius-md);
    padding: 0.35rem 0;
    border: 1px solid rgba(26, 35, 50, 0.06);
}

.page-kremacija .inclusion-list--kremacia li {
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    border-bottom-color: rgba(26, 35, 50, 0.06);
    line-height: 1.55;
    color: var(--color-text);
}

.page-kremacija .inclusion-list--kremacia li:last-child {
    border-bottom: none;
}

.page-kremacija .inclusion-list--kremacia li::before {
    left: 0.85rem;
    top: 0.92rem;
}

@media (max-width: 900px) {
    .page-kremacija .kremacia-package__grid {
        grid-template-columns: 1fr;
    }

    .page-kremacija .kremacia-package__price-col {
        padding-right: 0;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid var(--color-surface-muted);
        margin-bottom: 1.25rem;
    }

    .page-kremacija .kremacia-package__main-col {
        padding-left: 0;
        border-left: none;
    }

    .page-kremacija .price-banner--kremacia {
        position: static;
        max-width: 100%;
    }

    .page-kremacija .kremacia-package__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .page-kremacija .kremacia-package__head-note {
        display: none;
    }
}

/* Слайдер */
.slider-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    overscroll-behavior-x: contain;
    padding: 20px 40px;
}

.slider {
    display: flex;
    width: max-content;
    max-width: none;
    transition: transform 0.5s ease;
    will-change: transform;
}

.slide {
    flex: 0 0 360px;
    margin-right: 20px;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(26, 35, 50, 0.08);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.slider-container--wide .slide {
    flex: 0 0 min(380px, 85vw);
}

@media (min-width: 1200px) {
    .slider-container--wide .slide {
        flex: 0 0 400px;
    }
}

.slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.slide-content {
    padding: 15px;
}

.slide-content h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
}

/* Длинные названия позиций каталога: на узком экране одна строка с обрезкой */
@media (max-width: 400px) {
    .slide-content h4 {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.slide-content .price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(26, 35, 50, 0.85);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.slider-btn:hover {
    background-color: var(--color-header);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Вертикальная галерея (резерв): колонка карточек, портретные фото */
.slider-container--vertical {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 12px 0 8px;
}

/* Вертикальная галерея со скроллом (резерв) */
.slider-container--vertical.slider-container--scroll-y {
    max-height: min(75vh, 820px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
}

.slider-container--wide.slider-container--vertical {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.slider--vertical {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    transition: none;
}

.slider-container--vertical .slide {
    flex: 0 0 auto;
    width: 100%;
    max-width: min(420px, 100%);
    margin-right: 0;
}

.slider-container--vertical .slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.slider-container--vertical .slide-content {
    text-align: center;
}

.slider-container--vertical .slide-content h4 {
    white-space: normal;
    line-height: 1.35;
}

.slider-container--vertical .slider-btn {
    display: none;
}

/* Венки: везде горизонтальный ряд, портретные карточки */
#wreaths-slider {
    flex-direction: row;
    align-items: stretch;
}

#wreaths-slider .slide {
    flex: 0 0 min(260px, 70vw);
    max-width: 290px;
    margin-right: 20px;
}

#wreaths-slider .slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

#wreaths-slider .slide-content {
    text-align: center;
}

#wreaths-slider .slide-content h4 {
    white-space: normal;
    line-height: 1.35;
}

/* Кресты: горизонтальный ряд и портретные карточки (как венки), главная и kresty.html */
#crosses-slider {
    flex-direction: row;
    align-items: stretch;
}

#crosses-slider .slide {
    flex: 0 0 min(260px, 70vw);
    max-width: 290px;
    margin-right: 20px;
}

#crosses-slider .slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

#crosses-slider .slide-content {
    text-align: center;
}

#crosses-slider .slide-content h4 {
    white-space: normal;
    line-height: 1.35;
}

@media (min-width: 900px) {
    #wreaths-slider .slide {
        flex: 0 0 240px;
        max-width: 260px;
    }

    #crosses-slider .slide {
        flex: 0 0 240px;
        max-width: 260px;
    }
}

@media (min-width: 1200px) {
    .slider-container--wide #wreaths-slider .slide,
    #crosses-slider .slide {
        flex: 0 0 250px;
        max-width: 270px;
    }
}

/* Модальное окно для изображения */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Футер */
.footer {
    background: linear-gradient(180deg, #1a2332 0%, #151c28 100%);
    color: #e8ecf1;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 2rem;
}

.footer-content--wide {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-content--wide {
        grid-template-columns: 1fr;
    }
}

.footer-info h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info__note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 22rem;
    margin-top: 0.5rem;
}

.footer-info .phone {
    font-size: 20px;
    font-weight: bold;
    color: #ecf0f1;
}

.footer-info .phone a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info .phone a:hover {
    color: #e74c3c;
}

.footer-addresses h4 {
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.65);
}

.footer-addresses ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 2rem;
}

@media (max-width: 600px) {
    .footer-addresses ul {
        grid-template-columns: 1fr;
    }
}

.footer-addresses li {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .slide {
        flex: 0 0 330px;
    }
    
    .slider-container {
        padding: 20px 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-info, .footer-addresses {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .slider-container {
        padding: 20px 50px;
    }
    
    .slide {
        flex: 0 0 min(320px, calc(100vw - 100px));
        margin-right: 15px;
    }
    
    .slide img {
        height: 150px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .slider-btn.prev {
        left: 5px;
    }
    
    .slider-btn.next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .product-category h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .service-item h3 {
        font-size: 18px;
    }
    
    .slider-container {
        padding: 15px 40px;
    }
    
    .slide {
        flex: 0 0 min(340px, calc(100vw - 88px));
        margin-right: 10px;
    }
    
    .slide img {
        height: 120px;
    }
    
    .slide-content {
        padding: 10px;
    }
    
    .slide-content h4 {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .slide-content .price {
        font-size: 14px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .contact-info--desktop .phone {
        font-size: 18px;
    }
    
    .footer-info .phone {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .slide {
        flex: 0 0 min(320px, calc(100vw - 78px));
    }
    
    .slide img {
        height: 100px;
    }
    
    .slider-container {
        padding: 10px 35px;
    }

    .slider-container--vertical {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Вертикальные галереи: не наследовать отступы/фиксированную высоту горизонтального слайдера */
@media (max-width: 1024px) {
    .slider-container--vertical {
        padding-left: 0;
        padding-right: 0;
    }

    .slider-container--vertical .slide {
        flex: 0 0 auto;
        max-width: min(400px, 100%);
        margin-right: 0;
    }

    .slider-container--vertical .slide img {
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 768px) {
    .slider-container--vertical {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .slider-container--vertical {
        padding-left: 0;
        padding-right: 0;
    }

    .slider-container--vertical .slide {
        max-width: 100%;
    }
}