/* Авторский надзор — полная реализация по системному промпту ulvlspace */

.nadzor-page {
    padding-top: 0;
    position: relative;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    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-1581578731548-c64695cc6952?w=1920&q=80') center/cover no-repeat;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, 
        rgba(26, 31, 46, 0.95) 0%, 
        rgba(26, 31, 46, 0.85) 50%,
        rgba(19, 23, 34, 0.95) 85%, 
        #131722 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;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #c9a962;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading, 'Manrope'), sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.text-gradient {
    background: linear-gradient(135deg, #C8A96E 0%, #B3924A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 20px;
    color: rgba(var(--text-main-rgb), 0.75);
    margin-bottom: 40px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-subtitle .subtitle-main {
    color: rgba(240, 238, 229, 0.85);
    font-weight: 500;
}

.hero-subtitle .subtitle-detail {
    color: rgba(240, 238, 229, 0.6);
    font-weight: 400;
    font-size: 0.9em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===========================
   BUTTONS (Glassmorphism)
   =========================== */


.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-gold, #c9a962);
    border: 1px solid rgba(200, 169, 110, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body, 'Inter'), sans-serif;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(200, 169, 110, 0.1);
    color: var(--text-main);
    border-color: rgba(200, 169, 110, 0.6);
    transform: translateY(-3px);
}

/* ===========================
   SECTIONS
   =========================== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-dark {
    background: #131722;
}

.section-alt {
    background: #1a1f2e;
}

.container {
    max-width: 1280px;
    margin: auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--font-heading, 'Manrope'), sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.35;
}

/* ===========================
   PROBLEMS GRID (3 columns - Glassmorphism)
   =========================== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.problem-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 169, 110, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.problem-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 16px;
    color: #c9a962;
    margin-bottom: 24px;
}

.problem-card h3 {
    font-family: var(--font-heading, 'Manrope'), sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.problem-card p {
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 15px;
    color: rgba(var(--text-main-rgb), 0.65);
    line-height: 1.7;
}

/* ===========================
   STAGES TIMELINE (5 steps)
   =========================== */
.stages-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

.stage-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s ease;
}

.stage-item:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 169, 110, 0.3);
}

.stage-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c9a962 0%, #d4b872 100%);
    border-radius: 50%;
    color: #1a1f2e;
    font-family: var(--font-heading, 'Manrope'), serif;
    font-size: 22px;
    font-weight: 800;
}

.stage-item h3 {
    font-family: var(--font-heading, 'Manrope'), sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.stage-item p {
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 13px;
    color: rgba(var(--text-main-rgb), 0.6);
    line-height: 1.5;
    margin-bottom: 12px;
}

.stage-result {
    display: inline-block;
    font-size: 12px;
    color: #c9a962;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(200, 169, 110, 0.3);
    border-radius: 20px;
    background: rgba(200, 169, 110, 0.05);
}

.stages-note {
    text-align: center;
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 14px;
    color: rgba(var(--text-main-rgb), 0.5);
    margin-top: 32px;
    padding: 16px;
    background: rgba(201, 169, 98, 0.05);
    border-radius: 10px;
    font-style: italic;
}

/* ===========================
   ADVANTAGES GRID (Protection section - 3 cards)
   =========================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.advantage-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 169, 110, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: 14px;
    color: #c9a962;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.advantage-card h3 {
    font-family: var(--font-heading, 'Manrope'), sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    width: 100%;
}

.advantage-card p {
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 15px;
    color: rgba(var(--text-main-rgb), 0.65);
    line-height: 1.7;
    width: 100%;
}

/* ===========================
   PRICING TABLE
   =========================== */
.pricing-table {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 16px;
    color: rgba(var(--text-main-rgb), 0.8);
    transition: background 0.3s ease;
    align-items: center;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row span:first-child {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.pricing-row .price {
    text-align: right;
    white-space: nowrap;
    font-family: var(--font-heading, 'Manrope'), sans-serif;
    font-weight: 700;
    color: #c9a962;
    background: linear-gradient(135deg, #C8A96E 0%, #D4B87A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Highlight box for free supervision */
.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 32px;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.08) 0%, rgba(201, 169, 98, 0.02) 100%);
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: 16px;
    color: rgba(var(--text-main-rgb), 0.7);
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.highlight-box svg {
    flex-shrink: 0;
    color: #c9a962;
    margin-top: 2px;
}

/* ===========================
   FAQ LIST
   =========================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: var(--font-body, 'Inter'), sans-serif;
}

.faq-question:hover {
    color: #c9a962;
}

.faq-question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #c9a962;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer p {
    padding: 0 8px 24px;
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 15px;
    color: rgba(var(--text-main-rgb), 0.7);
    line-height: 1.7;
}

/* ===========================
   CASE BLOCK
   =========================== */
.case-block {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.08) 0%, rgba(201, 169, 98, 0.02) 100%);
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: 24px;
    padding: 48px;
}

.case-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(201, 169, 98, 0.15);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #c9a962;
    margin-bottom: 24px;
}

.case-content h4 {
    font-family: var(--font-heading, 'Manrope'), sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    margin-top: 24px;
}

.case-content h4:first-child {
    margin-top: 0;
}

.case-content p {
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 15px;
    color: rgba(var(--text-main-rgb), 0.7);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.7;
}

.case-content p:last-of-type {
    border-bottom: none;
    margin-bottom: 32px;
}

.case-quote {
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 17px;
    color: rgba(var(--text-main-rgb), 0.8);
    padding: 24px;
    background: rgba(201, 169, 98, 0.08);
    border-left: 3px solid rgba(201, 169, 98, 0.4);
    border-radius: 0 12px 12px 0;
    line-height: 1.7;
    font-style: italic;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a1f2e 0%, #131722 50%, #1a1f2e 100%);
    text-align: center;
    position: relative;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.6), transparent);
}

.cta-section::before { top: 0; }
.cta-section::after { bottom: 0; }

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading, 'Manrope'), sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}

.cta-content > p {
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 18px;
    color: rgba(var(--text-main-rgb), 0.7);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* ===========================
   RELATED GRID
   =========================== */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(201, 169, 98, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.related-card::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a962' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: rgba(201, 169, 98, 0.3);
    border-left-color: #c9a962;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.related-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.related-card:hover h4 {
    color: #c9a962;
}

.related-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 10px;
    color: #c9a962;
    transition: all 0.3s ease;
}

.related-card:hover .related-icon {
    background: rgba(201, 169, 98, 0.18);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.15);
}

.related-icon svg {
    width: 20px;
    height: 20px;
}

.related-card h4 {
    font-family: var(--font-heading, 'Manrope'), sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.related-card p {
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 13px;
    color: rgba(var(--text-main-rgb), 0.6);
}

/* ===========================
   SCROLL ANCHOR OFFSET
   =========================== */
section[id] {
    scroll-margin-top: 100px;
}

/* ===========================
   STAGE HEADING WRAPPER
   =========================== */
.stage-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.stage-item .stage-number {
    margin: 0;
}

/* ===========================
   FOCUS VISIBLE
   =========================== */
.faq-question:focus-visible,
.btn-outline:focus-visible {
    outline: 2px solid #c9a962;
    outline-offset: 3px;
    border-radius: 8px;
}

/* ===========================
   SCROLL REVEAL ANIMATION
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.problem-card,
.stage-item,
.advantage-card,
.faq-item,
.case-block,
.related-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.problem-card:nth-child(1),
.stage-item:nth-child(1),
.advantage-card:nth-child(1) { animation-delay: 0.1s; }

.problem-card:nth-child(2),
.stage-item:nth-child(2),
.advantage-card:nth-child(2) { animation-delay: 0.2s; }

.problem-card:nth-child(3),
.stage-item:nth-child(3),
.advantage-card:nth-child(3) { animation-delay: 0.3s; }

.stage-item:nth-child(4) { animation-delay: 0.4s; }
.stage-item:nth-child(5) { animation-delay: 0.5s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .hero {
        min-height: 100dvh;
        padding: 130px 0 90px;
    }
    .problems-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stages-timeline {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stage-item:nth-child(3)::after {
        display: none;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stages-timeline {
        grid-template-columns: 1fr;
    }
    
    .stage-item::after {
        display: none;
    }
    
    .case-block {
        padding: 32px 24px;
    }

    .advantage-card {
        padding: 24px;
    }

    .advantage-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }

    .advantage-icon svg {
        width: 20px;
        height: 20px;
    }

    .advantage-card h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .advantage-card p {
        font-size: 14px;
    }
    
    .cta-section {
        padding: 70px 0;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pricing-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 20px;
    }
    
    .pricing-row .price {
        text-align: left;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .highlight-box {
        padding: 20px 16px;
        flex-direction: column;
    }

    .related-card {
        padding: 12px 14px;
        gap: 10px;
        border-left-width: 2px;
    }

    .related-card::after {
        width: 14px;
        height: 14px;
    }

    .related-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .related-icon svg {
        width: 14px;
        height: 14px;
    }

    .related-card h4 {
        font-size: 13px;
    }

    .related-card p {
        font-size: 12px;
    }

    .advantage-card {
        padding: 20px 16px;
    }

    .advantage-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 12px;
    }

    .advantage-icon svg {
        width: 16px;
        height: 16px;
    }

    .advantage-card h3 {
        font-size: 16px;
    }

    .advantage-card p {
        font-size: 13px;
    }
}
