@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #0E1B2A;
    --color-secondary: #4F46E5;
    --color-accent: #00C2A8;
    --color-support: #F59E0B;
    --color-background: #F5F7FB;
    --color-text: #111827;
    --color-muted: #6B7280;
    --color-border: rgba(17, 24, 39, 0.08);
    --shadow-soft: 0 18px 40px rgba(14, 27, 42, 0.12);
    --radius-large: 18px;
    --radius-medium: 12px;
    --radius-small: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

body.dark-mode {
    background: #0B1522;
    color: #E5E7EB;
}

body.dark-mode .site-header {
    background: rgba(11, 21, 34, 0.94);
    border-bottom-color: rgba(229, 231, 235, 0.05);
}

body.dark-mode .logo {
    color: #F5F7FB;
}

body.dark-mode .main-navigation li a {
    color: #E5E7EB;
}

body.dark-mode .main-navigation li.active a {
    color: var(--color-accent);
}

body.dark-mode .hero {
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.25), transparent);
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .service-card,
body.dark-mode .process-card,
body.dark-mode .case-card,
body.dark-mode .faq-item,
body.dark-mode .contact-form,
body.dark-mode .info-panel {
    background: rgba(17, 24, 39, 0.65);
    border-color: rgba(229, 231, 235, 0.08);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

body.dark-mode .section-muted {
    background: rgba(255, 255, 255, 0.02);
}

body.dark-mode .mode-toggle {
    border-color: rgba(229, 231, 235, 0.3);
    color: #F3F4F6;
}

body.dark-mode .footer-bottom {
    border-top-color: rgba(229, 231, 235, 0.08);
}

body.dark-mode a {
    color: #7DD3FC;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-medium);
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(245, 247, 251, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: var(--radius-small);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 2px;
    background: var(--color-primary);
    transition: background 0.2s ease;
}

body.dark-mode .burger span {
    background: #E5E7EB;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}

.main-navigation li a {
    font-weight: 500;
    color: var(--color-text);
}

.main-navigation li.active a {
    color: var(--color-secondary);
}

.mode-toggle {
    border: 1px solid var(--color-secondary);
    background: transparent;
    color: var(--color-secondary);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
}

.mode-toggle:hover,
.mode-toggle:focus {
    background: var(--color-secondary);
    color: #fff;
}

.nav-close {
    display: none;
}

section {
    padding: 90px 0;
}

.section-muted {
    background: rgba(79, 70, 229, 0.06);
}

.section-title {
    max-width: 650px;
    margin-bottom: 32px;
}

.section-title h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--color-muted);
    margin: 0;
}

.hero {
    position: relative;
    padding: 120px 0 90px;
    background: linear-gradient(135deg, rgba(14, 27, 42, 0.04), transparent);
}

.hero .hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 36px;
    align-items: center;
}

.hero-content {
    grid-column: span 7;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 18px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--color-muted);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-actions .btn {
    min-width: 180px;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-muted);
}

.hero-highlights li span {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    display: block;
}

.hero-visual {
    grid-column: span 5;
    position: relative;
}

.hero-visual img {
    box-shadow: var(--shadow-soft);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.metric-card {
    background: #fff;
    border-radius: var(--radius-large);
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.metric-card h3 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    color: var(--color-primary);
}

.metric-card p {
    margin: 0;
    color: var(--color-muted);
}

.stats-grid,
.services-grid,
.process-grid,
.case-grid,
.tech-grid,
.faq-grid,
.contact-grid,
.about-grid,
.legal-grid {
    display: grid;
    gap: 24px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-card,
.service-card,
.process-card,
.case-card,
.info-panel,
.faq-item,
.contact-card {
    background: #fff;
    border-radius: var(--radius-large);
    padding: 28px;
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 30px rgba(14, 27, 42, 0.06);
}

.stat-card h3 {
    margin-top: 0;
    font-size: 2rem;
    color: var(--color-secondary);
}

.stat-card p {
    margin-bottom: 16px;
    color: var(--color-muted);
}

.stat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
}

.service-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.service-card ul {
    padding-left: 20px;
    margin-top: 16px;
    color: var(--color-muted);
}

.process-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.process-card span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 12px;
}

.case-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
}

.case-card h3 {
    margin-top: 0;
}

.case-insights {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.case-insights li {
    display: flex;
    gap: 12px;
    color: var(--color-muted);
}

.case-insights li::before {
    content: '●';
    color: var(--color-accent);
}

.tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
}

.tech-stack {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.tech-stack span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: var(--radius-small);
    font-weight: 500;
}

body.dark-mode .tech-stack span {
    background: rgba(79, 70, 229, 0.18);
}

.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
    text-align: left;
}

.faq-toggle .faq-icon {
    font-size: 1.4rem;
    color: var(--color-secondary);
    transition: transform 0.2s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0 28px;
}

.faq-content p {
    color: var(--color-muted);
}

.faq-item.open .faq-content {
    padding-bottom: 24px;
}

.faq-item.open .faq-toggle .faq-icon {
    transform: rotate(45deg);
}

.contact-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), transparent);
}

.contact-card {
    display: grid;
    gap: 12px;
}

.contact-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.contact-card p {
    margin: 0;
    color: var(--color-muted);
}

.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
}

.contact-form {
    padding: 36px;
}

.contact-form h3 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    color: var(--color-text);
}

.form-field input,
.form-field textarea {
    padding: 14px 16px;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
    outline: none;
}

body.dark-mode .form-field input,
body.dark-mode .form-field textarea {
    background: rgba(17, 24, 39, 0.65);
    color: #E5E7EB;
    border-color: rgba(229, 231, 235, 0.18);
}

.form-grid .form-field.full {
    grid-column: span 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.3);
}

.btn-ghost {
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(79, 70, 229, 0.1);
}

.info-note {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 12px;
}

.site-footer {
    background: #0E1B2A;
    color: #E5E7EB;
    padding: 70px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.site-footer h4 {
    margin-top: 0;
    color: #F5F7FB;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: #E5E7EB;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(229, 231, 235, 0.12);
    margin-top: 40px;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #9CA3AF;
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 360px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    display: none;
    z-index: 998;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--color-secondary);
    font-weight: 600;
}

body.dark-mode .cookie-banner {
    background: rgba(17, 24, 39, 0.95);
    color: #E5E7EB;
    border-color: rgba(229, 231, 235, 0.12);
}

@media (max-width: 1024px) {
    .hero .hero-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    .hero-content {
        grid-column: 1 / span 12;
    }
    .hero-visual {
        grid-column: 1 / span 12;
    }
    .hero-metrics {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 960px) {
    .burger {
        display: flex;
    }
    .main-navigation {
        position: fixed;
        inset: 0;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 2.2rem;
    }
    .nav-toggle:checked ~ .main-navigation {
        transform: translateX(0);
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 1.8rem;
    }
    .main-navigation li a {
        font-size: 1.4rem;
        color: #F5F7FB;
    }
    .mode-toggle {
        border-color: rgba(255, 255, 255, 0.4);
        color: #F5F7FB;
    }
    .nav-close {
        display: block;
        position: absolute;
        top: 32px;
        right: 32px;
        font-size: 1.8rem;
        color: #F5F7FB;
        cursor: pointer;
    }
    .hero {
        padding-top: 90px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 64px 0;
    }
    .hero-content h1 {
        font-size: 2.3rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .stats-grid,
    .services-grid,
    .process-grid,
    .case-grid,
    .tech-grid,
    .faq-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cookie-banner {
        left: 16px;
        right: 16px;
        max-width: none;
    }
    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .mode-toggle {
        width: 70%;
        justify-content: center;
    }
}

.legal-content h2,
.legal-content h3 {
    margin-top: 36px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    color: var(--color-muted);
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin: 16px 0 0;
    padding-left: 22px;
}

.table-like {
    display: grid;
    gap: 12px;
}

.table-like .row {
    padding: 18px;
    background: #fff;
    border-radius: var(--radius-medium);
    border: 1px solid var(--color-border);
    box-shadow: 0 6px 16px rgba(14, 27, 42, 0.06);
}

body.dark-mode .table-like .row {
    background: rgba(17, 24, 39, 0.58);
    border-color: rgba(229, 231, 235, 0.08);
}