/* ===== AQUA V2 — LIQUID-TECH PREMIUM ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
   --color-bg: #0F1115;
    --color-surface: #171B22;
    --color-surface-elevated: #1E232C;
    --color-text: #EAF4F8;
    --color-text-secondary: #8E9CA8;
    --color-accent: #35D6FF;
    --color-accent-deep: #00B8C9;
    --color-accent-glow: rgba(53, 214, 255, 0.15);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-light: rgba(255, 255, 255, 0.12);
    --font-main: 'Inter', sans-serif;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --transition: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-card: 
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 20px rgba(53, 214, 255, 0.04),
    0 0 40px rgba(53, 214, 255, 0.02),
    0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 
    0 0 0 1px rgba(53, 214, 255, 0.2),
    0 0 30px rgba(53, 214, 255, 0.1),
    0 0 60px rgba(53, 214, 255, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.6);
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    font-weight: 400;
    /*overflow-x: hidden;
    overflow-y: visible;*/
    -webkit-font-smoothing: antialiased;
    padding-bottom: 72px;
    /*max-width: 100vw;*/
    position: relative;
}

html {
    -webkit-tap-highlight-color: transparent;
    /*overflow-x: hidden;
    overflow-y: visible;
    max-width: 100vw;*/
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, .section-title {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text);
}

.section-title {
    font-size: clamp(24px, 5vw, 34px);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    max-width: 500px;
    line-height: 1.5;
}

/* ===== ШАПКА ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.main-nav { display: none; }

.main-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--color-text);
}

.header-contacts { display: none; }

.header-contacts .btn-callback {
    background: var(--color-accent-deep);
    color: #000;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.header-contacts .btn-callback:hover {
    background: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.header-phone {
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-right: 20px;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.3s;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: var(--color-bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-header .logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 32px 0;
    flex-grow: 1;
}

.mobile-menu nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 28px;
    font-weight: 500;
    padding: 12px 0;
    transition: color 0.2s;
}

.mobile-menu nav a:active {
    color: var(--color-accent);
}

.mobile-menu-footer {
    padding: 20px 0 40px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-phone {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 10px var(--color-accent-glow);
}

.mobile-menu-footer .btn-primary {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 80px 0 50px;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(53, 214, 255, 0.08) 0%, transparent 60%),
                linear-gradient(to top, var(--color-bg) 5%, transparent 40%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.1);
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(32px, 7vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 400px;
}

.hero-subtitle {
    font-size: 15px;
    color: rgba(234, 244, 248, 0.8);
    margin-bottom: 32px;
    max-width: 360px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-trust {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    gap: 20px;
}

/* ===== КНОПКИ ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-deep);
    color: #000;
    border: none;
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-primary:active::after {
    transform: translateX(100%);
}

.btn-primary:hover {
    background: var(--color-accent);
    box-shadow: 0 0 30px var(--color-accent-glow);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid var(--color-border-light);
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    min-height: 52px;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 60px 0;
    position: relative;
}

.section-header {
    margin-bottom: 32px;
}

.section-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

/* ===== КАРТОЧКИ УСЛУГ ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:active {
    transform: scale(0.98);
}

.service-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #000;
    position: relative;
}

.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-surface) 0%, transparent 30%);
    z-index: 1;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:active .service-card-image img {
    transform: scale(1.04);
}

.service-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.service-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.service-card-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 14px;
    flex-grow: 1;
    line-height: 1.5;
}

.service-card-price {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
    text-shadow: 0 0 10px var(--color-accent-glow);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 500;
    transition: gap 0.2s;
}

.service-card:active .service-card-link {
    gap: 10px;
}

/* ===== ГАЛЕРЕЯ — MASONRY ===== */
.gallery-masonry {
    columns: 2;
    column-gap: 12px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: #000;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:active {
    transform: scale(0.97);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(15, 17, 21, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:active .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
}

/* Убираем горизонтальный скролл */
.gallery-scroll {
    display: none;
}

.gallery-track {
    display: none;
}

@media (min-width: 768px) {
    .gallery-masonry {
        columns: 3;
        column-gap: 16px;
    }
    
    .gallery-item {
        margin-bottom: 16px;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        columns: 4;
    }
}


/* ===== ПРЕИМУЩЕСТВА ===== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.why-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    box-shadow: var(--shadow-card);
}

.why-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-bottom: 14px;
    box-shadow: 0 0 12px var(--color-accent-glow);
}

.why-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.why-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ===== CTA ===== */
.cta-section {
    background: var(--color-surface);
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: #0A0D10;
    padding: 50px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-contacts p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay,
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.active,
.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal,
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    max-width: 400px;
    width: 90%;
    z-index: 201;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal.active,
.popup.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%);
}

.modal-close,
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-secondary);
    width: 36px;
    height: 36px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal h3,
.popup-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal p,
.popup-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 15px;
    font-family: var(--font-main);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-success {
    display: none;
    color: #00cc88;
    padding: 12px;
    margin-top: 14px;
    font-size: 14px;
    background: rgba(0, 204, 136, 0.08);
    border-radius: 10px;
}

.popup-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.popup-skip {
    margin-top: 16px;
    color: var(--color-text-secondary);
    font-size: 13px;
    cursor: pointer;
}

/* ===== ПЛАВАЮЩАЯ ПАНЕЛЬ ===== */
.float-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(10, 13, 16, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 10px 20px;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    max-width: 100vw;
    box-sizing: border-box;
}

.float-panel-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.float-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.float-btn:active {
    color: var(--color-accent);
    background: rgba(53, 214, 255, 0.1);
}

.float-btn svg {
    width: 22px;
    height: 22px;
}

.float-btn-callback {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--color-accent-deep);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 0;
    flex-shrink: 0;
}

.float-btn-callback:active {
    background: var(--color-accent);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-inner {
    max-width: 95vw;
    max-height: 95vh;
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: #fff;
    width: 44px;
    height: 44px;
    font-size: 28px;
    cursor: pointer;
    z-index: 301;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== АДАПТИВ ===== */
@media (min-width: 768px) {
    .container { padding: 0 32px; }
    
    .burger { display: none; }
    
    .main-nav { display: flex; gap: 36px; }
    
    .header-contacts { display: flex; align-items: center; }
    
    .hero {
        align-items: center;
        padding: 0;
    }
    
    .hero .container {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .hero-title { max-width: 500px; }
    
    .hero-buttons {
        flex-direction: row;
        gap: 16px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
        gap: 48px;
    }
    
    .gallery-item { flex: 0 0 340px; }
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    padding: 100px 0 16px;
    background: transparent;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs-list li {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.breadcrumbs-list li a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumbs-list li a:hover {
    opacity: 0.8;
}

.breadcrumbs-list li::after {
    content: '/';
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.2);
}

.breadcrumbs-list li:last-child::after {
    display: none;
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.page-header {
    padding: 0 0 40px;
}

.page-header-title {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-header-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    max-width: 500px;
    line-height: 1.5;
}

/* ===== БЕЛАЯ КНОПКА В CTA ===== */
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    min-height: 52px;
}

.btn-white:hover {
    background: var(--color-accent);
    box-shadow: 0 0 30px var(--color-accent-glow);
    transform: translateY(-1px);
}

/* ===== УСЛУГИ БЕЗ КАТЕГОРИИ (СВЕТЛАЯ СЕКЦИЯ) ===== */
.section-light {
    background: var(--color-surface);
}

.section-light .service-card {
    background: var(--color-bg);
}

/* ===== СТРАНИЦА УСЛУГИ (ДЕТАЛЬНАЯ) ===== */
.service-page {
    padding: 40px 0 60px;
}

.service-page-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.service-content {
    flex: 1;
    min-width: 0;
}


.service-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 14px;
}

.service-content p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-sidebar {
    flex-shrink: 0;
    width: 340px;
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    z-index: 10;
}

@media (max-width: 768px) {
    .service-page-grid {
        flex-direction: column;
    }
    
    .service-sidebar {
        width: 100%;
        position: static;
    }
}

.service-price-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.service-price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.service-price-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 4px;
    text-shadow: 0 0 10px var(--color-accent-glow);
}

.service-price-unit {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* ===== СТАТЬИ ===== */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.article-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-card);
}

.article-card:active {
    transform: scale(0.98);
}

.article-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 20px;
}

.article-card-date {
    font-size: 12px;
    color: var(--color-accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.article-card-link {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 500;
}

.article-page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.article-excerpt {
    font-size: 16px;
    color: var(--color-text-secondary);
    padding: 20px;
    border-left: 3px solid var(--color-accent);
    background: var(--color-surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 24px;
    line-height: 1.6;
}

.article-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
}

.article-body h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 14px;
}

.article-body p {
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.article-aside {
    position: sticky;
    top: 90px;
}

/* ===== АДАПТИВ ДЛЯ ВНУТРЕННИХ СТРАНИЦ ===== */
@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .service-page-grid,
    .article-page-grid {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar,
    .article-aside {
        position: static;
    }
}

/* ===== СТРАНИЦА ЦЕН ===== */
.price-table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.price-table-header {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr 120px;
    background: var(--color-accent-deep);
    color: #000;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-table-row {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr 120px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    transition: background 0.2s;
}

.price-table-row:last-child {
    border-bottom: none;
}

.price-table-row:hover {
    background: rgba(53, 214, 255, 0.03);
}

.price-service-link {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
    transition: color 0.2s;
}

.price-service-link:hover {
    color: var(--color-accent);
}

.price-col-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding-right: 16px;
    line-height: 1.5;
}

.price-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-accent);
    text-shadow: 0 0 10px var(--color-accent-glow);
    display: block;
}

.price-unit {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.price-request {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-style: italic;
}

.btn-price-order {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-price-order:hover {
    background: var(--color-accent-deep);
    color: #000;
    border-color: var(--color-accent-deep);
}

/* Примечание к ценам */
.price-note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
    border-left: 3px solid var(--color-accent);
}

.price-note-icon {
    font-size: 24px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.price-note-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.price-note-text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contact-section {
    padding: 40px 0 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(53, 214, 255, 0.08);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item-text {
    flex-grow: 1;
}

.contact-item-text strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.contact-item-text a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--color-accent-glow);
}

.contact-item-text a:hover {
    opacity: 0.8;
}

.contact-form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.contact-form-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-form-card textarea {
    width: 100%;
    padding: 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 15px;
    font-family: var(--font-main);
    resize: vertical;
    min-height: 100px;
}

.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Карта */
.map-section {
    padding: 0 0 60px;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    filter: grayscale(0.3);
}

/* Адаптив для цен и контактов */
@media (max-width: 768px) {
    .price-table-header {
        display: none;
    }
    
    .price-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }
    
    .price-col-desc {
        padding-right: 0;
    }
    
    .btn-price-order {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .price-note {
        flex-direction: column;
    }
}

/* ===== НАВИГАЦИЯ ПО КАТЕГОРИЯМ (ЯКОРНОЕ МЕНЮ) ===== */
.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-card);
}

.category-nav-item:hover,
.category-nav-item:active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 20px rgba(53, 214, 255, 0.08);
    transform: translateY(-1px);
}

.category-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(53, 214, 255, 0.1);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
}

/* Активная категория (когда скроллом дошли до неё) */
.category-nav-item.active {
    background: var(--color-accent-deep);
    color: #000;
    border-color: var(--color-accent-deep);
}

.category-nav-item.active .category-nav-count {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

/* ===== КОНТЕНТ УСЛУГИ ===== */
.service-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 14px;
    color: var(--color-text);
}

.service-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--color-text);
}

.service-content p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-content ul,
.service-content ol {
    margin: 0 0 20px 20px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.service-content li {
    margin-bottom: 8px;
    font-size: 15px;
}

.service-content strong {
    color: var(--color-text);
    font-weight: 600;
}

.service-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 30px 0;
}

/* Таблицы в контенте услуги */
.service-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.service-content table th {
    background: var(--color-accent-deep);
    color: #000;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
}

.service-content table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.service-content table td:first-child {
    white-space: normal;
    min-width: 140px;
    max-width: 200px;
}

.service-content table tr:last-child td {
    border-bottom: none;
}

.service-content table tr:hover td {
    background: rgba(53, 214, 255, 0.03);
}

.service-content table small {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: block;
    margin-top: 4px;
    white-space: normal;
}

/* Скролл для таблиц */
.service-content .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.service-content .table-scroll table {
    margin: 0;
    border: none;
    min-width: 100%;
}


.table-scroll {
    margin: 20px 0 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.table-scroll table {
    margin: 0;
    border: none;
    border-radius: 0;
    min-width: 500px;
}

/* Изображение услуги */
.article-image {
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Телефон в сайдбаре */
.service-price-card a[href^="tel"] {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-accent) !important;
    text-decoration: none;
    text-shadow: 0 0 10px var(--color-accent-glow);
}

.service-price-card a[href^="tel"]:hover {
    opacity: 0.8;
}

/* Блок "Другие услуги" */
.related-services-wrapper {
    margin-top: 60px;
}

.related-services-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-text);
}

/* Карточки в блоке "Другие услуги" */
.services-grid-armor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.service-card-armor {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s;
    box-shadow: var(--shadow-card);
}

.service-card-armor:hover,
.service-card-armor:active {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.service-card-armor .service-card-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(53, 214, 255, 0.08);
    border-radius: 10px;
}

.service-card-armor h3 {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.service-card-armor .service-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
}

.service-card-armor .service-card-arrow {
    font-size: 18px;
    color: var(--color-accent);
    transition: transform 0.2s;
}

.service-card-armor:hover .service-card-arrow {
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .services-grid-armor {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item { flex: 0 0 380px; }
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.service-card-price {
    white-space: nowrap;
}

.service-card-link {
    white-space: nowrap;
}

.service-card .service-card-content {
    padding: 20px;
}

.service-card .service-card-body {
    padding: 20px;
}

/* Для карточек внутри services-grid на всех страницах */
.services-grid .service-card-content,
.services-grid .service-card-body {
    padding: 20px;
}

/* Блок "Другие статьи" в сайдбаре */
.article-aside .service-price-card a {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s;
}

.article-aside .service-price-card a:last-child {
    border-bottom: none;
}

.article-aside .service-price-card a:hover {
    color: var(--color-accent);
}

.article-aside .service-price-card a span {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 400;
    margin-top: 4px;
}

/* ===== СТРАНИЦА ГАЛЕРЕИ ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-grid .gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid .gallery-item:active {
    transform: scale(0.97);
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-grid .gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(15, 17, 21, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-grid .gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-grid .gallery-item-title {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
}

.gallery-grid .gallery-item-desc {
    color: var(--color-text-secondary);
    font-size: 11px;
    margin-top: 4px;
}

/* Секция "Другие работы" */
.section-light .gallery-grid .gallery-item {
    background: var(--color-bg);
}

/* Адаптив */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}