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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    /* Light neutrals (Apple-like): white + soft gray */
    --gray-50: #f0f8ff;
    --gray-100: #e5e5ea;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* FOUC guard (global) */
html:not(.loaded) {
    visibility: hidden;
}

html.loaded {
    visibility: visible;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    background-color: #0D172B;
    border-bottom: 1px solid #ff00ff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    padding: 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

@media (min-width: 1024px) {
    .nav-content {
        height: 56px;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'K2D', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ff00ff;
    text-decoration: none;
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ff00ff;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: #00ffff;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: inherit;
    font-size: inherit;
}

.nav-dropdown-btn:hover {
    color: #ff00ff;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    width: 16rem;
    background: #0f172a;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    z-index: 50;
}

.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #00ffff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s, color 0.2s;
}

.nav-dropdown-item:hover {
    background-color: rgba(0, 255, 255, 0.1);
    color: #00ffff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: #00ffff;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu: overlay + panel */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s;
}

/* Используем [hidden] как флаг состояния, но управляем видимостью через .active */
.mobile-menu[hidden] {
    display: block !important;
    pointer-events: none;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 23, 43, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 300px;
    background: #0D172B;
    border-left: 1px solid rgba(255, 0, 255, 0.4);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    margin: 1rem 1rem 0 0;
    padding: 0.5rem;
    background: none;
    border: none;
    color: #00ffff;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.2s, background-color 0.2s;
}

.mobile-menu-close:hover {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}

.mobile-menu-close:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

.mobile-menu-nav {
    padding: 0.5rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.875rem 1rem;
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-menu-link:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #fff;
}

.mobile-menu-link:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

.mobile-menu-section {
    padding: 0.5rem 0;
}

.mobile-menu-title {
    display: block;
    padding: 0.75rem 1rem 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 255, 255, 0.7);
}

.mobile-menu-sublink {
    display: block;
    padding: 0.625rem 1rem 0.625rem 1.9rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s, background-color 0.2s;
    position: relative;
    border-radius: 0.375rem;
}

.mobile-menu-sublink::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff00ff;
}

.mobile-menu-sublink:hover {
    color: #e2e8f0;
    background: rgba(255, 0, 255, 0.08);
}

.mobile-menu-sublink:focus-visible {
    outline: 2px solid #ff00ff;
    outline-offset: 2px;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Buttons */
.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #22c55e;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #22c55e;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.btn-call:hover {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-call:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
    background-color: rgba(34, 197, 94, 0.1);
}

.btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #0088CC;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #0088CC;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.btn-write:hover {
    background-color: rgba(0, 136, 204, 0.1);
    color: #0088CC;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-write:focus-visible {
    outline: 2px solid #0088CC;
    outline-offset: 2px;
    background-color: rgba(0, 136, 204, 0.1);
}

.btn-icon {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    background: #0f172a;
    min-height: 100vh;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    background-size: 50px 50px;
    animation: matrixMove 20s linear infinite;
    pointer-events: none;
    will-change: background-position;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0%,
            rgba(0, 255, 255, 0.05) 0.5%,
            transparent 1%
        );
    background-size: 100% 3px;
    animation: matrixRain 15s linear infinite;
    pointer-events: none;
    opacity: 0.3;
    will-change: background-position;
}

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

@keyframes matrixRain {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after {
        animation: none;
    }
}

@media (min-width: 640px) {
    .hero {
        min-height: 100vh;
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 100vh;
        padding: 6rem 0;
    }
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ff00ff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-text {
    font-size: 1.25rem;
    color: #00ffff;
    margin-bottom: 2rem;
    line-height: 1.75;
    opacity: 0.9;
}

.hero-brand-note {
    font-size: 0.9375rem;
    color: #d1d5db;
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

@media (min-width: 640px) {
    .hero-text {
        font-size: 1.5rem;
    }
}

.hero-philosophy {
    margin-bottom: 1.5rem;
}

.philosophy-text {
    font-size: 1rem;
    color: #d1d5db;
    font-style: italic;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Section */
.section {
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }
}

#services {
    background: 
        radial-gradient(circle at top left, rgba(0, 255, 255, 0.25), transparent 50%),
        radial-gradient(circle at bottom right, rgba(255, 0, 255, 0.25), transparent 50%),
        #1e293b;
    border-top: 1px solid #ff00ff;
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
}

#services .container {
    position: relative;
    z-index: 1;
}

#services .section-title {
    color: #00ffff;
}

#services .section-text {
    color: #d1d5db;
}

.section-gray {
    background-color: var(--gray-50);
}

.section-gray .section-title {
    color: var(--gray-900);
}

.section-gray .section-title .company-name {
    color: var(--primary-600);
}

.service-hero-title .company-name {
    color: #ff00ff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-text {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

/* Service & company pages section separation – thin neon divider between sections */
body[class$="-page"] main .section:not(.section-cta) {
    border-top: 1px solid rgba(255, 0, 255, 0.28);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.service-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

@supports not (backdrop-filter: blur(10px)) {
    .service-card {
        background: rgba(15, 23, 42, 0.8);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 12px 40px 0 rgba(0, 255, 255, 0.2);
    transform: translate3d(0, -4px, 0);
}

.service-card:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.service-icon {
    color: #00ffff;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    opacity: 0.15;
    transition: opacity 0.3s, color 0.3s, transform 0.3s;
    z-index: 0;
    pointer-events: none;
}

.service-card:hover .service-icon {
    color: #ff00ff;
    opacity: 0.25;
    transform: scale(1.1);
}

.service-icon svg {
    width: 8rem;
    height: 8rem;
}

@media (max-width: 768px) {
    .service-icon svg {
        width: 6rem;
        height: 6rem;
    }
    
    .service-icon {
        bottom: 0.5rem;
        right: 0.5rem;
        opacity: 0.1;
    }
    
    .service-card:hover .service-icon {
        opacity: 0.15;
    }
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ff00ff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.service-description {
    font-size: 0.875rem;
    color: #00ffff;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-link {
    color: #d1d5db;
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    display: inline-block;
    text-decoration: none;
}

.service-card:hover .service-link {
    text-decoration: none;
}

/* About Section */
.about-content {
    max-width: 48rem;
    margin: 0 auto;
}

.about-text {
    color: #e5e7eb;
    font-size: 1.125rem;
    line-height: 1.75;
}

.section .about-text {
    color: var(--gray-700);
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text a,
.benefit-text a,
.related-services-text a {
    color: var(--primary-600);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-300);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.about-text a:hover,
.benefit-text a:hover,
.related-services-text a:hover {
    color: var(--primary-700);
    border-bottom-color: var(--primary-500);
}

.about-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.section-gray .about-text h2 {
    color: var(--gray-900);
}

.section-gray .about-text,
.section-gray p.about-text {
    color: var(--gray-700);
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text ul {
    color: var(--gray-700);
}

.section-gray .about-text ul {
    color: var(--gray-700);
}

.about-text ul li {
    margin-bottom: 0.5rem;
}

.about-text ol {
    color: var(--gray-700);
}

.section-gray .about-text ol {
    color: var(--gray-700);
}

.about-text ol li {
    margin-bottom: 0.75rem;
}

/* Process list styles */
.process-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    line-height: 2;
}

.section-gray .process-list {
    color: var(--gray-700);
}

.section .process-list {
    color: var(--gray-700);
}

.process-list li {
    margin-bottom: 0.75rem;
}

/* Related services links in light section */
.section-gray .about-text a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

.section-gray .about-text a:hover {
    color: var(--primary-700);
    opacity: 1;
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    margin-top: 2rem;
}

/* Related services text */
.related-services-text {
    margin-top: 2rem;
}

/* Technologies Grid */
.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.technology-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.technology-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.section .technology-item {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.section .technology-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.section-gray .technology-item {
    background: #ffffff;
    border-color: var(--gray-200);
}

.section-gray .technology-item:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.technology-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section .technology-icon {
    color: var(--primary-600);
}

.section-gray .technology-icon {
    color: var(--primary-600);
}

.technology-text {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #d1d5db;
}

.section .technology-text {
    color: var(--gray-700);
}

.section-gray .technology-text {
    color: var(--gray-700);
}

.technology-text strong {
    color: #00ffff;
    font-weight: 600;
}

.section-gray .technology-text strong {
    color: var(--primary-600);
    font-weight: 600;
}

.section .technology-text strong {
    color: var(--primary-600);
}

@media (max-width: 768px) {
    .technologies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .technology-item {
        padding: 1rem;
    }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Карточки: в белой секции — фон f0f8ff, в секции f0f8ff — белые */
.section .faq-item {
    background: var(--gray-50);
}

.section-gray .faq-item {
    background: #ffffff;
    border-color: var(--gray-200);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: -2px;
}

.section-gray .faq-question {
    color: var(--gray-900);
}

.section-gray .faq-question:hover {
    background-color: var(--gray-50);
}

.section-gray .faq-question:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: -2px;
}

.faq-question-text {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--gray-600);
}

.section-gray .faq-icon {
    color: var(--gray-600);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    padding: 0 1.5rem;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-top: 0;
}

.section-gray .faq-answer {
    color: var(--gray-700);
}

/* About Page Specific Styles */
.about-section {
    margin-top: 3rem;
}

.about-section:first-of-type {
    margin-top: 0;
}

.about-services-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    line-height: 2;
}

.about-services-list li {
    margin-bottom: 0.75rem;
}

.about-principles-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    line-height: 2;
}

.about-principles-list li {
    margin-bottom: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
}

.section-gray .stat-number {
    color: var(--primary-600);
}

.section-gray .stat-label {
    color: var(--gray-600);
}

/* CTA Section – unified neon style (как «полоса» между контентом и футером) */
.section-cta {
    background-color: #0D172B;
    border-top: 1px solid #ff00ff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 255, 255, 0.08), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255, 0, 255, 0.08), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.section-cta .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .section-cta {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .section-cta {
        padding: 6rem 0;
    }
}

.cta-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-text {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* Footer */
.footer {
    background-color: #0D172B;
    border-top: 1px solid #ff00ff;
    padding: 1.25rem 0;
}

@media (min-width: 1024px) {
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer .container {
        max-width: 800px;
    }
}

.footer-bottom {
    padding-top: 0.75rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #00ffff;
}

/* Contacts Page Styles */
.contacts-content {
    max-width: 64rem;
    margin: 0 auto;
}

.contacts-channels {
    max-width: 50rem;
    margin: 0 auto;
}

.contacts-section .about-text:first-of-type {
    margin-top: 1.5rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contacts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section .contact-card {
    background: var(--gray-50);
}

.section-gray .contact-card {
    background: #ffffff;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -1px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-400);
    text-decoration: none;
    color: inherit;
}

.contact-card:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

.contact-icon {
    color: var(--primary-600);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card:hover .contact-icon {
    color: var(--primary-700);
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card:hover .contact-link {
    color: var(--primary-700);
}

/* Service Page Styles */
.service-hero {
    background: linear-gradient(to bottom, var(--primary-50), white);
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .service-hero {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .service-hero {
        padding: 6rem 0;
    }
}

.service-hero-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.service-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .service-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .service-hero-title {
        font-size: 3.75rem;
    }
}

.service-hero-text {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* Крупный заголовок 404 на странице not-found */
.not-found-page .service-hero-title {
    font-size: 3.5rem;
}

@media (min-width: 640px) {
    .not-found-page .service-hero-title {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .not-found-page .service-hero-title {
        font-size: 7rem;
    }
}

.hero-benefits {
    margin-top: 1.5rem;
    margin-bottom: 0;
    list-style: none;
    padding: 0;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.hero-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.hero-benefits li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-500);
}

.hero-anchors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-anchors a,
.hero-anchor-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary-600);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-300);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    background: var(--primary-50);
}

.hero-anchors a:hover,
.hero-anchor-link:hover {
    color: var(--primary-700);
    border-color: var(--primary-500);
    background: var(--primary-100);
    transform: translateY(-2px);
}

.hero-anchors a:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
    border-radius: 4px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-item {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: var(--primary-100);
    color: var(--primary-600);
    margin-right: 1rem;
}

.benefit-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.benefit-text {
    color: var(--gray-700);
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: var(--primary-600);
    color: white;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.feature-icon svg {
    width: 1rem;
    height: 1rem;
}

.feature-text {
    color: var(--gray-700);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.use-case-card {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.section .use-case-card {
    background: var(--gray-50);
}

.section-gray .use-case-card {
    background: #ffffff;
}

.use-case-text {
    color: var(--gray-700);
}

/* Pricing (parsing.html) – одиночная карточка тарифа */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pricing-grid-single {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pricing-grid-single {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.section .pricing-card {
    background: var(--gray-50);
}

.section-gray .pricing-card {
    background: #ffffff;
}

.pricing-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.pricing-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.75rem;
}

.pricing-text {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.pricing-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Parsing variety cards (parsing.html) */
.parsing-variety-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .parsing-variety-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .parsing-variety-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.parsing-variety-card {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.section .parsing-variety-card {
    background: var(--gray-50);
}

.parsing-variety-card:hover {
    border-color: var(--primary-400);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translate3d(0, -2px, 0);
}

.parsing-variety-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.parsing-variety-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.parsing-variety-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.parsing-variety-tags span {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Light section (section-gray) overrides for parsing cards */
.section-gray .parsing-variety-card {
    background: #ffffff;
    border-color: var(--gray-200);
}

.section-gray .parsing-variety-card:hover {
    background: var(--gray-50);
    border-color: var(--primary-400);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-gray .parsing-variety-title {
    color: var(--gray-900);
}

.section-gray .parsing-variety-desc {
    color: var(--gray-700);
}

.section-gray .parsing-variety-tags span {
    color: var(--gray-600);
    background: var(--gray-100);
}

/* Page Navigation */
.page-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.nav-section-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.nav-section-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
    border-color: var(--primary-300);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .page-navigation {
        gap: 0.5rem;
    }
    
    .nav-section-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

