@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", 'JetBrains Mono', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #F7F7FA;
    color: #16161d;
    line-height: 1.62;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Подстраницы (кейсы, about, FL и др.): единый UI kit с главной */
body.site-subpage .hero-line {
    display: none;
}

body.site-subpage .quote-section,
body.site-subpage .additional-cards-section,
body.site-subpage .faq-section,
body.site-subpage .philosophy-section,
body.site-subpage .large-card-section,
body.site-subpage .duplicated-cards-section,
body.site-subpage .game-preview-section {
    background: #F7F7FA;
}

body.site-subpage .quote-section {
    background: #f7f7f9;
}

body.site-subpage .case-study-gallery {
    background: #F7F7FA;
}

body.site-subpage .faq-item {
    background: #ffffff;
    border: 0.2px solid rgba(205, 205, 221, 0.55);
    box-shadow: 0 2px 10px rgba(22, 22, 29, 0.05);
}

body.site-subpage .case-study-gallery__item {
    background: #0d1620;
    border: 0.2px solid rgba(205, 205, 221, 0.65);
    box-shadow: 0 4px 20px rgba(22, 22, 29, 0.08);
}

h1, h2, h3, h4, h5, h6 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

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

/* Header */
.header {
    padding: 20px 0 22px;
    position: relative;
    z-index: 20;
    background: rgba(247, 247, 250, 0.78);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(22, 22, 29, 0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-trailing {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #5c5c7b;
}

.lang-switch__link {
    text-decoration: none;
    color: #3a3a4d;
    transition: color 0.2s ease;
}

.lang-switch__link:hover {
    color: #12121a;
}

.lang-switch__current {
    color: #12121a;
    font-weight: 700;
}

.lang-switch__sep {
    color: rgba(92, 92, 123, 0.45);
    user-select: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.logo-icon {
    font-size: 20px;
}

.logo-arrow {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.8;
}

.logo-arrow-left {
    transform: rotate(180deg);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #5c5c7b;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, opacity 0.2s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", 'Inter', sans-serif;
}

/* Логотип: отдельный «техно» акцент */
.logo .nav-link {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: #1a1a1a;
    line-height: 1.15;
}

.nav-link:hover {
    color: #1a1a1a;
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 50px 0 24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero > .container {
    position: relative;
}

.hero.hero--with-embed-preview {
    overflow: visible;
    padding-bottom: 32px;
}

.hero-case-previews {
    position: relative;
    z-index: 1;
    margin: 26px auto 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.hero-case-preview {
    position: relative;
    margin: 0;
}

.hero-case-preview .site-preview-meta {
    margin-top: 12px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Крупные градиентные пятна под кнопкой (только внутри .hero, не заходят на карточки) */
.hero-blobs {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: calc(100% + 80px);
    max-width: 980px;
    height: 300px;
    pointer-events: none;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    filter: blur(36px);
    opacity: 0.62;
    transform: translate3d(0, 0, 0) scale(1);
}

.hero-blob--violet {
    background: radial-gradient(closest-side, rgba(196, 165, 255, 0.5) 0%, rgba(210, 185, 255, 0.16) 44%, rgba(210, 185, 255, 0) 74%);
}

.hero-blob--violet-soft {
    background: radial-gradient(closest-side, rgba(210, 188, 252, 0.4) 0%, rgba(220, 200, 255, 0.12) 52%, rgba(220, 200, 255, 0) 78%);
}

.hero-blob--mint {
    background: radial-gradient(closest-side, rgba(150, 235, 205, 0.44) 0%, rgba(170, 240, 215, 0.15) 46%, rgba(170, 240, 215, 0) 74%);
}

.hero-blob--1 {
    width: 520px;
    height: 460px;
    left: -8%;
    top: 0;
    animation: hero-blob-chaos-a 13.7s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.hero-blob--2 {
    width: 560px;
    height: 480px;
    left: 38%;
    top: 8%;
    animation: hero-blob-chaos-b 17.3s linear infinite;
    animation-delay: -3.1s;
}

.hero-blob--3 {
    width: 460px;
    height: 420px;
    left: 62%;
    top: -6%;
    animation: hero-blob-chaos-c 10.9s cubic-bezier(0.33, 0.12, 0.25, 1) infinite;
    animation-delay: -0.8s;
}

.hero-blob--4 {
    width: 500px;
    height: 440px;
    left: 18%;
    top: 38%;
    animation: hero-blob-chaos-d 15.6s ease-in-out infinite;
    animation-delay: -6.2s;
}

.hero-blob--5 {
    width: 440px;
    height: 400px;
    left: 72%;
    top: 42%;
    animation: hero-blob-chaos-e 12.1s cubic-bezier(0.55, 0.05, 0.22, 0.99) infinite;
    animation-delay: -4.7s;
}

@keyframes hero-blob-chaos-a {
    0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    9% { transform: translate3d(26px, -8px, 0) scale(1.06) rotate(2.2deg); }
    23% { transform: translate3d(-14px, 22px, 0) scale(0.94) rotate(-1.4deg); }
    37% { transform: translate3d(10px, -24px, 0) scale(1.04) rotate(3deg); }
    51% { transform: translate3d(-28px, -6px, 0) scale(0.97) rotate(-2.6deg); }
    64% { transform: translate3d(18px, 26px, 0) scale(1.055) rotate(1deg); }
    78% { transform: translate3d(-8px, -18px, 0) scale(0.92) rotate(-1.1deg); }
    92% { transform: translate3d(22px, 10px, 0) scale(1.02) rotate(2deg); }
    100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}

@keyframes hero-blob-chaos-b {
    0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    12% { transform: translate3d(-22px, 14px, 0) scale(1.035) rotate(-3deg); }
    28% { transform: translate3d(30px, 6px, 0) scale(0.93) rotate(2.4deg); }
    41% { transform: translate3d(-10px, -30px, 0) scale(1.07) rotate(-1.2deg); }
    55% { transform: translate3d(14px, 24px, 0) scale(0.96) rotate(3.2deg); }
    68% { transform: translate3d(-32px, -12px, 0) scale(1.05) rotate(-2deg); }
    83% { transform: translate3d(8px, 18px, 0) scale(0.98) rotate(1.6deg); }
    100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}

@keyframes hero-blob-chaos-c {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    8% { transform: translate3d(-24px, -10px, 0) scale(1.08); }
    19% { transform: translate3d(16px, 28px, 0) scale(0.91); }
    31% { transform: translate3d(28px, -20px, 0) scale(1.05); }
    46% { transform: translate3d(-20px, 8px, 0) scale(0.95); }
    59% { transform: translate3d(6px, -26px, 0) scale(1.06); }
    72% { transform: translate3d(-30px, 20px, 0) scale(0.94); }
    86% { transform: translate3d(12px, 14px, 0) scale(1.03); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes hero-blob-chaos-d {
    0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    14% { transform: translate3d(24px, 20px, 0) scale(1.045) rotate(2.8deg); }
    29% { transform: translate3d(-26px, -8px, 0) scale(0.93) rotate(-2.2deg); }
    43% { transform: translate3d(8px, -28px, 0) scale(1.07) rotate(1.4deg); }
    57% { transform: translate3d(-18px, 24px, 0) scale(0.96) rotate(-3deg); }
    71% { transform: translate3d(30px, -6px, 0) scale(1.04) rotate(2deg); }
    87% { transform: translate3d(-12px, -22px, 0) scale(0.97) rotate(-1deg); }
    100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}

@keyframes hero-blob-chaos-e {
    0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    11% { transform: translate3d(20px, -22px, 0) scale(1.06) rotate(3.4deg); }
    26% { transform: translate3d(-28px, 12px, 0) scale(0.92) rotate(-2.8deg); }
    39% { transform: translate3d(12px, 26px, 0) scale(1.05) rotate(1.8deg); }
    54% { transform: translate3d(26px, -14px, 0) scale(0.95) rotate(-2deg); }
    69% { transform: translate3d(-16px, -20px, 0) scale(1.065) rotate(2.6deg); }
    84% { transform: translate3d(-8px, 16px, 0) scale(0.97) rotate(-1.4deg); }
    100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none !important;
    }
}

.hero-icon {
    margin-bottom: 16px;
    opacity: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hero-label {
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6b6b86;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: 64px;
    font-weight: 500;
    line-height: 1.14;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.035em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45),
        0 10px 32px rgba(100, 100, 140, 0.14),
        0 2px 4px rgba(22, 22, 29, 0.04);
    position: relative;
    z-index: 1;
    color: #12121a;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18%;
    height: 22%;
    background: #F1FFFA;
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

.hero-line {
    display: block;
    margin: 16px auto;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

.hero-subtitle {
    font-size: 12.6px;
    color: #49496D;
    margin: 16px auto;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle-section {
    padding: 20px 0;
    text-align: center;
}

.hero-subtitle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hero-subtitle-section .hero-line {
    margin: 5px auto;
}

.hero-subtitle-section .hero-subtitle {
    margin: 5px auto;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 80px;
}

.hero-cta::before {
    content: '';
    flex: 1 1 auto;
    order: 1;
}


.hero-cta::after {
    content: '';
    flex: 1 1 auto;
    order: 4;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #141418;
    color: #fafafa;
    border: 1px solid rgba(224, 224, 235, 0.65);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    font-size: 13px;
    letter-spacing: 0.01em;
    order: 2;
    box-shadow:
        0 2px 4px rgba(22, 22, 29, 0.08),
        0 12px 28px rgba(22, 22, 29, 0.12);
}

.cta-button:hover {
    transform: translateY(-2px);
    border-color: rgba(205, 205, 221, 0.9);
    box-shadow:
        0 4px 8px rgba(22, 22, 29, 0.1),
        0 18px 40px rgba(22, 22, 29, 0.16);
}

.cta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.cta-text {
    text-align: left;
}

.cta-line1 {
    font-weight: 600;
    line-height: 1.4;
}

.cta-line2 {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Низ главной: кейсы + CTA — блюры от низа блока вверх под сетку, без обрезки */
.home-tail-glow {
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.home-tail-glow > .cases,
.home-tail-glow > .bottom-cta {
    position: relative;
    z-index: 1;
}

.home-tail-blobs.hero-blobs {
    bottom: 0;
    top: auto;
    transform: translateX(-50%);
    height: min(56vw, 560px);
    z-index: 0;
}

.bottom-cta {
    position: relative;
    overflow: visible;
    padding: 40px 0 36px;
    background: #f7f7fa;
    border-top: 1px solid rgba(22, 22, 29, 0.05);
}

.bottom-cta > .container {
    position: relative;
}

.bottom-cta-content {
    position: relative;
    z-index: 1;
}

.bottom-cta .hero-cta {
    margin-top: 0;
    margin-bottom: 0;
}

.works-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
    font-family: 'Inter', sans-serif;
    order: 3;
}

.works-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Превью сайта на странице кейса (FL и др.) — тот же фон, что у body, без отдельной «карточки» */
.site-preview-section {
    padding: 8px 0 28px;
    background: #f7f7fa;
}

.site-preview-section .site-preview-frame {
    max-width: 1100px;
    margin: 0 auto;
    height: min(68vh, 560px);
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: #f7f7fa;
}

.site-preview-section iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Длинный скрин макета: видно «окно» фиксированной высоты, остальное — прокрутка внутри (как у iframe) */
.site-preview-frame.site-preview-frame--image-scroll {
    max-width: 1100px;
    margin: 0 auto;
    height: min(68vh, 560px);
    border-radius: 16px;
    overflow: hidden;
    border: 0.2px solid rgba(205, 205, 221, 0.65);
    box-shadow: 0 4px 20px rgba(22, 22, 29, 0.08);
    background: #1a1520;
}

.site-preview-frame.site-preview-frame--image-scroll .site-preview-frame__scroll {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.site-preview-frame.site-preview-frame--image-scroll .site-preview-frame__scroll img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.site-preview-section.site-preview-section--static {
    padding: 16px 0 12px;
}

/* Кейс yolga.pro: превью видео — object-fit: cover подрезает вшитую в запись чёрную кромку справа (без перекодирования) */
.site-preview-section.site-preview-section--yolga .case-study-yolga-videos {
    padding: 0;
    max-width: 100%;
    background: #f7f7fa;
    border-color: rgba(200, 200, 215, 0.65);
    box-shadow: 0 2px 14px rgba(22, 22, 29, 0.07);
    overflow: hidden;
    border-radius: 12px;
}

.site-preview-section.site-preview-section--yolga .case-study-yolga-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: min(72vh, 640px);
    max-height: min(72vh, 640px);
    object-fit: cover;
    object-position: 40% 50%;
    margin: 0;
    border-radius: 0;
    vertical-align: top;
    background: #f7f7fa;
    transform: scale(1.035);
    transform-origin: center center;
}

@media (max-width: 768px) {
    .site-preview-section.site-preview-section--yolga .case-study-yolga-video {
        height: min(88vh, 640px, calc((100vw - 56px) * 16 / 9));
        max-height: min(88vh, 640px);
    }
}

.site-preview-section.site-preview-section--yolga .case-study-yolga-videos--window {
    margin-top: 28px;
}

.site-preview-section.site-preview-section--yolga .case-study-full-preview--external-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.site-preview-section.site-preview-section--yolga .case-study-full-preview--external-link:hover {
    opacity: 0.92;
}

.site-preview-section.site-preview-section--yolga .site-preview-yolga-cta {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #49496d;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.site-preview-section.site-preview-section--yolga .site-preview-yolga-cta:hover {
    background: #3d3d5c;
}

.site-preview-section--yolga .yolga-project-block {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 40px;
    padding-bottom: 36px;
    border-top: 1px solid rgba(205, 205, 221, 0.55);
}

/* Три плашки (инфо / видео / подписка): линия только снизу, не над карточками */
.site-preview-section--yolga .yolga-project-block--before-second-video {
    border-top: none;
    padding-top: 16px;
    padding-bottom: 0;
}

.site-preview-section--yolga .yolga-project-block--before-second-video .yolga-divider {
    margin: 28px 0 0;
}

/* Плашки после записи админки: линия снизу, без линии над карточками */
.site-preview-section--yolga .yolga-project-block--after-second-video {
    border-top: none;
    padding-top: 16px;
    padding-bottom: 0;
}

.site-preview-section--yolga .yolga-divider--after-admin-tabs {
    margin: 28px 0 12px;
}

.site-preview-section--yolga .quote-section--yolga-inline {
    padding: 8px 0 16px;
    background: transparent;
}

.site-preview-section--yolga .quote-section--yolga-before-first-video {
    padding: 8px 0 24px;
    margin-bottom: 0;
    background: transparent;
}

.site-preview-section--yolga .quote-section--yolga-before-second-video {
    padding: 28px 0 24px;
    margin-bottom: 0;
    background: transparent;
}

.site-preview-section--yolga .quote-section--yolga-inline .quote-subtitle--yolga-method {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.site-preview-section--yolga .features--yolga-inline {
    padding: 12px 0 8px;
    background: transparent;
}

.site-preview-section--yolga .site-preview-meta--yolga-after-cards {
    margin-top: 24px;
    margin-bottom: 8px;
}

.site-preview-section--yolga .yolga-divider {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(200, 200, 215, 0.95);
    margin: 36px 0 0;
    max-width: 100%;
    clear: both;
}

/* Кейс йога: описание проекта (аккордеон как FAQ) */
.case-yolga-project-description {
    padding: 80px 0 56px;
}

.case-yolga-project-description .quote-content {
    max-width: 960px;
    align-items: stretch;
}

.case-yolga-project-description-faq {
    width: 100%;
    max-width: 960px;
    margin: 28px auto 0;
    text-align: left;
}

.case-yolga-project-description-faq .faq-list {
    gap: 14px;
}

.case-yolga-project-description-faq .faq-item.active .faq-answer {
    max-height: 2000px;
}

.case-yolga-project-description-faq .faq-answer p + p {
    margin-top: 12px;
}

@media (max-width: 600px) {
    .case-yolga-project-description-faq .faq-question {
        padding: 18px 20px;
        font-size: 16px;
    }

    .case-yolga-project-description-faq .faq-answer {
        padding: 0 20px;
    }

    .case-yolga-project-description-faq .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

/* Фотохостинг (case13): два превью рядом — видео записей экрана */
.site-preview-section.site-preview-section--photohosting {
    padding: 20px 0 16px;
}

.site-preview-section.site-preview-section--photohosting .site-preview-block {
    margin-bottom: 36px;
}

.site-preview-section.site-preview-section--photohosting .site-preview-block:last-of-type {
    margin-bottom: 8px;
}

.site-preview-section.site-preview-section--photohosting .site-preview-block-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 auto 14px;
    max-width: 1100px;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.site-preview-section.site-preview-section--photohosting .site-preview-frame {
    /* Полная ширина скрина 1024px — превью крупнее, без лишнего даунскейла */
    max-width: min(1024px, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #0a0a0c;
    border: 0.2px solid rgba(205, 205, 221, 0.55);
    box-shadow: 0 4px 24px rgba(22, 22, 29, 0.12);
    height: min(90vh, 860px);
}

/* Второй скрин фотохостинга: узкий вертикальный макет (только iframe/скрин, не видео) */
.site-preview-section.site-preview-section--photohosting .site-preview-block--photohosting-portrait .site-preview-frame:not(.site-preview-frame--photohosting-video) {
    max-width: min(680px, 100%);
    height: min(92vh, 1040px);
}

/* Видео фотохостинга: горизонтальная ориентация (16:9) */
.site-preview-section.site-preview-section--photohosting .site-preview-frame--photohosting-video {
    max-width: min(1100px, 100%);
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

/* Фотохостинг: тёмная и светлая тема — по центру, друг под другом */
.site-preview-duo.site-preview-duo--photohosting {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin-bottom: 8px;
}

.site-preview-duo.site-preview-duo--photohosting .site-preview-block {
    flex: 0 0 auto;
    min-width: 0;
    width: min(1100px, 100%);
    margin-bottom: 0;
}

.site-preview-duo.site-preview-duo--photohosting .site-preview-block-title {
    text-align: center;
    max-width: none;
    width: 100%;
}

.site-preview-duo.site-preview-duo--photohosting .site-preview-block--photohosting-light .site-preview-frame {
    max-width: min(1100px, 100%);
    margin-left: auto;
    margin-right: auto;
    background: #ececee;
    border-color: rgba(170, 170, 185, 0.55);
}

.site-preview-section.site-preview-section--photohosting .site-preview-frame--photohosting-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0a0c;
    vertical-align: top;
    transform: scale(1.05);
    transform-origin: center center;
}

.site-preview-section.site-preview-section--photohosting .site-preview-block--photohosting-light .site-preview-frame--photohosting-video video {
    background: #ececee;
}

.site-preview-section.site-preview-section--photohosting .site-preview-meta {
    margin-top: 8px;
}

/* Автоинструктор (case16): hero в формате FL — верхний лейбл CAPS, жирный h1, нижний CAPS */
body.case-autoinstructor .hero .hero-title {
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.case-autoinstructor .hero .hero-subtitle {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

/* Автоинструктор (case16): каждый ряд — видео + три плашки в колонке */
.site-preview-section.site-preview-section--autoinstructor {
    padding: 12px 0 48px;
}

.autoinstructor-preview-stack {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.site-preview-section.site-preview-section--autoinstructor .autoinstructor-preview-chunk {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Подзаголовки секций: как quote-headline — уголки, заголовок, CAPS с трекингом */
.site-preview-section.site-preview-section--autoinstructor .autoinstructor-chunk-head.quote-headline {
    display: block;
    width: 100%;
    max-width: none;
    text-align: center;
    margin: 0 0 20px;
    padding: 22px 28px 26px;
    box-sizing: border-box;
}

.site-preview-section.site-preview-section--autoinstructor .autoinstructor-chunk-head .autoinstructor-chunk-head__title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", 'Inter', sans-serif;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 600;
    color: #000000;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.site-preview-section.site-preview-section--autoinstructor .autoinstructor-chunk-head .quote-subtitle {
    margin-top: 26px;
    margin-bottom: 0;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

.autoinstructor-preview-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 22px;
}

.autoinstructor-preview-video-col {
    flex: 0 1 40%;
    max-width: 380px;
    min-width: 0;
}

.site-preview-section.site-preview-section--autoinstructor .site-preview-auto-video-wrap.autoinstructor-preview-video-col {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 0;
}

.autoinstructor-preview-plaques {
    flex: 1 1 56%;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px;
    margin: -10px;
    padding-top: 32px;
    overflow: visible;
    box-sizing: border-box;
    align-self: stretch;
    min-height: 0;
}

.site-preview-section.site-preview-section--autoinstructor .site-preview-auto-video-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 0.2px solid rgba(205, 205, 221, 0.65);
    box-shadow: 0 4px 20px rgba(22, 22, 29, 0.08);
    background: #0a0a0c;
}

.site-preview-section.site-preview-section--autoinstructor .site-preview-auto-video-wrap video {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    vertical-align: top;
    object-fit: contain;
    background: #0a0a0c;
    flex-shrink: 1;
}

.site-preview-section.site-preview-section--autoinstructor .feature-card.feature-card--autoinstructor-plaque {
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transform-origin: center center;
    position: relative;
    z-index: 0;
    min-height: 0;
    flex: 1 1 auto;
    padding: 18px 20px 20px;
    border: 0.2px solid #CDCDDD;
    box-shadow: 0 4px 12px rgba(224, 224, 255, 0.3);
}

.site-preview-section.site-preview-section--autoinstructor .feature-card--autoinstructor-plaque .feature-header {
    margin-bottom: 12px;
}

.site-preview-section.site-preview-section--autoinstructor .feature-card--autoinstructor-plaque .feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", 'Inter', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.site-preview-section.site-preview-section--autoinstructor .feature-card--autoinstructor-plaque .feature-list {
    margin-bottom: 0;
}

.site-preview-section.site-preview-section--autoinstructor .feature-card--autoinstructor-plaque .feature-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.site-preview-section.site-preview-section--autoinstructor .feature-card--autoinstructor-plaque .feature-doc {
    position: static;
    width: 70%;
    max-width: 190px;
    margin: 18px 0 0 auto;
    transform: none;
    left: auto;
    align-self: flex-end;
    display: block;
}

.case-study-full-preview {
    margin: 0 auto;
    max-width: 1100px;
    border-radius: 16px;
    overflow: hidden;
    border: 0.2px solid rgba(205, 205, 221, 0.65);
    box-shadow: 0 4px 20px rgba(22, 22, 29, 0.08);
    background: #fff;
}

.case-study-full-preview img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.site-preview-meta {
    text-align: center;
    font-size: 12.6px;
    color: #49496d;
    margin: 14px auto 0;
    max-width: 640px;
    line-height: 1.45;
}

.site-preview-summary {
    text-align: center;
    font-size: 15px;
    color: #49496d;
    line-height: 1.6;
    max-width: 720px;
    margin: 20px auto 0;
}

.site-preview-summary strong {
    font-weight: 600;
    color: #3a3d52;
}

.site-preview-summary a {
    color: #49496d;
    text-decoration: underline;
}

.game-preview-section {
    padding: 28px 0 12px;
    background: #f7f7fa;
}

.game-preview-section .case-study-gallery__title {
    margin-bottom: 18px;
}

.game-preview-figure {
    margin: 0 auto;
    max-width: 920px;
    border-radius: 16px;
    overflow: hidden;
    border: 0.2px solid rgba(205, 205, 221, 0.65);
    box-shadow: 0 4px 20px rgba(22, 22, 29, 0.08);
}

.game-preview-figure img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.site-preview-section.site-preview-section--game {
    padding: 20px 0 28px;
}

.site-preview-play-here {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.site-preview-section.site-preview-section--game .site-preview-frame.site-preview-frame--game {
    max-width: 100%;
    width: 100%;
    height: min(88vh, 920px);
}

/* Обрезка верхней панели (заголовок и счётчики) во встроенном превью игры */
.site-preview-section.site-preview-section--game .site-preview-frame.site-preview-frame--crop-top {
    position: relative;
    overflow: hidden;
}

.site-preview-section.site-preview-section--game .site-preview-frame--crop-top iframe {
    position: absolute;
    left: 0;
    top: -14%;
    width: 100%;
    height: 118%;
    border: 0;
}

/* Вертикальная галерея слайдов кейса (case8 и др.) */
.case-study-gallery {
    padding: 36px 0 40px;
    background: #f7f7fa;
}

.case-study-gallery__title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 22px;
    text-align: center;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.case-study-gallery__grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.case-study-gallery__item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 0.2px solid #cdcddd;
    background: #0d1620;
    box-shadow: 0 4px 18px rgba(22, 22, 29, 0.09);
}

.case-study-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

/* Features Section */
.features {
    padding: 8px 0 0;
    background: #F7F7FA;
    position: relative;
}

.features::before {
    display: none;
}

.features::after {
    display: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.service-card {
    display: block;
    background: #ffffff;
    border: 1px solid rgba(205, 205, 221, 0.75);
    border-radius: 18px;
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: transform 0.22s ease, border-color 0.22s ease, outline-color 0.22s ease, box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
    outline: 1px solid rgba(205, 205, 221, 0.55);
    outline-offset: 5px;
    box-shadow:
        0 1px 2px rgba(22, 22, 29, 0.03),
        0 10px 28px rgba(70, 70, 100, 0.06);
}

.service-card-muted {
    background: #F7F7FA;
}

.service-number {
    display: none;
}

.service-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    gap: 8px;
    margin-bottom: 12px;
}

.service-check {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
}

.service-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #12121a;
    letter-spacing: -0.02em;
    text-align: left;
    width: 100%;
}

.service-description {
    margin: 0 0 14px 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(82, 82, 102, 0.9);
    text-align: left;
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-3px);
        border-color: rgba(191, 193, 214, 0.95);
        outline-color: rgba(191, 193, 214, 0.75);
        box-shadow:
            0 2px 4px rgba(22, 22, 29, 0.04),
            0 16px 40px rgba(70, 70, 100, 0.09);
    }

}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

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

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(224, 224, 255, 0.3);
    border: 0.2px solid #CDCDDD;
    min-height: 450px;
    transform: scale(0.95);
    transform-origin: center;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 0.2px solid #CDCDDD;
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}


.feature-card:hover {
    box-shadow: 0 8px 24px rgba(224, 224, 255, 0.4);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-check {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.feature-step {
    font-size: 12px;
    letter-spacing: 1px;
    color: #49496D;
    font-weight: 600;
}

.feature-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.feature-list {
    list-style: none;
    margin-bottom: 60px;
}

.feature-list li {
    padding: 4px 0;
    color: #49496D;
    position: relative;
    padding-left: 20px;
}

.feature-list li:last-child {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #49496D;
    font-size: 20px;
}

.feature-link {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.feature-link:hover {
    opacity: 0.7;
}

.feature-doc {
    width: calc(78% + 32px);
    height: auto;
    margin: 40px auto 0 auto;
    object-fit: contain;
    display: block;
    border-radius: 0 0 16px 16px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Cases Section */
.cases {
    padding: 88px 0 96px;
    background: #F7F7FA;
}

.cases-filters-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    padding: 16px 0;
}

.cases-filters-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, transparent 8%, rgba(224, 224, 235, 0.4) 12%, rgba(224, 224, 235, 0.4) 88%, transparent 92%, transparent 100%);
    pointer-events: none;
}

.cases-filters-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, transparent 8%, rgba(224, 224, 235, 0.4) 12%, rgba(224, 224, 235, 0.4) 88%, transparent 92%, transparent 100%);
    pointer-events: none;
}

.cases-filters-scroll {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    overflow: visible;
}

.filter-btn--all {
    flex: 0 0 auto;
}

.cases-filters-distributed {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cases-filters-distributed::-webkit-scrollbar {
    display: none;
}

/* не сжимать подписи ниже ширины текста — иначе строки наезжают друг на друга */
.cases-filters-distributed .filter-btn {
    flex: 1 1 auto;
    min-width: max-content;
    padding: 10px 10px;
    text-align: center;
}

.filter-btn--more {
    flex: 0 0 auto;
    padding: 10px 14px;
    min-width: 48px;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.02em;
    align-self: center;
    color: #2a2a3a;
    font-weight: 700;
    opacity: 1;
}

.filter-btn--more:hover {
    color: #12121a;
}

.filter-btn--more-active {
    font-weight: 600;
    color: #12121a;
}

.filter-btn--more-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3a3a48 20%, #3a3a48 80%, transparent);
    border-radius: 2px;
}

.cases-filters-extra {
    position: absolute;
    top: calc(100% - 8px);
    right: 0;
    z-index: 30;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(18, 18, 29, 0.12), 0 0 0 1px rgba(224, 224, 235, 0.6);
    padding: 10px 12px;
    max-width: min(340px, 92vw);
}

.cases-filters-extra-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: flex-end;
}

.cases-filters-extra .filter-btn {
    flex: 0 0 auto;
    padding: 8px 10px;
    text-align: center;
}

.cases-filters-spacer {
    display: none;
}

.filter-btn {
    background: none;
    border: none;
    color: #5c5c78;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: 10px 12px;
    position: relative;
    transition: color 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    flex: 0 0 auto;
    text-align: center;
}

.filter-btn:hover {
    color: #16161d;
    opacity: 1;
}

.filter-btn.active {
    font-weight: 600;
    color: #12121a;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3a3a48 20%, #3a3a48 80%, transparent);
    border-radius: 2px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
    grid-auto-flow: row;
}

.case-card {
    border-radius: 18px;
    overflow: visible;
    border: 1px solid rgba(205, 205, 221, 0.7);
    transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
    position: relative;
    box-shadow:
        0 1px 2px rgba(22, 22, 29, 0.04),
        0 10px 28px rgba(70, 70, 100, 0.07);
    padding: 7px;
    background: #ffffff;
    transform: scale(0.99);
    transform-origin: center;
}

.case-card::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid rgba(205, 205, 221, 0.45);
    border-radius: 22px;
    z-index: -1;
    pointer-events: none;
}

.case-card:hover {
    border-color: rgba(191, 193, 214, 0.85);
    box-shadow:
        0 4px 8px rgba(22, 22, 29, 0.06),
        0 20px 48px rgba(60, 60, 90, 0.11);
    transform: translateY(-4px) scale(0.99);
}

.case-card.selected {
    border-color: #9333ea;
}

.case-card.hidden {
    display: none;
}

.case-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    overflow: hidden;
    border-radius: 12px;
}

.case-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #9333ea 100%);
    opacity: 0.6;
    mix-blend-mode: overlay;
}

.case-image--no-overlay::before {
    display: none;
}

/* обложка кейса «Маркетплейс цветов»: исходный кадр слегка наклонён по часовой — поворот против + zoom скрывают чёрные углы */
.case-image--flower-market-cover {
    background: #c8d8e8;
}

.case-image--flower-market-cover .case-cover-img--flower-market {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 118%;
    height: 118%;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%) rotate(-3.4deg) scale(1.04);
    transform-origin: center center;
}

.case-image--has-video .case-media-poster {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: calc(100% + 20px);
    object-fit: cover;
    object-position: top center;
    z-index: 0;
}

.case-video {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: calc(100% + 20px);
    object-fit: cover;
    object-position: top center;
    z-index: 1;
    display: block;
}

.case-video.case-video--unavailable {
    display: none;
}

.case-logo {
    display: none;
}

.case-overlay {
    display: none;
}

.case-text-left {
    display: none;
}

.case-text-right {
    display: none;
}

.case-info {
    padding: 7px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3.36px;
}

.case-title {
    font-size: 12.8px;
    font-weight: 400;
    margin: 0;
    margin-top: 7px;
    color: #1a1a1a;
    font-family: 'JetBrains Mono', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-caption {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: #49496D;
    font-weight: 400;
    max-width: 100%;
}

.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.case-tag {
    font-size: 12px;
    color: #49496D;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.case-tag::before {
    content: '#';
    color: #D6D6E2;
    margin-right: 2px;
}

/* Хештеги (#) только на главной в сетке кейсов; на внутренних — без префикса */
body.site-subpage .case-tag::before {
    content: none;
    margin-right: 0;
}

/* Ряд тегов под подзаголовком в шапке кейса — без «хештегов», не дублируем карточку главной */
body.site-subpage .hero-case-tags {
    display: none;
}

.hero-case-tags {
    justify-content: center;
    max-width: 720px;
    margin: 4px auto 0;
}

.cases-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.pagination-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 32px;
    height: 8px;
    border-radius: 999px;
    background: #D6D6E2;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.dot.active {
    background: #9333ea;
    box-shadow: 0 2px 4px rgba(147, 51, 234, 0.3);
}

.pagination-arrows {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: #E0E0EB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.arrow-btn.prev {
    background: #E0E0EB;
}

.arrow-btn.next {
    background: #E0E0EB;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.arrow-btn.prev .arrow-icon {
    transform: rotate(180deg);
    filter: brightness(0) saturate(100%) invert(44%) sepia(4%) saturate(1200%) hue-rotate(220deg) brightness(95%) contrast(90%);
}

.arrow-btn.next .arrow-icon {
    filter: brightness(0) saturate(100%) invert(44%) sepia(4%) saturate(1200%) hue-rotate(220deg) brightness(95%) contrast(90%);
}

.arrow-btn:hover:not(:disabled) {
    opacity: 0.8;
}

.arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Results Section */
.results {
    padding: 120px 0;
    background: #F2F2F7;
}

.results-header {
    text-align: center;
    margin-bottom: 80px;
}

.results-icon {
    font-size: 32px;
    margin-bottom: 24px;
    opacity: 0.6;
}

.results-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #49496D;
    margin-bottom: 32px;
}

.results-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.title-bracket {
    color: #e5e5e5;
    font-size: 80px;
    font-weight: 300;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.title-bracket:first-child {
    left: -60px;
}

.title-bracket:last-child {
    right: -60px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.step-card {
    background: #F2F2F7;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 6px;
    background: linear-gradient(135deg, #9333ea, #EBFEF6);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.step-card.large {
    grid-column: 1 / -1;
}

.step-content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.step-main {
    position: relative;
}

.step-number {
    font-size: 12px;
    letter-spacing: 1px;
    color: #49496D;
    font-weight: 600;
    margin-bottom: 16px;
}

.step-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.step-description {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 12px;
}

.step-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    opacity: 0.1;
    background-image: radial-gradient(circle, #666 2px, transparent 2px);
    background-size: 20px 20px;
    pointer-events: none;
}

.step-pattern.dense {
    background-size: 15px 15px;
}

.step-pattern.right {
    right: 0;
    left: auto;
}

.step-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 200px;
}

.metric-card {
    background: #F2F2F7;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e5e5;
}

.metric-value {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1;
}

.metric-label {
    font-size: 14px;
    color: #49496D;
    line-height: 1.4;
}

/* Philosophy Section */
.philosophy-card {
    background: #F2F2F7;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 80px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.philosophy-card::before {
    display: none;
}

.philosophy-text {
    font-size: 20px;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Final CTA Section */
.final-cta {
    text-align: center;
}

.final-cta-text {
    font-size: 24px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-arrows {
    display: flex;
    gap: 8px;
    color: #e5e5e5;
    font-size: 24px;
}

.cta-arrows span {
    display: block;
}

.final-cta-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 26px;
    background: #1a1a1a;
    color: white;
    border: 4px solid #E0E0EB;
    border-radius: 40px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 16px;
}

.final-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 224, 255, 0.15);
}

.final-cta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.final-cta-text-content {
    text-align: left;
}

.final-cta-line1 {
    font-weight: 600;
    line-height: 1.4;
}

.final-cta-line2 {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .site-preview-section .site-preview-frame {
        height: min(48vh, 380px);
    }

    .site-preview-section.site-preview-section--photohosting .site-preview-frame {
        max-width: 100%;
        height: min(78vh, 820px);
    }

    .site-preview-section.site-preview-section--photohosting .site-preview-block--photohosting-portrait .site-preview-frame:not(.site-preview-frame--photohosting-video) {
        height: min(82vh, 960px);
    }

    .site-preview-section.site-preview-section--photohosting .site-preview-frame--photohosting-video {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .site-preview-duo.site-preview-duo--photohosting {
        gap: 28px;
    }

    .site-preview-duo.site-preview-duo--photohosting .site-preview-block {
        width: 100%;
    }

    .site-preview-duo.site-preview-duo--photohosting .site-preview-block--photohosting-light .site-preview-frame {
        max-width: 100%;
    }

    .autoinstructor-preview-row {
        flex-direction: column;
    }

    .autoinstructor-preview-plaques {
        min-width: 0;
        flex-direction: column;
        padding-top: 12px;
    }

    .autoinstructor-preview-video-col {
        max-width: none;
        flex: 1 1 100%;
    }

    .autoinstructor-preview-stack {
        gap: 26px;
    }

    .site-preview-section.site-preview-section--autoinstructor .autoinstructor-chunk-head.quote-headline {
        padding: 18px 20px 22px;
        margin-bottom: 14px;
    }

    .site-preview-section.site-preview-section--autoinstructor .autoinstructor-chunk-head .autoinstructor-chunk-head__title {
        font-size: 22px;
    }

    .site-preview-section.site-preview-section--autoinstructor .autoinstructor-chunk-head .quote-subtitle {
        font-size: 10px;
        letter-spacing: 0.14em;
        margin-top: 20px;
    }

    .site-preview-frame.site-preview-frame--image-scroll {
        height: min(48vh, 380px);
    }

    .site-preview-section.site-preview-section--game .site-preview-frame.site-preview-frame--game {
        height: min(78vh, 720px);
    }

    .site-preview-section.site-preview-section--game .site-preview-frame--crop-top iframe {
        top: -11%;
        height: 115%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .nav {
        gap: 16px;
    }

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

    .cases-filters-wrap {
        padding-bottom: 8px;
    }

    .cases-filters-scroll {
        gap: 8px;
        justify-content: flex-start;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .case-text-left {
        font-size: 20px;
    }

    .case-text-right {
        font-size: 11px;
        max-width: 150px;
    }

    .results-title {
        font-size: 40px;
    }

    .title-bracket {
        font-size: 50px;
    }

    .title-bracket:first-child {
        left: -40px;
    }

    .title-bracket:last-child {
        right: -40px;
    }

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

    .step-card.large {
        grid-column: 1;
    }

    .step-content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-metrics {
        flex-direction: row;
        min-width: auto;
    }

    .metric-card {
        flex: 1;
    }

    .metric-value {
        font-size: 36px;
    }

    .philosophy-card {
        padding: 32px 24px;
    }

    .philosophy-text {
        font-size: 18px;
    }

    .final-cta-text {
        font-size: 20px;
    }

    .final-cta-wrapper {
        flex-direction: column;
    }

    .cta-arrows {
        display: none;
    }
}

/* Quote Section — заголовок + подзаголовок в CAPS, тонкие уголки #d1d5f0 */
.quote-section {
    padding: 80px 0 0;
    background: #f7f7f9;
    text-align: center;
}

.quote-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.quote-logo {
    margin-bottom: 0;
}

.quote-logo .hero-icon {
    display: none;
}

.quote-tagline {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #49496D;
    margin-top: 0;
}

.quote-line1,
.quote-line2 {
    line-height: 1.4;
}

.quote-headline {
    position: relative;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    padding: 26px 36px 30px;
    max-width: min(960px, 100%);
    box-sizing: border-box;
}

.quote-headline::before,
.quote-headline::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    pointer-events: none;
}

.quote-headline::before {
    top: 0;
    left: 0;
    border-top: 1.5px solid #d1d5f0;
    border-left: 1.5px solid #d1d5f0;
}

.quote-headline::after {
    bottom: 0;
    right: 0;
    border-bottom: 1.5px solid #d1d5f0;
    border-right: 1.5px solid #d1d5f0;
}

.quote-title {
    font-size: 48px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.15;
    position: relative;
}

.quote-subtitle {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4a4e69;
    margin: 12px 0 0;
    line-height: 1.45;
    font-weight: 400;
}

.quote-note {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    color: #49496d;
    max-width: 640px;
    margin: 16px auto 0;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .quote-headline {
        padding: 20px 24px 24px;
    }

    .quote-headline::before,
    .quote-headline::after {
        width: 22px;
        height: 22px;
    }

    .quote-headline::before {
        border-width: 1px;
    }

    .quote-headline::after {
        border-width: 1px;
    }

    .quote-title {
        font-size: 28px;
        padding: 0;
    }

    .quote-subtitle {
        font-size: 10px;
        letter-spacing: 0.14em;
        margin-top: 10px;
    }

    .quote-tagline {
        font-size: 12px;
    }
}

/* Large Card Section */
.large-card-section {
    padding: 0;
    background: #FBFBFD;
}

.large-card-wrapper {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.large-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(224, 224, 255, 0.3);
    border: 0.2px solid #CDCDDD;
    width: calc((3 * 300px + 2 * 24px) * 1.5);
    max-width: 100%;
    transform: scale(0.95);
    transform-origin: center;
}

.large-card::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 0.2px solid #CDCDDD;
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

.large-card:hover {
    box-shadow: 0 8px 24px rgba(224, 224, 255, 0.4);
}

@media (max-width: 768px) {
    .large-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Additional Cards Section */
.additional-cards-section {
    padding: 0;
    background: #FBFBFD;
}

.additional-cards-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.additional-cards-grid--single {
    grid-template-columns: 1fr;
    max-width: 920px;
}

.small-cards-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.small-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(224, 224, 255, 0.3);
    border: 0.2px solid #CDCDDD;
    transform: scale(0.95);
    transform-origin: center;
}

.small-card::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 0.2px solid #CDCDDD;
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

.small-card-number {
    font-size: 48px;
    font-weight: 400;
    color: #1A1A1A;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.small-card .small-card-number {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.small-card-text {
    font-size: 14px;
    color: #49496D;
    line-height: 1.4;
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 8px;
}

.tech-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #F2F2F7;
    border-radius: 6px;
    font-size: 12px;
    color: #49496D;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: #E0E0E8;
    color: #1A1A1A;
    transform: translateY(-1px);
}

.large-step-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(224, 224, 255, 0.3);
    border: 0.2px solid #CDCDDD;
    transform: scale(0.95);
    transform-origin: center;
}

.large-step-card::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 0.2px solid #CDCDDD;
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

.step-description {
    color: #49496D;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 14px;
}

.step-description:last-child {
    margin-bottom: 0;
}

.philosophy-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(224, 224, 255, 0.3);
    border: 0.2px solid #CDCDDD;
    max-width: 1200px;
    margin: 0 auto;
    transform: scale(0.95);
    transform-origin: center;
}

.philosophy-card::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 0.2px solid #CDCDDD;
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

.philosophy-text {
    color: #49496D;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.philosophy-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transform: rotate(-0.5deg);
}

/* case11: коллаж «Оформление проекта» — отдельный файл от обложки на index; в исходнике лёгкий наклон и тёмная кромка — zoom + поворот обрезают углы */
.philosophy-section--flower-market {
    padding: 12px 0 36px;
}

.philosophy-section--flower-market .philosophy-card--flower-market {
    max-width: min(880px, 94vw);
    margin-left: auto;
    margin-right: auto;
    padding: 12px 12px 14px;
    transform: scale(1);
    transform-origin: center center;
}

.philosophy-section--flower-market .flower-market-preview-crop {
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    line-height: 0;
    position: relative;
    aspect-ratio: 873 / 1024;
    width: 100%;
}

.philosophy-section--flower-market .philosophy-image--flower-market {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120%;
    height: 120%;
    max-width: none;
    border-radius: 0;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%) rotate(1.85deg);
    transform-origin: center center;
}

@media (max-width: 768px) {
    .philosophy-section--flower-market .philosophy-card--flower-market {
        max-width: 100%;
        padding: 10px;
    }
}

/* Image Slider Styles */
.image-slider {
    position: relative;
    width: 100%;
}

.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-slide {
    display: none;
    width: 100%;
}

.slider-slide.active {
    display: block;
}

.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D1D6;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination-dot.active {
    background: #49496D;
}

.pagination-dot:hover {
    background: #7A7A9E;
}

.philosophy-section {
    padding: 0;
    background: #FBFBFD;
}

/* InStar case gallery (case14) — альтернативный стек карточек, если понадобится */
.instar-case-gallery {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 0 40px;
}

.philosophy-section--instar-top {
    padding-top: 0;
}

.instar-case-gallery--after-hero {
    padding-top: 16px;
    padding-bottom: 36px;
}

/* InStar: одно окно, вертикальный скролл превью */
.instar-preview-window.philosophy-card {
    max-width: 100%;
    padding: 16px;
    margin: 0 auto;
    border-radius: 16px;
}

.instar-preview-window.philosophy-card::after {
    border-radius: 20px;
}

.instar-preview-scroll {
    max-height: min(85vh, 920px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 12px;
    background: #f4f4f8;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.instar-preview-scroll:focus-visible {
    box-shadow: inset 0 0 0 2px #7c3aed;
}

.instar-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.instar-preview-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    transform: none;
}

.instar-scroll-hint {
    text-align: center;
    margin: 12px 0 0;
    font-size: 13px;
    color: #7A7A9E;
}

/* FAQ Section */
.faq-section {
    padding: 27px 0;
    background: #FBFBFD;
}

.faq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-title {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 48px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #F2F2F7;
    border-radius: 16px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.5);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: #49496D;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 32px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 32px 24px 32px;
}

.faq-answer p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #49496D;
    margin: 0;
}

/* Duplicated Cards Section */
.duplicated-cards-section {
    padding: 0;
    background: #FBFBFD;
    position: relative;
}

@media (max-width: 768px) {
    .additional-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .small-card-number {
        font-size: 36px;
    }
}

/* Footer — юридическая информация */
.site-footer {
    padding: 10px 0 32px;
    margin-top: auto;
    border-top: none;
    background: transparent;
}

/* Плотнее: кнопка «Забронируйте звонок» / CTA и ссылка на реквизиты */
.bottom-cta + .site-footer,
.hero + .site-footer {
    padding-top: 4px;
}

.hero:has(+ .site-footer) {
    padding-bottom: 12px;
}

.site-footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer .footer-footer-triggers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 6px;
}

.site-footer .footer-trigger-sep {
    font-size: 12px;
    color: rgba(22, 22, 29, 0.22);
    user-select: none;
    padding: 0 2px;
}

.footer-legal-trigger {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(22, 22, 29, 0.38);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-underline-offset: 3px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-legal-trigger:hover {
    color: rgba(73, 73, 109, 0.75);
    text-decoration: underline;
    text-decoration-color: rgba(73, 73, 109, 0.35);
    background: none;
}

.footer-legal-trigger:focus-visible {
    outline: 2px solid rgba(73, 73, 109, 0.35);
    outline-offset: 2px;
}

body.legal-modal-open,
body.cv-modal-open {
    overflow: hidden;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.legal-modal[hidden],
.booking-modal[hidden] {
    display: none;
}

/* Чат «Забронировать звонок» — мессенджер, монохром (ч/б на тёмном фоне) */
.booking-modal {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    left: auto;
    top: auto;
    z-index: 10050;
    width: 100%;
    max-width: 360px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.booking-modal__panel.booking-messenger {
    position: relative;
    z-index: 1;
    width: 100%;
    height: min(460px, calc(100vh - 120px));
    max-height: min(68vh, 520px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #0f0f0f;
    border-radius: 14px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    pointer-events: auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.booking-modal:not([hidden]) .booking-modal__panel {
    animation: booking-panel-in 0.22s ease-out;
}

@keyframes booking-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .booking-modal {
        max-width: calc(100vw - 24px);
        right: 12px;
        bottom: 12px;
    }

    .booking-modal__panel.booking-messenger {
        height: min(420px, calc(100vh - 100px));
    }
}

.booking-messenger__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.booking-messenger__header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.booking-messenger__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.booking-messenger__header-info {
    min-width: 0;
}

.booking-messenger__title {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 15px;
    font-weight: 700;
    color: #fafafa;
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

.booking-messenger__subtitle {
    font-size: 12px;
    color: #b8b8b8;
    margin: 3px 0 0;
    line-height: 1.3;
}

.booking-messenger__close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #c8c8c8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.booking-messenger__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.booking-messenger__chat {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 10px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.booking-messenger__chat::-webkit-scrollbar {
    width: 5px;
}

.booking-messenger__chat::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 5px;
}

.booking-messenger__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px 10px;
    background: #0f0f0f;
    flex-shrink: 0;
}

.booking-messenger__chips[hidden] {
    display: none !important;
}

.booking-messenger__chip {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #e8e8e8;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.booking-messenger__chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Сценарное меню (без LLM): чипы как белые «хештеги» на тёмном фоне */
.booking-messenger--scenario .booking-messenger__chip {
    background: #fff;
    color: #0c0c0c;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.booking-messenger--scenario .booking-messenger__chip:hover {
    background: #f5f5f5;
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
}

.booking-messenger__composer[hidden] {
    display: none !important;
}

.booking-messenger__lead {
    padding: 10px 10px 12px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.booking-messenger__lead[hidden] {
    display: none !important;
}

.booking-messenger__lead-field {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #141414;
    color: #f0f0f0;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-messenger__lead-field::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.booking-messenger__lead-field:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.booking-messenger__lead-note {
    min-height: 56px;
    resize: vertical;
}

.booking-messenger__lead-submit {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #f2f2f2;
    color: #141414;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.booking-messenger__lead-submit:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.booking-messenger__lead-hint {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.45);
}

.booking-messenger__row {
    display: flex;
    margin-bottom: 8px;
}

.booking-messenger__row--user {
    justify-content: flex-end;
}

.booking-messenger__row--bot {
    justify-content: flex-start;
}

.booking-messenger__bubble {
    max-width: 88%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 12px 6px;
}

.booking-messenger__bubble--user {
    background: #e8e8e8;
    color: #141414;
    border-radius: 16px 16px 4px 16px;
}

.booking-messenger__bubble--bot {
    background: #2a2a2a;
    color: #f0f0f0;
    border-radius: 16px 16px 16px 4px;
}

.booking-messenger__bubble--bot .booking-messenger__bubble-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 2px;
    cursor: pointer;
}

.booking-messenger__bubble--bot .booking-messenger__bubble-link:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

.booking-messenger__bubble--error {
    background: #333333;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.booking-messenger__bubble-text {
    font-size: 14px;
    line-height: 1.48;
    white-space: pre-wrap;
    word-break: break-word;
}

.booking-messenger__bubble-meta {
    font-size: 11px;
    align-self: flex-end;
    opacity: 0.55;
    line-height: 1.2;
    margin-top: 1px;
}

.booking-messenger__bubble--user .booking-messenger__bubble-meta {
    color: rgba(20, 20, 20, 0.55);
    opacity: 1;
}

.booking-messenger__bubble--bot .booking-messenger__bubble-meta {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.booking-messenger__error {
    font-size: 12px;
    color: #d0d0d0;
    padding: 6px 12px 0;
    margin: 0;
    flex-shrink: 0;
}

.booking-messenger__error[hidden] {
    display: none !important;
}

.booking-messenger__composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 10px 12px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.booking-messenger__input {
    flex: 1;
    min-height: 42px;
    max-height: 120px;
    resize: none;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #141414;
    color: #f0f0f0;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-messenger__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.booking-messenger__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.booking-messenger__send {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #f2f2f2;
    color: #141414;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.booking-messenger__send:hover:not(:disabled) {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.booking-messenger__send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.booking-messenger__send-icon {
    display: block;
    margin-left: 3px;
}

.legal-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 22, 29, 0.45);
    backdrop-filter: blur(4px);
}

.legal-modal__panel--cv {
    max-width: 560px;
}

.legal-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: min(88vh, 720px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(22, 22, 29, 0.18);
    padding: 28px 28px 24px;
    border: 1px solid rgba(73, 73, 109, 0.1);
}

.legal-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f2f2f7;
    color: #49496D;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.legal-modal__close:hover {
    background: #e8e8ef;
    color: #16161d;
}

.legal-modal__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #16161d;
    margin: 0 48px 16px 0;
    line-height: 1.35;
}

.legal-modal__body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #49496D;
}

.legal-modal__note {
    margin: 0 0 20px;
    font-size: 14px;
    color: #6b6b8a;
}

.legal-dl {
    margin: 0;
}

.legal-dl dt {
    font-weight: 600;
    color: #16161d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 16px;
    margin-bottom: 6px;
}

.legal-dl dt:first-child {
    margin-top: 0;
}

.legal-dl dd {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.legal-modal__phone {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(73, 73, 109, 0.12);
    font-size: 15px;
    color: #16161d;
}

.legal-modal__phone a {
    color: #49496D;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-modal__phone a:hover {
    color: #16161d;
}

.cv-section {
    margin-top: 1.15rem;
}

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

.cv-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cv-contact-list p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cv-contact-note {
    color: #6b6b8a;
    font-weight: 400;
}

.cv-skills-lead {
    margin: 14px 0 12px;
}

.cv-skills-lead:last-of-type {
    margin-bottom: 0;
}

.cv-skills-lead strong {
    color: #16161d;
    font-weight: 600;
}

.cv-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #16161d;
    margin: 0 0 10px;
}

.cv-section p,
.cv-section ul {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.55;
}

.cv-section ul {
    padding-left: 1.15rem;
}

.cv-section li {
    margin-bottom: 6px;
}

.cv-section li:last-child {
    margin-bottom: 0;
}

.cv-modal-header {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 44px 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(73, 73, 109, 0.12);
}

.cv-modal-header__photo {
    flex-shrink: 0;
    padding-right: 10px;
    border-right: 1px solid rgba(73, 73, 109, 0.15);
}

.cv-modal-header__info {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
}

.cv-modal-header__info .cv-contact-list {
    margin-top: 12px;
    gap: 8px;
}

.cv-modal-header__info .cv-contact-list a {
    color: #49496d;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(73, 73, 109, 0.28);
}

.cv-modal-header__info .cv-contact-list a:hover {
    color: #16161d;
    text-decoration-color: rgba(73, 73, 109, 0.45);
}

.cv-modal-header__info .cv-contact-list a:visited {
    color: #49496d;
}

.cv-modal-header__info .cv-contact-list a:focus-visible {
    outline: 2px solid rgba(22, 22, 29, 0.35);
    outline-offset: 2px;
    border-radius: 2px;
}

.cv-modal-name {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #16161d;
    margin: 0;
    line-height: 1.3;
}

html[lang='en'] .legal-modal__panel--cv .cv-modal-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.cv-modal-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(73, 73, 109, 0.1);
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(22, 22, 29, 0.08);
    display: block;
}

.cv-pdf-footnote {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(73, 73, 109, 0.08);
    text-align: center;
}

.cv-pdf-link {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #8a8aa3;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(73, 73, 109, 0.28);
}

.cv-pdf-link:hover {
    color: #6b6b8a;
    text-decoration-color: rgba(73, 73, 109, 0.45);
}

.cv-pdf-link:focus-visible {
    outline: 2px solid rgba(22, 22, 29, 0.35);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 420px) {
    .cv-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-right: 0;
    }

    .cv-modal-header__photo {
        padding-right: 0;
        padding-bottom: 16px;
        border-right: none;
        border-bottom: 1px solid rgba(73, 73, 109, 0.15);
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cv-modal-header__info {
        padding-left: 0;
        padding-top: 16px;
        width: 100%;
    }
}

.cv-timeline-item {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(73, 73, 109, 0.12);
}

.cv-timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cv-timeline .cv-timeline-item p {
    margin: 0;
}

.cv-timeline em {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-style: normal;
    color: #6b6b8a;
    line-height: 1.45;
}

.legal-modal__body .cv-section a {
    color: #49496D;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-modal__body .cv-section a:hover {
    color: #16161d;
}
