/*
Theme Name: franchise
Author: AutoGasFranchise
Author URI:
Description:
Version: 2026
*/

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("assets/fonts/montserrat-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("assets/fonts/montserrat-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --brand-red: #C50C22;
    --brand-red-dark: #A80A1D;
    --brand-black: #1E1E1E;
    --brand-gray: #7F7F7F;
    --paper: #FAFAF7;
    --line: #E7E4DE;
    --white: #FFFFFF;
    /* Подсказки в форме: и плейсхолдер, и невыбранный список. */
    --placeholder: rgba(30, 30, 30, 0.2);
    --font-sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Высота шапки: обычная и уменьшенная после прокрутки. Ее спрашивают
       мобильное меню и отступ якорных ссылок, поэтому она в переменных. */
    --header-h: 80px;
    --header-h-min: 64px;
    --admin-bar-h: 0px;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    /* Переход по якорю ставит раздел ровно под шапку. К моменту, когда
       прокрутка закончится, шапка уже уменьшена, плюс 1px ее рамки: возьми
       мы высоту нетронутой шапки, раздел встал бы ниже и над ним осталась
       бы полоска предыдущего. */
    scroll-padding-top: calc(var(--header-h-min) + var(--admin-bar-h) + 1px);
}

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

body.franchise-landing {
    margin: 0;
    background: var(--paper);
    color: var(--brand-black);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

html:not(.animations-ready) .reveal,
html:not(.animations-ready) .hero-reveal {
    opacity: 1;
    transform: none;
}

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

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

button,
input,
select {
    font: inherit;
}

::selection {
    background: var(--brand-red);
    color: #FFFFFF;
}

:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 3px;
}

.container-page {
    width: min(100% - 32px, 1360px);
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

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

.section-white {
    background: #FFFFFF;
}

.section-dark {
    background: var(--brand-black);
    color: #FFFFFF;
}

.kicker,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--brand-gray);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.kicker::before,
.hero-kicker span {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--brand-red);
}

.kicker.light {
    color: rgba(255, 255, 255, 0.55);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

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

h2 {
    margin: 20px 0 0;
    max-width: 16ch;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin: 0;
}

.red {
    color: var(--brand-red);
}

.muted,
.disclaimer {
    color: var(--brand-gray);
}

.label {
    margin: 0;
    color: var(--brand-gray);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn::after {
    content: "→";
    font-size: 17px;
    line-height: 1;
}

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

.btn-primary:hover {
    background: var(--brand-red-dark);
}

.btn-secondary {
    border-color: rgba(30, 30, 30, 0.25);
    color: var(--brand-black);
}

.btn-secondary:hover {
    border-color: var(--brand-black);
    background: var(--brand-black);
    color: #FFFFFF;
}

.btn-secondary-dark {
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

.btn-secondary-dark:hover {
    border-color: #FFFFFF;
    background: #FFFFFF;
    color: var(--brand-black);
}

.landing-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: #FFFFFF;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-header.is-scrolled {
    --header-h: var(--header-h-min);
    border-color: var(--line);
    box-shadow: 0 1px 0 rgba(30, 30, 30, 0.04);
}

/* Панель WordPress у авторизованных пользователей висит поверх страницы и
   перекрывала бы фиксированную шапку. Высота панели: 32px, на узких экранах 46px.
   Класс на html ставит header.php, он же нужен для отступа якорных ссылок. */
.has-admin-bar {
    --admin-bar-h: 32px;
}

.has-admin-bar .landing-header {
    top: var(--admin-bar-h);
}

@media screen and (max-width: 782px) {
    .has-admin-bar {
        --admin-bar-h: 46px;
    }
}

.header-inner {
    /* Над раскрытым мобильным меню: оно перекрывает экран, но логотип и
       кнопка-бургер должны остаться видимыми и кликабельными. */
    position: relative;
    z-index: 1;
    display: flex;
    height: var(--header-h);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: height 0.25s ease;
}

.logo-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.logo-img {
    width: auto;
    height: 40px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.desktop-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 4px;
    color: rgba(30, 30, 30, 0.7);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--brand-red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cta {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brand-black);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Меню занимает весь экран под шапкой: пунктов немного, но на телефоне
   короткая шторка выглядит обрезанной, а список продолжает страницу. */
.mobile-menu {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + var(--admin-bar-h));
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    background: #FFFFFF;
}

.mobile-menu nav {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 24px;
}

.mobile-menu a:not(.btn) {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}

/* Значок метит пункты, которые выпадают из навигации по странице: кабинет
   партнера и ссылку на другой сайт. Спрайт печатает header.php, размеры
   и цвет задаются здесь, поэтому один и тот же значок годится и для светлой
   шапки, и для темного подвала. */
.menu-icons-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.menu-icon {
    /* Флекс-элемент по умолчанию сжимается: без этого значок расплющивается,
       когда подписи не хватает места. */
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu .btn {
    /* Прижимает кнопку к низу экрана, когда пункты меню его не заполнили. */
    margin-top: auto;
    margin-bottom: env(safe-area-inset-bottom, 0px);
}

.hero-section {
    position: relative;
    display: flex;
    min-height: 100svh;
    align-items: flex-end;
    overflow: hidden;
    background: var(--brand-black);
    color: #FFFFFF;
}

.hero-bg,
.asset-section > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media {
    position: absolute;
    inset: 0;
    transform: scale(1.07);
    transform-origin: center;
    transition: transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-media.is-parallax-ready {
    transition: none;
}

.animations-ready.animations-started .hero-media {
    transform: scale(1) translate3d(0, var(--hero-parallax, 0px), 0);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 38% 45%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.62) 0%, rgba(18, 18, 18, 0.3) 45%, rgba(18, 18, 18, 0.05) 72%),
    linear-gradient(180deg, rgba(30, 30, 30, 0.4) 0%, rgba(30, 30, 30, 0.18) 40%, rgba(16, 16, 16, 0.86) 100%);
}

.hero-content {
    position: relative;
    padding-top: 144px;
    padding-bottom: 88px;
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.75);
}

.hero-content h1 {
    max-width: 17ch;
    margin: 24px 0 0;
    font-size: clamp(1.9rem, 6.2vw, 4.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    white-space: nowrap;
}

.hero-text {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 500;
    line-height: 1.7;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.animations-ready .hero-reveal,
.animations-ready .reveal {
    opacity: 0;
    transform: translate3d(0, var(--reveal-y, 24px), 0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.animations-ready .hero-reveal.is-visible,
.animations-ready .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.animations-ready .hero-reveal {
    --reveal-y: 28px;
}

.num-count {
    display: inline-block;
    min-width: 0.64em;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
    align-items: end;
}

.section-grid > :first-child {
    grid-column: span 5;
}

.section-grid > :last-child {
    grid-column: 7 / span 5;
}

.lead-copy {
    max-width: 560px;
    margin-bottom: 0;
    color: rgba(30, 30, 30, 0.8);
    font-weight: 600;
    line-height: 1.75;
}

.section-dark .lead-copy {
    color: rgba(255, 255, 255, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 80px 0 0;
    border-top: 1px solid var(--line);
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 44px 24px 36px 0;
    border-bottom: 1px solid var(--line);
}

.stat-item dt {
    order: 2;
    max-width: 28ch;
    margin-top: 14px;
    color: rgba(30, 30, 30, 0.65);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.stat-item dd {
    order: 1;
    margin: 0;
    color: var(--brand-black);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums lining-nums;
}

.market-grid {
    display: grid;
    grid-template-columns: 7fr 4fr;
    gap: 8%;
}

.market-grid h2 {
    max-width: 20ch;
}

.line-list {
    max-width: 640px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.line-list li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    color: rgba(30, 30, 30, 0.85);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.7;
}

.line-list li::before {
    content: "";
    display: block;
    width: 24px;
    height: 1px;
    margin-top: 0.85em;
    background: var(--brand-red);
    flex: 0 0 auto;
}

.fuel-card {
    display: flex;
    min-height: 480px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 40px;
}

.fuel-bars {
    display: grid;
    gap: 32px;
    margin-top: 32px;
}

.fuel-bars strong {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bar {
    display: block;
    height: 3px;
}

.bar-gasoline {
    width: 100%;
    background: rgba(30, 30, 30, 0.25);
}

.bar-lpg {
    width: 60%;
    background: var(--brand-red);
}

.fuel-card p:last-child {
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: rgba(30, 30, 30, 0.75);
    font-size: 14px;
    font-weight: 600;
}

.section-heading {
    max-width: 780px;
}

.section-heading h2 {
    max-width: none;
}

.section-heading p:not(.kicker) {
    max-width: 640px;
    margin: 20px 0 0;
    color: rgba(30, 30, 30, 0.8);
    font-weight: 600;
    line-height: 1.7;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.format-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--brand-black);
}

.format-premium {
    border-color: var(--brand-black);
    background: var(--brand-black);
    color: #FFFFFF;
}

.format-media {
    height: 260px;
    background: var(--brand-black);
}

.format-media.split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1px;
}

.format-media img,
.system-sticky img,
.wide-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.format-standard .format-media img {
    object-position: 50% 55%;
}

.format-premium .format-media img:first-child {
    object-position: 55% 45%;
}

.format-premium .format-media img:last-child {
    object-position: 45% 50%;
}

.format-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 40px;
}

.format-body h3 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.format-body .muted {
    margin-top: 8px;
}

.format-premium .muted,
.format-premium .suitable span {
    color: rgba(255, 255, 255, 0.56);
}

.format-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.format-premium .format-metrics {
    border-color: rgba(255, 255, 255, 0.15);
}

.format-metrics div:first-child {
    padding-right: 20px;
    border-right: 1px solid var(--line);
}

.format-premium .format-metrics div:first-child {
    border-color: rgba(255, 255, 255, 0.15);
}

.format-metrics div:last-child {
    padding-left: 20px;
}

.format-metrics span,
.suitable span {
    display: block;
    color: var(--brand-gray);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.format-metrics strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1;
    font-variant-numeric: tabular-nums lining-nums;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 12px;
    color: rgba(30, 30, 30, 0.85);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.65;
}

.format-premium .check-list li,
.format-premium .suitable p {
    color: rgba(255, 255, 255, 0.85);
}

.check-list li::before {
    content: "";
    width: 16px;
    height: 1px;
    margin-top: 0.8em;
    background: var(--brand-red);
    flex: 0 0 auto;
}

.suitable {
    margin-top: 32px;
}

.suitable p {
    margin: 8px 0 0;
    color: rgba(30, 30, 30, 0.85);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.7;
}

.format-card .btn {
    width: fit-content;
    margin-top: 40px;
}

.rebranding-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    margin-top: 24px;
    padding: 44px;
    border: 1px solid var(--line);
    background: #FFFFFF;
}

.rebranding-box::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--brand-red);
}

.rebranding-box h3 {
    margin-top: 12px;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.rebranding-box p:not(.label) {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(30, 30, 30, 0.8);
    font-weight: 600;
}

.disclaimer {
    max-width: 900px;
    margin: 32px 0 0;
    font-size: 13px;
    line-height: 1.7;
}

.materials-band {
    background: var(--brand-black);
    color: #FFFFFF;
    padding: 56px 0;
}

.materials-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.materials-inner h2 {
    max-width: none;
    margin-top: 12px;
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}

.materials-inner p:not(.label) {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.system-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
}

.system-sticky {
    position: sticky;
    top: 112px;
    align-self: start;
}

.system-sticky h2 {
    max-width: 14ch;
}

.system-sticky p:not(.kicker) {
    max-width: 460px;
    margin: 24px 0 0;
    color: rgba(30, 30, 30, 0.8);
    font-weight: 600;
    line-height: 1.75;
}

.system-sticky .btn {
    margin-top: 32px;
}

.system-sticky img {
    height: 260px;
    margin-top: 40px;
    object-position: 55% 35%;
}

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

.capability-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.capability-list > li > span {
    padding-top: 4px;
    color: var(--brand-gray);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums lining-nums;
}

.capability-list h3 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.capability-list p {
    max-width: 680px;
    margin: 8px 0 0;
    color: rgba(30, 30, 30, 0.8);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.7;
}

.timeline {
    position: relative;
    display: grid;
    margin: 80px 0 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    inset: 8px auto 0 50%;
    width: 1px;
    background: var(--line);
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    padding-bottom: 64px;
}

.timeline li:nth-child(odd) > div {
    grid-column: 1;
    padding-right: 64px;
    text-align: right;
}

.timeline li:nth-child(even) > div {
    grid-column: 2;
    padding-left: 64px;
}

.timeline-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 15px;
    height: 15px;
    border: 2px solid var(--brand-red);
    background: var(--paper);
    transform: translateX(-50%);
}

.timeline li:last-child .timeline-dot {
    background: var(--brand-red);
}

.timeline-num {
    margin: 0;
    color: rgba(30, 30, 30, 0.1);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums lining-nums;
}

.timeline h3 {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timeline p:not(.timeline-num) {
    max-width: 460px;
    margin: 8px 0 0;
    color: rgba(30, 30, 30, 0.8);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.7;
}

.timeline li:nth-child(odd) p:not(.timeline-num) {
    margin-left: auto;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 56px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.infra-grid div {
    /* padding: 28px 28px 28px 0; */
    padding: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.infra-grid div:last-child {
    border-right: 0;
}

.infra-grid dt {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.infra-grid dd {
    margin: 8px 0 0;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
}

.wide-photo {
    height: 440px;
    margin-top: 64px;
    object-position: 50% 45%;
}

.photo-caption {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

blockquote {
    max-width: 980px;
    margin: 80px 0 0;
    padding-left: 40px;
    border-left: 2px solid var(--brand-red);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.suppliers {
    margin-top: 56px;
}

.suppliers ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 56px;
    margin: 24px 0 0;
    padding: 32px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.suppliers li {
    color: rgba(30, 30, 30, 0.35);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.suppliers p:last-child {
    margin: 16px 0 0;
    color: var(--brand-gray);
    font-size: 12.5px;
    line-height: 1.7;
}

.asset-section {
    position: relative;
    min-height: 80svh;
    overflow: hidden;
    background: var(--brand-black);
    color: #FFFFFF;
}

.asset-section > img {
    object-position: 50% 55%;
}

.asset-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 16, 16, 0.72) 0%, rgba(16, 16, 16, 0.42) 48%, rgba(16, 16, 16, 0.12) 75%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(20, 20, 20, 0.3) 45%, rgba(20, 20, 20, 0.82) 100%);
}

.asset-content {
    position: relative;
    display: flex;
    min-height: 80svh;
    flex-direction: column;
    justify-content: center;
    padding-top: 96px;
    padding-bottom: 96px;
}

.asset-content h2 {
    max-width: 18ch;
    color: #FFFFFF;
    font-size: clamp(1.65rem, 4.6vw, 3.8rem);
}

.asset-content h2 span {
    color: rgba(255, 255, 255, 0.6);
}

.asset-content p:not(.kicker) {
    max-width: 780px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 500;
    line-height: 1.7;
}

.lead-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
}

.lead-grid > div:first-child h2 {
    max-width: 15ch;
}

.lead-grid > div:first-child p:not(.kicker) {
    max-width: 520px;
    margin: 24px 0 0;
    color: rgba(30, 30, 30, 0.8);
    font-weight: 600;
    line-height: 1.75;
}

.lead-points {
    display: grid;
    gap: 12px;
    max-width: 520px;
    margin: 40px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    color: rgba(30, 30, 30, 0.72);
    font-size: 14px;
    font-weight: 600;
    list-style: none;
}

.lead-points li:first-child {
    color: rgba(30, 30, 30, 0.86);
    font-weight: 800;
}

.form-card {
    border: 1px solid var(--line);
    background: #FFFFFF;
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.lead-form label {
    display: block;
    color: rgba(30, 30, 30, 0.7);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lead-form input,
.lead-form select {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--brand-black);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    outline: none;
    text-transform: none;
    transition: border-color 0.2s ease;
}

.lead-form input:focus,
.lead-form select:focus {
    border-color: var(--brand-black);
}

.lead-form input.is-error,
.lead-form select.is-error {
    border-color: var(--brand-red);
}

/* Подсказка в поле светлее набранного текста: иначе пустое поле читается
   как заполненное. opacity нужна ради Firefox - он приглушает плейсхолдер сам. */
.lead-form input::placeholder {
    color: var(--placeholder);
    opacity: 1;
}

/* Своя стрелка вместо системной: та в каждом браузере своя, а рядом с ней
   еще и рамка списка, которая выбивается из плоской верстки формы. */
.lead-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231E1E1E' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    cursor: pointer;
}

/* Невыбранный список - такая же подсказка, как плейсхолдер в поле. */
.lead-form select:has(option[value=""]:checked) {
    color: var(--placeholder);
}

/* Цвет списка наследуют и пункты в нем, а они должны остаться читаемыми. */
.lead-form select option {
    color: var(--brand-black);
}

.lead-form small {
    display: block;
    margin-top: 6px;
    color: var(--brand-gray);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}

.checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    color: rgba(30, 30, 30, 0.8) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.6;
    text-transform: none !important;
}

.checkbox + .checkbox {
    margin-top: 12px;
}

.checkbox input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 2px 0 0;
    accent-color: var(--brand-red);
    flex: 0 0 auto;
}

.checkbox a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox em {
    color: var(--brand-gray);
    font-style: normal;
}

.form-error {
    margin: 20px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(197, 12, 34, 0.4);
    background: rgba(197, 12, 34, 0.05);
    color: var(--brand-red);
    font-size: 14px;
    font-weight: 600;
}

/* Ловушка для ботов: поле не должно быть видно и доступно людям,
   но должно оставаться в DOM и отправляться вместе с формой. */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-submit {
    margin-top: 32px;
    min-height: 56px;
    cursor: pointer;
}

.form-submit[disabled] {
    opacity: 0.6;
    cursor: default;
}

.form-success:focus {
    outline: none;
}

.form-success {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.form-success[hidden] {
    display: none;
}

.form-success > span {
    display: block;
    width: 56px;
    height: 4px;
    background: var(--brand-red);
}

.form-success h3 {
    margin-top: 24px;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.form-success p {
    max-width: 520px;
    margin: 16px 0 0;
    color: rgba(30, 30, 30, 0.8);
    font-weight: 600;
    line-height: 1.7;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.landing-footer {
    background: var(--brand-black);
    color: #FFFFFF;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 64px;
    padding-top: 64px;
    padding-bottom: 48px;
}

.footer-brand img {
    width: auto;
    height: 40px;
}

.footer-brand p {
    max-width: 380px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.7;
}

.landing-footer nav,
.footer-links {
    display: grid;
    align-content: start;
    gap: 12px;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    transition: color 0.2s ease;
}

/* Ссылка становится флексом ради значка: у пунктов без него ничего
   не меняется, выравнивать в строке нечего. */
.landing-footer nav a,
.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.landing-footer a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    padding-top: 24px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1100px) {
    .desktop-nav {
        display: none;
    }

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

    /* Раскрытое меню живет только там, где есть кнопка-бургер: если экран
       расширили с открытым меню, закрывать его было бы нечем. */
    .mobile-menu.is-open {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    .section-grid,
    .market-grid,
    .system-grid,
    .lead-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-grid > :first-child,
    .section-grid > :last-child {
        grid-column: auto;
    }

    .system-sticky {
        position: static;
    }

    .system-sticky img {
        display: none;
    }

    .timeline::before {
        left: 7px;
    }

    .timeline li,
    .timeline li:nth-child(odd) > div,
    .timeline li:nth-child(even) > div {
        display: block;
        padding-right: 0;
        padding-left: 40px;
        text-align: left;
    }

    .timeline-dot {
        left: 0;
        transform: none;
    }

    .timeline li:nth-child(odd) p:not(.timeline-num) {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 72px 0;
    }

    .stats-grid,
    .format-grid,
    .infra-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding-right: 0;
    }

    .format-body,
    .form-card,
    .rebranding-box {
        padding: 28px;
    }

    .rebranding-box,
    .materials-inner {
        grid-template-columns: 1fr;
        display: grid;
        align-items: start;
    }

    .infra-grid div {
        padding-left: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .wide-photo {
        height: 340px;
    }

    .footer-inner {
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .container-page {
        width: min(100% - 28px, 1360px);
    }

    :root {
        --header-h: 72px;
    }

    .logo-img {
        height: 34px;
    }

    /* В шапке телефона кнопка соседствует с логотипом и бургером: со стрелкой
       и полным ростом она вылезает за край. */
    .header-cta {
        min-height: 36px;
        padding: 6px 10px;
        font-size: 10px;
    }

    .header-cta::after {
        display: none;
    }

    .hero-section::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(20, 20, 20, 0.45);
    }

    .hero-content {
        z-index: 1;
        padding-top: 128px;
        padding-bottom: 64px;
    }

    .hero-actions,
    .download-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .download-actions .btn,
    .form-submit {
        width: 100%;
    }

    .format-media {
        height: 220px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .capability-list li {
        gap: 20px;
    }

    .wide-photo {
        height: 260px;
    }

    blockquote {
        padding-left: 24px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .animations-ready .hero-media,
    .animations-ready .hero-reveal,
    .animations-ready .reveal {
        opacity: 1;
        transform: none !important;
        transition: none !important;
    }
}

/* ===== Внутренние страницы ===== */

/* Шапка зафиксирована и имеет высоту 80px. На лендинге под ней стоит герой,
   который так и задуман, а у внутренней страницы первая же секция начинается
   от верха документа - без отступа заголовок уезжает под шапку. */
.page-inner {
    padding-top: 128px;
}

.page-error__code {
    margin: 0 0 8px;
    color: var(--brand-red);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
}

.page-error__title {
    margin: 0 0 16px;
}

.page-error__text {
    max-width: 520px;
    margin: 0 0 32px;
    color: var(--brand-gray);
}

.page-error__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== Личный кабинет партнера ===== */

.partner__title {
    margin: 0 0 12px;
}

.partner__title a:hover {
    color: var(--brand-red);
}

.partner__text {
    max-width: 525px;
    margin: 0 0 24px;
    color: var(--brand-gray);
    font-size: 15px;
}

.partner-login {
    max-width: 540px;
}

.partner-login__form {
    margin: 0 0 24px;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--white);
}

.partner-login__field {
    margin: 0 0 18px;
}

.partner-login__label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
}

/* Высота поля повторяет формы лендинга, чтобы формы на сайте выглядели
   одинаково. Классы при этом свои: смешивать БЭМ с разметкой лендинга
   в одном блоке не нужно. */
.partner-login__input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--brand-black);
    font-family: var(--font-sans);
    font-size: 15px;
}

.partner-login__input:focus {
    border-color: var(--brand-black);
    outline: none;
}

.partner-login__input--error {
    border-color: var(--brand-red);
}

.partner-login__error {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-left: 3px solid var(--brand-red);
    background: rgba(197, 12, 34, 0.06);
    color: var(--brand-red);
    font-size: 14px;
}

.partner-login__submit {
    width: 100%;
    cursor: pointer;
}

.partner-cabinet {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
}

.partner-cabinet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.partner-cabinet__name {
    margin: 0;
    color: var(--brand-gray);
    font-size: 15px;
}

.partner-cabinet__greeting {
    max-width: 760px;
    margin: 0 0 40px;
}

.partner-cabinet__greeting p {
    margin: 0 0 12px;
    overflow-wrap: break-word;
}

.partner-cabinet__greeting p:last-child {
    margin-bottom: 0;
}

.partner-cabinet__logout {
    padding: 10px 20px;
    border: 1px solid rgba(30, 30, 30, 0.25);
    background: transparent;
    color: var(--brand-black);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.partner-cabinet__logout:hover {
    border-color: var(--brand-black);
    background: var(--brand-black);
    color: var(--white);
}

/* Вход в кабинет: категории карточками. */
.partner-cats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.partner-cats__item {
    display: flex;
}

.partner-cats__card {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--brand-black);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-cats__card:hover {
    border-color: var(--brand-black);
    box-shadow: 0 2px 0 rgba(30, 30, 30, 0.04);
}

.partner-cats__icon {
    width: 32px;
    height: 32px;
    margin: 0 0 4px;
    color: var(--brand-red);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.partner-cats__name {
    overflow-wrap: break-word;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.partner-cats__note {
    color: var(--brand-gray);
    font-size: 14px;
}

.partner-cats__count {
    margin-top: auto;
    padding-top: 8px;
    color: var(--brand-gray);
    font-size: 13px;
}

/* Просмотр категории: список категорий слева, файлы справа. */
.partner-browse {
    display: grid;
    gap: 40px;
    grid-template-columns: 284px minmax(0, 1fr);
    align-items: start;
}

/* Шапка зафиксирована и занимает 80px, отступ тот же, что у scroll-padding-top.
   Высота ограничена высотой экрана со своей прокруткой: категорий может быть
   больше, чем влезает, и тогда липкий блок не закрепился бы вовсе - он просто
   не помещался бы в окно. */
.partner-browse__side {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.has-admin-bar .partner-browse__side {
    top: 128px;
    max-height: calc(100vh - 152px);
}

.partner-nav__title {
    display: block;
    margin: 0 0 12px;
    padding: 0 12px;
    color: var(--brand-gray);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.partner-nav__title:hover {
    color: var(--brand-red);
}

.partner-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.partner-nav__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-left: 2px solid transparent;
    color: var(--brand-black);
    font-size: 14px;
    text-decoration: none;
}

.partner-nav__link:hover {
    background: var(--white);
    color: var(--brand-red);
}

.partner-nav__link--current {
    border-left-color: var(--brand-red);
    background: var(--white);
    font-weight: 700;
}

.partner-nav__name {
    min-width: 0;
    overflow-wrap: break-word;
}

.partner-nav__count {
    flex: 0 0 auto;
    color: var(--brand-gray);
    font-size: 12px;
    min-width: 20px;
    text-align: right;
}

/* Ссылка «Все категории» выводится в разметке один раз, а место занимает
   разное: на десктопе внизу, под списком файлов, потому что сверху уже есть
   заголовок-ссылка и список категорий слева. На узком экране список категорий
   уезжает наверх, и возврат логичнее там же - переставляем через order. */
.partner-browse__main {
    display: flex;
    flex-direction: column;
}

.partner-browse__back {
    order: 2;
    margin: 20px 0 0;
    font-size: 14px;
}

.partner-browse__back a {
    color: var(--brand-gray);
    text-decoration: none;
}

.partner-browse__back a:hover {
    color: var(--brand-red);
}

.partner-docs__note {
    margin: -8px 0 16px;
    color: var(--brand-gray);
    font-size: 14px;
}

.partner-docs__group {
    margin: 0 0 40px;
}

.partner-docs__group-title {
    margin: 0 0 16px;
    overflow-wrap: break-word;
    font-size: 20px;
    max-width: none;
}

/* Отрицательные поля: подсветка строки при наведении заходит за края текста,
   но левый край названий остается на одной линии с заголовком категории. */
.partner-docs__list {
    margin: 0 -12px;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.partner-docs__item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 12px;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.15s ease;
}

.partner-docs__item:hover {
    background: var(--white);
}

/* Спрайт печатается один раз и ничего не занимает, но без явного скрытия
   defs в некоторых браузерах оставляет пустую строку в потоке. */
.partner-docs__sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.partner-docs__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Цвет отличает тип с одного взгляда. Красный уже занят брендом, поэтому
   он достается PDF, остальные оттенки приглушены под общую палитру. */
.partner-docs__icon--pdf {
    color: var(--brand-red);
}

.partner-docs__icon--word {
    color: #2B579A;
}

.partner-docs__icon--excel {
    color: #1D7044;
}

.partner-docs__icon--slides {
    color: #C04A1B;
}

.partner-docs__icon--archive {
    color: #8A6D3B;
}

.partner-docs__icon--image {
    color: #2F7D8C;
}

.partner-docs__icon--file {
    color: var(--brand-gray);
}

/* min-width: 0 обязателен. У флекс-элемента по умолчанию min-width: auto,
   и он не сжимается уже своего минимального содержимого. Названия часто
   подставляются из имен файлов вида «Анализ_ценовой_политики_конкурентов»:
   переносить такое слово браузеру негде, колонка распирает строку, и вся
   страница уезжает в горизонтальную прокрутку. */
/* Ссылка по ширине равна тексту, а не всей строке: нажиматься должно название,
   а не пустое место справа от него. Свободное место забирает margin-right: auto,
   поэтому блок ссылок все равно прижат к правому краю.
   min-width: 0 обязателен: флекс-элемент по умолчанию не сжимается уже своего
   содержимого, и длинное имя файла без пробелов распирало бы строку. */
.partner-docs__link {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    overflow-wrap: break-word;
    color: var(--brand-black);
    font-weight: 700;
    text-decoration: none;
}

.partner-docs__link:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

/* Три колонки фиксированной ширины: просмотр, скачивание и тип с размером.
   Ссылки есть не у каждого документа, и при обычном потоке «Скачать» у файла
   без просмотра съезжало влево - колонки в соседних строках не совпадали.
   Пустая колонка теперь просто остается пустой. */
.partner-docs__actions {
    display: grid;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 16px;
    grid-template-columns: 88px 60px 88px;
}

.partner-docs__action--view {
    grid-column: 1;
}

.partner-docs__action--download {
    grid-column: 2;
}

.partner-docs__action {
    justify-self: start;
    color: var(--brand-gray);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}

.partner-docs__action:hover {
    color: var(--brand-red);
    border-bottom-color: currentColor;
}

.partner-docs__meta {
    grid-column: 3;
    justify-self: end;
    color: var(--brand-gray);
    font-size: 13px;
    white-space: nowrap;
}

.partner-docs__empty {
    margin: 0;
    color: var(--brand-gray);
}

/* Сайдбар перестает быть колонкой раньше, чем остальная верстка: на планшете
   260px слева заметно душат список файлов с длинными названиями. */
@media (max-width: 900px) {
    .partner-browse {
        gap: 24px;
        grid-template-columns: minmax(0, 1fr);
    }

    .partner-browse__side {
        position: static;
        max-height: none;
        overflow-y: visible;
        display: none;
    }

    /* Список категорий здесь скрыт, поэтому возврат к ним поднимается наверх:
       иначе до него пришлось бы пролистать весь список файлов. */
    .partner-browse__back {
        order: -1;
        margin: 0 0 16px;
    }

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

    .partner-nav__link {
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-left-width: 2px;
    }
}

@media (max-width: 640px) {
    .page-inner {
        padding-top: 112px;
    }

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

    .partner-cats__card {
        padding: 20px;
    }

    .page-error__code {
        font-size: 56px;
    }

    .partner-login__form {
        padding: 20px;
    }

    .partner-cabinet__head {
        flex-direction: column;
        align-items: stretch;
    }

    /* Иконка и название остаются в одной строке, кнопки переносятся под них
       и выравниваются по названию. Колонкой было бы хуже: иконка оторвалась
       бы от заголовка, к которому относится. */
    .partner-docs__item {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    /* На узком экране строка переносится, и здесь нужен нулевой базис: с auto
       длинное название считается «широким» и уезжает на отдельную строку,
       оставляя иконку одну. Заодно на телефоне палец попадает по названию
       увереннее, если ссылка занимает всю строку. */
    .partner-docs__link {
        flex: 1 1 0;
        margin-right: 0;
    }

    .partner-docs__actions {
        flex: 1 0 100%;
        padding-left: 38px;
        gap: 12px;
        grid-template-columns: 84px 56px auto;
    }
}
