/* =========================================
   ABOUT PAGE (about.html) — company story / philosophy page
   page-header/breadcrumbs/page-title are intentionally redefined here
   rather than shared, matching the existing per-page convention (see
   css/account.css, css/product.css, css/blog-page.css). main.section-padding
   (not plain .section-padding) is deliberate — see the identical note in
   css/blog-page.css: it out-specifies css/responsive.css's mobile
   ".section-padding { padding-top: 50px }" so this page stays tight under
   the header on mobile too, without touching the plain-class usages on
   index.html that should keep that 50px value.
   ========================================= */
main.section-padding { padding-top: 10px; padding-bottom: 60px; }

.page-header { padding: 10px 0 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 40px; }
.breadcrumbs {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary);
    margin-bottom: 15px; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-secondary); transition: 0.3s; }
/* Touch-safe hover: guarded so tap doesn't leave this state "stuck" (Апдейт 96). */
@media (hover: hover) and (pointer: fine) {
    .breadcrumbs a:hover { color: var(--accent-gold); }
}
.breadcrumbs i { font-size: 9px; color: var(--text-muted); }
.breadcrumbs span { color: var(--text-secondary); }
.page-title { font-size: clamp(22px, 1.2vw + 17.7px, 32px); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--text-main); }
.page-subtitle { color: var(--text-secondary); font-size: 15px; margin-top: 15px; line-height: 1.6; }

.about-section { margin-bottom: 80px; }
/* Vertical rhythm for everything inside .about-section: one consistent gap
   between any two direct children, regardless of what type they are (hero,
   heading, list, prose block, video). This replaces the previous approach
   of each block type carrying its own margin-bottom (40px/60px/80px) plus
   ad-hoc inline styles on a couple of paragraphs — that mix was exactly
   why the gaps looked inconsistent throughout the page. A section heading
   gets extra breathing room above it via the second rule. */
.about-section > * + * { margin-top: 48px; }
.about-section > h3.block-title { margin-top: 84px; }

.about-hero { display: flex; flex-direction: column; gap: 30px; }
/* admin-managed banner spot "about_hero" — a .promo-slider inside
   (css/promo-banner.css), 1700x720 on desktop */
.about-hero-image {
    width: 100%; border-radius: 4px; overflow: hidden;
    background: var(--bg-soft); border: 1px solid var(--border-light);
}
.about-hero-image[hidden] { display: none; }
.about-hero-image .promo-slider { border-radius: 0; }
.about-hero-image .promo-slide img { aspect-ratio: 1700 / 720; }
@media (max-width: 600px) {
    .about-hero-image .promo-slide:has(source) img { aspect-ratio: 1 / 1; }
}
.about-hero-text { max-width: 1000px; }
.about-hero-title { font-size: clamp(26px, 1.4vw + 21px, 38px); font-weight: 700; text-transform: uppercase; color: var(--text-main); margin-bottom: 20px; line-height: 1.2; }
.about-hero-title span { color: var(--accent-gold); }
.about-hero-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.8; }

.block-title {
    font-size: var(--block-title-size); font-weight: 600; color: var(--text-main); text-transform: uppercase;
    letter-spacing: var(--block-title-ls); margin-bottom: 0; display: flex; align-items: center; gap: 15px;
}
.block-title::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }

/* Intro sentence that sits between a .block-title and the list/grid it
   introduces — own class instead of the inline styles this used to carry,
   so its spacing/typography follows the same rhythm as everything else. */
.about-intro { color: var(--text-secondary); font-size: 16px; line-height: 1.7; max-width: 800px; }

/* ---- Editorial chapters: number + title on the left, content on the
   right, hairlines between, no cards or icons. Prefix ab- (never "adv-":
   ad blockers hide that, see Апдейт 325). ---- */

/* intro under the banner: headline | text */
.about-hero-text.ab-split { max-width: none; display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.ab-split .about-hero-title { margin-bottom: 0; }

.about-section > .ab-chapter { margin-top: 96px; }
.ab-chapter { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.ab-label {
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--text-main);
    display: flex; gap: 14px; align-items: baseline; position: sticky; top: calc(var(--sticky-top, 80px) + 24px); align-self: start;
}
.ab-label span { color: var(--accent-gold); font-variant-numeric: tabular-nums; }

.ab-body { min-width: 0; }
.ab-lead { font-size: clamp(19px, 0.6vw + 16px, 24px); line-height: 1.55; color: var(--text-main); font-weight: 400; margin-bottom: 28px; max-width: 760px; }
.ab-prose p { font-size: 16px; line-height: 1.85; color: var(--text-secondary); max-width: 640px; }
.ab-prose p + p { margin-top: 18px; }
.ab-prose .ab-lead { margin-bottom: 26px; color: var(--text-main); font-size: clamp(19px, 0.6vw + 16px, 24px); line-height: 1.55; }

/* principles: three plain columns */
.ab-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ab-cols h4 { font-size: 16px; font-weight: 600; color: var(--text-main); margin-bottom: 12px; }
.ab-cols p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }

/* text + photo */
.ab-body--media { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.ab-body--flip { grid-template-columns: 5fr 7fr; }
.ab-figure { margin: 0; border-radius: 4px; overflow: hidden; background: var(--bg-card); }
.ab-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* rows: name | description, hairline between */
.ab-rows { list-style: none; border-bottom: 1px solid var(--border-light); }
.ab-rows li { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; padding: 18px 0; border-top: 1px solid var(--border-light); align-items: baseline; }
.ab-row-name { color: var(--text-main); font-size: 16px; font-weight: 500; }
.ab-row-text { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.ab-rows--links li { display: block; padding: 0; }
.ab-rows--links a { display: grid; grid-template-columns: 5fr 7fr 20px; gap: 32px; padding: 18px 0; align-items: baseline; transition: color 0.25s; }
.ab-rows--links .fa-chevron-right { color: var(--text-muted); font-size: 12px; transition: transform 0.25s, color 0.25s; }
@media (hover: hover) and (pointer: fine) {
    .ab-rows--links a:hover .ab-row-name { color: var(--accent-gold); }
    .ab-rows--links a:hover .fa-chevron-right { color: var(--accent-gold); transform: translateX(4px); }
}

.ab-link {
    display: inline-flex; align-items: center; gap: 10px; color: var(--accent-gold); font-size: 13px;
    text-transform: uppercase; letter-spacing: 2px; padding-bottom: 4px; border-bottom: 1px solid rgba(5, 83, 156, 0.4);
}
.ab-link .fa-chevron-right { font-size: 11px; transition: transform 0.25s; }
@media (hover: hover) and (pointer: fine) {
    .ab-link:hover .fa-chevron-right { transform: translateX(4px); }
}

/* closing */
.about-section > .ab-closing { margin-top: 110px; }
.ab-closing { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; padding-top: 56px; border-top: 1px solid var(--border-light); }
.ab-closing p { font-size: 16px; color: var(--text-secondary); line-height: 1.85; }
.ab-closing .ab-closing-accent { margin: 20px 0 32px; font-size: clamp(19px, 0.6vw + 16px, 24px); color: var(--text-main); line-height: 1.55; }

@media (max-width: 1024px) {
    .ab-chapter, .about-hero-text.ab-split { grid-template-columns: 1fr; gap: 24px; }
    .ab-label { position: static; }
}
@media (max-width: 768px) {
    .about-section > .ab-chapter { margin-top: 64px; }
    .ab-cols { grid-template-columns: 1fr; gap: 28px; }
    .ab-body--media, .ab-body--flip { grid-template-columns: 1fr; gap: 28px; }
    .ab-body--flip .ab-figure { order: 2; }
    .ab-figure img { aspect-ratio: 4 / 3; }
    .ab-rows li, .ab-rows--links a { grid-template-columns: 1fr; gap: 4px; }
    .ab-rows--links a { grid-template-columns: 1fr 20px; }
    .ab-rows--links .ab-row-text { grid-column: 1; grid-row: 2; }
    .ab-rows--links .fa-chevron-right { grid-column: 2; grid-row: 1; }
    .about-section > .ab-closing { margin-top: 72px; }
}

/* ---- Same look as the text blocks on the home page (Апдейт 345):
   chapter names in the site's block-heading style (24px caps, no numbers),
   nothing sticks while scrolling, same body text and rhythm. ---- */
.about-section > .ab-chapter { margin-top: 72px; }
.ab-chapter { padding-top: 32px; }
.ab-label {
    position: static; display: block;
    font-size: var(--block-title-size); font-weight: 600; letter-spacing: var(--block-title-ls);
    line-height: 1.3; text-transform: uppercase; color: var(--text-main);
}
.ab-prose p, .ab-row-text, .ab-cols p, .ab-closing p { color: var(--text-secondary); font-weight: 400; }
/* 45–75 characters per line; light text on black reads better one weight up */
.ab-prose p, .ab-lead { max-width: 65ch; }
.ab-closing { max-width: none; text-align: left; }
.ab-closing p { text-wrap: pretty; }
.ab-lead, .ab-prose .ab-lead, .ab-closing .ab-closing-accent { font-size: 19px; line-height: 1.6; }
.about-hero-title { font-size: clamp(24px, 0.8vw + 20px, 30px); font-weight: 600; letter-spacing: var(--block-title-ls); }
@media (max-width: 768px) {
    .about-section > .ab-chapter { margin-top: 48px; }
    .ab-lead, .ab-prose .ab-lead, .ab-closing .ab-closing-accent { font-size: 16px; }
    .ab-prose p { font-size: 15px; }
}
.ab-closing p + p:not(.ab-closing-accent) { margin-top: 16px; }
.ab-closing p a { color: var(--text-main); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ab-closing p a:hover { color: var(--accent-gold); } }
/* links without underline (owner: underlines irritate) */
.ab-link { border-bottom: 0; padding-bottom: 0; }
