/* ============================================================
   Стиль портфолио отдела корпоративных разработок.
   Порт дизайн-системы из макета: тёплая светлая палитра,
   Space Grotesk (заголовки) + Inter (текст) + JetBrains Mono (лейблы).
   ============================================================ */

:root {
    color-scheme: dark;

    --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-label: 'JetBrains Mono', ui-monospace, monospace;

    /* background — тёмная тёплая база */
    --bg-50: oklch(0.185 0.008 70);
    --bg-100: oklch(0.215 0.01 70);
    --bg-200: oklch(0.26 0.012 70);
    --bg-300: oklch(0.32 0.012 70);
    --bg-400: oklch(0.45 0.014 70);

    /* foreground — светлые тексты */
    --fg-300: oklch(0.46 0.01 70);
    --fg-400: oklch(0.58 0.008 70);
    --fg-500: oklch(0.66 0.008 70);
    --fg-600: oklch(0.74 0.008 70);
    --fg-700: oklch(0.82 0.006 70);
    --fg-800: oklch(0.88 0.005 70);
    --fg-900: oklch(0.92 0.004 70);
    --fg-950: oklch(0.955 0.004 70);

    /* primary — тёплый оранжевый акцент */
    --pr-100: oklch(0.32 0.06 45);
    --pr-200: oklch(0.38 0.08 46);
    --pr-300: oklch(0.5 0.12 47);
    --pr-400: oklch(0.62 0.15 48);
    --pr-500: oklch(0.68 0.16 50);
    --pr-600: oklch(0.74 0.15 55);
    --pr-700: oklch(0.78 0.13 60);
    --pr-800: oklch(0.82 0.11 65);
    --pr-900: oklch(0.85 0.1 70);

    /* accent — глубокий терракотовый оттенок */
    --ac-100: oklch(0.3 0.05 35);
    --ac-300: oklch(0.45 0.1 35);
    --ac-400: oklch(0.58 0.13 34);
    --ac-700: oklch(0.75 0.12 38);
    --ac-800: oklch(0.8 0.1 42);
    --ac-900: oklch(0.84 0.09 45);

    /* secondary — нейтральная тёплая поддержка */
    --sc-50: oklch(0.17 0.01 75);
    --sc-100: oklch(0.24 0.012 75);
    --sc-300: oklch(0.32 0.012 75);
    --sc-400: oklch(0.45 0.015 75);
    --sc-900: oklch(0.88 0.008 78);
}

/* ---------- Базовое ---------- */

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-50);
    color: var(--fg-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0;
}

p {
    margin: 0;
}

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

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.container--narrow {
    max-width: 48rem;
}

.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;
}

/* ---------- Типографика разделов ---------- */

.eyebrow {
    display: inline-block;
    font-family: var(--font-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pr-600);
}

.section-title {
    margin-top: 0.75rem;
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--fg-950);
    line-height: 1.2;
}

.section-title--md {
    font-size: 1.5rem;
}

.section-lead {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--fg-500);
    max-width: 36rem;
}

.article-title {
    margin-top: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg-950);
}

.article-text {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg-600);
}

/* ---------- Секции ---------- */

.section {
    width: 100%;
    background: var(--bg-50);
    padding: 4rem 0;
}

.section--tinted {
    background: var(--bg-100);
    border-top: 1px solid var(--bg-200);
    border-bottom: 1px solid var(--bg-200);
}

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

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

.section-intro {
    max-width: 42rem;
}

.section-intro--tight {
    flex: 1;
}

.section-intro--gap {
    margin-top: 4rem;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.section-head__text {
    max-width: 36rem;
}

.section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pr-600);
}

.section-head__link:hover {
    color: var(--pr-700);
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
    .container {
        padding: 0 2rem;
    }
    .section-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
    .section-title {
        font-size: 2.25rem;
    }
}

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
    background: var(--pr-500);
    color: var(--bg-50);
}

.btn--primary:hover {
    background: var(--pr-600);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--fg-300);
    color: var(--fg-900);
}

.btn--outline:hover {
    border-color: var(--pr-500);
    color: var(--pr-600);
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--bg-300);
    color: var(--fg-800);
}

.btn--ghost:hover {
    border-color: var(--ac-400);
    color: var(--ac-700);
}

.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn--xs {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn--lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 27, 23, 0.92);
    backdrop-filter: blur(8px);
}

.site-header__inner {
    width: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 4rem;
}

@media (min-width: 768px) {
    .site-header__inner {
        padding: 0 2rem;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    background: var(--fg-950);
    color: var(--bg-50);
    font-size: 1.125rem;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand__name {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fg-950);
}

.brand__subtitle {
    font-family: var(--font-label);
    font-size: 0.6875rem;
    color: var(--fg-400);
}

.brand__name--footer {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-950);
}

.site-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.site-nav__link {
    font-size: 0.875rem;
    color: var(--fg-600);
    transition: color 0.15s;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--pr-600);
}

.site-header__actions {
    display: none;
}

.site-header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--bg-300);
    border-radius: 0.375rem;
    background: transparent;
    color: var(--fg-900);
    font-size: 1.25rem;
    cursor: pointer;
}

.site-header__mobile {
    border-top: 1px solid var(--bg-200);
    background: var(--bg-50);
    padding: 1rem;
}

.site-nav--mobile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.site-nav__mobile-link {
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--fg-700);
}

.site-nav__mobile-link:hover {
    background: var(--bg-100);
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
    }
    .site-header__actions {
        display: flex;
    }
    .site-header__burger,
    .site-header__mobile {
        display: none;
    }
}

/* ---------- Первый экран ---------- */

.hero {
    width: 100%;
    border-bottom: 1px solid var(--bg-200);
    background: var(--bg-50);
    padding: 4rem 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--bg-300);
    border-radius: 999px;
    background: var(--bg-100);
    padding: 0.25rem 0.75rem;
    font-family: var(--font-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-500);
}

.hero__badge i {
    color: var(--pr-500);
}

.hero__heading {
    margin-top: 1.5rem;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--fg-950);
}

.hero__intro {
    margin-top: 1.5rem;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg-500);
}

.hero__actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero__media {
    position: relative;
}

.hero__image {
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-100);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero__floating {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    display: none;
}

.hero__floating-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-50);
    padding: 1rem;
}

.hero__floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    background: var(--pr-100);
    color: var(--pr-700);
    font-size: 1.125rem;
}

.hero__floating-icon--accent {
    background: var(--ac-100);
    color: var(--ac-800);
}

.hero__floating-label {
    font-family: var(--font-label);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-400);
}

.hero__floating-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-900);
}

@media (min-width: 640px) {
    .hero__floating {
        display: block;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
    .hero__heading {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .hero__actions {
        flex-direction: row;
        align-items: center;
    }
}

/* ---------- Сетка карточек ---------- */

.cards-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.cards-grid--3 {
    margin-top: 0;
}

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

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

/* ---------- Карточка кейса ---------- */

.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-50);
    transition: border-color 0.2s;
}

.case-card:hover {
    border-color: var(--pr-300);
}

.case-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    background: var(--bg-100);
}

.case-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s;
}

.case-card:hover .case-card__media img {
    transform: scale(1.02);
}

.case-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.case-card__title {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--fg-950);
}

.case-card__excerpt {
    margin-top: 0.5rem;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fg-500);
}

.case-card__more {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pr-600);
}

.case-card:hover .case-card__more i {
    transform: translateX(2px);
}

@media (min-width: 768px) {
    .case-card__body {
        padding: 1.25rem;
    }
}

/* ---------- Плашки категорий и теги ---------- */

.cat-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    width: fit-content;
}

.cat-badge--custom {
    background: var(--pr-100);
    color: var(--pr-800);
}

.cat-badge--portals {
    background: var(--sc-100);
    color: var(--sc-900);
}

.cat-badge--integrations {
    background: var(--ac-100);
    color: var(--ac-800);
}

.tag-list {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list__item {
    border-radius: 999px;
    background: var(--sc-100);
    padding: 0.25rem 0.75rem;
    font-family: var(--font-label);
    font-size: 0.6875rem;
    color: var(--sc-900);
}

/* ---------- Карточка направления / компетенции ---------- */

.direction-card {
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-50);
    padding: 1.5rem;
}

.direction-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

.direction-card__icon--primary {
    background: var(--pr-100);
    color: var(--pr-700);
}

.direction-card__icon--secondary {
    background: var(--sc-100);
    color: var(--sc-900);
}

.direction-card__icon--accent {
    background: var(--ac-100);
    color: var(--ac-800);
}

.direction-card__title {
    margin-top: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg-950);
}

.direction-card__desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fg-500);
}

@media (min-width: 768px) {
    .direction-card {
        padding: 2rem;
    }
}

/* ---------- Процесс ---------- */

.process-list {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.process-list--5 {
    margin-top: 2rem;
}

.process-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-50);
    padding: 1.25rem;
}

.process-card__number {
    font-family: var(--font-label);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pr-600);
}

.process-card__title {
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-950);
}

.process-card__desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fg-500);
}

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

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

/* ---------- Блок «Опыт»: бегущая строка логотипов ---------- */

.experience-section {
    padding-bottom: 4.5rem;
}

.logo-marquee {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
    /* Плавное затухание логотипов у краёв */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee__track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    padding: 0.25rem 0;
    animation: logos-left-to-right 45s linear infinite;
    will-change: transform;
}

/* Движение слева направо: трек сдвинут на полширины и едет к нулю. */
@keyframes logos-left-to-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.logo-marquee:hover .logo-marquee__track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee__track {
        animation: none;
    }
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13rem;
    height: 5.5rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 1rem 1.25rem;
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 639px) {
    .logo-card {
        width: 9.5rem;
        height: 4.5rem;
        padding: 0.75rem 1rem;
    }
}

/* ---------- Тёмная CTA-полоса ---------- */

.cta-band {
    width: 100%;
    border-top: 1px solid var(--bg-200);
    background: oklch(0.155 0.008 70);
    padding: 4rem 0;
    color: var(--fg-900);
}

.cta-band--compact {
    padding: 3rem 0;
}

.cta-band__inner {
    width: 100%;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.cta-band__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg-950);
}

.cta-band__desc {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--fg-500);
}

@media (min-width: 768px) {
    .cta-band {
        padding: 4rem 0;
    }
    .cta-band__inner {
        padding: 0 2rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .cta-band--compact .cta-band__inner {
        padding-top: 0;
    }
    .cta-band__title {
        font-size: 2rem;
    }
    .cta-band__text {
        max-width: 42rem;
    }
}

/* ---------- Контакты и форма ---------- */

.contacts-section {
    width: 100%;
    scroll-margin-top: 4rem;
    border-top: 1px solid var(--bg-200);
    background: var(--bg-100);
    padding: 4rem 0;
}

.contacts-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.contacts-section__title {
    margin-top: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg-950);
}

.contacts-section__intro {
    margin-top: 1rem;
    max-width: 28rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--fg-500);
}

.contacts-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacts-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contacts-list__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    background: var(--bg-50);
    color: var(--pr-600);
    font-size: 1.125rem;
}

.contacts-list__text {
    display: flex;
    flex-direction: column;
}

.contacts-list__label {
    font-family: var(--font-label);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-400);
}

.contacts-list__value {
    font-size: 0.875rem;
    color: var(--fg-700);
}

.contact-card {
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-50);
    padding: 1.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-700);
}

.form-label--section {
    font-family: var(--font-label);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-400);
}

.form-input {
    width: 100%;
    border: 1px solid var(--bg-300);
    border-radius: 0.375rem;
    background: var(--bg-50);
    padding: 0.625rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--fg-900);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input::placeholder {
    color: var(--fg-400);
}

.form-input:focus {
    border-color: var(--pr-500);
    box-shadow: 0 0 0 3px var(--pr-200);
}

.form-input--textarea {
    resize: vertical;
    min-height: 2.5rem;
}

.form-input--mono {
    font-family: var(--font-label);
    font-size: 0.8125rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--fg-400);
    line-height: 1.5;
}

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

.form-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    margin: 0;
}

.form-note--success {
    background: var(--pr-100);
    color: var(--pr-900);
}

.form-note--error {
    background: var(--ac-100);
    color: var(--ac-900);
}

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

@media (min-width: 768px) {
    .contacts-section__title {
        font-size: 2rem;
    }
    .contact-card {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .contacts-section {
        padding: 5rem 0;
    }
    .contacts-section__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ---------- Шапка каталога и служебные состояния ---------- */

.page-head {
    width: 100%;
    border-bottom: 1px solid var(--bg-200);
    background: var(--bg-50);
    padding: 3rem 0;
}

.page-head__title {
    margin-top: 0.75rem;
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--fg-950);
    line-height: 1.2;
}

.page-head__lead {
    margin-top: 1rem;
    max-width: 42rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--fg-500);
}

.page-head__filter {
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .page-head {
        padding: 4rem 0;
    }
    .page-head__title {
        font-size: 3rem;
    }
}

.catalog-meta {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catalog-meta__found {
    font-size: 0.875rem;
    color: var(--fg-400);
}

.catalog-meta__count {
    font-weight: 500;
    color: var(--fg-900);
}

.catalog-meta__pages {
    font-family: var(--font-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-300);
}

.catalog-pagination {
    margin-top: 3rem;
}

.empty-state {
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-100);
    padding: 3rem;
    text-align: center;
}

.empty-state i {
    font-size: 1.875rem;
    color: var(--fg-400);
}

.empty-state p {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--fg-500);
}

/* ---------- Фильтр ---------- */

.cases-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    border: 1px solid var(--bg-300);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-600);
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.filter-chip:hover {
    border-color: var(--pr-400);
    color: var(--pr-600);
}

.filter-chip.is-active {
    background: var(--fg-950);
    border-color: var(--fg-950);
    color: var(--bg-50);
}

/* ---------- Пагинация ---------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination__arrow {
    display: flex;
    height: 2.5rem;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--bg-300);
    border-radius: 0.375rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--fg-800);
    transition: border-color 0.15s, color 0.15s;
}

.pagination__arrow:hover {
    border-color: var(--pr-400);
    color: var(--pr-600);
}

.pagination__arrow.is-disabled {
    opacity: 0.4;
    cursor: default;
}

.pagination__arrow.is-disabled:hover {
    border-color: var(--bg-300);
    color: var(--fg-800);
}

.pagination__pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination__page {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-300);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-600);
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.pagination__page:hover {
    border-color: var(--pr-400);
    color: var(--pr-600);
}

.pagination__page.is-current {
    background: var(--pr-500);
    border-color: var(--pr-500);
    color: var(--bg-50);
}

.pagination__ellipsis {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    color: var(--fg-400);
}

/* ---------- Страница кейса ---------- */

.case-hero {
    width: 100%;
    border-bottom: 1px solid var(--bg-200);
    background: var(--bg-50);
    padding: 2.5rem 0 3.5rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--fg-400);
}

.breadcrumbs a {
    transition: color 0.15s;
}

.breadcrumbs a:hover {
    color: var(--pr-600);
}

.breadcrumbs__current {
    color: var(--fg-700);
}

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

.case-hero__title {
    margin-top: 1rem;
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--fg-950);
}

.case-hero__excerpt {
    margin-top: 1.25rem;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg-500);
}

.case-hero__media {
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-100);
}

.case-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.case-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.case-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .case-hero {
        padding: 3.5rem 0;
    }
    .case-hero__title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .case-hero__grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 3.5rem;
        align-items: center;
    }
    .case-columns {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .case-result-grid {
        grid-template-columns: 1fr 320px;
        gap: 4rem;
    }
}

/* ---------- Галерея кейса ---------- */

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

.gallery-figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-50);
}

.gallery-figure__media {
    aspect-ratio: 3 / 2;
    width: 100%;
    background: var(--bg-100);
}

.gallery-figure__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.gallery-figure__caption {
    border-top: 1px solid var(--bg-200);
    padding: 1rem;
}

.gallery-figure__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-950);
}

.gallery-figure__desc {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fg-500);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-figure__caption {
        padding: 1.25rem;
    }
}

/* ---------- Технологии ---------- */

.tech-panel {
    align-self: start;
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-100);
    padding: 1.5rem;
}

.tech-panel__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fg-950);
}

.tech-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags__item {
    border-radius: 999px;
    background: var(--bg-50);
    padding: 0.25rem 0.75rem;
    font-family: var(--font-label);
    font-size: 0.75rem;
    color: var(--fg-600);
}

/* ---------- Команда ---------- */

.team-stats {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.team-stats__item {
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-50);
    padding: 1rem;
}

.team-stats__value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg-950);
}

.team-stats__label {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--fg-500);
}

@media (min-width: 640px) {
    .team-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .team-stats__value {
        font-size: 1.875rem;
    }
}

/* Сетка участников: по 3 в ряд на десктопе, 2 на планшете, 1 на телефоне. */
.members-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.member-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-50);
}

.member-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
    background: var(--bg-100);
}

.member-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.member-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.member-card__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fg-950);
}

.member-card__role {
    margin-top: 0.25rem;
    font-family: var(--font-label);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-400);
}

.member-card__focus {
    margin-top: 0.75rem;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fg-500);
}

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

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

/* ---------- Карточка руководителя ---------- */

.lead-card {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-100);
}

.lead-card__media {
    aspect-ratio: 4 / 3;
    background: var(--bg-200);
}

.lead-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.lead-card__body {
    padding: 1.5rem;
}

.lead-card__name {
    margin-top: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg-950);
}

.lead-card__role {
    margin-top: 0.25rem;
    font-family: var(--font-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-500);
}

.lead-card__desc {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--fg-600);
}

.lead-card__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .lead-card {
        grid-template-columns: 280px 1fr;
    }
    .lead-card__media {
        aspect-ratio: auto;
    }
    .lead-card__body {
        padding: 2rem;
    }
    .lead-card__actions {
        flex-direction: row;
        align-items: center;
    }
}

/* ---------- Практики, принципы, клиенты ---------- */

.practice-card {
    border: 1px solid var(--bg-200);
    border-radius: 0.5rem;
    background: var(--bg-50);
    padding: 1.25rem;
}

.practice-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    background: var(--sc-100);
    color: var(--fg-700);
    font-size: 1.25rem;
}

.practice-card__title {
    margin-top: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-950);
}

.practice-card__desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fg-500);
}

.principles-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.principles-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fg-600);
}

.principles-list__item i {
    color: var(--pr-600);
    font-size: 1.125rem;
    line-height: 1.3;
}

.clients-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.clients-row__item {
    border: 1px solid var(--bg-200);
    border-radius: 0.375rem;
    background: var(--bg-50);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-label);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    color: var(--fg-600);
}

/* ---------- Подвал ---------- */

.site-footer {
    border-top: 1px solid var(--bg-200);
    background: var(--sc-50);
}

.site-footer__inner {
    width: 100%;
    padding: 3rem 1rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.site-footer__description {
    margin-top: 1rem;
    max-width: 24rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--fg-500);
}

.footer-heading {
    font-family: var(--font-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-400);
    font-weight: 500;
}

.footer-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--fg-600);
    transition: color 0.15s;
}

.footer-link:hover {
    color: var(--pr-600);
}

.footer-list--contacts {
    gap: 0.75rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--fg-600);
}

.footer-contact i {
    color: var(--fg-400);
}

.site-footer__bottom {
    margin-top: 3rem;
    border-top: 1px solid var(--bg-200);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-footer__copyright {
    font-size: 0.75rem;
    color: var(--fg-400);
}

.site-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer__cta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--fg-600);
    transition: color 0.15s;
}

.site-footer__cta:hover {
    color: var(--pr-600);
}

.site-footer__admin {
    font-size: 0.75rem;
    color: var(--fg-300);
    transition: color 0.15s;
}

.site-footer__admin:hover {
    color: var(--fg-800);
}

@media (min-width: 768px) {
    .site-footer__inner {
        padding: 4rem 2rem;
    }
    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ---------- 404 и служебные ---------- */

.notfound {
    text-align: center;
    padding: 4rem 0;
}

.notfound__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: var(--bg-100);
    color: var(--fg-400);
    font-size: 1.5rem;
}

.notfound .btn {
    margin-top: 2rem;
}

.prose h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg-950);
}

.prose p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--fg-500);
}

.preview-flag {
    display: inline-block;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: var(--ac-100);
    color: var(--ac-900);
    padding: 0.375rem 1rem;
    font-family: var(--font-label);
    font-size: 0.75rem;
}
