/*
 * Стили сайта (редизайн 2026, вариант A): главная, портфолио, кейсы, услуги, «О компании», «Контакты»,
 * вакансии, блог, текстовые страницы, 404 и карта сайта. Подключаются в layouts/app, без сборки.
 */

:root {
    --ink: #141416;
    --text-2: #3F3F45;
    --muted: #5C5C63;
    --muted-2: #6B6B72;
    --paper: #FFFFFF;
    --paper-2: #F3F3F1;
    --line: #E6E6E3;
    --line-2: #DCDCD8;
    --line-3: #ECECE9;
    --field-border: #8E8E95;

    --dark: #0E0E10;
    --dark-card: #1A1A1D;
    --dark-media: #26262A;
    --dark-line: #3A3A40;
    --dark-ink: #F4F4F2;
    --dark-muted: #A3A3AA;
    --dark-chip: #C8C8CE;

    /* #FF2600 из логотипа не держит контраст 4.5:1 с белым текстом,
       поэтому для кнопок и мелкого текста — чуть темнее. */
    --accent: #E02200;
    --accent-on-dark: #FF5533;

    --font-display: 'Unbounded', Verdana, sans-serif;
    --font-text: 'Onest', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

    --container: 1280px;
    --gutter: clamp(16px, 4vw, 48px);
    --section-y: clamp(64px, 7.8vw, 112px);
    --radius: 20px;
    --radius-lg: 24px;
}

/* Основа */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, fieldset, legend {
    margin: 0;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

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

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

input,
textarea,
button {
    font: inherit;
    color: inherit;
}

::placeholder {
    color: var(--muted-2);
    opacity: 1;
}

[hidden] {
    display: none !important;
}

.nobr {
    white-space: nowrap;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--paper);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

.container {
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--ink);
    color: #FFFFFF;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

.icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--sm {
    width: 18px;
    height: 18px;
}

.label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-title {
    margin-top: 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 3.1vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

/* Кнопки и ссылки */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    filter: brightness(0.9);
}

.btn:disabled {
    cursor: progress;
    opacity: 0.7;
}

.btn--primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn--dark {
    background: var(--ink);
    color: #FFFFFF;
}

.btn--light {
    background: #FFFFFF;
    color: var(--ink);
}

.btn--ghost {
    border: 1.5px solid currentColor;
    background: transparent;
}

.btn--ghost:hover {
    filter: none;
    background-color: rgba(128, 128, 128, 0.14);
}

.btn--sm {
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid currentColor;
    font-size: 16px;
    font-weight: 600;
}

.link-arrow .icon,
.case-card__link .icon,
.more-card__list .icon {
    transition: transform 0.2s ease;
}

.link-arrow:hover .icon,
.case-card__link:hover .icon,
.more-card__list a:hover .icon {
    transform: translateX(4px);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.icon-btn:hover {
    background-color: rgba(128, 128, 128, 0.14);
}

/* Шапка */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3.3vw, 48px);
    height: 80px;
}

.site-header__logo {
    display: flex;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    font-weight: 500;
}

.site-nav a,
.site-header__phone {
    transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-header__phone:hover {
    opacity: 0.6;
}

/* Раздел, в котором находится посетитель, — точка из логотипа перед пунктом. */
.site-nav .is-current,
.mobile-menu__nav .is-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-nav .is-current::before,
.mobile-menu__nav .is-current::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.mobile-menu__nav .is-current {
    display: flex;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.site-header__phone {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
}

.mobile-menu {
    border-top: 1px solid var(--line);
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    padding: 8px 0 24px;
}

.mobile-menu__nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    font-weight: 500;
}

.mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    font-size: 16px;
}

.mobile-menu__phone {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
}

.mobile-menu__inner .btn {
    align-self: flex-start;
    margin-top: 24px;
}

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

.hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(40px, 4.5vw, 64px);
    padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6.5vw, 96px);
}

.hero__content {
    display: flex;
    flex: 1 1 560px;
    flex-direction: column;
    min-width: 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.hero__title {
    margin-top: 28px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(34px, 4.1vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hero__lead {
    max-width: 600px;
    margin-top: 28px;
    font-size: clamp(17px, 1.35vw, 19px);
    line-height: 1.55;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.hero__spacer {
    flex-grow: 1;
    min-height: 48px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 24px;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.stats__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats__value {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(26px, 2.2vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stats__label {
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
}

.featured {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink);
    color: var(--dark-ink);
}

.featured__media {
    display: flex;
    flex-grow: 1;
    min-height: 360px;
    padding: 24px 24px 0;
}

.featured__window {
    position: relative;
    flex-grow: 1;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: #FFFFFF;
}

.featured__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    background: #E9E9E6;
}

.featured__bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #C2C2BE;
}

/* Высота карточки задаётся колонкой с текстом, скриншот лишь заполняет окно. */
.featured__img {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: calc(100% - 30px);
    object-fit: cover;
    object-position: top center;
}

.featured__caption {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px 28px;
}

.featured__label {
    display: block;
    color: var(--accent-on-dark);
}

.featured__title {
    display: block;
    margin-top: 10px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

.featured__arrow {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    transition: transform 0.2s ease;
}

.featured:hover .featured__arrow {
    transform: translate(2px, -2px);
}

/* Клиенты */

.clients {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.clients__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 48px;
    padding: 32px 0;
}

.clients__label {
    flex: 0 0 180px;
}

.clients__list {
    display: flex;
    flex: 1 1 560px;
    flex-wrap: wrap;
    gap: 12px 36px;
    padding: 0;
    list-style: none;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted-2);
}

/* Секции */

.section {
    padding: var(--section-y) 0;
}

.section--muted {
    background: var(--paper-2);
}

.section--dark {
    background: var(--dark);
    color: var(--dark-ink);
}

.section--dark .label {
    color: var(--dark-muted);
}

.section--dark :focus-visible,
.site-footer :focus-visible {
    outline-color: #FFFFFF;
    box-shadow: none;
}

.section--accent {
    background: var(--accent);
    color: #FFFFFF;
}

.section--accent .label {
    color: #FFFFFF;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
}

.section-head__main {
    flex: 1 1 520px;
    max-width: 880px;
}

.section-head__lead {
    max-width: 640px;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
}

/* Услуги */

.services__group {
    margin-top: 56px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-2);
    font-size: 16px;
    font-weight: 600;
}

.services__group--next {
    margin-top: 48px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
    gap: 16px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.card-grid > li {
    display: flex;
}

.service-card {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    gap: 14px;
    min-height: 300px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card--compact {
    min-height: 280px;
}

.service-card:hover {
    border-color: var(--ink);
    transform: translateY(-3px);
}

.service-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-card__index {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

.service-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-card:hover .service-card__arrow {
    border-color: var(--ink);
    background: var(--ink);
    color: #FFFFFF;
}

.service-card__title {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.service-card__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

.service-card__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line-3);
}

.service-card__price strong {
    font-size: 18px;
    font-weight: 600;
}

.service-card__price span {
    font-size: 13px;
    color: var(--muted);
}

/* Кейсы */

.cases-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 56px;
}

.case-card {
    position: relative;
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark-card);
}

.case-card--wide {
    flex-basis: 620px;
}

.case-card--medium {
    flex-basis: 420px;
}

.case-card__media {
    height: 320px;
    overflow: hidden;
    background: var(--dark-media);
}

.case-card--wide .case-card__media,
.case-card--medium .case-card__media {
    height: 380px;
}

.case-card__media--screen {
    padding: 40px 40px 0;
}

.case-card__media--phone {
    display: flex;
    justify-content: center;
    padding-top: 36px;
}

.case-card__media img {
    transition: transform 0.5s ease;
}

.case-card:hover .case-card__media img {
    transform: translateY(-8px);
}

.case-card__screen {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.case-card__screen--crop {
    border-radius: 12px 12px 0 0;
}

.case-card__phone {
    align-self: flex-start;
    width: 200px;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

.case-card__body {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    gap: 14px;
    padding: 28px 32px 32px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 5px 12px;
    border: 1px solid var(--dark-line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dark-chip);
}

.case-card__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.case-card__text {
    font-size: 16px;
    line-height: 1.55;
    color: var(--dark-muted);
}

.case-card__link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

/* Вся карточка кликабельна, но ссылкой остаётся только «Смотреть кейс». */
.case-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
}

.more-card {
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: #FFFFFF;
}

.more-card .label {
    color: #FFFFFF;
}

.more-card__list {
    padding: 0;
    list-style: none;
}

.more-card__list li {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.more-card__list li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.more-card__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.more-card .btn {
    align-self: flex-start;
    height: 52px;
    margin-top: auto;
    padding: 0 24px;
    font-size: 16px;
}

/* Как работаем */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 32px 24px;
    margin-top: 56px;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
    border-top: 2px solid var(--ink);
}

.steps__num {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

.steps__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.steps__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

/* О компании */

.about__top {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 64px;
}

.about__intro {
    display: flex;
    flex: 1 1 380px;
    flex-direction: column;
    max-width: 460px;
}

.about__text {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-2);
}

.about__intro .link-arrow {
    align-self: flex-start;
    margin-top: 24px;
}

.principles {
    display: grid;
    flex: 1 1 560px;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 16px;
    min-width: 0;
    padding: 0;
    list-style: none;
}

.principle {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--paper);
}

.principle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--paper-2);
    color: var(--accent);
}

.principle__icon .icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
}

.principle__title {
    margin-top: 6px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.principle__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

.stack {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--line-2);
}

.stack__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 24px;
    margin-top: 20px;
}

.stack__list div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stack__list dt {
    font-size: 15px;
    font-weight: 600;
}

.stack__list dd {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

/* Заявка */

.contact__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px 64px;
}

.contact__intro {
    display: flex;
    flex: 1 1 360px;
    flex-direction: column;
    max-width: 480px;
}

.contact__lead {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.55;
}

.contact__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

.contact__phone {
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.contact__link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-weight: 500;
}

.request {
    flex: 1 1 520px;
    min-width: 0;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--paper);
    color: var(--ink);
}

.request__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 16px;
}

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

.field__label {
    font-size: 14px;
    font-weight: 500;
}

.field__hint {
    font-weight: 400;
    color: var(--muted);
}

.field__control {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--field-border);
    border-radius: 12px;
    background: #FAFAF9;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field__control:focus {
    border-color: var(--ink);
    background: #FFFFFF;
}

textarea.field__control {
    height: auto;
    min-height: 120px;
    padding: 14px 16px;
    line-height: 1.5;
    resize: vertical;
}

.choice {
    min-width: 0;
    padding: 0;
    border: 0;
}

.choice legend {
    margin-bottom: 10px;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
}

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

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--field-border);
    border-radius: 999px;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
    border-color: var(--ink);
}

.chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* Класс ставит app.js: на :has() полагаться нельзя, пока живы старые браузеры. */
.chip.is-checked {
    border-color: var(--ink);
    background: var(--ink);
    color: #FFFFFF;
}

.chip:has(input:focus-visible) {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
    cursor: pointer;
}

.consent input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--ink);
}

.consent a {
    text-decoration: underline;
}

.request__submit {
    align-self: flex-start;
    padding: 0 32px;
}

.request__error {
    font-size: 14px;
    color: #B3261E;
}

.request__success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    min-height: 420px;
    outline: none;
}

.request__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink);
    color: #FFFFFF;
}

.request__check .icon {
    width: 26px;
    height: 26px;
    stroke-width: 2.2;
}

.request__success-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.request__success-text {
    max-width: 420px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
}

.request__success .btn {
    margin-top: 8px;
}

/* Подвал */

.site-footer {
    padding: 72px 0 40px;
    background: var(--dark);
    color: var(--dark-ink);
}

.site-footer .label {
    color: #8E8E95;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 64px;
}

.site-footer__brand {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    gap: 20px;
    max-width: 360px;
}

.site-footer__brand > a {
    align-self: flex-start;
}

.site-footer__about {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-muted);
}

.social {
    display: flex;
    gap: 10px;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #2E2E33;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.social a:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.site-footer__nav {
    display: grid;
    flex: 1 1 520px;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 32px 24px;
    min-width: 0;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.site-footer__col a,
.site-footer__contacts a {
    color: #D4D4D8;
    transition: color 0.2s ease;
}

.site-footer__col a:hover,
.site-footer__contacts a:hover {
    color: #FFFFFF;
}

.site-footer__contacts {
    display: flex;
    flex: 1 1 220px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.site-footer__contacts .site-footer__phone {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-ink);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 48px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid #26262B;
    font-size: 13px;
    line-height: 1.6;
    color: #8E8E95;
}

.site-footer__legal {
    flex: 1 1 520px;
    max-width: 860px;
}

.site-footer__copy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.site-footer__copy a {
    text-decoration: underline;
}

/* Внутренние страницы: шапка раздела и хлебные крошки */

.breadcrumbs {
    font-size: 14px;
    color: var(--muted);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: #B4B4AF;
}

.breadcrumbs a {
    transition: color 0.2s ease;
}

.breadcrumbs a:hover,
.breadcrumbs [aria-current] {
    color: var(--ink);
}

.page-head {
    padding: clamp(28px, 3.4vw, 48px) 0 0;
}

.page-head__row,
.case-head__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 64px;
    margin-top: clamp(24px, 3vw, 40px);
}

.page-head__main {
    flex: 1 1 560px;
    max-width: 820px;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(36px, 4.6vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.page-lead {
    max-width: 680px;
    margin-top: 24px;
    font-size: clamp(17px, 1.35vw, 19px);
    line-height: 1.55;
    color: var(--muted);
}

.page-head__note {
    display: flex;
    flex: 0 1 300px;
    align-items: baseline;
    gap: 12px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--muted);
}

.page-head__count {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* Портфолио */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: clamp(32px, 3.6vw, 48px);
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted-2);
}

.filter:hover {
    border-color: var(--ink);
}

.filter[aria-current] {
    border-color: var(--ink);
    background: var(--ink);
    color: #FFFFFF;
}

.filter[aria-current] span {
    color: var(--dark-chip);
}

.portfolio {
    padding: clamp(32px, 3.6vw, 48px) 0 var(--section-y);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 44px 24px;
    padding: 0;
    list-style: none;
}

.project-grid > li {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.section-head + .project-grid {
    margin-top: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card__cover {
    display: block;
    aspect-ratio: 9 / 5;
    margin-bottom: 10px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-2);
}

.project-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card__cover img {
    transform: scale(1.04);
}

.project-card__type {
    display: block;
}

.project-card__title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.project-card:hover .project-card__title {
    color: var(--accent);
}

.more-tile {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 240px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #FFFFFF;
    transition: filter 0.2s ease;
}

.more-tile:hover {
    filter: brightness(0.92);
}

.more-tile .label {
    color: #FFFFFF;
}

.more-tile__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.more-tile__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--ink);
}

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

.case-head {
    padding: clamp(28px, 3.4vw, 48px) 0;
}

.case-head__main {
    flex: 1 1 620px;
    max-width: 820px;
}

.case-title {
    margin-top: 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

/* Описание приходит из CKEditor: абзацы, жирный, ссылки, списки. */
.case-lead {
    max-width: 680px;
    margin-top: 24px;
    font-size: clamp(17px, 1.35vw, 19px);
    line-height: 1.55;
    color: var(--muted);
}

.case-lead > * + * {
    margin-top: 0.8em;
}

.case-lead strong,
.case-lead b {
    color: var(--ink);
}

.case-lead a {
    color: var(--ink);
    text-decoration: underline;
}

.case-lead ul,
.case-lead ol {
    padding-left: 1.2em;
}

.case-head__aside {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 20px;
    max-width: 420px;
}

.facts {
    border-top: 1px solid var(--line);
}

.facts div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.5;
}

.facts dt {
    color: var(--muted);
}

.case-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-links .btn {
    height: 48px;
    padding: 0 20px;
    font-size: 15px;
}

.case-cover {
    aspect-ratio: 2 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: var(--paper-2);
}

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

.screenshot {
    margin: 0;
    padding: clamp(16px, 3.4vw, 48px) clamp(16px, 3.4vw, 48px) 0;
    border-radius: 28px;
    overflow: hidden;
    background: var(--ink);
}

.screenshot__window {
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: #FFFFFF;
}

.screenshot__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    background: #E9E9E6;
}

.screenshot__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C2C2BE;
}

.screenshot__bar .screenshot__address {
    display: flex;
    align-items: center;
    width: auto;
    height: 22px;
    margin-left: 16px;
    padding: 0 12px;
    border-radius: 6px;
    background: #FFFFFF;
    font-size: 12px;
    color: var(--muted);
}

.screenshot__viewport {
    height: min(760px, 75vh);
    overflow-y: auto;
    scrollbar-width: thin;
}

.screenshot__viewport img {
    width: 100%;
}

.screenshot__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

/* Разделы кейса идут подряд на белом фоне, поэтому отступ только сверху.
   Серая секция отделяется ещё и снаружи, последняя закрывается снизу. */
.case-section {
    padding-top: var(--section-y);
}

.case-section--muted {
    margin-top: var(--section-y);
    padding-bottom: var(--section-y);
    background: var(--paper-2);
}

.case-section--last {
    padding-bottom: var(--section-y);
}

.case-task {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 64px;
}

.case-section-title {
    flex: 1 1 280px;
    max-width: 360px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.case-task__text {
    flex: 1 1 560px;
    max-width: 840px;
    font-size: clamp(20px, 1.9vw, 26px);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.case-task__text p + p,
.feature__text p + p,
.case-result__text p + p {
    margin-top: 0.6em;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
    margin-top: 48px;
    padding: 0;
    list-style: none;
}

.features--1 {
    grid-template-columns: minmax(0, 1fr);
}

.features--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Экраны бывают телефонными, планшетными и широкими скриншотами —
   вписываем целиком, без обрезки. */
.feature__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 440px;
    padding: 32px;
    border-radius: 24px;
    background: var(--paper);
}

.feature__media img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature__num {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

.feature__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.feature__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

.case-result {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px 64px;
    padding: clamp(28px, 4.4vw, 64px);
    border-radius: 28px;
    background: var(--ink);
    color: var(--dark-ink);
}

.case-result .label {
    color: var(--dark-muted);
}

.case-result__body {
    flex: 1 1 560px;
    max-width: 820px;
}

.case-result__text {
    margin-top: 18px;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.case-result .btn--ghost {
    color: var(--dark-ink);
}

.case-result :focus-visible {
    outline-color: #FFFFFF;
    box-shadow: none;
}

.pager {
    border-top: 1px solid var(--line);
}

.pager__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.pager__link {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 8px;
    margin: 0 -16px;
    padding: 28px 16px;
    border-radius: 16px;
    transition: background-color 0.2s ease;
}

.pager__link:hover {
    background: var(--paper-2);
}

.pager__link--next {
    align-items: flex-end;
    text-align: right;
}

.pager__dir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pager__title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

/* Список услуг */

.page-head__hint {
    display: flex;
    flex: 0 1 340px;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--paper-2);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
}

.page-head__hint .icon {
    margin-top: 1px;
    color: var(--accent);
}

.services-group {
    padding: clamp(56px, 6vw, 88px) 0;
}

.services-group__note {
    flex: 0 1 380px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.service-list {
    margin-top: 32px;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 220px 56px;
    grid-template-areas: "num main price go";
    align-items: center;
    gap: 12px 32px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

/* На сером фоне линия --line почти не видна. */
.section--muted .service-list,
.section--muted .service-row {
    border-color: var(--line-2);
}

.service-row__num {
    grid-area: num;
    align-self: start;
    padding-top: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

.service-row__main {
    display: flex;
    grid-area: main;
    flex-direction: column;
    gap: 10px;
    max-width: 660px;
}

.service-row__title {
    font-family: var(--font-display);
    font-size: clamp(21px, 1.9vw, 27px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.service-row__text {
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.service-row__price {
    display: flex;
    grid-area: price;
    flex-direction: column;
    gap: 2px;
}

.service-row__price strong {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-row__price span {
    font-size: 14px;
    color: var(--muted);
}

.service-row__go {
    display: flex;
    grid-area: go;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-row:hover .service-row__title {
    color: var(--accent);
}

.service-row:hover .service-row__go {
    border-color: var(--ink);
    background: var(--ink);
    color: #FFFFFF;
}

/* Страница услуги */

.service-head {
    padding: clamp(28px, 3.4vw, 48px) 0 clamp(56px, 6vw, 88px);
}

.service-head__row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 32px 64px;
    margin-top: clamp(24px, 3vw, 40px);
}

.service-head__main {
    display: flex;
    flex: 1 1 600px;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
}

.service-title {
    margin-top: 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 4.2vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.service-head__main .page-lead {
    max-width: 640px;
}

.service-gift {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 24px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--paper-2);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.service-gift .icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.service-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-self: stretch;
    gap: 12px;
    margin-top: 32px;
}

.price-card {
    display: flex;
    flex: 1 1 340px;
    flex-direction: column;
    gap: 20px;
    max-width: 440px;
    padding: clamp(24px, 2.6vw, 36px);
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--dark-ink);
}

.price-card .label {
    color: var(--dark-muted);
}

.price-card__value {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-card__value strong {
    font-family: var(--font-display);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.price-card__value span {
    font-size: 15px;
    color: var(--dark-muted);
}

.price-card__note {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-line);
    font-size: 15px;
    line-height: 1.55;
    color: var(--dark-chip);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 16px;
    margin-top: 48px;
    padding: 0;
    list-style: none;
}

.benefit {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--paper);
}

.benefit__num {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

.benefit__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.benefit__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

/* Кейсы и «Другие услуги» — белые блоки. Под белым соседом они отделяются линией,
   под серым «Что входит» линия не нужна: хватает смены фона. */
.service-block {
    padding-bottom: var(--section-y);
}

.service-block > .container > .section-head {
    padding-top: clamp(48px, 5vw, 72px);
    border-top: 1px solid var(--line);
}

.section--muted + .service-block {
    padding-top: var(--section-y);
}

.section--muted + .service-block > .container > .section-head {
    padding-top: 0;
    border-top: 0;
}

.service-block .section-head > .section-title {
    margin-top: 0;
}

.link-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 12px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

.link-tiles > li {
    display: flex;
}

.link-tile {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    border: 1px solid var(--paper-2);
    border-radius: 16px;
    background: var(--paper-2);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-tile:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.link-tile__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.link-tile__note {
    font-size: 15px;
    color: var(--muted);
}

/* О компании */

.about-head {
    padding: clamp(28px, 3.4vw, 48px) 0 clamp(56px, 6vw, 88px);
}

.about-head__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 64px;
    margin-top: clamp(24px, 3vw, 40px);
}

.about-head__main {
    flex: 1 1 420px;
    max-width: 540px;
}

.about-head__main .page-title {
    margin-top: 20px;
}

/* Вступление приходит из CKEditor: абзацы, жирный, ссылки, списки. Первый абзац — крупнее. */
.about-intro {
    flex: 1 1 560px;
    max-width: 700px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
}

.about-intro > * + * {
    margin-top: 16px;
}

.about-intro > p:first-child {
    font-size: clamp(19px, 1.6vw, 22px);
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink);
}

.about-intro strong,
.about-intro b,
.about-intro a {
    color: var(--ink);
}

.about-intro a {
    text-decoration: underline;
}

.about-intro ul,
.about-intro ol {
    padding-left: 1.2em;
}

.stats--lg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 32px;
    margin-top: clamp(40px, 5vw, 64px);
    padding-top: 28px;
}

.stats--lg .stats__value {
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1;
}

.stats--lg .stats__label {
    font-size: 15px;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 16px;
    margin-top: 48px;
    padding: 0;
    list-style: none;
}

.about-fact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(24px, 2.6vw, 36px);
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.about-fact__title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.about-fact__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

/* Знак в файле белый — он рисовался под тёмный фон старой страницы. На светлой карточке делаем его тёмным. */
.about-fact__logo {
    align-self: flex-start;
    width: auto;
    height: 40px;
    margin-top: auto;
    filter: brightness(0);
}

.about-fact--dark {
    background: var(--ink);
    color: var(--dark-ink);
}

.about-fact--dark .label {
    color: var(--dark-muted);
}

.about-fact--dark .about-fact__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.about-fact--dark .about-fact__text {
    margin-top: auto;
    color: var(--dark-chip);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 12px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

.logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--paper-2);
}

/* Логотипы клиентов разноцветные: в сетке они серые и оживают при наведении. */
.logo-tile img {
    width: auto;
    max-width: 72%;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.logo-tile:hover img {
    filter: none;
    opacity: 1;
}

.logo-tile__name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--muted-2);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 40px 32px;
    margin-top: 48px;
}

.tech-group {
    padding-top: 20px;
    border-top: 1px solid var(--dark-line);
}

.tech-group__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.tech-chips li {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--dark-line);
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--dark-chip);
}

.requisites {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px 64px;
}

.requisites__head {
    flex: 1 1 320px;
    max-width: 420px;
}

.requisites__list {
    flex: 1 1 600px;
    max-width: 780px;
    border-top: 1px solid var(--line);
}

.requisites__list div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 4px 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    line-height: 1.5;
}

.requisites__list dt {
    color: var(--muted);
}

/* Контакты */

.contacts-head {
    padding-bottom: var(--section-y);
}

.contact-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 12px;
    margin-top: clamp(32px, 4vw, 56px);
    padding: 0;
    list-style: none;
}

.contact-tiles > li {
    display: flex;
}

.contact-tile {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    padding: clamp(24px, 2.4vw, 32px);
    border: 1px solid var(--paper-2);
    border-radius: var(--radius);
    background: var(--paper-2);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-tile:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.contact-tile__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.contact-tile__arrow {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-tile:hover .contact-tile__arrow {
    border-color: var(--ink);
    background: var(--ink);
    color: #FFFFFF;
}

.contact-tile__value {
    margin-top: auto;
    font-family: var(--font-display);
    font-size: clamp(20px, 1.9vw, 26px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.contact-tile__note {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.requisites__text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.requisites__copy {
    margin-top: 28px;
}

.requisites__list dd {
    font-variant-numeric: tabular-nums;
}

/* На сером фоне линия --line почти не видна. */
.section--muted .requisites__list,
.section--muted .requisites__list div {
    border-color: var(--line-2);
}

/* Текстовые страницы из админки */

.text-page {
    padding: clamp(28px, 3.4vw, 48px) 0 var(--section-y);
}

.text-page__title {
    max-width: 920px;
    margin-top: clamp(24px, 3vw, 40px);
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 54px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.text-page__body {
    margin-top: clamp(32px, 4vw, 56px);
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid var(--line);
}

/* Текст из CKEditor: абзацы, заголовки, списки, ссылки, таблицы. */
.prose {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-2);
    overflow-wrap: break-word;
}

.prose > * + * {
    margin-top: 1.1em;
}

.prose h2 {
    margin-top: 2em;
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.prose h3 {
    margin-top: 1.6em;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.prose h2 + *,
.prose h3 + * {
    margin-top: 0.6em;
}

.prose strong,
.prose b {
    font-weight: 600;
    color: var(--ink);
}

.prose a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: var(--accent);
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose blockquote {
    padding-left: 20px;
    border-left: 3px solid var(--accent);
    color: var(--muted);
}

.prose img {
    border-radius: var(--radius);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose th {
    font-weight: 600;
    color: var(--ink);
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--line);
}

/* Страница 404. Остальные ошибки — errors/minimal.blade.php со своими стилями. */

.error-404 {
    padding: clamp(48px, 6vw, 96px) 0 var(--section-y);
}

.error-404__code {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: clamp(120px, 18vw, 260px);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

/* Ноль — кольцо фирменного цвета. */
.error-404__code span {
    display: inline-block;
    width: 0.62em;
    height: 0.62em;
    margin: 0 0.06em;
    border: 0.16em solid var(--accent);
    border-radius: 50%;
}

.error-404 .label {
    margin-top: clamp(28px, 3vw, 40px);
}

.error-404__title {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 54px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.error-404 .page-lead {
    max-width: 620px;
    margin-top: 20px;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.error-404__links {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    margin-top: clamp(48px, 5vw, 72px);
}

/* Карта сайта */

.sitemap {
    padding-bottom: var(--section-y);
}

.sitemap .page-title {
    margin-top: clamp(24px, 3vw, 40px);
}

.sitemap__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 40px 32px;
    margin-top: clamp(40px, 5vw, 64px);
}

.sitemap__group {
    padding-top: 20px;
    border-top: 2px solid var(--ink);
}

.sitemap__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.sitemap__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
    font-size: 16px;
    line-height: 1.45;
}

.sitemap__links a {
    transition: color 0.2s ease;
}

.sitemap__links a:hover {
    color: var(--accent);
}

/* Вакансии */

.vacancies-head {
    padding-bottom: clamp(48px, 5vw, 72px);
}

.perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px 32px;
    margin-top: clamp(40px, 5vw, 64px);
    padding: 0;
    list-style: none;
}

.perks li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 2px solid var(--ink);
}

.perks__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.perks__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

.vacancies-list {
    padding-bottom: var(--section-y);
}

.vacancies {
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--line);
}

.vacancy {
    border-top: 1px solid var(--line);
}

.vacancy__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px 32px;
    padding: 28px 0;
    list-style: none;
    cursor: pointer;
}

.vacancy__summary::-webkit-details-marker {
    display: none;
}

.vacancy__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.vacancy__title {
    font-family: var(--font-display);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.vacancy__summary:hover .vacancy__title {
    color: var(--accent);
}

.vacancy__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vacancy__tags span {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--paper-2);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-2);
}

.vacancy__salary {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.vacancy__sign {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vacancy__sign::before {
    content: "+";
}

.vacancy[open] .vacancy__sign::before {
    content: "−";
}

.vacancy__summary:hover .vacancy__sign {
    border-color: var(--ink);
    background: var(--ink);
    color: #FFFFFF;
}

.vacancy__body {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    padding-bottom: 36px;
}

.vacancy__intro {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 420px;
}

.vacancy__lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
}

.vacancy__pay {
    font-size: 15px;
    color: var(--muted);
}

.vacancy__pay strong {
    font-weight: 600;
    color: var(--ink);
}

.vacancy__lists {
    display: grid;
    flex: 2 1 480px;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 28px 32px;
}

.vacancy__list-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.vacancy__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-2);
}

.vacancy__list li {
    position: relative;
    padding-left: 16px;
}

.vacancy__list li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

select.field__control {
    cursor: pointer;
}

.vacancies-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    margin-top: clamp(40px, 5vw, 64px);
    padding: clamp(28px, 3.4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}

.vacancies-empty__title {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.vacancies-empty__text {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

/* Блог */

.blog-list {
    padding: clamp(32px, 3.6vw, 48px) 0 var(--section-y);
}

.post-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    align-items: center;
    gap: 24px 48px;
}

.post-featured__cover,
.post-card__cover {
    display: block;
    aspect-ratio: 9 / 5;
    overflow: hidden;
    background: var(--paper-2);
}

.post-featured__cover {
    border-radius: var(--radius-lg);
}

.post-card__cover {
    border-radius: var(--radius);
}

.post-featured__cover img,
.post-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-featured:hover .post-featured__cover img,
.post-card:hover .post-card__cover img {
    transform: scale(1.04);
}

.post-featured__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.post-featured__title {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.post-featured__text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
}

.post-featured__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid currentColor;
    font-size: 16px;
    font-weight: 600;
}

.post-featured:hover .post-featured__title,
.post-card:hover .post-card__title {
    color: var(--accent);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 44px 24px;
    padding: 0;
    list-style: none;
}

.post-featured + .post-grid {
    margin-top: clamp(48px, 5vw, 72px);
}

.section-head + .post-grid {
    margin-top: 40px;
}

.post-grid > li {
    display: flex;
    min-width: 0;
}

.post-card {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    gap: 14px;
}

.post-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.post-card__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

.post-head {
    padding: clamp(28px, 3.4vw, 48px) 0 0;
}

.post-head .eyebrow {
    margin-top: clamp(24px, 3vw, 40px);
}

.post-title {
    max-width: 920px;
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 54px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.post-cover {
    max-width: 960px;
    margin: clamp(32px, 4vw, 48px) 0 0;
    aspect-ratio: 9 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-2);
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: clamp(40px, 5vw, 64px) 0 var(--section-y);
}

.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    max-width: 760px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.share__label {
    font-size: 15px;
    color: var(--muted);
}

.share__link {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.share__link:hover {
    border-color: var(--ink);
}

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: clamp(48px, 5vw, 64px);
    padding: 0;
    list-style: none;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

a.pagination__link:hover {
    border-color: var(--ink);
}

.pagination__link.is-current {
    border-color: var(--ink);
    background: var(--ink);
    color: #FFFFFF;
}

.pagination__link.is-disabled {
    opacity: 0.35;
}

.pagination__gap {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 4px;
    color: var(--muted);
}

/* Адаптив */

@media (min-width: 961px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 960px) {
    .site-nav,
    .site-header__phone,
    .site-header__tg {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .features--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Строка услуги складывается: номер и стрелка, под ними название, описание и цена. */
    .service-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "num go"
            "main main"
            "price price";
        gap: 12px 16px;
        padding: 24px 0;
    }

    .service-row__num {
        align-self: center;
        padding-top: 0;
    }

    .service-row__go {
        width: 44px;
        height: 44px;
    }

    .service-row__price {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .price-card {
        max-width: none;
    }

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

    /* Три карточки контактов в две колонки дают одинокую третью — складываем в одну. */
    .contact-tiles {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-tile {
        min-height: 140px;
    }
}

@media (max-width: 600px) {
    .hero__actions .btn,
    .service-head__actions .btn,
    .error-404__actions .btn {
        flex: 1 1 100%;
    }

    .benefit {
        padding: 22px;
    }

    /* Зарплата есть и в раскрытой вакансии — в строке на телефоне ей места нет. */
    .vacancy__salary {
        display: none;
    }

    .vacancy__summary {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 24px 0;
    }

    .vacancy__sign {
        width: 40px;
        height: 40px;
    }

    /* Восемь логотипов в одну колонку — лишние экраны прокрутки. */
    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .logo-tile {
        height: 96px;
        padding: 16px;
    }

    .logo-tile img {
        max-width: 84%;
        max-height: 44px;
    }

    .logo-tile__name {
        font-size: 17px;
    }


    .mobile-menu__inner .btn {
        align-self: stretch;
    }

    .service-card,
    .service-card--compact {
        min-height: 0;
        padding: 22px;
    }

    .service-card__arrow {
        display: none;
    }

    .case-card__media,
    .case-card--wide .case-card__media,
    .case-card--medium .case-card__media {
        height: 240px;
    }

    .case-card__media--screen {
        padding: 28px 28px 0;
    }

    .features,
    .features--3 {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Фильтры портфолио — лентой во всю ширину экрана вместо пяти строк. */
    .filters {
        flex-wrap: nowrap;
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }

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

    .filter {
        flex-shrink: 0;
    }

    .feature__media {
        height: 360px;
        padding: 24px;
    }

    .screenshot__viewport {
        height: 480px;
    }

    .case-cover {
        aspect-ratio: 4 / 3;
    }

    .pager__link--next {
        align-items: flex-start;
        text-align: left;
    }

    /* Пять страниц со стрелками помещаются в одну строку. */
    .pagination ul {
        gap: 6px;
    }

    .pagination__link {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
    }

    .pagination__gap {
        height: 40px;
    }
}

/* На самых узких экранах кнопка не помещается в шапку — она есть в первом экране и в меню. */
@media (max-width: 400px) {
    .site-header__cta {
        display: none;
    }
}
