

/* Start:/assets/css/style.css?178016604929077*/
/* ============================================================
   Lapin Design System — production stylesheet (e-lapin.ru)
   Token-driven BEM. Tokens come from the design system
   (_ds/colors_and_type.css); components consume them — no
   hardcoded colors, radii, shadows, or motion values.
   Inter is expected to be loaded elsewhere (not imported here).
   ============================================================ */

:root {
    /* ── Color · Surface ─────────────────────────────────── */
    --bg: #F5F6F8;                  /* page background — warm-cool neutral */
    --surface: #FFFFFF;             /* cards, panels */
    --accent-bg: #EEF2F8;           /* tinted surface (active nav, code chips) */

    /* ── Color · Text ────────────────────────────────────── */
    --text-primary: #1e2a38;        /* near-black with blue cast */
    --text-secondary: #4A5568;      /* body / paragraph */
    --text-muted: #8C97A5;          /* metadata, copyright, labels */

    /* ── Color · Brand accent ────────────────────────────── */
    --accent: #2D4A7A;              /* primary navy */
    --accent-light: #3e5786;        /* hover / gradient end */
    --grad-start: #1e2e4c;          /* deeper navy — gradient start */
    --grad-end: #3e5786;            /* same family — gradient end */
    --gradient-brand: linear-gradient(135deg, var(--grad-start), var(--grad-end));

    /* ── Color · Borders & tokenized alphas ──────────────── */
    --border: rgba(45, 74, 122, 0.10);          /* hairline */
    --border-strong: rgba(45, 74, 122, 0.22);   /* secondary buttons, table */
    --tag-bg: rgba(45, 74, 122, 0.07);           /* tags, chips */

    /* ── Color · Inverted (CTA on dark) ──────────────────── */
    --on-dark-h: rgba(255, 255, 255, 1);         /* headings on gradient */
    --on-dark: rgba(255, 255, 255, 0.60);        /* paragraphs on gradient */
    --on-dark-muted: rgba(255, 255, 255, 0.45);  /* eyebrow labels on gradient */
    --ghost-bg: rgba(255, 255, 255, 0.10);       /* ghost button bg */
    --ghost-bg-hover: rgba(255, 255, 255, 0.18); /* ghost button bg, hover */
    --ghost-border: rgba(255, 255, 255, 0.20);   /* ghost button border */
    --ghost-text: rgba(255, 255, 255, 0.80);     /* ghost button text */

    /* ── Type · Family ───────────────────────────────────── */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', ui-monospace, monospace;

    /* ── Type · Semantic scale (desktop) ─────────────────── */
    --type-h1: 600 42px/1.15 var(--font);
    --type-h2: 600 28px/1.25 var(--font);
    --type-h3: 500 17px/1.4 var(--font);
    --type-h4: 600 11px/1.4 var(--font);   /* + uppercase, ls .07em */
    --type-body: 400 16px/1.7 var(--font);
    --type-p: 400 15px/1.7 var(--font);
    --type-small: 400 12px/1.5 var(--font);

    /* ── Type · Letter-spacing ───────────────────────────── */
    --ls-h1: -0.030em;
    --ls-h2: -0.025em;
    --ls-h3: -0.015em;
    --ls-eyebrow: 0.070em;   /* h4 uppercase eyebrow */
    --ls-tag: 0.050em;       /* card chip */
    --ls-btn: -0.010em;

    /* ── Spacing scale ───────────────────────────────────── */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-7: 32px;
    --sp-8: 48px;
    --sp-9: 64px;
    --sp-10: 72px;     /* section padding */

    /* ── Radii ───────────────────────────────────────────── */
    --r-sm: 6px;      /* code chips */
    --r-md: 8px;      /* nav links, secondary buttons, skill pills */
    --r-lg: 10px;     /* primary buttons, channel cards */
    --r-xl: 14px;     /* cards */
    --r-2xl: 20px;    /* hero photo, CTA panel */
    --r-pill: 20px;   /* tag chips */
    --card-radius: 14px;

    /* ── Shadows (all carry a blue cast) ─────────────────── */
    --shadow-card: 0 4px 24px rgba(30, 46, 76, 0.10);          /* card hover */
    --shadow-photo: 0 8px 40px rgba(30, 46, 76, 0.08);         /* hero photo, soft */
    --shadow-cta: 0 12px 50px rgba(30, 46, 76, 0.22);          /* gradient CTA panel */
    --shadow-btn-primary: 0 2px 12px rgba(30, 46, 76, 0.22);
    --shadow-btn-hover: 0 4px 20px rgba(30, 46, 76, 0.32);
    --shadow-btn-white: 0 2px 12px rgba(0, 0, 0, 0.10);
    --shadow-btn-white-hover: 0 4px 20px rgba(0, 0, 0, 0.15);

    /* ── Layout ──────────────────────────────────────────── */
    --container-max: 1100px;
    --container-pad: 48px;
    --header-h: 120px;

    /* ── Motion ──────────────────────────────────────────── */
    --t-fast: .15s;        /* hover states */
    --t-slow: .30s;        /* object-fit filters */
    --ease: ease;
    --hover-lift: -2px;    /* card translateY on hover */
    --hover-opacity: 0.7;  /* link/button opacity on hover */
}

/* ============================================================
   RESET & BASE ELEMENTS
   ============================================================ */

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

body {
    font: var(--type-body);
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-width: 320px;
}

h1 { font: var(--type-h1); letter-spacing: var(--ls-h1); color: var(--text-primary); margin-bottom: var(--sp-6); }
h2 { font: var(--type-h2); letter-spacing: var(--ls-h2); color: var(--text-primary); margin-bottom: var(--sp-5); }
h3 { font: var(--type-h3); letter-spacing: var(--ls-h3); color: var(--text-primary); margin-bottom: var(--sp-3); }
h4 {
    font: var(--type-h4);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--sp-2);
}

/* Last-child resets keep the base rhythm from leaking padding into
   the bottom of any container (mirrors the p:last-child rule). */
h1:last-child, h2:last-child, h3:last-child, h4:last-child { margin-bottom: 0; }

p { font: var(--type-p); color: var(--text-secondary); margin-bottom: var(--sp-5); }
p:last-child { margin-bottom: 0; }
small { font: var(--type-small); color: var(--text-muted); }

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity var(--t-fast);
}

a:hover {
    opacity: var(--hover-opacity);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

ul, ol {
    padding-left: 1.4em;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: var(--sp-5);
}
ul:last-child, ol:last-child { margin-bottom: 0; }

ul { list-style: disc; }
ol { list-style: decimal; }

ul li::marker { color: var(--accent); }

ol li::marker {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

li:not(:last-child) { margin-bottom: var(--sp-1); }

code {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 2px 7px;
    border-radius: var(--r-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--sp-6);
}
table:last-child { margin-bottom: 0; }

caption {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-primary);
    text-align: left;
    padding-bottom: var(--sp-3);
}

thead th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border-strong);
    background: var(--bg);
}

tbody td {
    padding: var(--sp-3) 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--accent-bg); }

tfoot td {
    padding: 10px 14px;
    border-top: 2px solid var(--border-strong);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

blockquote {
    border-left: 3px solid var(--accent);
    padding: var(--sp-4) var(--sp-5);
    background: var(--accent-bg);
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: var(--sp-6);
}
blockquote:last-child { margin-bottom: 0; }

blockquote p {
    color: inherit;
    margin: 0;
}

img {
    max-width:100%;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

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

.section + .section {
    border-top: 1px solid var(--border);
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--sp-9);
    align-items: start;
}

.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-9);
    align-items: start;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 246, 248, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    opacity: 1;
}

.header__logo:hover { opacity: .85; }

.header__logo img {
    height: 78px;
    width: auto;
    display: block;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.nav__link {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--r-md);
    transition: background var(--t-fast), color var(--t-fast);
}

.nav__link:hover {
    background: var(--accent-bg);
    color: var(--accent);
    opacity: 1;
}

.nav__link--active {
    color: var(--accent);
    font-weight: 500;
    background: var(--accent-bg);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: var(--r-lg);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    letter-spacing: var(--ls-btn);
    transition: all var(--t-fast);
    color: inherit;
    opacity: 1;
}

.btn:hover { opacity: 1; }

.btn--primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-btn-primary);
}

.btn--primary:hover {
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
    color: #fff;
}

.btn--secondary {
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
    background: var(--accent-bg);
    color: var(--accent);
}

.btn--white {
    background: #fff;
    color: var(--accent);
    box-shadow: var(--shadow-btn-white);
}

.btn--white:hover {
    box-shadow: var(--shadow-btn-white-hover);
    transform: translateY(-1px);
    color: var(--accent);
}

.btn--ghost {
    background: var(--ghost-bg);
    color: var(--ghost-text);
    border: 1px solid var(--ghost-border);
}

.btn--ghost:hover {
    background: var(--ghost-bg-hover);
    color: var(--ghost-text);
}

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

/* ============================================================
   TAGS
   ============================================================ */

.tags {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.tags__item {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    background: var(--tag-bg);
    padding: 3px 10px;
    border-radius: var(--r-pill);
    text-decoration: none;
}

.tags__item:hover {
    opacity: 1;
    background: var(--accent-bg);
}

/* ============================================================
   CARDS
   ============================================================ */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 22px 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(var(--hover-lift));
    opacity: 1;
}

.card__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--ls-tag);
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}

.card__chip::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gradient-brand);
    flex-shrink: 0;
}

.card__arrow {
    margin-top: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.section__header-small { margin-bottom: var(--sp-1); }
.section__header-title { margin-bottom: 10px; }
.section__header-announce { max-width: 700px; }

.section__header--end {
    justify-content: flex-end;
    margin-bottom: var(--sp-6);
}

.section__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    padding: var(--sp-1) 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: var(--surface);
    white-space: nowrap;
    transition: all var(--t-fast);
}

.section__link:hover {
    background: var(--accent-bg);
    opacity: 1;
}

/* ============================================================
   BACK LINK
   ============================================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--t-fast);
}

.back-link::before {
    content: "←";
    font-size: 15px;
    line-height: 1;
    transition: transform var(--t-fast);
}

.back-link:hover {
    color: var(--accent);
    opacity: 1;
}

.back-link:hover::before {
    transform: translateX(-3px);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-9);
    align-items: center;
}

.hero__photo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-photo);
}

.hero__photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   POST LIST
   ============================================================ */

.post-list {
    display: flex;
    flex-direction: column;
}

.post-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-5);
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: opacity var(--t-fast);
}

.post-list__item:hover { opacity: .75; }

.post-list__num {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: var(--sp-6);
    padding-top: 3px;
}

.post-list__body { flex: 1; }

/* ============================================================
   ARTICLES
   ============================================================ */

.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.article:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(var(--hover-lift));
    opacity: 1;
}

.article__img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.article__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter var(--t-slow) var(--ease);
}

.article__body {
    padding: var(--sp-4) 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================
   PROSE LAYOUT
   ============================================================ */

.prose {
    display: grid;
    grid-template-columns: 640px 1fr;
    gap: var(--sp-9);
    align-items: start;
}

.prose h2 { margin-bottom: var(--sp-3); }
.prose h3 { margin-bottom: var(--sp-1); }

/* ============================================================
   ARTICLE FIGURE
   ============================================================ */

.article-figure {
    margin-bottom: var(--sp-7);
}

.article-figure__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    background: var(--accent-bg);
    margin-bottom: var(--sp-3);
}

.article-figure__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-figure__caption {
    font: var(--type-small);
    line-height: 1.6;        /* slightly airier than the small token's 1.5 */
    color: var(--text-muted);
    text-align: right;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    position: sticky;
    top: 108px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.sidebar__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: var(--sp-5) 22px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline__item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--sp-6);
    padding: var(--sp-6) 0;
    border-bottom: 1px solid var(--border);
}

.timeline__item:last-child { border-bottom: none; }

.timeline__date { padding-top: 2px; }

/* ============================================================
   SKILLS
   ============================================================ */

.skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
}

.skills__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-2) 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 28px var(--sp-6);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(var(--hover-lift));
    opacity: 1;
}

.service-card--featured {
    border-color: var(--accent);
    border-width: 2px;
}

.service-card--wide {
    grid-column: 1 / -1;
}

.service-card__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-top: auto;
}

/* ============================================================
   CONTACTS
   ============================================================ */

.contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contacts__channel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: var(--sp-5) 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.contacts__channel:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
    transform: translateY(var(--hover-lift));
    opacity: 1;
}

.channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel {
    text-decoration: none;
    color: inherit;
    padding: var(--sp-3) 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color var(--t-fast);
}

.channel:hover {
    border-color: var(--accent);
    opacity: 1;
}

.channel__name {
    display: block;
    font-size: 13px;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq__item {
    padding: var(--sp-5) 0;
    border-bottom: 1px solid var(--border);
}

.faq__item:last-child { border-bottom: none; }

.faq__question {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--sp-2);
}

.faq__answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
    background: linear-gradient(135deg, var(--grad-start) 0%, var(--accent-light) 100%);
    border-radius: var(--r-2xl);
    padding: 56px 60px;
    margin-bottom: var(--sp-10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-cta);
}

.cta h2 {
    color: var(--on-dark-h);
    margin-bottom: var(--sp-3);
}

.cta__content { max-width: 560px; }

.cta__label {
    color: var(--on-dark-muted);
    margin-bottom: var(--sp-3);
}

.cta__desc {
    color: var(--on-dark);
}

.cta__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 28px var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.footer__links {
    display: flex;
    gap: var(--sp-4);
}

.footer__link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer__link:hover {
    color: var(--accent);
    opacity: 1;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 960px)
   ============================================================ */

@media (max-width: 960px) {
    .header {
        padding: var(--sp-3) var(--sp-6);
        height: auto;
        min-height: 72px;
        flex-wrap: wrap;
        gap: 0;
    }

    .header__logo img { height: 75px; }

    .nav {
        gap: 2px;
        flex-wrap: wrap;
    }

    .nav__link {
        font-size: 13px;
        padding: var(--sp-1) 10px;
    }

    .container { padding: 0 var(--sp-6); }

    .section { padding: 52px 0; }

    h1 { font-size: 32px; }
    h2 { font-size: 22px; }

    .articles { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .services { grid-template-columns: repeat(2, 1fr); }
    .skills { grid-template-columns: repeat(2, 1fr); }
    .contacts { grid-template-columns: 1fr; }

    .article-figure { margin-bottom: var(--sp-6); }

    .prose {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar { position: static; }

    .timeline__item {
        grid-template-columns: 120px 1fr;
        gap: var(--sp-4);
    }

    .cta {
        flex-direction: column;
        padding: 40px var(--sp-7);
        gap: 28px;
    }

    .cta__actions { flex-direction: row; }

    table { min-width: 560px; }

    .footer { padding: var(--sp-6); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {
    .header {
        padding: 10px var(--sp-4);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        height: auto;
    }

    .header__logo img { height: 75px; }

    .nav {
        width: 100%;
        gap: 2px;
    }

    .nav__link {
        font-size: 12px;
        padding: 5px 9px;
    }

    .container { padding: 0 var(--sp-4); }

    .section { padding: 40px 0; }

    h1 { font-size: 26px; letter-spacing: -0.02em; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
    p { font-size: 14px; }

    .articles { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .services { grid-template-columns: 1fr; }
    .skills { grid-template-columns: repeat(2, 1fr); }
    .contacts { grid-template-columns: 1fr; }

    .article-figure { margin-bottom: var(--sp-5); }
    .article-figure__media {
        border-radius: var(--r-lg);   /* мягче скругление на мелком экране */
        margin-bottom: var(--sp-2);
    }
    .article-figure__caption {
        text-align: left;        /* по правому краю на узкой колонке читается хуже */
    }

    .hero, .page-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 28px;
    }

    .grid-two-col {
        display: flex;
        flex-direction: column;
        gap: var(--sp-7);
    }

    .prose {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sidebar { position: static; }

    .timeline__item {
        grid-template-columns: 1fr;
        gap: var(--sp-1);
    }

    .timeline__date { padding-top: 0; }

    blockquote { padding: var(--sp-3) var(--sp-4); }

    table {
        min-width: 520px;
        font-size: 13px;
    }

    thead th, tbody td, tfoot td { padding: 9px var(--sp-3); }

    .cta {
        flex-direction: column;
        padding: 28px var(--sp-5);
        border-radius: var(--r-xl);
        gap: var(--sp-6);
        margin-bottom: 40px;
    }

    .cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta__actions .btn { justify-content: center; }

    .service-card--wide { grid-column: auto; }

    .footer {
        padding: var(--sp-5) var(--sp-4);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
    }

    .skills__item {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* End */


/* Start:/local/templates/main/styles.css?1780059645142*/
/* Стили рабочей области (контента) страниц. Подключаются Bitrix автоматически. */

/* End */


/* Start:/local/templates/main/template_styles.css?1780059646149*/
/* Стили самого шаблона (шапка, подвал, обвязка). Подключаются Bitrix автоматически. */

/* End */
/* /assets/css/style.css?178016604929077 */
/* /local/templates/main/styles.css?1780059645142 */
/* /local/templates/main/template_styles.css?1780059646149 */
