/* figtree-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/figtree-v9-latin-300.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/figtree-v9-latin-300italic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/figtree-v9-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/figtree-v9-latin-italic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/figtree-v9-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/figtree-v9-latin-500italic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/figtree-v9-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/figtree-v9-latin-600italic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/figtree-v9-latin-700.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/figtree-v9-latin-700italic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/figtree-v9-latin-800.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 800;
  src: url('../fonts/figtree-v9-latin-800italic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/figtree-v9-latin-900.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 900;
  src: url('../fonts/figtree-v9-latin-900italic.woff2') format('woff2');
}

/* =========================================================
   ABINVEST — design tokens
   ========================================================= */
:root {
    --color-yellow:      #FFCC00;
    --color-yellow-hover:#FFD633;
    --color-red:         #D40511;
    --color-red-hover:   #B00410;
    --color-black:       #000000;
    --color-text:        #1A1A1A;
    --color-text-muted:  #555;
    --color-border:      #E5E5E5;
    --color-bg:          #FFFFFF;
    --color-bg-alt:      #F7F7F7;

    --font-sans: "Figtree", "Helvetica Neue", Arial, sans-serif;

    --header-top-h:  56px;
    --header-main-h: 60px;

    --container:     1536px;
    --container-gap: 24px;

    --radius:     4px;
    --transition: 0.2s ease;

    /* Единые отступы между секциями */
    --section-gap: 56px;
}

/* =========================================================
   СБРОС
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-red); }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 0.5em; font-weight: 700; line-height: 1.2; }

/* =========================================================
   ДОСТУПНОСТЬ
   ========================================================= */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--color-yellow); color: var(--color-black);
    padding: 8px 16px; z-index: 9999; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* =========================================================
   КОНТЕЙНЕР
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--container-gap);
    padding-right: var(--container-gap);
}
@media (min-width: 1920px)    { :root { --container: 1536px; } }
@media (max-width: 1919.98px) { :root { --container: 1400px; } }
@media (max-width: 1535.98px) { :root { --container: 1200px; } }
@media (max-width: 1279.98px) { :root { --container: 960px; } }
@media (max-width: 1023.98px) { :root { --container: 720px; --container-gap: 20px; --section-gap: 40px; } }
@media (max-width: 767.98px)  { :root { --container: 100%; --container-gap: 16px; --section-gap: 32px; } }

/* =========================================================
   ЕДИНАЯ ТИПОГРАФИКА СЕКЦИЙ
   ========================================================= */

/* Eyebrow — жёлтая плашка-подпись над заголовком */
.section-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 11px;
    background: #fc0;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
}

/* H2 — единый стиль для всех блоков */
.section-title {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 14px;
}

/* Сопроводительный текст под заголовком */
.section-lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

/* =========================================================
   ЕДИНЫЕ КНОПКИ
   Базовый класс .btn + модификаторы
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn svg { flex-shrink: 0; }

/* Красная (основной CTA) */
.btn--red,
.btn--secondary {
    background: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
}
.btn--red:hover,
.btn--secondary:hover {
    background: var(--color-red-hover);
    border-color: var(--color-red-hover);
    color: #fff;
}

/* Жёлтая */
.btn--primary {
    background: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-yellow);
}
.btn--primary:hover {
    background: var(--color-yellow-hover);
    border-color: var(--color-yellow-hover);
    color: var(--color-black);
}

/* Контурная (чёрный контур) */
.btn--outline {
    background: transparent;
    border-color: #000;
    color: #000;
}
.btn--outline:hover {
    background: #000;
    color: #fff;
}

/* =========================================================
   ШАПКА
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* TopBar — жёлтый */
.topbar {
    background: #fc0;
    color: #000;
    font-size: 13px;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-top-h);
    gap: 24px;
}
.site-branding { flex-shrink: 0; }
.site-branding .custom-logo-link img,
.site-branding .custom-logo { max-height: 36px; width: auto; display: block; }
.site-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1;
}
.site-logo-text:hover { color: var(--color-red); }

.topbar__address {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #000;
    font-size: 13px;
    padding: 8px 0;
    min-width: 0;
}
.topbar__address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__address:hover { color: var(--color-red); }
.topbar__address svg { flex-shrink: 0; }

/* Правая часть topbar: адрес + Contact us + бургер */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

/* Contact us в topbar — стиль под жёлтый фон */
.contact-menu { position: relative; }
.contact-menu__toggle {
    background: transparent;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    font: inherit;
    font-size: 13px;
    color: #000;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.contact-menu__toggle:hover { color: var(--color-red); }
.contact-menu__arrow { transition: transform var(--transition); }
.contact-menu:hover .contact-menu__arrow,
.contact-menu:focus-within .contact-menu__arrow { transform: rotate(180deg); }
.contact-menu__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 200;
}
.contact-menu:hover .contact-menu__dropdown,
.contact-menu:focus-within .contact-menu__dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.contact-menu__dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; font-size: 14px; color: var(--color-text);
}
.contact-menu__dropdown a:hover { background: var(--color-bg-alt); color: var(--color-red); }
.contact-menu__dropdown svg { flex-shrink: 0; color: var(--color-red); }
.contact-menu__phone { border-top: 1px solid var(--color-border); margin-top: 4px; padding-top: 4px; }

/* MainBar — белый */
.mainbar {
    background: #fff;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.mainbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-main-h);
    gap: 24px;
    
}
.mainbar__contact-menu { display: none; } /* скрыт по умолчанию, показывается только на десктопе */

/* Главное меню */
.primary-nav { flex: 1; display: flex; justify-content: flex-start; }
.primary-menu { display: flex; align-items: center; gap: 4px; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    position: relative;
}
.primary-menu > li:first-child > a { padding-left: 0; }
.primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 14px;
    height: 2px;
    background: var(--color-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.primary-menu > li:first-child > a::after { left: 0; }
.primary-menu > li:hover > a::after,
.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current-menu-parent > a::after { transform: scaleX(1); }
.primary-menu > li:hover > a { color: var(--color-red); }
.menu-arrow { transition: transform var(--transition); }
.primary-menu > li:hover .menu-arrow { transform: rotate(180deg); }

/* Подменю */
.primary-menu .sub-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 100;
}
.primary-menu > li:hover > .sub-menu,
.primary-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu li a { display: block; padding: 10px 18px; font-size: 14px; color: var(--color-text); }
.primary-menu .sub-menu li a:hover { background: var(--color-bg-alt); color: var(--color-red); }

/* Иконки справа */
.mainbar__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: none;
    border-radius: var(--radius);
    color: #000;
    transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--color-bg-alt); color: var(--color-red); }
.icon-btn:focus-visible { outline: 2px solid var(--color-yellow); outline-offset: 2px; }

/* Бургер */
.menu-toggle { display: none; }
.burger { width: 22px; height: 16px; position: relative; display: inline-block; }
.burger span {
    position: absolute; left: 0; right: 0; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }
.menu-toggle.is-open .burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle.is-open .burger span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Выпадающий поиск */
.site-search { border-top: 1px solid var(--color-border); background: var(--color-bg-alt); padding: 16px 0; }
.search-form { display: flex; align-items: center; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.search-form__input { flex: 1; border: 0; padding: 12px 16px; font-size: 15px; outline: none; background: transparent; }
.search-form__submit {
    background: var(--color-yellow); border: 0; padding: 0 16px; align-self: stretch;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--color-black); transition: background var(--transition);
}
.search-form__submit:hover { background: var(--color-yellow-hover); }

/* Мобильное меню */
.mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s ease; z-index: 9999;
}
.mobile-menu.is-open { transform: translateX(0); }

/* Шапка мобильного меню */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-gap);
    min-height: var(--header-top-h);
    background: #fc0;
    position: sticky;
    top: 0;
    z-index: 1;
}
.mobile-menu__logo { display: flex; align-items: center; }
.mobile-menu__logo .custom-logo-link img,
.mobile-menu__logo .custom-logo { max-height: 34px; width: auto; display: block; }
.mobile-menu__logo .site-logo-text { font-size: 20px; font-weight: 800; color: #000; }
.mobile-menu__close {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: none;
    color: #000; cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition);
    flex-shrink: 0;
}
.mobile-menu__close:hover { background: rgba(0,0,0,0.08); }

.mobile-menu__inner { padding: 0 var(--container-gap) 40px; }
.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__list li { border-bottom: 1px solid var(--color-border); }
.mobile-menu__list > li > a { display: block; padding: 16px 0; font-size: 17px; font-weight: 500; color: var(--color-text); }
.mobile-menu__list .sub-menu { padding: 0 0 12px 16px; }
.mobile-menu__list .sub-menu li { border: 0; }
.mobile-menu__list .sub-menu a { display: block; padding: 8px 0; font-size: 15px; color: var(--color-text-muted); }

/* Иконки мессенджеров — без разделителя сверху */
.mobile-menu__extra { margin-top: 20px; padding-top: 0; border-top: 0; }
.mobile-menu__extra-list { display: flex; gap: 8px; }
.mobile-menu__extra-list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    color: #000;
    transition: background var(--transition), border-color var(--transition);
}
.mobile-menu__extra-list li a:hover { background: #fc0; border-color: #fc0; }

body.menu-open { overflow: hidden; }

/* Адаптив шапки */
@media (max-width: 1023.98px) {
    .primary-nav { display: none; }
    .mainbar { display: none; }
    .menu-toggle { display: inline-flex; }
    .topbar__address { display: none; }
    .topbar__contact-menu { display: none; }
}
@media (min-width: 1024px) {
    .mobile-menu { display: none !important; }
    .menu-toggle { display: none; }
    /* Contact us переезжает в mainbar на десктопе */
    .topbar__contact-menu { display: none; }
    .mainbar__contact-menu { display: flex; }
}
@media (max-width: 767.98px) {
    .site-branding .custom-logo-link img,
    .site-branding .custom-logo { max-height: 32px; }
    .site-logo-text { font-size: 20px; }
}

/* =========================================================
   КОНТЕНТ / УТИЛИТЫ
   ========================================================= */
.site-content { padding: 0; min-height: 50vh; }

.posts-list { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.post-card__thumb img { width: 100%; height: auto; display: block; }
.post-card__body { padding: 16px; }
.post-card__title { font-size: 18px; }
.post-card__title a { color: var(--color-text); }
.post-card__title a:hover { color: var(--color-red); }

.error-404 { text-align: center; padding: 80px 0; }
.error-404__title { font-size: 96px; color: var(--color-yellow); margin: 0; }
.error-404__text { font-size: 20px; margin-bottom: 24px; }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.site-footer { background: #1A1A1A; color: #CCC; padding: 48px 0 24px; }
.site-footer a { color: #CCC; }
.site-footer a:hover { color: var(--color-yellow); }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #333; }
.footer-widget__title { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 14px; }
.site-footer__copy { margin: 0; color: #999; }
.site-footer__menu { display: flex; gap: 20px; flex-wrap: wrap; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    margin-top: 0;
    padding: 80px 0 96px;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: url('https://abinvest.ae/wp-content/uploads/2026/06/bg-scaled.webp');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    z-index: -1;
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 680px; }

.hero__title {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #000;
}
.hero__lead {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    color: #1A1A1A;
    margin: 0 0 14px;
    max-width: 620px;
}
.hero__tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 24px;
    padding: 14px 20px;
    max-width: 620px;
    background: rgba(255,255,255,0.88);
    border-left: 3px solid #fc0;
    border-radius: 2px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.hero__tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; line-height: 1.3; }
.hero__tag-label { flex-shrink: 0; min-width: 68px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #555; }
.hero__tag-list { color: #1A1A1A; font-weight: 500; }
.hero__tag-list em { font-style: normal; color: #D40511; margin: 0 4px; font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1023.98px) {
    .hero { padding: 56px 0 72px; }
    .hero::before { opacity: 0.55; }
    .hero__content { max-width: 100%; }
    .hero__lead, .hero__tags { max-width: 100%; }
}
@media (max-width: 767.98px) {
    .hero { padding: 40px 0 56px; }
    .hero::before { opacity: 0.35; }
    .hero__tags { padding: 12px 16px; }
    .hero__tag-row { gap: 6px; }
    .hero__tag-label { min-width: 100%; }
    .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* =========================================================
   ABOUT (компактный баннер)
   ========================================================= */
.about { padding: var(--section-gap) 0; }
.about__inner {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.about__media { flex: 0 0 190px; max-width: 190px; }
.about__image { width: 100%; height: auto; display: block; border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; }
.about__content { flex: 1 1 auto; min-width: 0; }

/* Заголовок about = section-title стиль */
.about__title {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 10px;
}
.about__text { font-size: 15px; line-height: 1.6; color: var(--color-text-muted); margin: 0 0 16px; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1023.98px) {
    .about__media { flex: 0 0 150px; max-width: 150px; }
}
@media (max-width: 767.98px) {
    .about__inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
    .about__media { flex: 0 0 auto; max-width: 100%; }
    .about__image { aspect-ratio: 16/9; max-height: 200px; }
    .about__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* =========================================================
   SERVICES (слайдер)
   ========================================================= */
.services { background: #fff; padding: var(--section-gap) 0; }

.services__head { max-width: 760px; margin: 0 0 36px; }
/* eyebrow / title / lead: используем section-* + локальные классы-псевдонимы */
.services__eyebrow { @extend .section-eyebrow; }

/* Переопределяем напрямую (extend не работает в чистом CSS) */
.services__eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 11px;
    background: #fc0;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
}
.services__title {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 14px;
}
.services__lead { font-size: 16px; line-height: 1.6; color: var(--color-text-muted); margin: 0; }

/* Слайдер */
.services__slider { position: relative; }
.services__viewport { overflow: hidden; }
.services__track { display: flex; gap: 24px; transition: transform 0.4s ease; will-change: transform; }

.service-card {
    flex: 0 0 calc((100% - 48px) / 3);
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.07); border-color: transparent; }
.service-card__media { position: relative; aspect-ratio: 16/10; background: var(--color-bg-alt); overflow: hidden; }
.service-card__placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,204,0,0.12) 0%, rgba(255,204,0,0.04) 100%),
                repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(0,0,0,0.03) 12px, rgba(0,0,0,0.03) 13px);
}
.service-card__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1 1 auto; }
.service-card__title { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; color: #000; }
.service-card__text { font-size: 14px; line-height: 1.55; color: var(--color-text-muted); margin: 0; }

/* Контролы */
.services__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.slider-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--color-border); border-radius: 50%;
    color: #000; cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.slider-btn:hover { background: #fc0; border-color: #fc0; }
.slider-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.slider-btn:disabled:hover { background: #fff; border-color: var(--color-border); }
.services__counter { font-size: 14px; color: #555; min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }

@media (max-width: 1023.98px) {
    .services { padding: var(--section-gap) 0; }
    .service-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 767.98px) {
    .services__head { margin-bottom: 24px; }
    .services__track { gap: 16px; }
    .service-card { flex: 0 0 100%; }
}

/* =========================================================
   WHY US
   ========================================================= */
.why { padding: var(--section-gap) 0; background: #fff; }
.why__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
    min-height: 520px;
}
.why__content { padding: 36px 36px 32px; display: flex; flex-direction: column; background: #fff; }

.why__eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 11px;
    background: #fc0;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    align-self: flex-start;
}
.why__title {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 10px;
}
.why__lead { font-size: 16px; line-height: 1.6; color: var(--color-text-muted); margin: 0 0 20px; }

.why__features { background: var(--color-bg-alt); border-radius: 4px; padding: 16px 18px; margin-bottom: 24px; flex: 1 1 auto; }
.why__features-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin: 0 0 12px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.why__item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: #1A1A1A; }
.why__icon {
    flex-shrink: 0; width: 26px; height: 26px;
    background: #fc0; border-radius: 3px;
    display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.why__icon svg { color: #000; }

.why__media { position: relative; overflow: hidden; min-height: 360px; }
.why__placeholder { width: 100%; height: 100%; background: var(--color-bg-alt); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #bbb; font-size: 13px; }
.why__placeholder svg { color: #ccc; }
.why__image { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1023.98px) {
    .why__inner { grid-template-columns: 1fr; min-height: auto; }
    .why__media { min-height: 260px; order: -1; }
    .why__list { grid-template-columns: 1fr; }
    .why__content { padding: 24px 20px 20px; }
}
@media (max-width: 767.98px) {
    .why .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   CTA (нижний баннер)
   ========================================================= */
.cta { background: #fc0; }
.cta__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 28px;
    padding-bottom: 28px;
}
.cta__media { flex: 0 0 160px; max-width: 160px; }
.cta__placeholder {
    width: 160px; height: 120px;
    background: rgba(0,0,0,0.06);
    border: 2px dashed rgba(0,0,0,0.2);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: rgba(0,0,0,0.3);
}
.cta__image { width: 160px; height: 120px; object-fit: contain; display: block; }
.cta__content { flex: 1 1 auto; min-width: 0; }

/* Заголовок CTA = section-title */
.cta__title {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 10px;
}
.cta__text { font-size: 15px; line-height: 1.6; color: #000; margin: 0 0 20px; max-width: 680px; }

@media (max-width: 1023.98px) {
    .cta__media { flex: 0 0 120px; max-width: 120px; }
    .cta__placeholder, .cta__image { width: 120px; height: 90px; }
}
@media (max-width: 767.98px) {
    .cta__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cta__media { display: none; }
    .cta .btn { width: 100%; justify-content: center; }
}

/* ===========================================================
   CONTACTS
   =========================================================== */
.contacts {
    background: #fff;
    padding: var(--section-gap) 0;
}

/* Сетка: два столбца, выравнивание по верху */
.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contacts__left,
.contacts__right {
    display: flex;
    flex-direction: column;
}

/* Eyebrow, title, lead — общие для обоих столбцов */
.contacts__eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 11px;
    background: #fc0;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    align-self: flex-start;
}
.contacts__title {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 10px;
}
.contacts__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 24px;
}

/* Карта */
.contacts__map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    line-height: 0;
    margin-bottom: 20px;
}
.contacts__map iframe { width: 100%; height: 260px; display: block; }

/* Детали: адрес, телефон, email */
.contacts__details { display: flex; flex-direction: column; gap: 25px; }
.contacts__item { display: flex; align-items: flex-start; gap: 12px; }
.contacts__item-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    margin-top: 1px;
    background: #fc0;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: #000;
}
.contacts__item-body { min-width: 0; }
.contacts__item-body p { margin: 0; line-height: 1.3; }
.contacts__item-label {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #888; margin: 0;
    line-height: 1.2;
}
.contacts__item-value {
    display: block; font-size: 14px; font-weight: 600;
    color: #000; line-height: 1.3;
    margin: 5px 0;
    transition: color var(--transition);
}
.contacts__item-value:hover { color: var(--color-red); }
.contacts__item-note { font-size: 12px; color: var(--color-text-muted); margin: 0; line-height: 1.3; }

/* Мессенджеры */
.contacts__messengers { padding-top: 16px; border-top: 1px solid var(--color-border); margin-top: 4px; }
.contacts__messengers-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #888; margin: 0 0 10px;
}
.contacts__messengers-row { display: flex; gap: 10px; flex-wrap: wrap; }
.contacts__messenger-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: var(--radius);
    font-size: 13px; font-weight: 600;
    background: var(--color-bg-alt); color: #000;
    border: 1px solid var(--color-border);
    transition: background var(--transition), border-color var(--transition);
}
.contacts__messenger-btn:hover { background: #fc0; border-color: #fc0; color: #000; }

/* Форма */
.contacts__form-wrap {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
}

/* CF7 */
.wpcf7 { margin: 0 !important; }
.wpcf7-form { display: flex; flex-direction: column; gap: 25px; }

/* Убираем p-обёртки которые wpautop вставляет внутри cf7-row */
.cf7-row { display: flex; flex-direction: column; gap: 0; }
.cf7-row > p { margin: 0; padding: 0; display: contents; }

/* br после лейбла (между названием поля и самим полем) — скрываем, отступ делаем через margin */
.cf7-label br { display: none; }

/* br после wpcf7-form-control-wrap — тоже скрываем (он лишний) */
.wpcf7-form-control-wrap + br { display: none; }

.cf7-label {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: left;
}
.cf7-label-text {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.2;
    margin-bottom: 6px;
}
.cf7-required { color: var(--color-red); line-height: 1; flex-shrink: 0; }

/* Обёртка поля — без лишних отступов */
.wpcf7-form-control-wrap {
    display: block;
    margin: 0;
    padding: 0;
}

/* Инпуты — полная ширина */
.cf7-input,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
    display: block;
    width: 100%;
    padding: 7px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.cf7-input:focus,
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus {
    border-color: #fc0;
    box-shadow: 0 0 0 3px rgba(255,204,0,0.2);
}

/* Селект — полная ширина */
.cf7-select,
.wpcf7-form select {
    display: block;
    width: 100%;
    padding: 7px 32px 7px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
    background: #fff 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 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.cf7-select:focus,
.wpcf7-form select:focus {
    border-color: #fc0;
    box-shadow: 0 0 0 3px rgba(255,204,0,0.2);
}

/* Textarea */
.cf7-textarea,
.wpcf7-form textarea {
    display: block;
    width: 100%;
    padding: 7px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    resize: vertical;
    height: calc(4 * 1.4em + 14px);
    box-sizing: border-box;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.cf7-textarea:focus,
.wpcf7-form textarea:focus {
    border-color: #fc0;
    box-shadow: 0 0 0 3px rgba(255,204,0,0.2);
}

/* Чекбокс */
.cf7-checkbox,
.wpcf7-form .wpcf7-acceptance {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: var(--color-text-muted);
    line-height: 1.4; cursor: pointer;
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"],
.cf7-checkbox input[type="checkbox"] {
    flex-shrink: 0; width: 15px; height: 15px;
    margin-top: 2px; accent-color: #fc0; cursor: pointer;
}
.cf7-checkbox a,
.wpcf7-form .wpcf7-acceptance a { color: var(--color-red); text-decoration: underline; }

/* Кнопка */
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"] {
    padding: 11px 28px;
    background: var(--color-red);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background var(--transition);
}
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover { background: var(--color-red-hover); }

/* CF7 сообщения */
.wpcf7-response-output {
    margin: 8px 0 0 !important; padding: 9px 12px !important;
    border-radius: var(--radius) !important; font-size: 13px !important;
    border: 1px solid var(--color-border) !important;
}
.wpcf7-mail-sent-ok { background: #f0fdf4 !important; border-color: #86efac !important; color: #166534 !important; }
.wpcf7-validation-errors { background: #fef9c3 !important; border-color: #fde047 !important; color: #854d0e !important; }
.wpcf7-spam-blocked { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #991b1b !important; }
.wpcf7-not-valid-tip { font-size: 12px !important; color: var(--color-red) !important; margin-top: 3px !important; }

/* Адаптив */
@media (max-width: 1023.98px) {
    .contacts__inner { grid-template-columns: 1fr; gap: 32px; }
    .contacts__map iframe { height: 220px; }
}
@media (max-width: 767.98px) {
    .cf7-row--2col { grid-template-columns: 1fr; gap: 10px; }
    .contacts__map iframe { height: 200px; }
    .contacts__messenger-btn { flex: 1 1 auto; justify-content: center; }
    .wpcf7-form .wpcf7-submit,
    .wpcf7-form input[type="submit"] { width: 100%; text-align: center; }
}

/* ===========================================================
   INDUSTRIES (слайдер карточек)
   =========================================================== */
.industries {
    background: var(--color-bg-alt);
    padding: var(--section-gap) 0;
}

.industries__head {
    max-width: 760px;
    margin: 0 0 36px;
}
.industries__eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 11px;
    background: #fc0;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
}
.industries__title {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 14px;
}
.industries__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

/* Слайдер */
.industries__slider { position: relative; }
.industries__viewport { overflow: hidden; }
.industries__track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Карточка */
.industry-card {
    flex: 0 0 calc((100% - 48px) / 3);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 320px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

/* Картинка/плейсхолдер — на всю карточку */
.industry-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.industry-card__placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(160deg, rgba(255,204,0,0.25) 0%, rgba(0,0,0,0.55) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(0,0,0,0.04) 16px, rgba(0,0,0,0.04) 17px);
    background-color: #1a1a1a;
}
.industry-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Тёмный оверлей снизу для читаемости текста */
.industry-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Контент — поверх картинки */
.industry-card__body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.industry-card__title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.industry-card__btn {
    align-self: flex-start;
    padding: 9px 18px;
    font-size: 13px;
}

/* Контролы — те же .slider-btn, только счётчик с другим классом */
.industries__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}
.industries__counter {
    font-size: 14px;
    color: #555;
    min-width: 56px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Адаптив */
@media (max-width: 1023.98px) {
    .industry-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 767.98px) {
    .industries__head { margin-bottom: 24px; }
    .industries__track { gap: 16px; }
    .industry-card { flex: 0 0 100%; min-height: 280px; }
    .industry-card__btn { width: 100%; justify-content: center; }
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
    background: #1A1A1A;
    color: #aaa;
    margin-top: var(--section-gap);
}

/* Верхняя часть: три колонки */
.site-footer__top { padding: 52px 0 40px; }
.site-footer__top-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

/* Колонка 1: лого + описание + мессенджеры */
.site-footer__brand {}
.site-footer__logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: inline-block;
    margin-bottom: 12px;
}
.site-footer__brand .custom-logo-link img,
.site-footer__brand .custom-logo {
    max-height: 36px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}
.site-footer__desc {
    font-size: 14px;
    line-height: 1.6;
    color: #888;
    margin: 0 0 20px;
    max-width: 280px;
}
.site-footer__messengers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.site-footer__messenger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid #333;
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.site-footer__messenger:hover {
    background: #fc0;
    border-color: #fc0;
    color: #000 !important;
}
.site-footer__messenger:hover svg { color: #000; }

/* Колонка 2: навигация */
.site-footer__col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 16px;
}
.site-footer__nav-list { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav-list a {
    font-size: 14px;
    color: #aaa;
    transition: color var(--transition);
}
.site-footer__nav-list a:hover { color: #fc0; }

/* Колонка 3: контакты */
.site-footer__contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.site-footer__contacts-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}
.site-footer__contacts-list svg { flex-shrink: 0; margin-top: 2px; color: #aaa; }
.site-footer__contacts-list a { color: #aaa; transition: color var(--transition); }
.site-footer__contacts-list a:hover { color: #fc0; }

/* Нижняя полоска */
.site-footer__bottom {
    border-top: 1px solid #2a2a2a;
    padding: 18px 0;
}
.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer__copy { margin: 0; font-size: 13px; color: #aaa; }
.site-footer__legal a { font-size: 13px; color: #aaa; transition: color var(--transition); }
.site-footer__legal a:hover { color: #fff; }

/* Адаптив */
@media (max-width: 1023.98px) {
    .site-footer__top-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .site-footer__top { padding: 40px 0 32px; }
    .site-footer__top-inner { grid-template-columns: 1fr; gap: 28px; }
    .site-footer__brand { grid-column: auto; }
    .site-footer__desc { max-width: 100%; }
    .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===========================================================
   КОНТЕНТ СТРАНИЦ (Privacy Policy и подобные текстовые страницы)
   =========================================================== */
.page-entry__content,
.single-entry__content {
    max-width: 760px;
}

.page-entry__content > *:first-child,
.single-entry__content > *:first-child {
    margin-top: 0;
}

.page-entry__content p,
.single-entry__content p {
    margin: 0 0 16px;
    line-height: 1.65;
    color: var(--color-text);
}

.page-entry__content h1,
.single-entry__content h1 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #000;
}

.page-entry__content h2,
.single-entry__content h2 {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 36px 0 14px;
    color: #000;
}

.page-entry__content h3,
.single-entry__content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: #000;
}

/* Списки — возвращаем маркеры и отступы, перебивая глобальный сброс */
.page-entry__content ul,
.single-entry__content ul {
    list-style: disc;
    padding-left: 22px;
    margin: 0 0 18px;
}
.page-entry__content ol,
.single-entry__content ol {
    list-style: decimal;
    padding-left: 22px;
    margin: 0 0 18px;
}
.page-entry__content li,
.single-entry__content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--color-text);
}
.page-entry__content li:last-child,
.single-entry__content li:last-child {
    margin-bottom: 0;
}

/* Жирный текст */
.page-entry__content strong,
.single-entry__content strong {
    font-weight: 700;
    color: #000;
}

/* Ссылки внутри контента */
.page-entry__content a,
.single-entry__content a {
    color: var(--color-red);
    text-decoration: underline;
    text-decoration-color: rgba(212, 5, 17, 0.3);
    transition: color var(--transition), text-decoration-color var(--transition);
}
.page-entry__content a:hover,
.single-entry__content a:hover {
    color: var(--color-red-hover);
    text-decoration-color: var(--color-red-hover);
}

/* Горизонтальная линия-разделитель */
.page-entry__content hr,
.single-entry__content hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
}

/* Курсив (используется в дисклеймере) */
.page-entry__content em,
.single-entry__content em {
    color: var(--color-text-muted);
    font-style: italic;
}

/* Адаптив */
@media (max-width: 767.98px) {
    .page-entry__content h2,
    .single-entry__content h2 { margin: 28px 0 12px; }
}