/* Otdelka kvartir shared styles - premium edition */
.otdelka-page {
    padding-top: 0;
}

/* ===== HERO ===== */
.hero { position:relative; min-height:100vh; display:flex; align-items:center; z-index:1; overflow:hidden; }
.hero-bg { position:absolute; inset:0; z-index:0; }
.hero-image { position:absolute; inset:0; background:url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920&q=80') center/cover no-repeat; }
.hero-overlay { position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,rgba(14,17,23,0.95) 0%,rgba(14,17,23,0.85) 50%,rgba(14,17,23,0.95) 100%); }
.hero::after { content:''; position:absolute; bottom:0; left:0; right:0; height:120px; background:linear-gradient(to top,#131722 0%,transparent 100%); z-index:2; pointer-events:none; }
.hero-content { position:relative; z-index:3; max-width:800px; padding:140px 0 80px; }
.hero-path {
    font-size:13px;
    color:rgba(200,169,110,0.5);
    margin-bottom:20px;
    font-family:'Courier New',Courier,monospace;
    letter-spacing:0;
}
.path-link {
    color:rgba(200,169,110,0.5);
    text-decoration:none;
    transition:color 0.2s, text-shadow 0.2s;
    text-shadow:0 0 0 transparent;
}
.path-link:hover {
    color:var(--accent-gold);
    text-shadow:0 0 12px rgba(200,169,110,0.15);
}
.path-sep { color:rgba(200,169,110,0.25); margin:0 4px; }
.path-current { color:rgba(200,169,110,0.35); }
.hero-content h1 { margin: 0 0 20px; }
.hero-subtitle { margin: 0; line-height:1.5; }
.hero-actions { margin-top: 40px; }

/* ===== SECTIONS – base ===== */
.section { padding:80px 0; position:relative; }

/* Diamond grid — shared mixin (applied to all section types) */
.diamond-grid {
    background-image:
        repeating-linear-gradient(45deg,
            transparent, transparent 60px,
            rgba(200,169,110,0.015) 60px, rgba(200,169,110,0.015) 61px
        ),
        repeating-linear-gradient(-45deg,
            transparent, transparent 60px,
            rgba(200,169,110,0.015) 60px, rgba(200,169,110,0.015) 61px
        );
}

.section-dark {
    background-color: var(--bg-main);
    background-image:
        repeating-linear-gradient(45deg,
            transparent, transparent 60px,
            rgba(200,169,110,0.02) 60px, rgba(200,169,110,0.02) 61px
        ),
        repeating-linear-gradient(-45deg,
            transparent, transparent 60px,
            rgba(200,169,110,0.02) 60px, rgba(200,169,110,0.02) 61px
        ),
        radial-gradient(ellipse at 15% 25%, rgba(200,169,110,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(200,169,110,0.04) 0%, transparent 55%);
}

/* All content sections get subtle diamond + radial glow */
.section-alt,
.section-case,
.section-trust,
.section-norm {
    background-image:
        repeating-linear-gradient(45deg,
            transparent, transparent 60px,
            rgba(200,169,110,0.012) 60px, rgba(200,169,110,0.012) 61px
        ),
        repeating-linear-gradient(-45deg,
            transparent, transparent 60px,
            rgba(200,169,110,0.012) 60px, rgba(200,169,110,0.012) 61px
        ),
        radial-gradient(ellipse at 20% 30%, rgba(200,169,110,0.04) 0%, transparent 50%);
    background-blend-mode: normal;
}

/* ===== SECTION HEADERS ===== */
.section-header { text-align:center; margin-bottom:60px; }
.section-title { font-family:var(--font-heading); font-weight:600; font-size:clamp(28px,4vw,40px); color:var(--text-main); margin-bottom:16px; }
.section-subtitle { color:rgba(245,241,232,0.6); max-width:600px; margin:0 auto; }
.section-alt { background-color:var(--bg-card); }
.section-alt::before {
    content:'';
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:60px;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(200,169,110,0.2),transparent);
    pointer-events:none;
}
.comparison-table + p {
    text-align:center;
    font-size:14px;
    color:rgba(245,241,232,0.45);
    max-width:600px;
    margin:20px auto 0;
    line-height:1.6;
}

/* ===== RICH TEXT BLOCKS ===== */
.text-content {
    max-width: 740px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(245,241,232,0.84);
    white-space: pre-line;
    letter-spacing: 0.008em;
}
.text-content h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    color: var(--accent-gold);
    margin: 44px 0 14px;
    line-height: 1.35;
    letter-spacing: 0.01em;
}
.text-content h3:first-child { margin-top: 0; }
.text-content p {
    margin: 0 0 18px;
    white-space: normal;
}
.text-content p:last-child { margin-bottom: 0; }
.text-content strong {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.01em;
}
.text-content em {
    color: var(--accent-gold);
    font-style: normal;
    font-weight: 500;
}
.text-content a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-decoration-color: rgba(200,169,110,0.25);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.text-content a:hover {
    text-decoration-color: rgba(200,169,110,0.7);
    color: var(--accent-light);
}
.text-content ul {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.text-content ul li {
    padding: 7px 0 7px 30px;
    position: relative;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(245,241,232,0.75);
}
.text-content ul li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    width: 8px;
    height: 8px;
    background: rgba(200,169,110,0.28);
    border-radius: 1px;
    transform: rotate(45deg);
}
.text-content ul li strong {
    color: var(--accent-gold);
    font-weight: 600;
}
.text-content .image-placeholder {
    margin: 36px auto 0;
}

/* ===== PREMIUM TABLE ===== */
.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(200,169,110,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    background: var(--bg-main);
}
.comparison-header, .comparison-row {
    display: flex;
    flex-wrap: nowrap;
    padding: 16px 24px;
}
.comparison-header {
    background: linear-gradient(135deg, rgba(200,169,110,0.18), rgba(200,169,110,0.06));
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-gold);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(200,169,110,0.15);
}
.comparison-row {
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 15px;
    color: rgba(245,241,232,0.75);
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.comparison-row:hover {
    background: rgba(200,169,110,0.05);
    padding-left: 28px;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-header span, .comparison-row span {
    flex: 1;
    min-width: 0;
}
.comparison-header span:first-child, .comparison-row span:first-child {
    flex: 2;
    font-weight: 600;
}
.comparison-row span:nth-child(2),
.comparison-row span:nth-child(3) {
    font-weight: 500;
    color: var(--accent-gold);
}
.comparison-row .mark { color:var(--accent-gold); text-align:center; }

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.card-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 28px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth);
}
.card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(200,169,110,0.3);
}
.card-item strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 10px;
    line-height: 1.3;
}
.card-item span {
    display: block;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(245,241,232,0.7);
}

/* ===== HERO BREADCRUMB OVERLAY ===== */
.breadcrumb--hero {
    position: relative;
    z-index: 5;
    padding: 0;
    margin-bottom: 20px;
    background: transparent;
}
.breadcrumb--hero .breadcrumb-link {
    color: rgba(245,241,232,0.5);
    font-size: 13px;
    transition: color 0.2s ease;
}
.breadcrumb--hero .breadcrumb-link:hover { color: var(--accent-gold); }
.breadcrumb--hero .breadcrumb-sep {
    color: rgba(245,241,232,0.2);
    font-size: 13px;
}
.breadcrumb--hero .breadcrumb-current {
    color: rgba(245,241,232,0.4);
    font-size: 13px;
}

/* ===== CHECKLIST ===== */
.checklist {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    columns: 2;
    column-gap: 40px;
}
.checklist li {
    padding: 12px 0 12px 32px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(245,241,232,0.8);
    break-inside: avoid;
}
.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 18px;
    height: 18px;
    background: rgba(200,169,110,0.15);
    border: 1px solid rgba(200,169,110,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checklist li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    width: 6px;
    height: 10px;
    border: solid var(--accent-gold);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0.6;
}
.checklist-after {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
    color: rgba(200,169,110,0.7);
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRICES TABLE ===== */
.prices-table .comparison-header span:nth-child(1) { flex: 2; }
.prices-table .comparison-header span:nth-child(2) { flex: 0.7; text-align: center; }
.prices-table .comparison-header span:nth-child(3),
.prices-table .comparison-header span:nth-child(4),
.prices-table .comparison-header span:nth-child(5) { flex: 1; text-align: center; }
.prices-table .comparison-row span:nth-child(1) { flex: 2; }
.prices-table .comparison-row span:nth-child(2) { flex: 0.7; text-align: center; color: var(--text-muted); }
.prices-table .comparison-row span:nth-child(3),
.prices-table .comparison-row span:nth-child(4),
.prices-table .comparison-row span:nth-child(5) { flex: 1; text-align: center; font-weight: 500; color: var(--accent-gold); font-size: 14px; }

/* ===== CASE STUDY ===== */
.section-case {
    background-color: var(--bg-card);
    border-left: 2px solid rgba(200,169,110,0.12);
    margin: 0;
    border-radius: 0;
}
.section-case .section-title {
    font-size: clamp(24px,3.5vw,32px);
}
.section-case .section-title::before {
    content:'';
    display:inline-block;
    width:3px;
    height:24px;
    background:var(--accent-gold);
    margin-right:12px;
    vertical-align:middle;
    opacity:0.4;
    border-radius:2px;
}

/* ===== TRUST / GUARANTEE ===== */
.section-trust {
    background-color: transparent;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(200,169,110,0.018) 60px, rgba(200,169,110,0.018) 61px),
        repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(200,169,110,0.018) 60px, rgba(200,169,110,0.018) 61px),
        radial-gradient(ellipse at 30% 40%, rgba(200,169,110,0.06) 0%, transparent 50%);
    border-top: 1px solid rgba(200,169,110,0.08);
    border-bottom: 1px solid rgba(200,169,110,0.08);
}
.section-trust::before { display: none; }

/* ===== NORMS / TECHNICAL ===== */
.section-norm {
    background-color: transparent;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(200,169,110,0.01) 60px, rgba(200,169,110,0.01) 61px),
        repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(200,169,110,0.01) 60px, rgba(200,169,110,0.01) 61px);
    border-top: 1px solid rgba(200,169,110,0.05);
    border-bottom: 1px solid rgba(200,169,110,0.05);
}
.section-norm::before { display: none; }

/* ===== CONSECUTIVE TEXT BLOCK GAPS ===== */
.section-alt + .section-alt,
.section-alt + .section-case,
.section-alt + .section-norm,
.section-alt + .section-trust,
.section-case + .section-alt,
.section-case + .section-norm,
.section-trust + .section-alt,
.section-trust + .section-norm,
.section-norm + .section-alt,
.section-norm + .section-case,
.section-norm + .section-trust,
.section-trust + .section-case,
.section-case + .section-trust,
.section-alt + .section-dark,
.section-dark + .section-alt {
    padding-top: 0;
}
/* First text block after hero gets a lighter padding-top */
.section-alt:first-of-type,
.section-case:first-of-type,
.section-dark:first-of-type {
    padding-top: 60px;
}

/* ===== IMAGE PLACEHOLDERS (decorative, pre-SEO) ===== */
.image-placeholder {
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200,169,110,0.04) 50%, var(--bg-card) 100%);
    border: 1px dashed rgba(200,169,110,0.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.image-placeholder img { display: none; }
.image-placeholder::before {
    content: '';
    width: 56px;
    height: 56px;
    border: 2px solid rgba(200,169,110,0.15);
    border-radius: 50%;
    background: rgba(200,169,110,0.06);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.image-placeholder:hover::before {
    border-color: rgba(200,169,110,0.4);
    background: rgba(200,169,110,0.1);
}
.image-placeholder span {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(245,241,232,0.2);
    white-space: nowrap;
}

/* ===== CTA & MISC ===== */
.cta-section { text-align:center; }
.cta-content h2 { font-size:clamp(28px,4vw,40px); margin-bottom:16px; }
.cta-buttons { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-top:32px; }
.seo-text { padding:60px 0; }
.seo-text p { max-width:800px; margin:0 auto; color:rgba(245,241,232,0.6); font-size:14px; line-height:1.8; }

/* ===== MOBILE: 768px ===== */
@media(max-width:768px) {
    /* Sections */
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: clamp(24px,6vw,28px); }
    .section-alt:first-of-type, .section-case:first-of-type, .section-dark:first-of-type { padding-top: 40px; }
    /* Text content */
    .text-content { font-size: 16px; line-height: 1.75; max-width: 100%; }
    .text-content h3 { font-size: 18px; margin-top: 32px; }
    .text-content ul li { font-size: 15px; }
    /* Hero */
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-content { padding: 80px 0 40px; }
    .hero-content h1 { margin: 0 0 18px; }
    .hero-actions { margin-top: 32px; }
    .hero-path { margin-bottom: 16px; font-size: 12px; }
    .breadcrumb--hero { margin-bottom: 16px; }
    /* Tables */
    .comparison-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
    .comparison-header, .comparison-row { font-size: 13px; padding: 12px 16px; flex-wrap: nowrap; min-width: 500px; }
    .comparison-header span, .comparison-row span { flex: 1; min-width: 0; }
    .comparison-header span:first-child, .comparison-row span:first-child { flex: 2; }
    .comparison-row span:nth-child(2),
    .comparison-row span:nth-child(3) { white-space: nowrap; }
    .comparison-table + p { font-size: 13px; margin: 16px auto 0; }
    .comparison-row:hover { padding-left: 16px; } /* undo hover shift on mobile */
    /* Cards */
    .cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .card-item { padding: 20px; }
    .card-item strong { font-size: 16px; }
    .card-item span { font-size: 14px; }
    /* Image placeholder */
    .image-placeholder { margin-top: 28px; min-height: 140px; }
    /* Misc */
    .seo-text { padding: 40px 0; }
    .seo-text p { font-size: 13px; }
}

/* ===== MOBILE: 480px ===== */
@media(max-width:480px) {
    .section { padding: 36px 0; }
    .section-header { margin-bottom: 28px; }
    .section-title { font-size: 22px; }
    .section-alt:first-of-type, .section-case:first-of-type, .section-dark:first-of-type { padding-top: 28px; }
    .text-content { font-size: 15px; line-height: 1.7; }
    .text-content h3 { font-size: 17px; margin-top: 28px; }
    .text-content ul li { font-size: 14px; padding: 5px 0 5px 26px; }
    .text-content ul li::before { top: 13px; width: 7px; height: 7px; }
    .hero { padding: 80px 0 40px; }
    .hero-content { padding: 60px 0 30px; }
    .hero-path { margin-bottom: 14px; font-size: 11px; }
    .hero-content h1 { margin: 0 0 14px; }
    .hero-actions { margin-top: 28px; }
    .breadcrumb--hero { margin-bottom: 14px; }
    .breadcrumb--hero .breadcrumb-link,
    .breadcrumb--hero .breadcrumb-sep,
    .breadcrumb--hero .breadcrumb-current { font-size: 12px; }
    .comparison-table { border-radius: 10px; }
    .comparison-header, .comparison-row { font-size: 12px; padding: 10px 12px; min-width: 360px; }
    .comparison-table + p { font-size: 13px; margin: 16px auto 0; }
    .card-item { padding: 16px; }
    .card-item strong { font-size: 16px; }
    .card-item span { font-size: 14px; }
    .image-placeholder { margin-top: 20px; min-height: 120px; }
    .image-placeholder::before { width: 44px; height: 44px; }
    .seo-text { padding: 30px 0; }
    .seo-text p { font-size: 12px; }
}
