/* Шрифт Golos Text подключается через Google Fonts в index.html */

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Глобальный шрифт для всех кнопок */
button,
.btn {
    font-family: 'Golos Text', sans-serif;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --white: #ffffff;
    --black: #000000;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --blue-100: #e5ecff;
    --blue-150: #dce6ff;
    --blue-200: #cbdaff;
    --blue-250: #bacdff;
    --blue-300: #a8c1ff;
    --blue-350: #97b4ff;
    --blue-400: #86a8ff;
    --blue-450: #749bff;
    --blue-500: #638fff;
    --blue-550: #5282ff;
    --blue-600: #4e79eb;
    --blue-ice: #d6e6f3;
    --blue-powder: #a6c5d7;
    --blue-sapphire: #0f52ba;
    --blue-nave: #000926;
    --border: #e5e7eb;
    --bg-1: #EEF2F8;
    --bg-2: #f2f2f7;
    --bg-3: #f5f5f5;
    --bg-4: #F7F7F7;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Golos Text', sans-serif;
    line-height: 1.4;
    color: var(--black);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 60px;
    opacity: 0;
    animation: pageFadeIn 0.2s ease-in-out forwards;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Стили для выделения текста */
::selection {
    background-color: var(--black);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--black);
    color: var(--white);
}

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

.mb-0 {
    margin-bottom: 0 !important;
}

.degree-0 {
    transform: rotate(0deg) !important;
}

/* Skeleton Loading для всего сайта */
.page-skeleton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--white);
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.page-skeleton.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-content {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.page-content.loaded {
    opacity: 1 !important;
    visibility: visible !important;
}

.skeleton-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.skeleton-section:last-child {
    border-bottom: none;
}

/* Базовый skeleton */
.skeleton {
    background-color: var(--bg-4);
    border-radius: 0.5rem;
}

/* Hero Skeleton */
.skeleton-hero {
    padding-top: 120px;
    padding-bottom: 4rem;
}

.skeleton-hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.skeleton-hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skeleton-hero-title {
    width: 60%;
    height: 5rem;
    max-width: 600px;
}

.skeleton-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: transparent;
}

.skeleton-hero-visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.skeleton-hero-video {
    width: 100%;
    max-width: 600px;
    height: 400px;
    aspect-ratio: 4 / 3;
}

@media (max-width: 768px) {
    .skeleton-hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skeleton-hero-visual {
        order: 1;
        justify-content: center;
    }
    
    .skeleton-hero-content {
        order: 2;
    }
    
    .skeleton-hero-title {
        height: 3.5rem;
    }
    
    .skeleton-hero-video {
        height: 300px;
    }
}

/* Services Skeleton */
.skeleton-services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.skeleton-service-card {
    grid-column: span 2;
    height: 200px;
}

.skeleton-service-card:nth-child(4),
.skeleton-service-card:nth-child(5) {
    grid-column: span 3;
}

@media (max-width: 768px) {
    .skeleton-services-grid {
        grid-template-columns: 1fr;
    }
    
    .skeleton-service-card {
        grid-column: span 1;
        height: 180px;
    }
}

/* Cases Skeleton */
.skeleton-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.skeleton-case-card {
    height: 400px;
}

@media (max-width: 768px) {
    .skeleton-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .skeleton-case-card {
        height: 300px;
    }
}

/* About Skeleton */
.skeleton-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.skeleton-about-card {
    height: 300px;
}

.skeleton-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background: transparent;
}

.skeleton-stat-card {
    height: 120px;
}

@media (max-width: 768px) {
    .skeleton-about-content {
        grid-template-columns: 1fr;
    }
}

/* Brief Page Skeleton */
.skeleton-brief {
    border-bottom: none;
    padding: 4rem 0 6rem;
    background-color: var(--white);
}

.skeleton-brief-wrapper {
    max-width: 800px;
    margin: 0;
    width: 100%;
}

.skeleton-brief-header {
    margin-bottom: 1.5rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-brief-title {
    width: 200px;
    height: 2.5rem;
}

.skeleton-brief-subtitle {
    width: 100%;
    max-width: 600px;
    height: 1.5rem;
}

.skeleton-brief-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: var(--white);
    padding: 0;
}

.skeleton-brief-form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-brief-label {
    width: 200px;
    height: 1.25rem;
}

.skeleton-brief-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: transparent;
    margin-bottom: 0;
}

.skeleton-brief-tag {
    width: 120px;
    height: 44px;
    border-radius: 0.5rem;
}

.skeleton-brief-textarea {
    width: 100%;
    height: 150px;
}

.skeleton-brief-input {
    width: 100%;
    height: 48px;
}

.skeleton-brief-checkbox {
    width: 100%;
    height: 1.5rem;
}

.skeleton-brief-submit {
    width: 200px;
    height: 48px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .skeleton-brief {
        padding: 3rem 0 4rem;
    }
    
    .skeleton-brief-wrapper {
        max-width: 100%;
    }
    
    .skeleton-brief-title {
        height: 2rem;
    }
    
    .skeleton-brief-tag {
        width: 100px;
        height: 40px;
    }
    
    .skeleton-brief-form-group {
        margin-bottom: 2rem;
    }
}

/* Cases Page Skeleton */
.skeleton-cases-wrapper {
    max-width: 100%;
}

.skeleton-cases-header {
    margin-bottom: 3rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-cases-title {
    width: 200px;
    height: 3rem;
}

.skeleton-cases-subtitle {
    width: 100%;
    max-width: 500px;
    height: 1.5rem;
}

.skeleton-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skeleton-case-item {
    height: 500px;
}

@media (max-width: 1024px) {
    .skeleton-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-cases-title {
        height: 2.5rem;
    }
    
    .skeleton-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .skeleton-case-item {
        height: 400px;
    }
}

/* Section Title Skeleton */
.skeleton-section-title {
    width: 200px;
    height: 2.5rem;
    margin-bottom: 1rem;
}

/* Skeleton для hero блока (старый код, оставляем для совместимости) */
.skeleton-hidden {
    display: none;
}

.skeleton-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 5rem;
    border-radius: 0.5rem;
    display: block;
    z-index: 1;
}

.skeleton-buttons {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    background: transparent;
    z-index: 1;
}

.skeleton-button {
    width: 180px;
    height: 44px;
    background-color: var(--bg-4);
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .skeleton-title {
        height: 3.5rem;
    }
    
    .skeleton-button {
        width: 150px;
        height: 44px;
    }
}

.hero-content.loaded .skeleton-title,
.hero-content.loaded .skeleton-buttons {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.hero-content.loaded .hero-title,
.hero-content.loaded .hero-buttons {
    opacity: 1 !important;
}


body.page-transitioning {
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Навигация */
.navbar {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.2s ease;
    height: 60px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    min-height: 60px;
    box-sizing: border-box;
    gap: 1rem;
    position: relative;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.025em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo svg {
    flex-shrink: 0;
    color: var(--black);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 2rem;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--gray-500);
}

.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    z-index: 1001;
}

.burger-menu span {
    width: 20px;
    height: 2px;
    background-color: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    background-color: var(--white);
    color: var(--black);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: var(--bg-4);
}

.lang-btn.active {
    background-color: var(--black);
    color: var(--white);
}

/* Дроп-даун переключателя языка */
.language-dropdown {
    position: relative;
}

.language-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.language-dropdown-toggle:hover {
    border-color: var(--gray-300);
    background-color: var(--gray-50);
}

.language-dropdown-toggle[aria-expanded="true"] {
    border-color: var(--black);
    background-color: var(--gray-50);
}

.language-dropdown-toggle[aria-expanded="true"] .language-arrow {
    transform: rotate(180deg);
}

.language-current {
    font-weight: 500;
    color: var(--black);
}

.language-arrow {
    transition: transform 0.2s ease;
    color: var(--black);
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1002;
    overflow: hidden;
}

.language-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: var(--gray-700);
    gap: 0.75rem;
}

.language-dropdown-item:hover {
    background-color: var(--bg-4);
    color: var(--black);
}

.language-dropdown-item.active {
    background-color: var(--bg-4);
    color: var(--black);
    font-weight: 500;
}

.language-dropdown-item span:first-child {
    font-weight: 500;
    min-width: 32px;
    color: var(--black);
}

.language-name {
    flex: 1;
    text-align: right;
    color: var(--gray-500);
    font-size: 0.8125rem;
}

.language-dropdown-item.active .language-name {
    color: var(--black);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    cursor: pointer;
}

.mobile-menu.active .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

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

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--bg-4);
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--gray-700);
    transition: all 0.2s ease;
    z-index: 1;
}

.mobile-menu-close:hover {
    background-color: var(--gray-100);
    color: var(--black);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

.mobile-nav {
    padding: 4rem 2rem 1rem;
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 0.75rem;
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.mobile-nav-menu a:hover {
    background-color: var(--bg-4);
}

.mobile-menu-section {
    padding: 1.5rem 2rem 1.5rem 2.75rem;
    border-top: 1px solid var(--border);
}

.mobile-menu-section h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.mobile-lang-switcher {
    display: flex;
    gap: 0.75rem;
}

.mobile-lang-switcher .lang-btn {
    flex: 1;
    text-align: center;
}

.mobile-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-4);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.mobile-contact-item:hover {
    background-color: var(--gray-100);
    color: var(--black);
}

.mobile-contact-item svg {
    flex-shrink: 0;
    color: var(--black);
}

.mobile-social {
    display: flex;
    gap: 1rem;
}

.mobile-social-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-4);
    border-radius: 0.75rem;
    color: var(--black);
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.mobile-social-item:hover {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--black);
    color: var(--white);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-nav-cta:hover {
    background-color: var(--gray-800);
    box-shadow: var(--shadow-sm);
}

/* Главный экран */
.hero {
    color: var(--black);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0;
    display: none;
}

.hero-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--black) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--black) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
    background-position: 0 0, 30px 30px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.hero-title-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.hero-buttons-wrapper {
    position: relative;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-illustration {
    width: 100%;
    height: 100%;
    max-width: 600px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-illustration svg {
    width: 100%;
    height: 100%;
    max-height: 500px;
}

.hero-illustration video {
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    position: relative;
    z-index: 2;
    display: block;
}

.hero-illustration video.loaded {
    opacity: 1;
}

.skeleton-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    z-index: 1;
    border-radius: 0.5rem;
    pointer-events: none;
}

.hero-illustration video.loaded ~ .skeleton-video,
.skeleton-video.hidden {
    display: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0s 0.6s;
    position: relative;
    z-index: 2;
}

.hero-content.loaded .hero-title {
    visibility: visible;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    position: relative;
    z-index: 2;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--blue-100);
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--blue-100);
    border-color: var(--blue-200);
}

.btn-secondary svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.btn-secondary:hover svg {
    transform: translateX(1px);
}

.btn-demo {
    background-color: var(--black);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    justify-content: flex-start;
}

.btn-demo:hover {
    opacity: 0.9;
}

.btn-demo span:first-child {
    color: var(--white);
    font-weight: 500;
}

.btn-demo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #333333;
    border-radius: 6px;
    flex-shrink: 0;
}

.btn-demo-icon svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.btn-demo:hover .btn-demo-icon svg {
    transform: translateX(1px);
}

/* Секции */
section {
    padding: 72px 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 2.5rem;
    color: var(--black);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* УТП */
.usp {
    padding: 4rem 0;
    color: var(--black);
}

.usp .section-title {
    color: var(--black);
    text-align: left;
    margin-bottom: 0;
}

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

/* Планшеты (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .usp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .usp .opportunity-card {
        padding: 1.75rem;
    }
    
    .usp .opportunity-card-title {
        font-size: 1.375rem;
    }
    
    .usp .opportunity-card-header {
        margin-bottom: 1.25rem;
    }
    
    .usp .opportunity-card-body {
        gap: 1.25rem;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .usp-grid {
        display: flex;
        flex-direction: row;
        gap: 1.25rem;
        margin-top: 1.5rem;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        box-sizing: border-box;
    }
    
    .usp-grid::-webkit-scrollbar {
        display: none;
    }
    
    .usp .opportunity-card {
        flex: 0 0 85%;
        min-width: 85%;
        max-width: 85%;
        padding: 1.5rem;
        box-sizing: border-box;
        margin: 0;
        border-radius: 0.5rem;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    
    .usp .opportunity-card-title {
        font-size: 1.25rem;
    }
    
    .usp .opportunity-card-header {
        margin-bottom: 1rem;
    }
    
    .usp .opportunity-card-body {
        gap: 1rem;
        width: 100%;
    }
    
    .usp .opportunity-card-description {
        font-size: 0.875rem;
    }

    .usp .opportunity-visual {
        height: 160px;
        padding: 0.75rem;
    }

    .usp .opportunity-rings .ring {
        width: 68px;
        height: 68px;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .usp-grid {
        gap: 1rem;
        margin-top: 1.25rem;
    }
    
    .usp .opportunity-card {
        flex: 0 0 90%;
        min-width: 90%;
        max-width: 90%;
        padding: 1.25rem;
        box-sizing: border-box;
        margin: 0;
    }
    
    .usp .opportunity-card-title {
        font-size: 1.125rem;
    }
    
    .usp .opportunity-card-description {
        font-size: 0.8125rem;
    }

    .usp .opportunity-visual {
        height: 140px;
        padding: 0.75rem;
    }

    .usp .opportunity-rings .ring {
        width: 60px;
        height: 60px;
    }
}

.usp .opportunity-card {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.usp .opportunity-card:hover {
    border-color: var(--gray-300);
}

.usp .opportunity-card-header {
    margin-bottom: 1.5rem;
}

.usp .opportunity-card-header-highlight {
    background: #000000;
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.usp .opportunity-card-title {
    line-height: 1.25;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.usp .opportunity-card-title span {
    display: inline-block;
}

.usp .opportunity-card-header-highlight .opportunity-card-title {
    color: var(--white);
}

.usp .opportunity-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
    overflow: visible;
}

.usp .opportunity-card-body-highlight {
    background: #000000;
    padding: 1.5rem;
    margin: -1.5rem -2rem -2rem -2rem;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.usp .opportunity-card-description {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--black);
    margin: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.usp .opportunity-card-body-highlight .opportunity-card-description {
    color: rgba(255, 255, 255, 0.95);
}

.usp .opportunity-card-visual {
    margin-top: auto;
}

.usp .opportunity-visual {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
}

.usp .opportunity-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.usp .chart-bar {
    flex: 1;
    background: var(--blue-nave);
    border-radius: 0.25rem 0.25rem 0 0;
    min-height: 20px;
}

.usp .opportunity-rings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.usp .opportunity-rings .ring {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.usp .opportunity-rings .ring-1 {
    background: conic-gradient(from 180deg, #5282ff 0 70%, rgba(0, 0, 0, 0.08) 70% 100%);
}

.usp .opportunity-rings .ring-2 {
    background: conic-gradient(from 180deg, #97b4ff 0 45%, rgba(0, 0, 0, 0.08) 45% 100%);
}

.usp .opportunity-rings .ring-3 {
    background: conic-gradient(from 180deg, #000000 0 85%, rgba(0, 0, 0, 0.08) 85% 100%);
}

.usp .opportunity-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.usp .opportunity-tiles .tile {
    border-radius: 0.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.usp .opportunity-tiles .tile-1 {
    background: linear-gradient(135deg, rgba(82, 130, 255, 0.65) 0%, rgba(151, 180, 255, 0.35) 100%);
}

.usp .opportunity-tiles .tile-2 {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(82, 130, 255, 0.35) 100%);
}

.usp .opportunity-tiles .tile-3 {
    background: linear-gradient(135deg, rgba(151, 180, 255, 0.65) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.usp .opportunity-tiles .tile-4 {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(151, 180, 255, 0.55) 100%);
}

/* Sparkline (USP) */
.usp .visual-sparkline {
    display: flex;
    align-items: center;
    justify-content: center;
}

.usp .visual-sparkline svg {
    width: 100%;
    height: 100%;
}

.usp .visual-sparkline .spark-fill {
    fill: rgba(82,130,255,0.18);
}

.usp .visual-sparkline .spark-line {
    fill: none;
    stroke: rgba(82,130,255,0.65);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.usp-item {
    text-align: left;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.usp-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.usp-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    background-color: var(--gray-100);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.usp-icon svg {
    width: 100%;
    height: 100%;
}

.usp-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--black);
    font-weight: 600;
}

.usp-item p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Сильное УТП */
.strong-usp {
    color: var(--black);
    padding: 0 0 60px 0;
    position: relative;
    overflow: hidden;
}

.strong-usp .container {
    position: relative;
}

.strong-usp-sticker {
    position: absolute;
    right: 3rem;
    bottom: 1rem;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    z-index: 2;
    pointer-events: none;
}

.strong-usp-content {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    background: var(--bg-4);
}

.strong-usp-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--black);
}

.strong-usp-title .word {
    display: inline-block;
    color: #D7D7DB;
    transition: color 0.1s ease;
}

.strong-usp-title .word.animate-in {
    color: var(--black);
}

.strong-usp-description {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--black);
    line-height: 1.4;
}

.strong-usp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.strong-usp-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.strong-usp-feature svg {
    flex-shrink: 0;
    color: var(--white);
}

.strong-usp-feature span {
    color: var(--gray-200);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.strong-usp-button {
    margin-top: 1rem;
}

.strong-usp-button .btn {
    color: var(--white);
    border: 1px solid var(--black);
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    gap: 0.75rem;
}

.strong-usp-button .btn:hover {
    opacity: 0.9;
}

.strong-usp-button .btn svg,
.strong-usp-button .btn .btn-demo-icon svg {
    transition: transform 0.2s ease;
}

.strong-usp-button .btn:hover svg,
.strong-usp-button .btn:hover .btn-demo-icon svg {
    transform: translateX(1px);
}

/* О нас */
.about-section {
    background-color: var(--bg-4);
    padding: 72px 0;
}

.sincerity-mosaic {
    padding: 30px 0;
    background-color: var(--white);
}

.sincerity-mosaic__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "tile1 tile2 text text"
        "cta cta tile5 tile6";
    gap: 1rem;
    align-items: stretch;
}

.sincerity-mosaic__tile {
    background: var(--bg-4);
    border-radius: 0.5rem;
    width: 100%;
    overflow: hidden;
}

.sincerity-mosaic__tile--square {
    /* Десктоп: чуть ниже, чем квадрат */
    aspect-ratio: 14 / 10;
}

.sincerity-mosaic__tile--wide {
    /* Десктоп: уменьшаем высоту широких карточек */
    aspect-ratio: 26 / 10;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.sincerity-mosaic__tile--1 { grid-area: tile1; }
.sincerity-mosaic__tile--2 { grid-area: tile2; }
.sincerity-mosaic__tile--text { grid-area: text; }
.sincerity-mosaic__tile--cta { grid-area: cta; }
.sincerity-mosaic__tile--5 { grid-area: tile5; }
.sincerity-mosaic__tile--6 { grid-area: tile6; }

.sincerity-mosaic__tile--text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.sincerity-mosaic__card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--black);
}

.sincerity-mosaic__text {
    margin: 0;
    color: var(--black);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.35;
    max-width: 42ch;
}

.sincerity-mosaic__cta {
    margin: 0;
    color: var(--black);
    font-size: 1.125rem;
    font-weight: 500;
    max-width: 42ch;
}

.sincerity-mosaic__tile--cta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.sincerity-mosaic__cta-btn {
    margin-top: 2px;
}
  
.sincerity-mosaic__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .sincerity-mosaic {
        padding: 30px 0;
    }

    .sincerity-mosaic__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "tile1 tile2"
            "text text"
            "cta cta"
            "tile5 tile6";
    }

    .sincerity-mosaic__tile--wide {
        aspect-ratio: 1.25 / 1;
    }

    .sincerity-mosaic__tile--square {
        aspect-ratio: 1 / 1;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 0;
}

/* Левая часть: информация о нас */
.about-info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.about-info-header {
    display: block;
}

/* Заголовок блока «О нас» внутри карточки */
.about-card-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.about-info-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
    line-height: 1.2;
}

.about-info-description {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--black);
    margin: 0;
}

.about-info-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-info-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
}

.about-info-feature svg {
    flex-shrink: 0;
    color: var(--primary-blue);
}

.about-info-feature span {
    font-size: 1.125rem;
    line-height: 1.5;
}

/* Правая часть: статистика и клиенты */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    min-width: 0;
    overflow: hidden;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    width: 100%;
}

.about-stats-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.about-clients {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0;
    width: 100%;
    padding: 2.5rem 0;
}

.about-clients-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    display: none; /* Скрыт на десктопе */
}

/* Мы в цифрах (внутри блока О нас) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Первая карточка на всю ширину */
.stats-grid .stat-card:first-child {
    grid-column: 1 / -1;
}

.stat-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.stats-grid .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.025em;
    text-shadow: none;
    position: relative;
    display: block;
    width: 100%;
}

.stats-grid .stat-label {
    font-size: 0.9375rem;
    color: var(--black);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: none;
    position: relative;
    display: block;
    width: 100%;
}

/* Услуги */
.services {
    background-color: var(--bg-4);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.service-card-large {
    grid-column: span 3;
}

.service-card-medium {
    grid-column: span 2;
}

.service-card {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--black);
    font-weight: 600;
    overflow: hidden;
    flex: 1;
}

.service-card h3 span {
    display: inline-block;
}

.service-card p {
    font-size: 0.9375rem;
}

/* Кейсы */
/* Процесс работы */
.process {
    position: relative;
    overflow: hidden;
    color: var(--black);
}

.process-content {
    max-width: 100%;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.process-item {
    text-align: left;
    padding: 2rem;
    background: var(--white);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.process-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.process-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    background-color: var(--gray-100);
    border-radius: 0.75rem;
    padding: 0.75rem;
    position: relative;
    z-index: 1;
}

.process-number {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--primary-blue);
}

.process-item h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--black);
    font-weight: 600;
    position: relative;
    z-index: 1;
    flex: 1;
}

.process-item p {
    color: var(--black);
    line-height: 1.4;
    font-size: 0.9375rem;
    position: relative;
    z-index: 1;
}

.process .section-title {
    color: var(--black);
}

.process-visual {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 0;
}

.cases {
    padding: 72px 0 30px 0;
}

.cases-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cases-header-row .section-title {
    margin-bottom: 0;
}

.cases-header-row .case-detail-back {
    margin-bottom: 0;
}

.cases-showcase {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.case-showcase-item:nth-child(1),
.case-showcase-item:nth-child(2),
.case-showcase-item:nth-child(6),
.case-showcase-item:nth-child(7){
    grid-column: span 3;
}

.case-showcase-item:nth-child(3),
.case-showcase-item:nth-child(4),
.case-showcase-item:nth-child(5),
.case-showcase-item:nth-child(8),
.case-showcase-item:nth-child(9),
.case-showcase-item:nth-child(10){
    grid-column: span 2;
}

.case-showcase-item {
    display: flex;
    flex-direction: column;
}

.case-showcase-visual {
    position: relative;
    order: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 400px;
}

.case-showcase-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.case-showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    min-height: 400px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.case-showcase-visual:hover .case-showcase-image {
    transform: scale(1.1);
}

.case-showcase-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.case-card {
    max-width: 70%;
    width: fit-content;
}

.case-mockup-container {
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.case-mockup-desktop {
    padding: 1.5rem;
}

.case-mockup-phone {
    width: 140px;
    height: 280px;
    background: var(--white);
    border-radius: 1.5rem;
    padding: 0.75rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: var(--gray-50);
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.mockup-list {
    flex: 1;
    padding: 0.5rem;
}

.mockup-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    flex-shrink: 0;
}

.mockup-text {
    flex: 1;
}

.mockup-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.mockup-message {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.case-mockup-tablet {
    width: 240px;
    height: 180px;
    background: var(--white);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.mockup-feed {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
}

.mockup-post {
    margin-bottom: 1rem;
}

.mockup-post-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mockup-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.mockup-post-info {
    flex: 1;
}

.mockup-post-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--black);
}

.mockup-post-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.mockup-post-content {
    height: 60px;
    background: var(--gray-100);
    border-radius: 0.5rem;
}

.case-mockup-screen {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: var(--white);
    border-radius: 0.75rem;
    display: grid;
    grid-template-columns: 160px 1fr;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.mockup-sidebar {
    background: var(--gray-50);
    padding: 1rem 0.75rem;
    border-right: 1px solid var(--border);
}

.mockup-sidebar-item {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mockup-sidebar-item.active {
    background: var(--primary-blue);
    color: var(--white);
}

.mockup-main {
    padding: 1.5rem;
    overflow-y: auto;
}

.mockup-main-header {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.mockup-section {
    margin-bottom: 1.5rem;
}

.mockup-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.mockup-stats {
    display: flex;
    gap: 1rem;
}

.mockup-stat-item {
    flex: 1;
}

.mockup-stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.mockup-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
}

.mockup-quota {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-quota-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-quota-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.mockup-quota-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.mockup-quota-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 4px;
}

.mockup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.mockup-btn {
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mockup-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.case-showcase-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-logo {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.case-logo-text {
    color: var(--white);
    overflow: hidden;
    display: inline-block;
    font-weight: 700;
}

.case-logo-text span {
    display: inline-block;
}

.case-logo-suffix {
    color: var(--black);
}

.case-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--white);
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

.case-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border: 2px solid var(--black);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--black);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--gray-100);
    border: 2px solid var(--gray-500);
}

.case-link-text {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.case-link-text:hover {
    color: var(--primary-blue);
}

.case-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}





.case-link-arrow svg {
    transition: transform 0.2s ease;
}

.case-link-arrow:hover svg {
    transform: translateX(4px);
}


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

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1;
    letter-spacing: -0.025em;
}

.stat-label {
    color: var(--black);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Контакты */
/* Отзывы клиентов */
.testimonials {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 96px 0;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

.testimonial-rating svg {
    width: 20px;
    height: 20px;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-700);
    flex: 1;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.testimonial-avatar svg {
    width: 24px;
    height: 24px;
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-author-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.testimonial-author-role {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 100%;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--black);
    font-weight: 600;
}

.contact-item {
    margin-bottom: 0;
    color: var(--gray-600);
}

.contact-item:hover {
    background-color: var(--gray-50);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    background-color: var(--gray-100);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item-content {
    flex: 1;
}

.contact-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.footer .contact-item h4 {
    color: var(--white);
}

.contact-item-content a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer .contact-item-content a {
    color: var(--gray-300);
}

.contact-item-content a:hover {
    color: var(--black);
}

.footer .contact-item-content a:hover {
    color: var(--white);
}

.contact-item-content span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-social {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.contact-social h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.footer .contact-social h4 {
    color: var(--white);
}

.contact-social-links {
    display: flex;
    gap: 1rem;
}

.contact-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.footer .contact-social-link {
    color: var(--gray-300);
    border-color: var(--gray-700);
}

.contact-social-link:hover {
    color: var(--white);
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.footer .contact-social-link:hover {
    color: var(--white);
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-social-link svg {
    width: 20px;
    height: 20px;
}

/* Форма */
.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-header {
    margin-bottom: 2rem;
    text-align: left;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--black);
    font-weight: 600;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: 'Golos Text', sans-serif;
    transition: all 0.2s ease;
    background-color: var(--white);
    color: var(--black);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--black);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-500);
}

.btn-submit {
    width: 100%;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Golos Text', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Страница бриф */
.brief-page {
    padding: 4rem 0 6rem;
    background-color: var(--white);
}

.brief-wrapper {
    max-width: 800px;
    margin: 0;
    width: 100%;
}

.brief-header {
    margin-bottom: 1.5rem;
}

.brief-footer {
    margin-top: 1.5rem;
}

.brief-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0;
    text-align: left;
    margin-bottom: 0.5rem;
}

.brief-subtitle {
    color: var(--black);
    font-size: 0.9375rem;
    line-height: 1.4;
    margin: 0;
}

.brief-phone {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.brief-phone:hover {
    color: var(--black);
    text-decoration: underline;
}

.brief-form {
    background-color: var(--white);
    padding: 0;
}

.brief-form-group {
    margin-bottom: 1.5rem;
}

.brief-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--black);
    font-weight: 600;
    font-size: 0.9375rem;
}

.brief-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
}

.brief-tag {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-4);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Golos Text', sans-serif;
    white-space: nowrap;
}

.brief-tag:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--black);
}

.brief-tag.active {
    background-color: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.brief-form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: 'Golos Text', sans-serif;
    transition: all 0.2s ease;
    background-color: var(--white);
    color: var(--black);
    resize: vertical;
    min-height: 150px;
}

.brief-form-group textarea:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.brief-form-group textarea::placeholder {
    color: var(--gray-400);
}

.brief-form-group input[type="text"],
.brief-form-group input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: 'Golos Text', sans-serif;
    transition: all 0.2s ease;
    background-color: var(--white);
    color: var(--black);
}

.brief-form-group input[type="text"]:focus,
.brief-form-group input[type="tel"]:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Страница кейсов */
.cases-page {
    padding: 72px 0 30px 0;
    background-color: var(--white);
}

.case-showcase-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.case-showcase-link:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.35);
    outline-offset: 4px;
    border-radius: 0.75rem;
}

.case-showcase-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
}

.case-showcase-link:hover .case-showcase-image {
    transform: scale(1.1);
}

/* Страница кейса (детальная) */
.case-detail-page {
    padding: 72px 0 30px;
}

.case-detail-hero {
    padding: 0 0 30px;
    background: var(--white);
}

.case-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease;
}

.case-detail-back__icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    transform: rotate(270deg);
    background: var(--black);
    border-radius: 0.5rem;
}

.case-detail-back__icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.case-detail-back:hover {
    opacity: 0.75;
}

.case-detail-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.case-detail-title {
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.case-detail-subtitle {
    margin: 0 0 1.25rem;
    color: var(--black);
    font-size: 1.0625rem;
    line-height: 1.5;
    max-width: 60ch;
}

.case-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    color: var(--black);
    font-size: 0.9375rem;
    font-weight: 500;
}

.case-detail-hero-visual {
    border-radius: 0.5rem;
    overflow: hidden;
}

.case-detail-cover {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.case-detail-section {
    padding: 24px 0;
    background: var(--white);
}

.case-detail-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.case-detail-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-4);
}

.case-detail-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.case-detail-card-text {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.case-detail-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.case-detail-h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.case-detail-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--black);
    line-height: 1.7;
}

.case-detail-list li + li {
    margin-top: 0.5rem;
}

.case-detail-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-tech {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .case-detail-hero {
        padding: 0 0 24px;
    }

    .case-detail-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .case-detail-title {
        font-size: 2.25rem;
    }

    .case-detail-cover {
        height: 240px;
    }

    .case-detail-cards,
    .case-detail-split {
        grid-template-columns: 1fr;
    }
}

/* Другие кейсы (внизу страницы кейса) */
.case-related {
    padding: 30px 0;
    background: var(--white);
}

.case-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-related-header .section-title {
    margin-bottom: 0;
}

.case-related-header .case-detail-back {
    margin-bottom: 0;
}

.case-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.case-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    min-height: 240px;
}

.case-related-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--bg-4);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.case-related-card:hover .case-related-image {
    transform: scale(1.1);
}

.case-related-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 100%);
}

.case-related-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .case-related {
        padding: 30px 0;
    }

    .case-related-grid {
        grid-template-columns: 1fr;
    }

    .case-related-image {
        height: 100%;
    }
}

.cases-wrapper {
    margin: 0;
    width: 100%;
}

.cases-header {
    margin-bottom: 1.5rem;
}

.cases-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0;
    text-align: left;
}

.cases-subtitle {
    color: var(--black);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Styles for form checkbox group */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: -0.5rem; /* Adjust as needed */
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.form-checkbox-group input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    min-width: 1.375rem;
    min-height: 1.375rem;
    border: 2px solid var(--border);
    border-radius: 0.375rem;
    appearance: none; /* Hide default checkbox */
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--white);
    margin-top: 0.125rem; /* Align checkbox with text */
}

.form-checkbox-group input[type="checkbox"]:hover:not(:disabled) {
    border-color: var(--black);
    background-color: var(--gray-50);
}

.form-checkbox-group input[type="checkbox"]:checked {
    background-color: var(--black);
    border-color: var(--black);
}

.form-checkbox-group input[type="checkbox"]:checked:hover {
    background-color: var(--black);
    border-color: var(--black);
}

.form-checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.375rem;
    height: 0.625rem;
    border: solid var(--white);
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    animation: checkmarkAppear 0.2s ease forwards;
}

@keyframes checkmarkAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) rotate(45deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -60%) rotate(45deg) scale(1);
    }
}

.form-checkbox-group input[type="checkbox"]:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-checkbox-group input[type="checkbox"]:focus:checked {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.form-checkbox-group input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--gray-100);
}

.form-checkbox-group input[type="checkbox"]:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-checkbox-group input[type="checkbox"].error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-checkbox-group input[type="checkbox"].error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-checkbox-group label {
    font-size: 0.875rem;
    color: var(--blue-900);
    line-height: 1.8;
    cursor: pointer;
    font-weight: 400; /* Override default label bold */
    margin-bottom: 0; /* Remove default margin for labels in form-group */
}

.form-checkbox-group label a {
    color: var(--black);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.form-checkbox-group label a:hover {
    color: var(--primary-blue);
}

/* Стили для ошибок в формах */
.form-group input.error,
.brief-form-group input.error,
.brief-form-group textarea.error,
.modal-form input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group input.error:focus,
.brief-form-group input.error:focus,
.brief-form-group textarea.error:focus,
.modal-form input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

.field-error::before {
    content: "⚠";
    font-size: 0.9375rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.brief-form-group input[type="text"]::placeholder,
.brief-form-group input[type="tel"]::placeholder {
    color: var(--gray-400);
}


.btn-submit svg {
    transition: transform 0.2s ease;
}

.btn-submit:hover svg {
    transform: translateX(1px);
}

.btn-submit .btn-demo-icon {
    margin-left: 0.5rem;
}

.btn-submit .btn-demo-icon svg {
    width: 14px;
    height: 14px;
}

/* Футер */
.footer {
    background-color: #000000;
    color: var(--gray-300);
    padding: 4rem 0 1rem;
    border-top: 1px solid var(--gray-800);
    width: 100%;
}

.footer-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
}

.footer-column-auto {
    margin: 0 auto;
}


.footer-brand-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 24px;
    height: 24px;
}

.footer-contact-header,
.footer-social-header,
.footer-nav-header {
    min-height: 24px;
    height: 24px;
    display: flex;
    align-items: center;
}

.footer-contact-header h4,
.footer-social-header h4,
.footer-nav-header h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    text-align: left;
    line-height: 1.5;
}



.footer-brand-content {
    display: flex;
    flex-direction: column;
}

.footer-contact-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}


.footer-contact-content a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-contact-content a:hover {
    color: var(--white);
}

.footer-social-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}



.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.025em;
    margin: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
    line-height: 1.5;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo svg {
    flex-shrink: 0;
    color: var(--white);
}

.footer-description {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.footer-nav-content {
    display: flex;
    flex-direction: column;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.footer-nav-list a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-nav-list a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-contact li svg {
    flex-shrink: 0;
    color: var(--gray-500);
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-800);
    gap: 0;
}

.footer-bottom p {
    color: var(--gray-400);
    margin: 0;
    font-size: 0.875rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.footer-links span {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gray-400);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}


.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--bg-4);
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--gray-700);
    transition: all 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background-color: var(--gray-100);
    color: var(--black);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header {
    margin-bottom: 1rem;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--black);
    font-size: 0.9375rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form .form-group {
    margin-bottom: 0;
}

.modal-form textarea {
    min-height: 100px;
}

/* Широкие экраны */
@media (min-width: 1920px) {
    .container {
        max-width: 1440px;
        padding: 0 32px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.75rem;
    }

    .hero-wrapper {
        gap: 4rem;
    }

    .hero-buttons {
        gap: 1.25rem;
    }

    .hero-buttons .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }

    .service-card {
        padding: 2rem;
    }

    .opportunity-card {
        padding: 2.5rem;
    }

    .about-info-card {
        padding: 4rem;
    }

    .about-card-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1280px;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-wrapper {
        gap: 3.5rem;
    }

    .hero-buttons {
        gap: 1rem;
    }
}

/* Планшеты (промежуточные размеры) */
@media (min-width: 900px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 1.5rem;
        margin-left: 1.5rem;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

    .hero-wrapper {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        gap: 0.875rem;
    }

    .hero-buttons .btn {
        padding: 0.625rem 1.125rem;
        font-size: 0.875rem;
    }

    .hero-buttons .btn-demo {
        padding: 0.75rem 1.125rem;
    }

    .about-content {
        gap: 2rem;
    }

    .footer-main {
        gap: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .opportunity-card {
        padding: 1.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-showcase-visual {
        min-height: 350px;
    }

    .case-showcase-image {
        min-height: 350px;
    }

    .form-checkbox-group label {
        line-height: 1.6;
    }


    .projects-carousel-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Планшеты в портретной ориентации */
@media (min-width: 769px) and (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .hero-wrapper {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .about-content {
        gap: 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-column:nth-child(3) {
        grid-column: span 2;
    }


    .section-title {
        font-size: 1.875rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .opportunity-card {
        padding: 1.5rem;
    }
}


/* Карусель проектов */
.projects-carousel {
    padding: 5rem 0;
    background-color: var(--white);
}

.projects-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.carousel-nav {
    display: flex;
    gap: 0.75rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-4);
    color: var(--black);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

/* Мы предлагаем */
.opportunity-card {
    background-color: var(--black);
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.opportunity-card-header {
    margin-bottom: 1.5rem;
}

.opportunity-card-header-highlight {
    background-color: #000000;
    padding: 1.5rem;
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: 1rem 1rem 0 0;
}

.opportunity-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    overflow: hidden;
}

.opportunity-card-title span {
    display: inline-block;
}

.opportunity-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.opportunity-card-body-highlight {
    background-color: #000000;
    padding: 1.5rem;
    margin: -1.5rem -2rem -2rem -2rem;
    border-radius: 0 0 1rem 1rem;
}

.opportunity-card-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.opportunity-card-visual {
    margin-top: auto;
}

.opportunity-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 0.25rem 0.25rem 0 0;
    min-height: 20px;
}

/* Адаптивность */
/* Планшеты - переходный размер */
@media (min-width: 769px) and (max-width: 899px) {
    .nav-links {
        gap: 1.25rem;
        margin-left: 1rem;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

    .hero-wrapper {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .brief-page {
        padding: 3rem 0 4rem;
    }

    .brief-wrapper {
        max-width: 100%;
    }

    .brief-header h1 {
        font-size: 2rem;
    }
    
    .brief-tags {
        gap: 0.5rem;
    }
    
    .brief-tag {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .brief-form-group {
        margin-bottom: 2rem;
    }

    .cases-header {
        margin-bottom: 2rem;
    }

    .cases-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 100%;
        border-radius: 0.75rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 16px;
    }

    .nav-content {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .language-dropdown-menu {
        right: 0;
        left: auto;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.875rem;
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .hero-content-card {
        order: 2;
    }

    .hero-visual-card {
        order: 1;
    }

    .strong-usp::before {
        width: 100%;
        opacity: 0.15;
        background-position: center;
    }
    
    .strong-usp-sticker {
        max-width: 130px;
        max-height: 130px;
    }

    .strong-usp-sticker {
        right: 1.5rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        width: auto;
        flex: 0 1 auto;
        padding: 0.5rem 1rem;
        min-height: 44px;
        height: 44px;
        align-items: center;
        box-sizing: border-box;
    }

    .hero-buttons .btn-secondary {
        min-height: 44px;
        height: 44px;
    }

    .hero-buttons .btn-demo {
        min-height: 44px;
        height: 44px;
    }

    .hero-buttons .btn-demo-icon {
        width: 24px;
        height: 24px;
    }

    .hero-buttons .btn-demo-icon svg {
        width: 12px;
        height: 12px;
    }

    .hero-illustration {
        max-width: 100%;
        min-height: auto;
    }

    .hero-illustration video {
        max-width: 100%;
        width: 100%;
    }

    .section-title {
        font-size: 1.875rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 62px 0;
    }

    .strong-usp-content {
        padding: 2rem 1.5rem;
    }

    .strong-usp-title {
        font-size: 1.625rem;
    }

    .strong-usp-description {
        font-size: 1.125rem;
    }

    .strong-usp-features {
        grid-template-columns: 1fr;
    }

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

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonials-header {
        margin-bottom: 2.5rem;
    }

    .testimonials-subtitle {
        font-size: 0.9375rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-column-auto {
        margin: 0;
    }
    
    .footer-brand-header {
        justify-content: flex-start;
    }
    
    .footer-contact-content,
    .footer-social-content {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        gap: 0;
        text-align: left;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-bottom p {
        text-align: left;
    }


    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .process-item {
        padding: 1.5rem;
    }

    .process-visual {
        top: 0.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-medium,
    .service-card-large {
        grid-column: span 1;
    }

    .service-card {
        width: 100%;
        box-sizing: border-box;
    }

    .cases-showcase {
        grid-template-columns: 1fr;
    }

    .case-showcase-item:nth-child(1),
    .case-showcase-item:nth-child(2),
    .case-showcase-item:nth-child(3),
    .case-showcase-item:nth-child(4),
    .case-showcase-item:nth-child(5),
    .case-showcase-item:nth-child(6),
    .case-showcase-item:nth-child(7),
    .case-showcase-item:nth-child(8),
    .case-showcase-item:nth-child(9),
    .case-showcase-item:nth-child(10){
        grid-column: span 1;
    }

    .case-showcase-visual {
        min-height: 260px;
    }

    .case-showcase-image {
        min-height: 260px;
    }

    .case-card {
        max-width: 100%;
    }

    .case-mockup-container {
        max-width: 100%;
        min-height: 220px;
        padding: 1rem;
    }

    .case-mockup-phone,
    .case-mockup-desktop {
        max-width: 100%;
    }


    .case-mockup-phone {
        width: 120px;
        height: 240px;
    }

    .case-mockup-tablet {
        width: 200px;
        height: 150px;
    }

    .case-mockup-screen {
        grid-template-columns: 1fr;
        min-height: 300px;
    }

    .mockup-sidebar {
        display: none;
    }

    .mockup-main {
        width: 100%;
    }

    .contact-info-row {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-social {
        margin-top: 0;
        padding-top: 2rem;
        border-top: 1px solid var(--border);
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .case-image {
        height: 200px;
    }

    .projects-carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }


    .about-content {
        grid-template-columns: 1fr;
    }

    .about-info-card {
        padding: 2.5rem;
    }

    .about-card-title {
        font-size: 2rem;
    }

    .about-stats-title,
    .about-clients-title {
        font-size: 1.25rem;
    }
    
    .about-clients-title {
        display: block; /* Показан на мобилке */
    }

    .clients-slider-track {
        gap: 2rem;
        animation-duration: 7s;
    }

    .clients-slider-group {
        gap: 2rem;
    }

    .client-logo {
        width: 160px;
        height: 100px;
        padding: 1rem;
    }
}

/* Блок "Наши клиенты" (внутри блока О нас) */
.clients-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-slider-track {
    display: flex;
    gap: 3rem;
    will-change: transform;
    width: fit-content;
    transition: none;
}

.clients-slider-group {
    display: flex;
    gap: 3rem;
    flex-shrink: 0;
}

.client-logo {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
    opacity: 0.7;
    background-color: var(--white);
    border-radius: 0.5rem;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}



@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .about-section {
        padding: 4rem 0;
    }

    .about-content {
        gap: 1rem;
    }

    .about-info-card {
        padding: 2rem;
    }

    .about-info-title {
        font-size: 2.5rem;
    }

    .about-clients-title {
        display: block; /* Показан на мобилке */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .clients-slider-track {
        gap: 1.5rem;
        animation-duration: 5s;
    }

    .clients-slider-group {
        gap: 1.5rem;
    }

    .client-logo {
        width: 120px;
        height: 80px;
        padding: 0.75rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-illustration {
        max-width: 100%;
        min-height: auto;
    }

    .hero-illustration video {
        max-width: 100%;
        width: 100%;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .process-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .process-grid::-webkit-scrollbar {
        display: none;
    }

    .process-item {
        flex: 0 0 85%;
        min-width: 85%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .process-item:first-child {
        margin-left: 0;
    }

    .process-item:last-child {
        margin-right: 1rem;
    }

    .service-card,
    .usp-item {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }



    .opportunity-card {
        padding: 1.5rem;
    }

    .opportunity-card-title {
        font-size: 1.25rem;
    }

    .opportunity-card-header-highlight {
        padding: 1rem;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }

    .opportunity-card-body-highlight {
        padding: 1rem;
        margin: -1rem -1.5rem -1.5rem -1.5rem;
    }


    .usp .opportunity-card {
        padding: 1.25rem;
    }
    
    .usp .opportunity-card-header {
        margin-bottom: 1rem;
    }
    
    .usp .opportunity-card-title {
        font-size: 1.125rem;
    }
    
    .usp .opportunity-card-description {
        font-size: 0.875rem;
    }

    .usp .opportunity-card-title {
        font-size: 1.25rem;
    }

    .usp .opportunity-card-header-highlight {
        padding: 1rem;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }

    .stats {
        padding: 4rem 0;
    }

    .stats-header {
        margin-bottom: 2rem;
    }

    .stats-subtitle {
        font-size: 0.9375rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Первая карточка на всю ширину, остальные две на одной строке */
    .stats-grid .stat-card:first-child {
        grid-column: 1 / -1;
    }

    .stat-number {
        font-size: 2rem;
    }

    .usp .opportunity-card-body-highlight {
        padding: 1rem;
        margin: -1rem -1.5rem -1.5rem -1.5rem;
    }
}

/* Уведомления (Toast Notifications) */
.notification-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: 100%;
    max-width: 480px;
    padding: 0 20px;
}

.notification {
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInUp 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.notification.success {
    background: var(--black);
}

.notification.error {
    background: #dc2626;
}

.notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.notification-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--white);
}

.notification-close {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
    border: none;
    background: none;
    padding: 0;
}

.notification-close:hover {
    color: var(--white);
}

.notification-close svg {
    width: 16px;
    height: 16px;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.notification.hiding {
    animation: slideOutDown 0.3s ease-in forwards;
}

@media (max-width: 480px) {
    .notification-container {
        bottom: 16px;
        padding: 0 16px;
    }

    .notification {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Privacy Policy Page */
.document-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--black);
}

.document-content a {
    color: var(--black);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.document-content a:hover {
    opacity: 0.7;
}

.document-content p {
    margin-bottom: 1.5rem;
    line-height: 1.25;
    white-space: pre-line;
}

.document-section {
    margin-bottom: 1.5rem;
}

.document-section h2 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--black);
}

.document-consent {
    margin-top: 1rem;
}

.document-consent h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--black);
}

.document-last-updated {
    margin-top: 0.5rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* =========================
   Visuals gallery page
   ========================= */
.visuals-page {
    background: var(--bg-4);
}

.visuals-page-header {
    padding: 72px 0 24px;
    background: var(--bg-4);
}

.visuals-page-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.visuals-back {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.visuals-back:hover {
    opacity: 1;
}

.visuals-title {
    font-size: 2.25rem;
    line-height: 1.1;
    margin: 0;
    color: var(--black);
    letter-spacing: -0.02em;
}

.visuals-subtitle {
    margin: 0.75rem 0 0;
    color: var(--gray-700);
    max-width: 780px;
    line-height: 1.5;
}

.visuals-content {
    padding: 24px 0 72px;
}

.visuals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.visuals-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visuals-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.visuals-card-title {
    font-weight: 700;
    color: var(--black);
    line-height: 1.25;
}

.visuals-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--gray-700);
    background: var(--bg-4);
    white-space: nowrap;
}

/* Preview base (reuses same inner classes as USP visuals) */
.visuals-preview.opportunity-visual {
    width: 100%;
    height: 200px;
    padding: 1rem;
    background-color: rgba(1, 1, 1, 0.1);
    border-radius: 0.75rem;
    box-sizing: border-box;
}

/* Bars */
.visuals-preview.opportunity-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.visuals-preview.opportunity-chart .chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 0.25rem 0.25rem 0 0;
    min-height: 20px;
}

/* Rings */
.visuals-preview.opportunity-rings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.visuals-preview.opportunity-rings .ring {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.visuals-preview.opportunity-rings .ring-1 {
    background: conic-gradient(from 180deg, #5282ff 0 70%, rgba(0, 0, 0, 0.08) 70% 100%);
}

.visuals-preview.opportunity-rings .ring-2 {
    background: conic-gradient(from 180deg, #97b4ff 0 45%, rgba(0, 0, 0, 0.08) 45% 100%);
}

.visuals-preview.opportunity-rings .ring-3 {
    background: conic-gradient(from 180deg, #000000 0 85%, rgba(0, 0, 0, 0.08) 85% 100%);
}

/* Tiles */
.visuals-preview.opportunity-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.visuals-preview.opportunity-tiles .tile {
    border-radius: 0.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.visuals-preview.opportunity-tiles .tile-1 {
    background: linear-gradient(135deg, rgba(82, 130, 255, 0.65) 0%, rgba(151, 180, 255, 0.35) 100%);
}

.visuals-preview.opportunity-tiles .tile-2 {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(82, 130, 255, 0.35) 100%);
}

.visuals-preview.opportunity-tiles .tile-3 {
    background: linear-gradient(135deg, rgba(151, 180, 255, 0.65) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.visuals-preview.opportunity-tiles .tile-4 {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(151, 180, 255, 0.55) 100%);
}

/* Dots */
.visuals-preview.visual-dots {
    background-image:
        radial-gradient(circle at 12px 12px, rgba(0,0,0,0.22) 2px, transparent 2.5px);
    background-size: 24px 24px;
}

/* Stripes */
.visuals-preview.visual-stripes {
    background-image:
        repeating-linear-gradient(135deg,
            rgba(82, 130, 255, 0.35) 0 10px,
            rgba(151, 180, 255, 0.20) 10px 20px,
            rgba(0, 0, 0, 0.08) 20px 30px);
}

/* Waves */
.visuals-preview.visual-waves {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visuals-preview.visual-waves svg {
    width: 100%;
    height: 100%;
}

.visuals-preview.visual-waves .wave {
    fill: none;
    stroke-linecap: round;
    stroke-width: 10;
}

.visuals-preview.visual-waves .w1 { stroke: rgba(82,130,255,0.55); }
.visuals-preview.visual-waves .w2 { stroke: rgba(0,0,0,0.22); }
.visuals-preview.visual-waves .w3 { stroke: rgba(151,180,255,0.55); }

/* Sparkline */
.visuals-preview.visual-sparkline {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visuals-preview.visual-sparkline svg {
    width: 100%;
    height: 100%;
}

.visuals-preview.visual-sparkline .spark-fill {
    fill: rgba(82,130,255,0.18);
}

.visuals-preview.visual-sparkline .spark-line {
    fill: none;
    stroke: rgba(82,130,255,0.65);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Gauge */
.visuals-preview.visual-gauge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visuals-preview.visual-gauge .gauge {
    width: 160px;
    height: 160px;
    position: relative;
}

.visuals-preview.visual-gauge .gauge-arc {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: conic-gradient(from 210deg, rgba(82,130,255,0.75) 0 65%, rgba(0,0,0,0.12) 65% 100%);
    -webkit-mask: radial-gradient(circle at center, transparent 58px, #000 59px);
    mask: radial-gradient(circle at center, transparent 58px, #000 59px);
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.25);
}

.visuals-preview.visual-gauge .gauge-needle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 6px;
    background: rgba(0,0,0,0.55);
    border-radius: 999px;
    transform-origin: 0% 50%;
    transform: rotate(-25deg) translateX(0);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.visuals-preview.visual-gauge .gauge-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(0,0,0,0.6);
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.3);
}

@media (max-width: 1024px) {
    .visuals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .visuals-page-header {
        padding-top: 56px;
    }

    .visuals-title {
        font-size: 1.875rem;
    }

    .visuals-grid {
        grid-template-columns: 1fr;
    }

    .visuals-preview.opportunity-visual {
        height: 160px;
        padding: 0.75rem;
    }
}
