:root {
    --corp-red: #d71920;
    --corp-red-dark: #b9141a;
    --corp-ink: #263643;
    --corp-slate: #657985;
    --corp-text: #60707c;
    --corp-muted: #82909a;
    --corp-soft: #eef2f5;
    --corp-line: #dce3e8;
    --corp-white: #fff;
}

.atelex-page { background:#fff; color:var(--corp-ink); overflow:hidden; }
.atelex-shell { width:calc(100% - 80px); max-width:1510px; margin:0 auto; }
.atelex-breadcrumbs { padding:20px 0 8px; color:#82909a; font-size:13px; }
.atelex-breadcrumbs a,.atelex-breadcrumbs span,.atelex-breadcrumbs .breadcrumbs { color:#778691; font-size:13px; }
.atelex-kicker { display:flex; align-items:center; gap:12px; margin:0 0 16px; color:var(--corp-red); font-size:13px; line-height:1.4; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.atelex-kicker:before { content:""; width:34px; height:1px; flex:none; background:currentColor; }
.atelex-kicker--light { color:#fff; }
.atelex-page h1,.atelex-page h2,.atelex-page h3,.atelex-page h4 { color:var(--corp-ink); }
.atelex-btn { min-height:52px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 24px; border:1px solid transparent; border-radius:5px; font-size:15px; font-weight:600; line-height:1.2; text-align:center; transition:.2s ease; }
.atelex-btn--primary { color:#fff; background:var(--corp-red); border-color:var(--corp-red); }
.atelex-btn--outline { color:var(--corp-ink); background:#fff; border-color:var(--corp-line); }
.atelex-btn--light { color:var(--corp-ink); background:#fff; border-color:#fff; }
.atelex-arrow-link { display:inline-flex; align-items:center; gap:10px; color:var(--corp-ink); font-size:14px; font-weight:700; }
.atelex-arrow-link span { color:var(--corp-red); font-size:20px; transition:transform .2s ease; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.empty-state { padding:40px; border:1px solid var(--corp-line); border-radius:8px; background:var(--corp-soft); color:var(--corp-text); text-align:center; }

@media (any-hover:hover) {
    .atelex-btn--primary:hover { background:var(--corp-red-dark); border-color:var(--corp-red-dark); color:#fff; transform:translateY(-1px); }
    .atelex-btn--outline:hover,.atelex-btn--light:hover { color:var(--corp-red); border-color:var(--corp-red); }
    .atelex-arrow-link:hover span { transform:translateX(4px); }
}

/* Shared hero */
.atelex-hero { padding:36px 0 86px; }
.atelex-hero__panel { min-height:390px; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.45fr); gap:70px; align-items:end; padding:64px 70px; border-radius:8px; background:linear-gradient(120deg,#263643 0%,#526977 100%); position:relative; overflow:hidden; }
.atelex-hero__panel:after { content:""; position:absolute; width:420px; height:420px; right:-160px; top:-210px; border:1px solid rgba(255,255,255,.13); border-radius:50%; box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.018); }
.atelex-hero__content,.atelex-hero__metric,.atelex-hero__stats { position:relative; z-index:1; }
.atelex-hero__content h1 { max-width:900px; margin:0; color:#fff; font-size:clamp(44px,4.2vw,68px); line-height:1.04; font-weight:500; letter-spacing:-.035em; }
.atelex-hero__lead { max-width:820px; margin:23px 0 0; color:rgba(255,255,255,.78); font-size:18px; line-height:1.7; }
.atelex-hero__metric { min-height:150px; display:flex; flex-direction:column; justify-content:space-between; padding:27px; border-top:1px solid rgba(255,255,255,.25); border-bottom:1px solid rgba(255,255,255,.25); }
.atelex-hero__metric strong { color:#fff; font-size:clamp(34px,3vw,50px); line-height:1; font-weight:600; }
.atelex-hero__metric span { max-width:220px; color:rgba(255,255,255,.68); font-size:13px; line-height:1.45; }
.atelex-hero__stats { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid rgba(255,255,255,.22); border-left:1px solid rgba(255,255,255,.22); }
.atelex-hero__stats div { min-height:135px; padding:25px; display:flex; flex-direction:column; justify-content:space-between; border-right:1px solid rgba(255,255,255,.22); border-bottom:1px solid rgba(255,255,255,.22); }
.atelex-hero__stats strong { color:#fff; font-size:38px; line-height:1; }
.atelex-hero__stats span { color:rgba(255,255,255,.7); font-size:13px; }

/* Rich text */
.atelex-richtext { color:var(--corp-text); font-size:16px; line-height:1.78; }
.atelex-richtext p { margin:0 0 20px; }
.atelex-richtext h2,.atelex-richtext h3,.atelex-richtext h4 { margin:38px 0 18px; line-height:1.2; font-weight:600; }
.atelex-richtext h2 { font-size:34px; }
.atelex-richtext h3 { font-size:27px; }
.atelex-richtext h4 { font-size:21px; }
.atelex-richtext ul,.atelex-richtext ol { margin:20px 0; padding-left:22px; }
.atelex-richtext li { margin:9px 0; }
.atelex-richtext blockquote { margin:28px 0; padding:22px 26px; border-left:3px solid var(--corp-red); background:var(--corp-soft); color:#405563; }
.atelex-richtext img { max-width:100%; height:auto; border-radius:7px; }
.atelex-richtext a { color:var(--corp-red); text-decoration:underline; text-underline-offset:3px; }

/* Resources: certificates + catalogs */
.resource-section { padding:0 0 100px; }
.resource-toolbar { display:grid; grid-template-columns:1fr minmax(320px,470px); gap:50px; align-items:end; margin-bottom:42px; }
.resource-toolbar--simple { grid-template-columns:1fr auto; }
.resource-toolbar h2 { margin:0; font-size:clamp(34px,3vw,50px); line-height:1.1; font-weight:500; letter-spacing:-.025em; }
.resource-toolbar p:not(.atelex-kicker) { max-width:720px; margin:16px 0 0; color:var(--corp-text); font-size:16px; line-height:1.65; }
.resource-search input { width:100%; height:54px; padding:0 18px 0 48px; border:1px solid var(--corp-line); border-radius:5px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23657985' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 18px 50%; color:var(--corp-ink); font-size:15px; outline:0; transition:border-color .2s ease,box-shadow .2s ease; }
.resource-search input:focus { border-color:var(--corp-slate); box-shadow:0 0 0 3px rgba(101,121,133,.1); }
.docs-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:50px; align-items:start; }
.docs-nav { position:relative; }
.docs-nav__inner { position:sticky; top:110px; display:grid; gap:3px; padding:20px; border:1px solid var(--corp-line); border-radius:7px; background:#fff; }
.docs-nav__inner>span { padding:6px 10px 12px; color:var(--corp-muted); font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.docs-nav a { padding:10px; border-radius:4px; color:#4f6370; font-size:13px; line-height:1.35; transition:.2s ease; }
.docs-nav a:hover { color:var(--corp-red); background:var(--corp-soft); }
.docs-groups { display:grid; gap:52px; }
.docs-group { scroll-margin-top:110px; }
.docs-group__head { display:flex; align-items:flex-end; justify-content:space-between; gap:25px; padding-bottom:18px; border-bottom:1px solid var(--corp-line); }
.docs-group__head h3 { max-width:900px; margin:0; font-size:27px; line-height:1.25; font-weight:600; }
.docs-group__head>span { min-width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--corp-soft); color:var(--corp-slate); font-size:12px; font-weight:700; }
.resource-list { display:grid; gap:1px; margin-top:1px; background:var(--corp-line); border:1px solid var(--corp-line); border-radius:7px; overflow:hidden; }
.resource-file { min-height:92px; display:grid; grid-template-columns:54px 1fr 34px; gap:18px; align-items:center; padding:18px 22px; background:#fff; color:var(--corp-ink); transition:.2s ease; }
.resource-file__type { width:50px; height:50px; display:flex; align-items:center; justify-content:center; border-radius:5px; background:var(--corp-red); color:#fff; font-size:10px; font-weight:800; letter-spacing:.05em; }
.resource-file__main { min-width:0; }
.resource-file__main strong { display:block; color:var(--corp-ink); font-size:15px; line-height:1.45; font-weight:600; }
.resource-file__main small { display:block; margin-top:5px; color:var(--corp-muted); font-size:12px; }
.resource-file__arrow { color:var(--corp-red); font-size:19px; }
.resource-file.is-hidden { display:none; }
.docs-group.is-empty { display:none; }
@media (any-hover:hover) { .resource-file:hover { background:#f8fafb; padding-left:26px; } }

.catalog-download-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.catalogs-intro { padding:0 0 90px; }
.catalogs-intro__grid { display:grid; grid-template-columns:minmax(320px,.75fr) minmax(0,1.25fr); gap:64px; align-items:center; }
.catalogs-intro__grid--text { grid-template-columns:minmax(0,900px); }
.catalogs-intro__content h2 { margin:0 0 22px; font-size:clamp(34px,3vw,50px); line-height:1.12; font-weight:500; letter-spacing:-.025em; }
.catalogs-intro__media { min-height:360px; overflow:hidden; border-radius:8px; background:var(--corp-soft); }
.catalogs-intro__media img { display:block; width:100%; height:100%; min-height:360px; object-fit:contain; }
.catalog-download-card { min-height:365px; display:flex; flex-direction:column; padding:30px; border:1px solid var(--corp-line); border-radius:8px; background:#fff; transition:.25s ease; }
.catalog-download-card__top { display:flex; justify-content:space-between; align-items:center; }
.catalog-download-card__number { color:#b2bcc2; font-size:12px; font-weight:700; letter-spacing:.08em; }
.catalog-download-card__body { margin:auto 0 30px; }
.catalog-download-card__body p { margin:0 0 10px; color:var(--corp-red); font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.catalog-download-card__body h3 { margin:0; font-size:25px; line-height:1.25; font-weight:600; }
.catalog-download-card__body>span { display:block; margin-top:13px; color:var(--corp-muted); font-size:13px; }
.catalog-download-card>a { display:flex; align-items:center; justify-content:space-between; padding-top:20px; border-top:1px solid var(--corp-line); color:var(--corp-ink); font-size:14px; font-weight:700; }
.catalog-download-card>a span { color:var(--corp-red); font-size:19px; }
@media (any-hover:hover) { .catalog-download-card:hover { transform:translateY(-4px); border-color:#bcc9d0; box-shadow:0 16px 34px rgba(38,54,67,.08); } }
.resource-fallback { max-width:1100px; margin:0 auto; }

.atelex-cta { padding:0 0 95px; }
.atelex-cta__panel { min-height:250px; display:grid; grid-template-columns:1fr auto; gap:50px; align-items:center; padding:50px 60px; border-radius:8px; background:var(--corp-slate); }
.atelex-cta__panel h2 { max-width:880px; margin:0; color:#fff; font-size:clamp(30px,2.7vw,44px); line-height:1.15; font-weight:500; letter-spacing:-.02em; }
.page-help-strip { padding:0 0 95px; }
.page-help-strip__grid { min-height:170px; display:grid; grid-template-columns:1fr auto; gap:50px; align-items:center; padding:36px 42px; border:1px solid var(--corp-line); border-radius:8px; background:var(--corp-soft); }
.page-help-strip strong { display:block; color:var(--corp-ink); font-size:24px; line-height:1.25; }
.page-help-strip p { max-width:800px; margin:8px 0 0; color:var(--corp-text); font-size:15px; line-height:1.6; }

/* Questionnaire */
.questionnaire-steps { padding:0 0 90px; }
.questionnaire-steps__grid { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--corp-line); border-radius:8px; overflow:hidden; }
.questionnaire-steps article { min-height:145px; display:grid; grid-template-columns:44px 1fr; gap:20px; align-items:start; padding:30px; border-right:1px solid var(--corp-line); }
.questionnaire-steps article:last-child { border-right:0; }
.questionnaire-steps article>span { color:var(--corp-red); font-size:13px; font-weight:800; }
.questionnaire-steps strong { display:block; color:var(--corp-ink); font-size:18px; }
.questionnaire-steps p { margin:8px 0 0; color:var(--corp-text); font-size:14px; line-height:1.55; }
.questionnaire-intro { padding:90px 0; background:var(--corp-soft); }
.questionnaire-intro__grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr); gap:70px; align-items:center; }
.questionnaire-intro h2 { margin:0 0 24px; font-size:clamp(34px,3vw,50px); line-height:1.12; font-weight:500; letter-spacing:-.025em; }
.questionnaire-intro__media { height:470px; overflow:hidden; border-radius:8px; background:#dfe6ea; }
.questionnaire-intro__media img { width:100%; height:100%; object-fit:cover; }
.questionnaire-files { padding:100px 0; }
.questionnaire-groups { display:grid; gap:42px; }
.questionnaire-group { display:grid; grid-template-columns:minmax(270px,.46fr) minmax(0,1fr); gap:42px; padding:34px; border:1px solid var(--corp-line); border-radius:8px; }
.questionnaire-group__head { display:flex; gap:20px; }
.questionnaire-group__head>span { padding-top:5px; color:var(--corp-red); font-size:12px; font-weight:800; }
.questionnaire-group__head p { margin:0 0 8px; color:var(--corp-muted); font-size:12px; line-height:1.45; text-transform:uppercase; letter-spacing:.05em; }
.questionnaire-group__head h3 { margin:0; font-size:24px; line-height:1.3; font-weight:600; }
.questionnaire-group .resource-list { margin-top:0; }

/* Delivery */
.delivery-overview { padding:0 0 100px; }
.delivery-cards { display:grid; grid-template-columns:repeat(3,1fr); margin-bottom:80px; border-top:1px solid var(--corp-line); border-left:1px solid var(--corp-line); }
.delivery-cards article { min-height:235px; padding:30px; border-right:1px solid var(--corp-line); border-bottom:1px solid var(--corp-line); }
.delivery-cards article>span { color:var(--corp-red); font-size:13px; font-weight:800; }
.delivery-cards h3 { margin:55px 0 13px; font-size:25px; font-weight:600; }
.delivery-cards p { max-width:390px; margin:0; color:var(--corp-text); font-size:14px; line-height:1.65; }
.delivery-content-grid { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:70px; align-items:start; }
.delivery-richtext { max-width:920px; }
.delivery-richtext>p.atelex-kicker { margin-bottom:25px; }
.delivery-richtext ul { display:grid; gap:10px; padding:0; list-style:none; }
.delivery-richtext li { position:relative; margin:0; padding:20px 20px 20px 48px; border:1px solid var(--corp-line); border-radius:6px; background:#fff; }
.delivery-richtext li:before { content:""; position:absolute; left:20px; top:27px; width:10px; height:10px; border-radius:50%; background:var(--corp-red); }
.delivery-help { position:sticky; top:110px; padding:32px; border-radius:8px; background:var(--corp-slate); }
.delivery-help>span { color:rgba(255,255,255,.65); font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.delivery-help h3 { margin:22px 0 14px; color:#fff; font-size:26px; line-height:1.25; font-weight:600; }
.delivery-help p { margin:0 0 26px; color:rgba(255,255,255,.73); font-size:14px; line-height:1.65; }

/* Media gallery */
.media-section { padding:0 0 105px; }
.media-tabs { display:flex; gap:8px; margin-bottom:38px; padding-bottom:18px; border-bottom:1px solid var(--corp-line); }
.media-tab { appearance:none; display:flex; align-items:center; gap:10px; min-height:46px; padding:0 18px; border:1px solid var(--corp-line); border-radius:5px; background:#fff; color:var(--corp-slate); font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.media-tab span { min-width:23px; height:23px; display:flex; align-items:center; justify-content:center; padding:0 6px; border-radius:20px; background:var(--corp-soft); color:var(--corp-muted); font-size:11px; }
.media-tab.is-active { border-color:var(--corp-red); background:var(--corp-red); color:#fff; }
.media-tab.is-active span { background:rgba(255,255,255,.2); color:#fff; }
.media-panel { display:none; }
.media-panel.is-active { display:block; }
.media-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.media-card { min-width:0; overflow:hidden; border-radius:8px; background:#18242d; }
.media-card__link { position:relative; display:block; aspect-ratio:1.35/1; overflow:hidden; }
.media-card__picture { display:block; width:100%; height:100%; overflow:hidden; background:#dfe5e9; }
.media-card__picture img,.media-card__picture .video-preview,.media-card__picture .youtube { width:100%; height:100%; display:block; }
.media-card__picture img { object-fit:cover; transition:transform .5s ease; }
.media-card__overlay { position:absolute; inset:auto 0 0; min-height:120px; display:grid; grid-template-columns:1fr auto; align-items:end; gap:10px; padding:42px 24px 22px; background:linear-gradient(transparent,rgba(20,31,39,.9)); color:#fff; }
.media-card__overlay small { grid-column:1/-1; color:rgba(255,255,255,.7); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.media-card__overlay strong { color:#fff; font-size:19px; line-height:1.3; }
.media-card__overlay i { color:#fff; font-style:normal; font-size:20px; }
.media-hidden-link { display:none; }
.media-card--video { background:#fff; border:1px solid var(--corp-line); }
.media-card--video .media-card__picture { aspect-ratio:16/9; cursor:pointer; }
.media-card__caption { padding:21px 23px 25px; }
.media-card__caption span { color:var(--corp-red); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.media-card__caption h3 { margin:8px 0 0; font-size:19px; line-height:1.35; font-weight:600; }
@media (any-hover:hover) { .media-card:hover .media-card__picture img { transform:scale(1.035); } }

/* News archive */
.news-archive-hero { padding:48px 0 75px; }
.news-archive-hero__grid { display:grid; grid-template-columns:1fr .7fr; gap:80px; align-items:end; padding-bottom:50px; border-bottom:1px solid var(--corp-line); }
.news-archive-hero h1 { max-width:850px; margin:0; font-size:clamp(48px,5vw,76px); line-height:1; font-weight:500; letter-spacing:-.04em; }
.news-archive-hero__text { color:var(--corp-text); font-size:16px; line-height:1.75; }
.news-archive-hero__text p { margin:0; }
.news-archive-section { padding:0 0 105px; }
.news-modern-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.news-modern-card { min-width:0; display:flex; flex-direction:column; border:1px solid var(--corp-line); border-radius:8px; overflow:hidden; background:#fff; }
.news-modern-card__image { height:260px; display:block; overflow:hidden; background:var(--corp-soft); }
.news-modern-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.news-modern-card__placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:var(--corp-slate); color:#fff; font-size:26px; font-weight:700; letter-spacing:.08em; }
.news-modern-card__body { flex:1; display:flex; flex-direction:column; padding:25px; }
.news-modern-card time { color:var(--corp-red); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.news-modern-card h2 { margin:14px 0 12px; font-size:22px; line-height:1.3; font-weight:600; }
.news-modern-card h2 a { color:var(--corp-ink); }
.news-modern-card p { margin:0 0 25px; color:var(--corp-text); font-size:14px; line-height:1.65; }
.news-modern-card .atelex-arrow-link { margin-top:auto; }
.news-modern-card--featured {
    grid-column: 1/-1;
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
}

.news-modern-card--featured .news-modern-card__image {
    height: 360px;
    min-height: 360px;
}

.news-modern-card--featured .news-modern-card__body {
    justify-content: center;
    padding: 35px 40px;
}

.news-modern-card--featured h2 {
    max-width: 650px;
    font-size: clamp(27px, 2.2vw, 35px);
    line-height: 1.2;
}

.news-modern-card--featured p {
    max-width: 640px;
    font-size: 14px;
}
.news-modern-card--featured p { max-width:640px; font-size:15px; }
@media (any-hover:hover) { .news-modern-card:hover .news-modern-card__image img { transform:scale(1.025); } }
.atelex-pagination { display:flex; justify-content:center; margin-top:55px; }
.atelex-pagination ul,.atelex-pagination .nav-links { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; margin:0; padding:0; list-style:none; }
.atelex-pagination a,.atelex-pagination span.page-numbers { min-width:42px; height:42px; display:flex; align-items:center; justify-content:center; padding:0 10px; border:1px solid var(--corp-line); border-radius:4px; color:var(--corp-ink); background:#fff; font-size:13px; }
.atelex-pagination .current { color:#fff!important; border-color:var(--corp-red)!important; background:var(--corp-red)!important; }

/* Single news */
.news-article { padding:45px 0 105px; }
.news-article__header { max-width:1320px; }
.news-article__back { display:inline-flex; margin-bottom:35px; color:var(--corp-slate); font-size:13px; font-weight:600; }
.news-article__header time { display:block; margin-bottom:17px; color:var(--corp-red); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.news-article__header h1 { margin:0; font-size:clamp(42px,4.5vw,68px); line-height:1.07; font-weight:500; letter-spacing:-.035em; }
.news-article__lead { max-width:850px; margin:23px 0 0; color:var(--corp-text); font-size:19px; line-height:1.65; }
.news-article__media { height:min(620px,58vw); margin-top:55px; border-radius:8px; overflow:hidden; background:var(--corp-soft); }
.news-article__media img { width:100%; height:100%; object-fit:cover; }
.news-article__layout { display:grid; grid-template-columns:minmax(0,900px) 330px; justify-content:center; gap:90px; align-items:start; margin-top:25px; }
.news-article__content { font-size:17px; }
.news-article__content h2 { font-size:34px; }
.news-article__content h3 { font-size:27px; }
.news-content-gallery {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    align-items:start;
    margin:0 0 38px;
}
.news-content-gallery__item {
    min-width:0;
    overflow:hidden;
    border-radius:7px;
    background:#fff;
}
.news-content-gallery__item a { display:block; width:100%; }
.news-content-gallery__item img {
    display:block;
    width:100%!important;
    height:auto!important;
    margin:0!important;
    border-radius:7px!important;
}
.news-article__body { width:100%; }
.news-article__body:after { content:""; display:table; clear:both; }

/* Старые новости содержат фотогалереи, собранные таблицами WordPress. */
.news-article__content table:has(img) {
    display:block;
    width:100%!important;
    margin:0 0 34px!important;
    border:0!important;
    border-collapse:separate!important;
}
.news-article__content table:has(img) tbody {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    width:100%;
}
.news-article__content table:has(img) tr { display:contents; }
.news-article__content table:has(img) td {
    width:auto!important;
    height:auto!important;
    padding:0!important;
    border:0!important;
    vertical-align:top!important;
}
.news-article__content table:has(img) td:empty { display:none; }
.news-article__content table:has(img) td:has(img) {
    overflow:hidden;
    border-radius:7px!important;
    background:var(--corp-soft);
}
.news-article__content table:has(img) td:has(img) p,
.news-article__content table:has(img) td:has(img) a {
    display:block;
    height:100%;
    margin:0!important;
}
.news-article__content table:has(img) td:has(img) img {
    display:block;
    width:100%!important;
    height:270px!important;
    margin:0!important;
    border-radius:0!important;
    object-fit:cover;
}
.news-article__content table:has(img) td:not(:has(img)):not(:empty) {
    grid-column:1/-1;
}
.news-article__aside { position:sticky; top:110px; padding:30px; border:1px solid var(--corp-line); border-radius:8px; }
.news-article__aside>span { color:var(--corp-red); font-size:11px; font-weight:700; letter-spacing:.1em; }
.news-article__aside h3 { margin:18px 0 12px; font-size:24px; line-height:1.3; }
.news-article__aside p { margin:0 0 24px; color:var(--corp-text); font-size:14px; line-height:1.6; }
.news-article__aside .atelex-btn { width:100%; }
.news-article__aside .atelex-arrow-link { margin-top:22px; }

/* Gallery archive / single */
.gallery-archive-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.gallery-archive-card { border:1px solid var(--corp-line); border-radius:8px; overflow:hidden; background:#fff; }
.gallery-archive-card__image { height:300px; display:block; overflow:hidden; background:var(--corp-soft); }
.gallery-archive-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.gallery-archive-card>div { padding:24px; }
.gallery-archive-card h2 { margin:0 0 12px; font-size:22px; line-height:1.3; }
.gallery-archive-card h2 a { color:var(--corp-ink); }
.gallery-archive-card p { margin:0 0 22px; color:var(--corp-text); font-size:14px; line-height:1.6; }
@media (any-hover:hover) { .gallery-archive-card:hover img { transform:scale(1.03); } }
.gallery-single__header { max-width:1080px; padding-top:45px; padding-bottom:55px; }
.gallery-single__header h1 { margin:0; font-size:clamp(42px,4.5vw,68px); line-height:1.07; font-weight:500; letter-spacing:-.035em; }
.gallery-single__intro { margin-top:24px; }
.gallery-single__section { padding:0 0 105px; }
.gallery-single__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.gallery-single__grid a { height:330px; display:block; overflow:hidden; border-radius:7px; background:var(--corp-soft); }
.gallery-single__grid img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
@media (any-hover:hover) { .gallery-single__grid a:hover img { transform:scale(1.025); } }

@media (max-width:1200px) {
    .atelex-hero__panel { padding:55px; gap:45px; }
    .docs-layout { grid-template-columns:240px minmax(0,1fr); gap:35px; }
    .catalog-download-grid { grid-template-columns:repeat(2,1fr); }
    .catalogs-intro__grid { gap:42px; }
    .questionnaire-intro__grid { gap:45px; }
    .questionnaire-group { grid-template-columns:300px minmax(0,1fr); gap:28px; }
    .delivery-content-grid { grid-template-columns:minmax(0,1fr) 330px; gap:45px; }
    .news-article__layout { grid-template-columns:minmax(0,780px) 310px; gap:55px; }
}

@media (max-width:992px) {
    .atelex-shell { width:calc(100% - 40px); }
    .atelex-hero { padding-bottom:65px; }
    .atelex-hero__panel { min-height:0; grid-template-columns:1fr; padding:48px; }
    .atelex-hero__metric { min-height:110px; }
    .atelex-hero__stats { max-width:430px; }
    .resource-toolbar,.resource-toolbar--simple { grid-template-columns:1fr; gap:25px; }
    .docs-layout { grid-template-columns:1fr; }
    .docs-nav { display:none; }
    .questionnaire-steps__grid { grid-template-columns:1fr; }
    .questionnaire-steps article { border-right:0; border-bottom:1px solid var(--corp-line); }
    .questionnaire-steps article:last-child { border-bottom:0; }
    .questionnaire-intro__grid { grid-template-columns:1fr; }
    .questionnaire-intro__media { height:420px; }
    .questionnaire-group { grid-template-columns:1fr; }
    .delivery-cards { grid-template-columns:1fr; }
    .delivery-cards article { min-height:180px; }
    .delivery-cards h3 { margin-top:30px; }
    .delivery-content-grid { grid-template-columns:1fr; }
    .delivery-help { position:static; }
    .media-grid,.gallery-archive-grid { grid-template-columns:repeat(2,1fr); }
    .news-archive-hero__grid { grid-template-columns:1fr; gap:30px; }
    .news-modern-grid { grid-template-columns:repeat(2,1fr); }
    .news-modern-card--featured { grid-column:1/-1; grid-template-columns:1fr; }
    .news-modern-card--featured .news-modern-card__image { min-height:380px; height:380px; }
    .news-article__layout { grid-template-columns:1fr; }
    .news-content-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .news-article__content table:has(img) tbody { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .news-article__aside { position:static; }
    .gallery-single__grid { grid-template-columns:repeat(2,1fr); }
    .atelex-cta__panel,.page-help-strip__grid { grid-template-columns:1fr; }
}

@media (max-width:640px) {
    .atelex-shell { width:calc(100% - 24px); }
    .atelex-breadcrumbs { padding-top:14px; }
    .atelex-hero { padding:24px 0 50px; }
    .atelex-hero__panel { padding:32px 24px; border-radius:7px; }
    .atelex-hero__content h1 { font-size:38px; line-height:1.08; }
    .atelex-hero__lead { font-size:15px; line-height:1.65; }
    .atelex-hero__metric { padding:20px 0; }
    .atelex-hero__stats { grid-template-columns:1fr 1fr; }
    .atelex-hero__stats div { min-height:110px; padding:18px; }
    .resource-section,.questionnaire-files,.media-section,.news-archive-section,.gallery-single__section { padding-bottom:70px; }
    .resource-toolbar { margin-bottom:28px; }
    .resource-toolbar h2 { font-size:32px; }
    .resource-search { min-width:0; }
    .docs-groups { gap:38px; }
    .docs-group__head h3 { font-size:22px; }
    .resource-file { min-height:82px; grid-template-columns:42px 1fr 24px; gap:12px; padding:15px; }
    .resource-file__type { width:42px; height:42px; }
    .resource-file__main strong { font-size:14px; }
    .catalog-download-grid { grid-template-columns:1fr; }
    .catalogs-intro { padding-bottom:60px; }
    .catalogs-intro__grid { grid-template-columns:1fr; gap:28px; }
    .catalogs-intro__media,.catalogs-intro__media img { min-height:240px; }
    .catalog-download-card { min-height:300px; padding:24px; }
    .atelex-cta,.page-help-strip { padding-bottom:65px; }
    .atelex-cta__panel { padding:32px 24px; }
    .page-help-strip__grid { padding:28px 22px; }
    .page-help-strip strong { font-size:21px; }
    .questionnaire-steps { padding-bottom:60px; }
    .questionnaire-steps article { min-height:0; padding:24px 20px; }
    .questionnaire-intro { padding:65px 0; }
    .questionnaire-intro h2 { font-size:32px; }
    .questionnaire-intro__media { height:300px; }
    .questionnaire-files { padding-top:70px; }
    .questionnaire-group { padding:22px; }
    .questionnaire-group__head h3 { font-size:21px; }
    .delivery-overview { padding-bottom:70px; }
    .delivery-cards { margin-bottom:55px; }
    .delivery-cards article { padding:24px; }
    .delivery-help { padding:25px; }
    .media-tabs { overflow-x:auto; padding-bottom:12px; }
    .media-tab { flex:none; }
    .media-grid,.gallery-archive-grid,.gallery-single__grid { grid-template-columns:1fr; }
    .media-card__link { aspect-ratio:1.2/1; }
    .news-archive-hero { padding:30px 0 55px; }
    .news-archive-hero__grid { padding-bottom:35px; }
    .news-archive-hero h1 { font-size:42px; }
    .news-modern-grid { grid-template-columns:1fr; }
    .news-modern-card__image { height:230px; }
    .news-modern-card--featured { display:flex; min-height:0; }
    .news-modern-card--featured .news-modern-card__image { min-height:260px; height:260px; }
    .news-modern-card--featured .news-modern-card__body { padding:27px; }
    .news-modern-card--featured h2 { font-size:27px; }
    .news-article { padding-top:25px; padding-bottom:75px; }
    .news-article__back { margin-bottom:26px; }
    .news-article__header h1,.gallery-single__header h1 { font-size:38px; }
    .news-article__lead { font-size:16px; }
    .news-article__media { width:calc(100% - 24px); height:260px; margin-top:35px; }
    .news-article__layout { margin-top:20px; }
    .news-article__content { font-size:15px; }
    .news-content-gallery { grid-template-columns:1fr; gap:10px; }
    .news-content-gallery__item { aspect-ratio:auto; }
    .news-content-gallery__item img { height:auto!important; }
    .news-article__content table:has(img) tbody { grid-template-columns:1fr; }
    .news-article__content table:has(img) td:has(img) img { height:auto!important; aspect-ratio:4/3; }
    .gallery-archive-card__image { height:250px; }
    .gallery-single__header { padding-top:25px; padding-bottom:40px; }
    .gallery-single__grid a { height:260px; }
}

.docs-hero__panel {
    background:
        linear-gradient(
            90deg,
            rgba(38, 54, 67, 0.97) 0%,
            rgba(38, 54, 67, 0.92) 42%,
            rgba(38, 54, 67, 0.55) 68%,
            rgba(38, 54, 67, 0.25) 100%
        ),
        url("../img/pages/certificates/certificates-hero.webp") center right / cover no-repeat;
}

.docs-hero__panel:after {
    display:none;
}

.gallery-hero__panel {
    background:
        linear-gradient(
            90deg,
            rgba(38, 54, 67, 0.98) 0%,
            rgba(38, 54, 67, 0.94) 35%,
            rgba(38, 54, 67, 0.75) 52%,
            rgba(38, 54, 67, 0.38) 72%,
            rgba(38, 54, 67, 0.15) 100%
        ),
        url("../img/pages/gallery/gallery-hero.webp") center right / cover no-repeat;
}

.gallery-hero__panel:after {
    display: none;
}

.gallery-hero__panel {
    background-position: center right;
}

.atelex-hero__metric--inline {
    width: fit-content;
    min-height: 0;

    margin-top: 32px;
    padding: 20px 0 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;

    border-top: 1px solid rgba(255, 255, 255, .25);
    border-bottom: 0;
}

.atelex-hero__metric--inline strong {
    font-size: 42px;
    line-height: 1;
    font-weight: 600;
    color: #fff;
}

.atelex-hero__metric--inline span {
    max-width: 190px;

    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.45;
}

/* ========================================
   PAYMENT & DELIVERY — INFORMATION
======================================== */

.delivery-info {
    margin-top: 72px;

    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
    gap: 72px;
    align-items: center;

    padding: 64px 0;
}

.delivery-info__content {
    min-width: 0;
}

.delivery-info__intro {
    max-width: 650px;
    margin: 0 0 22px;

    color: var(--corp-text);
    font-size: 16px;
    line-height: 1.7;
}

.delivery-info__methods {
    margin-top: 48px;
}

.delivery-info__methods h2 {
    margin: 0 0 22px;

    color: var(--corp-ink);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
}

.delivery-info__methods ul {
    display: grid;
    gap: 18px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.delivery-info__methods li {
    position: relative;

    padding-left: 18px;

    color: var(--corp-text);
    font-size: 16px;
    line-height: 1.65;
}

.delivery-info__methods li::before {
    content: "";

    position: absolute;
    top: 11px;
    left: 0;

    width: 5px;
    height: 5px;

    border-radius: 50%;
    background: var(--corp-red);
}

.delivery-info__note {
    max-width: 650px;

    margin: 28px 0 0;

    color: var(--corp-text);
    font-size: 15px;
    line-height: 1.7;
}

.delivery-info__visual {
    overflow: hidden;

    border-radius: 8px;
    background: #e8edf0;
}

.delivery-info__visual img {
    display: block;

    width: 100%;
    height: 470px;

    object-fit: cover;
    object-position: center;
}


/* TABLET */

@media (max-width: 1100px) {

    .delivery-info {
        grid-template-columns: 1fr;
        gap: 40px;

        margin-top: 56px;
        padding: 48px 0;
    }

    .delivery-info__visual img {
        height: 400px;
    }
}


/* MOBILE */

@media (max-width: 700px) {

    .delivery-info {
        margin-top: 40px;
        padding: 36px 0;
    }

    .delivery-info__methods {
        margin-top: 34px;
    }

    .delivery-info__methods h2 {
        font-size: 25px;
    }

    .delivery-info__intro,
    .delivery-info__methods li {
        font-size: 15px;
    }

    .delivery-info__visual img {
        height: 280px;
    }
}

/* ==================================================
   PAYMENT & DELIVERY HERO
================================================== */

.delivery-hero__panel {
    min-height: 390px;

    display: block;

    padding: 64px 70px;

    background:
        linear-gradient(
            90deg,
            rgba(38, 54, 67, 0.98) 0%,
            rgba(38, 54, 67, 0.95) 30%,
            rgba(38, 54, 67, 0.86) 45%,
            rgba(38, 54, 67, 0.55) 62%,
            rgba(38, 54, 67, 0.20) 82%,
            rgba(38, 54, 67, 0.08) 100%
        ),
        url("../img/pages/delivery/delivery-hero.webp")
        center right / cover no-repeat;
}


/* Убираем старые декоративные круги */

.delivery-hero__panel::after {
    display: none;
}


/* Левая текстовая часть */

.delivery-hero__content {
    max-width: 720px;
}


/* РФ + СНГ переносим под описание */

.delivery-hero__metric {
    width: fit-content;
    min-width: 320px;
    min-height: 0;

    margin-top: 32px;
    padding: 20px 0 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 0;
}


/* Число / надпись */

.delivery-hero__metric strong {
    color: #fff;

    font-size: 32px;
    line-height: 1;
    font-weight: 600;

    white-space: nowrap;
}


/* Подпись */

.delivery-hero__metric span {
    max-width: 180px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 700px) {

    .delivery-hero__panel {
        min-height: 0;

        padding: 32px 24px;

        background:
            linear-gradient(
                90deg,
                rgba(38, 54, 67, 0.97) 0%,
                rgba(38, 54, 67, 0.90) 100%
            ),
            url("../img/pages/delivery/delivery-hero.webp")
            center / cover no-repeat;
    }

    .delivery-hero__metric {
        min-width: 0;
        width: 100%;

        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .delivery-hero__metric strong {
        font-size: 27px;
    }
}

.docs-hero__content {
    max-width: 760px;
}

.docs-hero__metric {
    width: fit-content;
    min-width: 300px;
    min-height: 0;

    margin-top: 32px;
    padding: 20px 0 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;

    border-top: 1px solid rgba(255,255,255,.28);
    border-bottom: 0;
}

.docs-hero__metric strong {
    font-size: 38px;
    line-height: 1;
    font-weight: 600;
    color: #fff;
}

.docs-hero__metric span {
    max-width: 180px;

    font-size: 12px;
    line-height: 1.45;

    color: rgba(255,255,255,.7);
}

/* =========================================
   GALLERY HERO — compact stats
========================================= */

.gallery-hero__content {
    max-width: 820px;
}

.gallery-hero__stats {
    width: 430px !important;
    max-width: 100%;

    margin-top: 30px !important;
    padding-top: 18px !important;

    display: flex !important;
    grid-template-columns: none !important;

    align-items: center;
    gap: 38px;

    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .28) !important;

    background: transparent !important;
}

.gallery-hero__stats > div {
    min-width: 0 !important;
    min-height: 0 !important;

    padding: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: baseline;
    gap: 10px;

    border: 0 !important;

    background: transparent !important;
}

.gallery-hero__stats > div + div {
    position: relative;

    margin: 0 !important;
    padding: 0 0 0 30px !important;
}

.gallery-hero__stats > div + div::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 1px;
    height: 26px;

    background: rgba(255, 255, 255, .22);

    transform: translateY(-50%);
}

.gallery-hero__stats strong {
    margin: 0 !important;

    color: #fff;

    font-size: 32px !important;
    line-height: 1 !important;
    font-weight: 500;
}

.gallery-hero__stats span {
    max-width: none !important;

    margin: 0 !important;

    color: rgba(255, 255, 255, .68);

    font-size: 13px !important;
    line-height: 1.3;

    white-space: nowrap;
}

@media (max-width: 640px) {

    .gallery-hero__stats {
        width: 100% !important;

        gap: 22px;
    }

    .gallery-hero__stats > div + div {
        padding-left: 22px !important;
    }

    .gallery-hero__stats strong {
        font-size: 28px !important;
    }

    .gallery-hero__stats span {
        font-size: 12px !important;
        white-space: normal;
    }
}
