        :root {
            --bg: #f7f8fb;
            --card: #ffffff;
            --text: #1d1f2a;
            --muted: #5a5e72;
            --border: #ffba3f;
            --accent: #f4aa27;
            --accent-hover: #ffa835;
            --danger: #d55;
            --nav-bg: rgba(255, 255, 255, 0.8);
        }

        /* CORE RESET */
        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            font-family: "Inter", sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.45;
            font-weight: 300;
            letter-spacing: -0.01em;

            /* Smooth Fade-in */
            opacity: 0;
            transition: opacity 0.4s ease-in-out;
        }

        /* Russian font override */
        body.lang-ru {
            font-family: "Roboto", sans-serif;
            font-weight: 300;
        }

        body.loaded {
            opacity: 1;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        /* NAVBAR */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            gap: 8px;
            padding: 8px 12px;
            background: transparent;
            cursor: pointer;
            font-size: 20px;
            transition: 0.2s;
        }

        .lang-current:hover {
            background: rgba(244, 170, 39, 0.1);
        }

        .lang-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            min-width: 180px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: 0.2s;
            z-index: 100;
        }

        .lang-switcher:hover .lang-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            cursor: pointer;
            transition: 0.2s;
            font-size: 15px;
        }

        .lang-option:hover {
            background: var(--bg);
        }

        .lang-option:first-child {
            border-radius: 8px 8px 0 0;
        }

        .lang-option:last-child {
            border-radius: 0 0 8px 8px;
        }

        .lang-flag {
            font-size: 20px;
        }

        .lang-name {
            font-weight: 500;
            color: var(--text);
        }

        /* HEADER */
        header {
            position: relative;
            padding: 170px 20px 140px;
            background: var(--bg);
            overflow: hidden;
        }

        header::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background-image: url("../fon.png");
            background-repeat: no-repeat;
            background-position: center bottom;
            background-size: 1400px auto;
            -webkit-mask-image: linear-gradient(to right,
                    transparent 0%,
                    black 50%,
                    black 50%,
                    transparent 100%);
            mask-image: linear-gradient(to right,
                    transparent 0%,
                    black 50%,
                    black 50%,
                    transparent 100%);
            z-index: 1;
        }

        header .content {
            position: relative;
            z-index: 2;
            max-width: 1250px;
            margin: auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 60px;
        }

        .header-text {
            flex: 0 0 55%;
            max-width: 640px;
        }

        .header-visual {
            flex: 0 0 40%;
            max-width: 420px;
        }

        /* HEADER TEXT */
        .badge {
            display: inline-block;
            padding: 7px 18px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: var(--card);
            font-size: 14px;
            color: var(--accent);
            margin-bottom: 30px;
            font-weight: 500;
        }

        h1 {
            font-size: 54px;
            font-weight: 300;
            line-height: 1.2;
            max-width: 700px;
            letter-spacing: -0.02em;
            margin-bottom: 20px;
        }

        h1 .highlight {
            color: var(--accent);
            font-weight: 500;
        }

        header p {
            font-size: 20px;
            max-width: 600px;
            margin-bottom: 35px;
            color: var(--muted);
            line-height: 1.55;
        }

        .cta-btn {
            display: inline-block;
            padding: 16px 34px;
            background: var(--accent);
            color: white;
            border-radius: 8px;
            font-weight: 500;
            font-size: 17px;
            transition: .25s;
        }

        .cta-btn:hover {
            background: var(--accent-hover);
        }

        /* SERVICES */
        .section {
            padding: 90px 25px;
        }

        .section-white {
            background: var(--bg);
            border-top: 1px solid var(--border);
        }

        .section-title {
            text-align: center;
            font-size: 38px;
            font-weight: 300;
            margin-bottom: 60px;
        }

        .services-grid {
            max-width: 1250px;
            margin: auto;
            display: grid;
            gap: 38px;
            grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
        }

        .service-card {
            background: var(--card);
            padding: 32px;
            border-radius: 14px;
            border: 1px solid transparent;
            min-height: 300px;
            transition: 0.3s ease;
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
        }

        .service-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .service-icon {
            background: #fff5dc;
            width: 58px;
            height: 58px;
            border-radius: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--accent);
            font-size: 24px;
            margin-bottom: 24px;
        }

        .corner-icon {
            position: absolute;
            right: 12px;
            top: 12px;
            font-size: 70px;
            color: var(--accent);
            opacity: 0.08;
            pointer-events: none;
            transition: .25s;
        }

        .service-card:hover .corner-icon {
            opacity: 0.18;
        }

        .service-card h3 {
            font-size: 22px;
            font-weight: 500;
            margin-bottom: 12px;
        }

        .service-card p {
            color: var(--muted);
            font-size: 16px;
            line-height: 1.55;
            flex-grow: 1;
        }

        .service-bottom {
            margin-top: 20px;
            padding: 15px;
            background: #ffdb705e;
            border-radius: 8px;
            font-size: 15px;
            color: var(--text);
            border-top: none;
        }

        .service-bottom strong {
            display: block;
            margin-bottom: 4px;
            color: var(--danger);
            font-weight: 600;
        }

        /* WHY US */
        .why-grid {
            max-width: 1150px;
            margin: auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .why-block {
            background: var(--card);
            padding: 35px;
            border-radius: 16px;
            border: 1px solid transparent;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
            transition: 0.3s;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            height: 100%;
        }

        .why-block:hover {
            transform: translateY(-7px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
            border-color: var(--border);
        }

        .why-icon {
            width: 64px;
            height: 64px;
            background: #fff5dc;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            color: var(--accent);
            margin-bottom: 24px;
        }

        .why-block h3 {
            font-size: 22px;
            font-weight: 500;
            margin: 0 0 12px 0;
        }

        .why-block p {
            color: var(--muted);
            font-size: 16px;
            line-height: 1.6;
            margin: 0;
        }

        /* CASE STUDIES */
        .case-study-grid {
            max-width: 1250px;
            margin: auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
            gap: 30px;
        }

        .case-study-card {
            background: var(--card);
            padding: 35px;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            border-left: 5px solid var(--accent);
            transition: 0.3s;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .case-study-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .case-study-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .case-study-title i {
            color: var(--accent);
            font-size: 24px;
        }

        .case-detail {
            margin-bottom: 12px;
            font-size: 15px;
            line-height: 1.6;
            color: var(--muted);
            flex-grow: 1;
        }

        .case-detail:last-of-type {
            flex-grow: 0;
        }

        .case-detail strong {
            color: var(--text);
            font-weight: 600;
        }

        .tech-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: auto;
            padding-top: 20px;
        }

        .tech-tag {
            background: #f0f2f5;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 13px;
            color: var(--muted);
            font-weight: 500;
        }

        /* HONEST BLOCK */
        .honest-block {
            text-align: center;
            padding: 60px 20px;
            background: transparent;
            color: var(--muted);
            font-style: italic;
            font-size: 18px;
            max-width: 600px;
            margin: 0 auto;
        }

        .honest-block i {
            display: block;
            font-size: 24px;
            margin-bottom: 15px;
            opacity: 0.5;
        }

        /* CONTACT */
        #contact .panel {
            max-width: 1000px;
            margin: auto;
            background: var(--card);
            padding: 50px;
            border-radius: 20px;
            border: 1px solid var(--border);
            box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
        }

        .contact-info h2 {
            font-size: 32px;
            font-weight: 300;
            margin-bottom: 20px;
            letter-spacing: -0.02em;
        }

        .contact-info p {
            color: var(--muted);
            font-size: 17px;
            line-height: 1.6;
            margin-bottom: 30px;
        }

        .contact-list {
            list-style: none;
            padding: 0;
            margin: 0 0 30px 0;
        }

        .contact-list li {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            font-size: 16px;
            color: var(--text);
        }

        .contact-list i {
            width: 30px;
            color: var(--accent);
            font-size: 18px;
        }

        .trust-signals {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .trust-badge {
            background: #fff5dc;
            color: var(--accent);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
        }

        /* Form Column */
        .contact-form h3 {
            font-size: 22px;
            font-weight: 500;
            margin-bottom: 20px;
        }

        #contact label {
            font-size: 15px;
            color: var(--muted);
            margin-bottom: 6px;
            display: block;
        }

        #contact input,
        #contact textarea {
            width: 100%;
            padding: 14px;
            margin-bottom: 20px;
            background: #fafafd;
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text);
            font-size: 15px;
            outline: none;
            transition: 0.25s;
        }

        #contact input:focus,
        #contact textarea:focus {
            border-color: var(--accent);
            background: #fff;
        }

        .send-btn {
            width: 100%;
            padding: 15px;
            background: var(--accent);
            border-radius: 10px;
            border: none;
            color: white;
            font-weight: 500;
            font-size: 17px;
            cursor: pointer;
            transition: 0.25s;
        }

        .send-btn:hover {
            background: var(--accent-hover);
        }

        .alert-success {
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
        }

        .alert-error {
            background: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
        }

        /* FOOTER */
        footer {
            padding: 26px;
            text-align: center;
            color: var(--muted);
            border-top: 1px solid var(--border);
            font-size: 15px;
        }

        .footer-links {
            margin-top: 10px;
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .footer-links a {
            color: var(--muted);
            font-size: 14px;
            transition: 0.2s;
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            header {
                padding-top: 140px;
            }

            header .content {
                flex-direction: column;
                align-items: flex-start;
                gap: 40px;
            }

            .header-text {
                flex: 1 1 auto;
                max-width: 100%;
            }

            .header-visual {
                flex: 1 1 auto;
                max-width: 100%;
                align-self: center;
            }

            .contact-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .nav-links {
                display: none;
            }
        }

        /* Theme Toggle */
        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            color: var(--text);
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theme-toggle:hover {
            color: var(--accent);
        }

        .theme-toggle svg {
            width: 1.5rem;
            height: 1.5rem;
            fill: currentColor;
        }

        /* Default (Light): Hide Sun, Show Moon */
        .icon-sun {
            display: none;
        }

        .icon-moon {
            display: block;
        }

        /* Dark: Show Sun, Hide Moon */
        [data-theme="dark"] .icon-sun {
            display: block;
        }

        [data-theme="dark"] .icon-moon {
            display: none;
        }