/* --- uslugi.css --- */
body {
    background-color: #0e0e0e;
    color: #F5F5F0;
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hero Section */
.hero-services {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: radial-gradient(circle at top, #1c1c1c 0%, #0e0e0e 50%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-services h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(40px, 6vw, 80px);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.hero-services p {
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(245, 245, 240, 0.7);
    max-width: 800px;
    margin: 0 auto;
}

/* Services Grid */
.services-section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 60px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(25, 25, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    transition: transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Process Timeline */
.process-section {
    padding: 100px 40px;
    background: #151515;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 60px auto 0;
    position: relative;
    gap: 20px;
    flex-wrap: wrap;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

@media(max-width: 768px) {
    .timeline::before {
        display: none;
    }

    .timeline {
        flex-direction: column;
        gap: 40px;
    }
}

.timeline-item {
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
    min-width: 200px;
}

.timeline-dot {
    width: 48px;
    height: 48px;
    background: #0e0e0e;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.timeline-item h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.timeline-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Comparison Table */
.compare-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 40px;
}

.compare-table th,
.compare-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table th {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #fff;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Calculator WOW Element */
.calculator-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.calc-wrapper {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

@media(max-width: 900px) {
    .calc-wrapper {
        grid-template-columns: 1fr;
    }
}

.calc-controls {
    padding: 50px;
}

.calc-result {
    padding: 50px;
    background: #0e0e0e;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.calc-result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    z-index: 0;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.calc-group {
    margin-bottom: 30px;
}

.calc-group label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.calc-select,
.calc-range {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    border-radius: 4px;
}

.calc-select option {
    background: #ccc;
}

.range-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: #fff;
}

.result-val {
    font-family: 'Oswald', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
    z-index: 1;
}

.result-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
    margin-bottom: 30px;
}

.calc-cta {
    background: #fff;
    color: #000;
    border: none;
    padding: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-weight: 700;
    z-index: 1;
    transition: background 0.3s;
}

.calc-cta:hover {
    background: #ddd;
}

/* COST ANATOMY — Honda Cog Receipt Style */
.cost-anatomy-section {
    padding: 100px 40px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.cost-anatomy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.anatomy-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.anatomy-header {
    text-align: center;
    margin-bottom: 80px;
}

.anatomy-header .section-title {
    margin-bottom: 16px;
}

.anatomy-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Layout: Image + Receipt */
.anatomy-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

@media(max-width: 1024px) {
    .anatomy-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Left: Hero Visual */
.anatomy-hero-img {
    position: sticky;
    top: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.anatomy-hero-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    filter: brightness(0.7) contrast(1.1);
}

@media(max-width: 1024px) {
    .anatomy-hero-img {
        position: relative;
        top: 0;
    }
}

.anatomy-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.anatomy-hero-overlay span {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
}

/* Right: Receipt / Bill of Materials */
.anatomy-receipt {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.receipt-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: default;
    position: relative;
}

.receipt-item::before {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    border-radius: 4px;
    transition: background 0.4s;
    z-index: -1;
}

.receipt-item:hover::before {
    background: rgba(255, 255, 255, 0.03);
}

.receipt-item:hover {
    transform: translateX(8px);
}

.receipt-num {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.receipt-item:hover .receipt-num {
    color: rgba(255, 255, 255, 0.6);
}

.receipt-info h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.receipt-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.5;
    transition: color 0.3s;
}

.receipt-item:hover .receipt-info p {
    color: rgba(255, 255, 255, 0.6);
}

.receipt-price {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.receipt-item:hover .receipt-price {
    color: #fff;
}

/* Receipt Total */
.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0 0;
    margin-top: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.receipt-total-label {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.receipt-total-value {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

/* Bottom Note */
.anatomy-footer {
    text-align: center;
    margin-top: 60px;
    padding: 24px 30px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.anatomy-footer strong {
    color: #fff;
}

/* CTA Button */
.anatomy-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 32px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.anatomy-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

@media(max-width: 768px) {
    .cost-anatomy-section {
        padding: 60px 20px;
    }

    .receipt-item {
        grid-template-columns: 30px 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    /* Скрыть колонку «от ₽ —» — бессмысленна без чисел */
    .receipt-price {
        display: none;
    }

    .receipt-info h4 {
        font-size: 15px;
    }

    .receipt-info p {
        font-size: 12px;
    }

    .receipt-total-value {
        font-size: 24px;
    }

    /* Изображение — ограничить высоту */
    .anatomy-hero-img {
        max-height: 260px;
        overflow: hidden;
    }

    .anatomy-hero-img img {
        aspect-ratio: auto;
        max-height: 260px;
        object-fit: cover;
    }

    /* Калькулятор */
    .calculator-section {
        padding: 60px 16px;
    }

    .calc-controls {
        padding: 24px 20px;
    }

    .calc-result {
        padding: 24px 20px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Цена в калькуляторе — не лезет на 2 строки */
    .result-val {
        font-size: 40px;
        white-space: nowrap;
    }

    /* Цикл производства — вертикальный стек */
    .process-section {
        padding: 60px 16px;
    }

    .timeline {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        padding: 0;
    }

    .timeline-item {
        min-width: unset;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    .timeline-dot {
        margin: 0;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }

    .timeline-item h4,
    .timeline-item p {
        text-align: left;
    }

    /* Общие секции */
    .services-section {
        padding: 60px 16px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}