
        /* ПОДКЛЮЧЕНИЕ ШРИФТОВ */
        @font-face {
            font-family: 'soyuz grotesk';
            src: url('../fonts/SoyuzGroteskBold.woff') format('woff');
            font-weight: bold;
            font-style: normal; font-display: swap;
        }
        @font-face {
            font-family: 'sf pro display';
            src: url('../fonts/SFProDisplay-Regular.woff2') format('woff2');
            font-weight: 400;
            font-style: normal; font-display: swap;
        }
        @font-face {
            font-family: 'sf pro display';
            src: url('../fonts/SFProDisplay-Semibold.woff2') format('woff2');
            font-weight: 600;
            font-style: normal; font-display: swap;
        }

        /* БАЗОВЫЕ НАСТРОЙКИ */
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        html { scroll-behavior: smooth; }

        body {
            background-color: #030303;
            color: #ffffff;
            font-family: 'sf pro display', sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: panGrid 30s linear infinite;
        }

        @keyframes panGrid {
            0% { background-position: 0 0; }
            100% { background-position: 50px 50px; }
        }

        /* КАСТОМНЫЙ КУРСОР */
        @media (min-width: 769px) {
            * { cursor: none !important; }
            .custom-cursor {
                position: fixed; top: 0; left: 0; width: 8px; height: 8px; background-color: #ffffff;
                border-radius: 50%; pointer-events: none; z-index: 9999999; transform: translate(-50%, -50%);
                box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.9);
                transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border 0.2s ease;
                mix-blend-mode: difference;
            }
            .custom-cursor.hover {
                width: 45px; height: 45px; background-color: transparent;
                border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
                backdrop-filter: blur(2px);
            }
        }
        @media (max-width: 768px) { .custom-cursor { display: none; } }

        /* HEADER */
        .glass-header {
            position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
            width: 90%; max-width: 1200px; height: 80px;
            background: rgba(20, 20, 20, 0.4); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 40px;
            display: flex; justify-content: space-between; align-items: center; padding: 0 50px; z-index: 1000;
        }
        .header-logo { height: 55px; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); transition: filter 0.4s ease, transform 0.4s ease; display: block; margin: 0 auto; }
        .header-logo:hover { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)); transform: scale(1.05); }
        .back-link { 
            position: absolute; left: 50px;
            color: #ffffff; text-decoration: none; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; 
            transition: color 0.3s ease, text-shadow 0.3s ease; display: flex; align-items: center; gap: 10px;
        }
        .back-link:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.8); }

        /* МОБИЛЬНАЯ НАВИГАЦИЯ */
        .mobile-top-logo { display: none; }
        .mobile-bottom-nav { display: none; }

        /* АНИМАЦИИ ПОЯВЛЕНИЯ */
        @keyframes fadeInUpElegant { 0% { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(8px); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
        
        html[data-reveal="active"] .anim-element.is-visible { animation: fadeInUpElegant 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards; }

        /* КАЛЬКУЛЯТОР LAYOUT */
        .calc-wrapper {
            padding: 130px 10vw 100px 10vw;
            max-width: 1800px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 420px;
            gap: 60px;
            width: 100%;
        }

        .page-title {
            font-family: var(--display-font, 'soyuz grotesk', sans-serif); font-size: clamp(2.5rem, 4vw, 4rem); 
            margin-bottom: 10px; letter-spacing: -1px; text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
            grid-column: 1 / -1;
        }
        .page-subtitle { color: #aaaaaa; font-size: 1.2rem; grid-column: 1 / -1; margin-bottom: 30px; max-width: 800px; line-height: 1.5; }

        /* ЛЕВАЯ ЧАСТЬ: НАСТРОЙКИ */
        .calc-form { display: flex; flex-direction: column; gap: 50px; }
        
        .form-group-title {
            font-family: var(--display-font, 'soyuz grotesk', sans-serif); font-size: 1.8rem; margin-bottom: 25px;
            color: #ffffff; letter-spacing: 0.5px; display: flex; align-items: center; gap: 15px;
        }
        .form-group-title span { color: #555; font-size: 1.2rem; }

        /* СЕТКА И КАРТОЧКИ */
        .options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
        
        .option-card {
            background: rgba(20, 20, 20, 0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
            padding: 25px 20px; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
            height: 100%;
        }
        .option-card::after {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
            opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
        }
        .option-card:hover:not(.locked) { border-color: rgba(255,255,255,0.4); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
        .option-card:hover:not(.locked)::after { opacity: 1; }
        
        .option-card.active {
            background: rgba(255,255,255,0.08); border-color: #ffffff;
            box-shadow: 0 0 25px rgba(255,255,255,0.15); transform: translateY(-4px);
        }

        .option-card.locked {
            background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3);
            transform: none; box-shadow: none; cursor: default;
        }
        .option-card.locked .oc-title::after {
            content: '✓ В базе'; font-family: 'sf pro display', sans-serif;
            font-size: 0.75rem; color: #4CAF50; background: rgba(76, 175, 80, 0.1);
            padding: 3px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle;
        }
        
        .oc-title { font-weight: 600; font-size: 1.1rem; }
        .oc-desc { font-size: 0.9rem; color: #888; line-height: 1.4; }

        /* ПЛАВНОЕ РАСКРЫТИЕ (ACCORDION) И ФИКС ОБРЕЗАНИЯ */
        .expand-wrapper {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.5s ease;
            margin-top: 0;
        }
        .expand-wrapper.expanded {
            grid-template-rows: 1fr;
            margin-top: 10px; /* Немного отступаем при раскрытии */
        }
        .expand-inner { overflow: hidden; }
        /* Паддинги внутри сетки не дают карточкам обрезаться при transform и box-shadow */
        .expand-inner .options-grid { 
            padding-top: 10px; 
            padding-bottom: 20px; 
        }

        .toggle-more-btn {
            width: 100%; background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.15);
            color: #aaa; padding: 16px; border-radius: 16px; cursor: pointer; text-align: center;
            font-family: 'sf pro display', sans-serif; font-weight: 600; font-size: 1.05rem;
            transition: all 0.3s; margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 10px;
        }
        .toggle-more-btn svg { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
        .toggle-more-btn.active { background: rgba(255,255,255,0.06); border-style: solid; color: #fff; }
        .toggle-more-btn.active svg { transform: rotate(180deg); }
        .toggle-more-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: #fff; }

        /* Плавные Ползунки */
        .slider-container {
            background: rgba(20, 20, 20, 0.5); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 15px;
        }
        .slider-header { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; align-items: center; }
        .slider-val { font-family: var(--display-font, 'soyuz grotesk', sans-serif); font-size: 2rem; color: #fff; min-width: 50px; text-align: right; }
        
        input[type=range] {
            -webkit-appearance: none; width: 100%; background: transparent; margin: 15px 0; height: 8px;
            border-radius: 10px; outline: none; transition: background 0.3s ease;
            background: linear-gradient(to right, #fff 0%, #fff 20%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 100%);
        }
        input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; border-radius: 10px; background: transparent; }
        input[type=range]::-webkit-slider-thumb {
            height: 28px; width: 28px; border-radius: 50%; background: #ffffff;
            cursor: pointer; -webkit-appearance: none; margin-top: -10px;
            box-shadow: 0 0 20px rgba(255,255,255,0.9); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
        }
        input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
        input[type=range]:active::-webkit-slider-thumb { transform: scale(1.1); background-color: #f0f0f0; }

        /* ПРАВАЯ ЧАСТЬ: ФИКСИРОВАННЫЙ ЧЕК */
        .calc-summary-wrapper { position: relative; }
        .calc-summary {
            position: sticky; top: 120px;
            background: rgba(15, 15, 15, 0.7); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 24px;
            padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            display: flex; flex-direction: column; gap: 25px;
        }

        .summary-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
        .summary-title { font-family: var(--display-font, 'soyuz grotesk', sans-serif); font-size: 1.6rem; }
        
        .currency-toggle { position: relative; display: flex; background: rgba(255,255,255,0.1); border-radius: 20px; padding: 4px; z-index: 1; width: 120px; }
        .curr-bg {
            position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); width: calc(50% - 4px);
            background: #fff; border-radius: 16px; z-index: -1; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
        .currency-toggle[data-active="USD"] .curr-bg { transform: translateX(100%); }

        .curr-btn {
            flex: 1; background: transparent; border: none; color: #888; font-family: 'sf pro display', sans-serif;
            font-weight: 600; padding: 6px 0; border-radius: 16px; cursor: pointer; transition: color 0.4s ease; text-align: center;
        }
        .curr-btn.active { color: #000; }

        /* БЛОК "КОМАНДА ПРОЕКТА" */
        .team-block {
            position: relative;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: border-color 0.3s;
        }
        .team-block:hover { border-color: rgba(255,255,255,0.3); }
        
        .team-badge {
            position: absolute;
            top: -12px;
            right: 15px;
            font-family: 'sf pro display', sans-serif;
            font-size: 0.75rem;
            color: #4CAF50;
            background: rgba(20, 20, 20, 1); /* Непрозрачный фон, чтобы перекрыть бордер */
            border: 1px solid rgba(76, 175, 80, 0.3);
            padding: 4px 12px;
            border-radius: 12px;
            font-weight: 600;
            box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
        }
        
        .team-icon {
            width: 42px; height: 42px; min-width: 42px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: #fff;
        }
        
        .team-text { font-size: 0.9rem; color: #aaa; line-height: 1.4; }
        .team-text span { display: block; color: #fff; font-weight: 600; font-size: 1.1rem; margin-top: 2px; }

        /* СПИСОК ЧЕКА */
        .receipt-list { list-style: none; display: flex; flex-direction: column; gap: 18px; flex-grow: 1; max-height: 35vh; overflow-y: auto; padding-right: 10px; }
        .receipt-list::-webkit-scrollbar { width: 4px; }
        .receipt-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
        .receipt-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

        .receipt-item { display: flex; justify-content: space-between; font-size: 1.05rem; color: #ccc; align-items: flex-end; animation: fadeInItem 0.3s ease forwards; }
        @keyframes fadeInItem { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
        
        .receipt-item span:first-child { max-width: 65%; line-height: 1.3; }
        .receipt-item span:last-child { font-weight: 600; color: #fff; white-space: nowrap; transition: color 0.3s; }
        .receipt-item.discount { color: #4CAF50; }
        .receipt-item.discount span:last-child { color: #4CAF50; }

        .summary-footer { border-top: 1px dashed rgba(255,255,255,0.2); padding-top: 25px; margin-top: 5px; }
        .total-label { font-size: 1.1rem; color: #888; margin-bottom: 5px; }
        .total-price { font-family: var(--display-font, 'soyuz grotesk', sans-serif); font-size: 3rem; color: #fff; text-shadow: 0 0 25px rgba(255,255,255,0.4); line-height: 1; white-space: nowrap; }
        
        .action-buttons { display: flex; gap: 15px; margin-top: 25px; }
        
        .btn {
            flex: 1; border: none; padding: 18px; border-radius: 16px; font-family: 'sf pro display', sans-serif;
            font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: all 0.3s; text-align: center;
        }
        .btn-primary { background: #ffffff; color: #000000; }
        .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(255,255,255,0.2); }
        
        .btn-secondary { background: rgba(255,255,255,0.1); color: #ffffff; border: 1px solid rgba(255,255,255,0.2); }
        .btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
        .btn-secondary.success { background: #4CAF50; border-color: #4CAF50; color: white; }

        /* МОБИЛЬНАЯ АДАПТАЦИЯ */
        @media (max-width: 900px) {
            .glass-header { display: none; }
            .mobile-top-logo {
                display: flex; position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
                padding: 10px 45px; background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
                border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 30px; justify-content: center; align-items: center; z-index: 1000;
            }
            .mobile-top-logo .header-logo { height: 35px; margin: 0; }
            .mobile-bottom-nav {
                display: flex; position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
                width: 92%; max-width: 400px; height: 65px; background: rgba(20, 20, 20, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
                border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 35px; justify-content: center; align-items: center; z-index: 1000;
            }
            .mobile-bottom-nav a {
                color: #ffffff; text-decoration: none; font-size: 1rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
                display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; height: 100%; border-radius: 35px;
            }

            .calc-wrapper { grid-template-columns: 1fr; gap: 40px; padding: 100px 5vw 120px 5vw; }
            .calc-summary { position: relative; top: 0; padding: 30px 20px; }
            .page-title { font-size: 2.8rem; text-align: center; }
            .page-subtitle { text-align: center; margin-bottom: 20px; }
            .options-grid { grid-template-columns: 1fr; }
            .receipt-list { max-height: none; }
            .action-buttons { flex-direction: column; gap: 10px; }
            .btn { padding: 15px; font-size: 1rem; }
        }
    
        
        
        html[lang="en"] .hero-title, html[lang="az"] .hero-title { overflow-wrap: anywhere; }
        @media (min-width: 769px) and (max-width: 1050px) {
            .glass-header { padding-inline: 20px; }
            .glass-header .nav-links { gap: 12px; }
            .glass-header .nav-link { letter-spacing: 0; }
        }
        @media (max-width: 768px) {
            .mobile-top-logo { gap: 12px; }
            .mobile-top-logo .site-language { margin-left: 8px; }
        }

        .glass-header { display: grid; grid-template-columns: 1fr auto 1fr; }
        .glass-header .back-link { justify-self: start; }
        .glass-header .site-language { justify-self: end; }
        .action-buttons a.btn { display: flex; justify-content: center; align-items: center; text-decoration: none; }
        .form-group-title .form-label { color: inherit; font-size: inherit; margin: 0; }
        .team-text > span[data-i18n] { color: inherit; font-size: inherit; font-weight: inherit; margin: 0; }
        @media (max-width: 768px) { .glass-header { display: none; } }

    
/* Language navigation keeps the platform cursor over its controls. */
.site-language { position: relative; flex: 0 0 auto; z-index: 2; }
.site-language summary, .site-language a {
    cursor: pointer !important;
    color: #fff;
    font: inherit;
    font-size: .875rem;
}
.site-language summary {
    display: flex; align-items: center; gap: .5rem;
    list-style: none; min-height: 40px; padding: .4rem .65rem;
    border: 1px solid #737373; border-radius: .65rem; background: #181818;
}
.site-language summary::-webkit-details-marker { display: none; }
.site-language summary::after { content: '⌄'; font-size: .85rem; }
.site-language .language-options {
    position: absolute; top: calc(100% + .4rem); right: 0;
    display: block; min-width: 9rem; padding: .25rem; background: #181818;
    border: 1px solid #737373; border-radius: .65rem; box-shadow: 0 8px 30px #000a;
}
.site-language .language-options a {
    display: block; padding: .55rem .65rem; border-radius: .4rem;
    text-decoration: none; text-align: start; white-space: nowrap;
}
.site-language .language-options a[aria-current="page"] { background: #383838; }
.site-language .language-options a:hover { background: #505050; }
.site-language :is(summary, a):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body:has(.site-language:hover) > .custom-cursor { visibility: hidden; }
html:not(.pointer-ready) .custom-cursor { visibility: hidden; }
html:not(.pointer-ready) * { cursor: revert !important; }
html:not(.pointer-ready) .site-language :is(summary, a) { cursor: pointer !important; }
html { scroll-padding-top: 105px; }
html:is([data-reveal="pending"], [data-reveal="active"]) .anim-element:not(.hero-section *, .is-visible) { opacity: 0; }
@media (pointer: coarse) { .custom-cursor { display: none !important; } }
@media (min-width: 769px) and (max-width: 1050px) {
    .glass-header { padding-inline: 20px; }
    .glass-header .nav-links { gap: 12px; }
    .glass-header .nav-link { letter-spacing: 0; }
}
@media (max-width: 768px) {
    .mobile-top-logo { gap: 12px; }
    .mobile-top-logo .site-language { margin-left: 8px; }
    html { scroll-padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html:is([data-reveal="pending"], [data-reveal="active"]) .anim-element { animation: none !important; opacity: 1 !important; }
    html { scroll-behavior: auto !important; }
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}
html[lang="az"] { --display-font: 'Manrope', 'Segoe UI', Arial, sans-serif; }
html[lang="az"] :is(.hero-title, .section-title, .page-title, .modal-title, .case-main h1) {
    font-weight: 800;
    line-height: 1.05;
}



.site-contact {
    width: 80vw;
    margin: 0 auto clamp(3rem, 6vw, 6rem);
    padding: clamp(1.4rem, 3.6vw, 3.8rem);
    border: 1px solid #434343;
    border-radius: clamp(1rem, 2vw, 1.5rem);
    background: radial-gradient(ellipse at top left, #242424, transparent 72%), #101010;
    display: grid;
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
}
.site-contact h2 {
    margin: 0;
    color: #f5f5f5;
    font: 600 clamp(1.85rem, 3.25vw, 3.4rem)/1.1 'sf pro display', system-ui, sans-serif;
    letter-spacing: -.035em;
}
.contact-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.6rem, 1.2vw, 1rem);
}
.contact-link {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 70px;
    padding: .65rem clamp(.75rem, 1.65vw, 1.4rem);
    border: 1px solid #505050;
    border-radius: .85rem;
    background: #161616;
    color: #f3f3f3;
    font-size: clamp(.98rem, 1.5vw, 1.2rem);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.contact-link:hover { background: #242424; border-color: #a0a0a0; }
.contact-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.contact-link-pin { color: #c5c5c5; display: block; font-size: .83rem; font-weight: 400; margin-top: .15rem; white-space: nowrap; }
.contact-link-arrow { color: #ababab; margin-left: .1em; }
.service-price .currency-symbol {
    font-family: system-ui, 'Segoe UI', Arial, sans-serif;
    font-size: .62em;
    font-weight: 600;
    white-space: nowrap;
}
.calc-wrapper + .site-contact { width: calc(min(100%, 1800px) - 20vw); }
.case-main + .site-contact { width: min(100% - 2.5rem, 880px); }
@media (max-width: 950px) {
    .contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .site-contact, .calc-wrapper + .site-contact { width: 90vw; }
    .site-contact { margin-bottom: 115px; }
}
@media (max-width: 350px) {
    .contact-links { grid-template-columns: 1fr; }
}
