/* ==============================================================
   АУТФОРС — стили одностраничного сайта
   Без фреймворков и сборки: файл можно подключить в Joomla/WordPress.
   ============================================================== */

:root {
  --bg: #080808;
  --bg-soft: #101010;
  --panel: #151515;
  --panel-2: #1b1b1b;
  --text: #f7f7f7;
  --muted: #b6b6b6;
  --line: rgba(255, 255, 255, 0.12);
  --red: #d71920;
  --red-dark: #9f1015;
  --white: #ffffff;
  --light: #f1f1f1;
  --ink: #151515;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --container: 1240px;
  --header-height: 104px;
  --font-primary: "Inter Custom", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font-size: 16px;
  --body-font-weight: 400;
  --heading-font-weight: 700;
  --ui-font-weight: 600;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--light);
  font-family: var(--font-primary);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, button, input, textarea, select { font-family: var(--font-primary); }
h3 { font-weight: 600; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-dark { color: var(--text); background: var(--bg); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 12px 18px; color: #fff; background: var(--red); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Заголовки секций */
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 16px; color: var(--red); font-size: 0.78rem; font-weight: var(--ui-font-weight); letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: currentColor; }
.section-heading { max-width: 780px; margin-bottom: 46px; }
.section-heading h2, .selection-copy h2, .certificate-copy h2, .contact-copy h2 { margin: 0; font-weight: var(--heading-font-weight); font-size: clamp(2rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -0.045em; }
.section-heading > p:last-child { margin: 20px 0 0; color: #636363; font-size: 1.08rem; }
.section-dark .section-heading > p:last-child { color: var(--muted); }
.split-heading { display: grid; grid-template-columns: 1.55fr 0.9fr; align-items: end; gap: 56px; max-width: none; }
.split-heading > p { margin: 0 0 8px; color: #5d5d5d; }
.centered { text-align: center; margin-inline: auto; }
.centered .eyebrow { justify-content: center; }

/* Кнопки */
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 8px; padding: 0 23px; border: 1px solid transparent; border-radius: 9px; font-weight: var(--ui-font-weight); text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 12px 28px rgba(215, 25, 32, .22); }
.button-primary:hover { background: #ef1c24; }
.button-secondary { color: inherit; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.button-secondary:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.button-wide { width: 100%; }
.text-button { padding: 0; border: 0; color: var(--red); background: none; font-weight: var(--ui-font-weight); }
.text-button span { display: inline-block; transition: transform .2s ease; }
.text-button:hover span { transform: translateX(4px); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 100; min-height: var(--header-height); color: #fff; background: rgba(8,8,8,.93); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 20px; }
/* Логотип АУТФОРС занимает всё свободное место слева до навигации. */
.brand { flex: 0 1 420px; min-width: 330px; max-width: 420px; display: flex; align-items: center; text-decoration: none; }
.brand img { width: 100%; max-height: 90px; height: auto; object-fit: contain; object-position: left center; }
.main-nav { flex: 0 0 auto; display: flex; align-items: center; gap: 26px; margin-left: 0; }
.main-nav a { position: relative; color: #d8d8d8; font-size: .9rem; font-weight: var(--ui-font-weight); text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--red); transition: right .2s ease; }
.main-nav a:hover::after { right: 0; }
.header-phone { flex: 0 0 auto; display: flex; flex-direction: column; text-align: right; text-decoration: none; }
.header-phone span { color: #8e8e8e; font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; }
.header-phone strong { font-size: .92rem; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; background: transparent; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - var(--header-height)); display: grid; align-items: center; color: #fff; background:
  radial-gradient(circle at 72% 28%, rgba(215,25,32,.18), transparent 31%),
  linear-gradient(120deg, #070707 0%, #0e0e0e 56%, #080808 100%); }
.hero::after { content: ""; position: absolute; left: 47%; right: -7%; bottom: 2%; height: 92px; background: linear-gradient(90deg, transparent, var(--red) 20%, #8f0d12); transform: rotate(11deg); opacity: .94; }
.hero-grid-pattern { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent 3%, #000 40%, transparent 92%); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding-top: 74px; padding-bottom: 82px; }
.hero-copy h1 { max-width: 760px; margin: 0; font-weight: var(--heading-font-weight); font-size: clamp(2.85rem, 6.3vw, 6.8rem); line-height: .93; letter-spacing: -.06em; text-wrap: balance; }
.hero-copy h1 strong { color: var(--red); }
.hero-lead { max-width: 690px; margin: 28px 0 0; color: #c5c5c5; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: grid; grid-template-columns: repeat(var(--hero-stat-count, 3), 1fr); gap: 1px; margin: 46px 0 0; padding: 0; list-style: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; }
.hero-points li { display: flex; flex-direction: column; min-height: 98px; justify-content: center; padding: 16px 18px; background: rgba(8,8,8,.86); }
.hero-points strong { color: #fff; font-size: 1.35rem; }
.hero-points span { color: #929292; font-size: .8rem; }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.018), 0 0 0 90px rgba(255,255,255,.012); }
.hero-visual-frame { position: relative; z-index: 2; width: min(100%, 710px); overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.hero-visual-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0,0,0,.45); }
.hero-visual-frame img { width: 100%; min-height: 290px; object-fit: cover; transform: scale(1.02); }
.hero-badge { position: absolute; z-index: 3; display: flex; flex-direction: column; padding: 14px 17px; color: #fff; background: rgba(8,8,8,.88); border: 1px solid rgba(255,255,255,.15); border-left: 3px solid var(--red); border-radius: 10px; box-shadow: 0 18px 30px rgba(0,0,0,.25); }
.hero-badge strong { font-size: 1.05rem; }
.hero-badge span { color: #989898; font-size: .72rem; }
.hero-badge-one { right: 0; top: 72px; }
.hero-badge-two { left: 6px; bottom: 54px; }

/* Доверие */
.trust-strip { color: #fff; background: #121212; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.trust-strip-inner { display: grid; grid-template-columns: repeat(var(--trust-count, 3), 1fr); }
.trust-strip-inner > div { display: flex; align-items: center; gap: 14px; padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.08); }
.trust-strip-inner > div:last-child { border-right: 0; }
.trust-strip p { margin: 0; color: #a4a4a4; font-size: .84rem; }
.trust-strip strong { color: #fff; }
.trust-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; color: #fff; background: var(--red); border-radius: 50%; font-weight: 900; }

/* Применение */
.applications { background: #f2f2f2; }
.application-grid { display: grid; grid-template-columns: repeat(var(--application-count, 4), 1fr); border-top: 1px solid #cfcfcf; border-left: 1px solid #cfcfcf; }
.application-card { position: relative; min-height: 270px; padding: 30px 28px; border-right: 1px solid #cfcfcf; border-bottom: 1px solid #cfcfcf; transition: background .2s ease, color .2s ease; }
.application-card:hover { color: #fff; background: #111; }
.application-card:hover p { color: #aaa; }
.card-number { color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.application-card h3 { margin: 74px 0 12px; font-size: 1.35rem; line-height: 1.15; }
.application-card p { margin: 0; color: #676767; font-size: .94rem; transition: color .2s ease; }

/* Преимущества */
.advantages { position: relative; overflow: hidden; }
.advantages::before {
  content: attr(data-watermark);
  position: absolute;
  left: 50%;
  top: 65px;
  width: 100%;
  color: rgba(255,255,255,.025);
  font-size: clamp(3.25rem, 13vw, 11rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}
.advantage-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.advantage-card { min-height: 286px; padding: 25px; background: #141414; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.advantage-card:hover { transform: translateY(-5px); border-color: rgba(215,25,32,.7); background: #181818; }
.advantage-card.featured { grid-column: span 2; background: linear-gradient(135deg, #262626, #111); }
.advantage-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--red); background: rgba(215,25,32,.08); border-radius: 12px; }
.advantage-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.advantage-value { margin: 34px 0 4px; color: var(--red); font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; }
.advantage-card h3 { margin: 0; font-size: 1.12rem; }
.advantage-card > p:last-child { margin: 13px 0 0; color: #959595; font-size: .9rem; }

/* Продукция: расширенная карусель, чтобы изображения полностью помещались в карточки. */
.products { overflow: hidden; background: #ececec; }
.products > .container { width: min(calc(100% - 40px), 1480px); }
.products-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls[hidden] { display: none; }
.carousel-button { width: 52px; height: 52px; color: #111; border: 1px solid #bdbdbd; border-radius: 50%; background: transparent; font-size: 1.25rem; transition: background .2s ease, color .2s ease; }
.carousel-button:hover:not(:disabled) { color: #fff; background: #111; }
.carousel-button:disabled { opacity: .35; cursor: default; }
.product-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.product-carousel::-webkit-scrollbar { display: none; }
.product-card { scroll-snap-align: start; overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 16px 42px rgba(0,0,0,.08); }
.product-image { aspect-ratio: 16 / 10; overflow: hidden; padding: 8px; background: #fff; }
.product-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .5s ease; }
.product-card:hover .product-image img { transform: scale(1.012); }
.product-content { padding: 26px 28px 30px; }
.product-label { margin: 0 0 7px; color: var(--red); font-size: .74rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.product-content h3 { margin: 0; font-size: 1.48rem; line-height: 1.15; }
.product-content > p:not(.product-label,.product-marks) { color: #656565; }
.product-marks { min-height: 42px; color: #171717; font-size: .82rem; font-weight: 800; }
.product-note { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 26px; padding: 21px 24px; color: #d5d5d5; background: #151515; border-radius: 12px; }
.product-note p { max-width: 850px; margin: 0; font-size: .88rem; }
.product-note a { flex: 0 0 auto; color: #fff; font-weight: 800; text-decoration: none; }

/* Раскрывающийся список других видов кабеля — визуально продолжает чёрную строку вариативности. */
.other-cables { margin-top: 10px; color: #fff; background: #151515; border-radius: 12px; overflow: hidden; }
.other-cables-summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; cursor: pointer; list-style: none; color: #fff; font-size: .92rem; font-weight: 800; user-select: none; transition: background .2s ease; }
.other-cables-summary::-webkit-details-marker { display: none; }
.other-cables-summary::marker { content: ""; }
.other-cables-summary:hover { background: #1b1b1b; }
.other-cables-summary:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
.other-cables-chevron { flex: 0 0 auto; color: #fff; font-size: 1.35rem; line-height: 1; transform: translateY(-2px); transition: transform .22s ease, color .2s ease; }
.other-cables[open] .other-cables-chevron { color: var(--red); transform: rotate(180deg) translateY(2px); }
.other-cables-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.1); }
.other-cables-item { min-width: 0; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; color: #fff; background: #101010; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; transition: background .2s ease, color .2s ease; }
.other-cables-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
.other-cables-item:hover { color: #fff; background: #191919; }
.other-cables-item-copy { min-width: 0; display: grid; gap: 5px; }
.other-cables-item-copy strong { color: inherit; font-size: .9rem; line-height: 1.3; }
.other-cables-item-copy small { color: #959595; font-size: .78rem; line-height: 1.45; font-weight: 500; }
.other-cables-arrow { flex: 0 0 auto; color: var(--red); font-size: 1.1rem; }
.other-cables-item-static { cursor: default; }
.other-cables-item-static:hover { background: #101010; }

/* Подбор */
.selection { color: #fff; background: linear-gradient(135deg, #181818, #070707); }
.selection-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.selection-copy > p:not(.eyebrow) { max-width: 620px; margin: 24px 0; color: #aaa; font-size: 1.06rem; }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: #d2d2d2; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.lead-form { padding: 34px; color: #151515; background: #f6f6f6; border-radius: 18px; box-shadow: var(--shadow); }
.form-head { margin-bottom: 24px; }
.form-step { color: var(--red); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.form-head h3 { margin: 5px 0 0; font-size: 1.75rem; }
.lead-form label:not(.consent) { display: grid; gap: 7px; margin-bottom: 15px; }
.lead-form label > span { font-size: .78rem; font-weight: 800; }
.lead-form input[type="text"], .lead-form textarea { width: 100%; border: 1px solid #c7c7c7; border-radius: 8px; padding: 13px 14px; color: #111; background: #fff; outline: none; }
.lead-form input[type="text"]:focus, .lead-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,25,32,.1); }
.file-field { padding: 12px 14px; border: 1px dashed #aaa; border-radius: 8px; background: #fff; }
.file-field input { font-size: .78rem; }
.consent { display: flex; gap: 9px; align-items: flex-start; margin: 18px 0; color: #686868; font-size: .74rem; }
.consent input { margin-top: 3px; accent-color: var(--red); }
.link-button { padding: 0; border: 0; color: inherit; background: transparent; text-decoration: underline; }
.form-status { min-height: 1.2em; margin: 12px 0 0; color: #333; font-size: .8rem; }
.form-status.is-error { color: #b10b12; }
.form-status.is-success { color: #177a3f; }

/* Сертификаты */
.certificates { background: #0a0a0a; }
.certificate-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
.certificate-image { width: min(100%, 635px); justify-self: center; padding: 18px; background: #fff; border-radius: 14px; transform: none; box-shadow: 0 28px 60px rgba(0,0,0,.4); }
.certificate-image img { width: 100%; height: auto; margin: 0 auto; }
.certificate-copy p:not(.eyebrow) { margin: 24px 0 0; color: #a8a8a8; }
.certificate-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }

/* Процесс */
.process { background: #f3f3f3; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: item; }
.process-grid li { min-height: 260px; padding: 28px; border-top: 1px solid #c9c9c9; border-right: 1px solid #c9c9c9; }
.process-grid li:last-child { border-right: 0; }
.process-grid span { color: var(--red); font-size: .78rem; font-weight: 900; }
.process-grid h3 { margin: 82px 0 10px; font-size: 1.2rem; line-height: 1.18; }
.process-grid p { margin: 0; color: #676767; font-size: .9rem; }

/* FAQ */
.faq { background: #fff; }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.faq-heading { position: sticky; top: calc(var(--header-height) + 30px); }
.accordion details { border-top: 1px solid #cfcfcf; }
.accordion details:last-child { border-bottom: 1px solid #cfcfcf; }
.accordion summary { position: relative; padding: 25px 52px 25px 0; cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 800; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 6px; top: 21px; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #111; border-radius: 50%; font-size: 1.15rem; }
.accordion details[open] summary::after { content: "−"; background: var(--red); }
.accordion details p { max-width: 760px; margin: 0; padding: 0 40px 25px 0; color: #666; }

/* Контакты */
.contact-cta { position: relative; overflow: hidden; padding: 92px 0; color: #fff; background: #0a0a0a; }
.contact-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 22%; height: 70px; background: linear-gradient(90deg, var(--red), transparent 70%); transform: rotate(-8deg); opacity: .8; }
.contact-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 40px; }
.contact-copy h2 { max-width: 820px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 31px 0; }
.contact-links a { display: flex; flex-direction: column; text-decoration: none; }
.contact-links span { color: #808080; font-size: .72rem; text-transform: uppercase; }
.contact-links strong { font-size: 1.08rem; }
.contact-image { justify-self: end; width: 100%; max-width: 420px; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow); }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }

/* Подвал */
.site-footer { padding: 62px 0 88px; color: #c9c9c9; background: #050505; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 52px; }
.footer-brand { color: var(--red); font-size: 1.8rem; font-weight: 950; letter-spacing: .03em; text-decoration: none; }
.footer-grid h2 { margin: 3px 0 15px; color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid p { color: #7e7e7e; font-size: .84rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid a, .footer-link-button { padding: 0; color: #aaa; border: 0; background: transparent; font-size: .84rem; text-decoration: none; }
.footer-grid a:hover, .footer-link-button:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom p { margin: 0; color: #686868; font-size: .75rem; }

/* Модальные окна */
.modal { width: min(94vw, 620px); max-height: 92vh; padding: 0; color: #111; border: 0; border-radius: 18px; background: transparent; }
.modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.modal-card { position: relative; max-height: 92vh; overflow-y: auto; padding: 38px; background: #f5f5f5; border-radius: 18px; }
.modal-card h2 { margin: 0; font-size: 2rem; line-height: 1.05; }
.modal-card > p:not(.eyebrow) { color: #666; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; color: #fff; border: 0; border-radius: 50%; background: #111; font-size: 1.5rem; line-height: 1; }
.modal-form { padding: 22px 0 0; box-shadow: none; }
.privacy-card { padding-top: 54px; }

/* Мобильная CTA */
.mobile-cta { display: none; }

/* Кнопка «Наверх» */
.back-to-top {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(10,10,10,.92);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, border-color .2s ease, background-color .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--red);
  border-color: var(--red);
}
.back-to-top svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Фокус */
:focus-visible { outline: 3px solid rgba(215,25,32,.45); outline-offset: 3px; }

/* Адаптивность */
@media (max-width: 1120px) {
  .header-inner { gap: 18px; }
  .brand { flex-basis: 360px; min-width: 300px; max-width: 360px; }
  .brand img { max-height: 80px; }
  .main-nav { gap: 17px; }
  .header-phone { display: none; }
  .hero-layout { grid-template-columns: 1fr .85fr; gap: 30px; }
  .advantage-grid { grid-template-columns: repeat(3, 1fr); }
  .advantage-card.featured { grid-column: span 1; }
  .application-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid li:nth-child(2) { border-right: 0; }
  .process-grid li:nth-child(-n+2) { border-bottom: 1px solid #c9c9c9; }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .product-carousel { grid-auto-columns: calc((100% - 18px) / 2); }
}

@media (max-width: 900px) {
  :root { --header-height: 76px; }
  .section { padding: 78px 0; }
  .header-inner { min-height: var(--header-height); }
  .brand { flex: 1 1 auto; min-width: 0; max-width: 300px; }
  .brand img { width: 100%; max-height: 62px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; left: 0; right: 0; top: var(--header-height); display: grid; gap: 0; padding: 8px 20px 22px; background: #0a0a0a; border-bottom: 1px solid var(--line); transform: translateY(-140%); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 64px; }
  .hero-visual { min-height: 390px; }
  .hero::after { left: 25%; bottom: 1%; }
  .trust-strip-inner { grid-template-columns: 1fr; }
  .trust-strip-inner > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .trust-strip-inner > div:last-child { border-bottom: 0; }
  .split-heading, .selection-layout, .certificate-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .faq-heading { position: static; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .product-carousel { grid-auto-columns: minmax(330px, 64%); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-image { justify-self: start; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 64px 0; }
  .hero-layout { padding-top: 48px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 14vw, 4.5rem); }
  .hero-lead { margin-top: 20px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-points { grid-template-columns: 1fr; }
  .hero-points li { min-height: 75px; }
  .hero-visual { min-height: 300px; }
  .hero-visual-frame img { min-height: 220px; }
  .hero-badge-one { top: 20px; }
  .hero-badge-two { bottom: 6px; }
  .section-heading h2, .selection-copy h2, .certificate-copy h2, .contact-copy h2 { font-size: 2.25rem; }
  .application-grid, .advantage-grid, .process-grid { grid-template-columns: 1fr; }
  .application-card { min-height: 225px; }
  .application-card h3 { margin-top: 48px; }
  .advantage-card { min-height: 250px; }
  .process-grid li { border-right: 0; border-bottom: 1px solid #c9c9c9; }
  .process-grid li:last-child { border-bottom: 0; }
  .products-heading { align-items: flex-start; }
  .carousel-controls { display: none; }
  .products > .container { width: min(calc(100% - 28px), 1480px); }
  .product-carousel { grid-auto-columns: 90%; }
  .product-note { align-items: flex-start; flex-direction: column; }
  .other-cables-panel { grid-template-columns: 1fr; }
  .other-cables-item:nth-child(odd) { border-right: 0; }
  .other-cables-summary, .other-cables-item { padding-left: 18px; padding-right: 18px; }
  .lead-form { padding: 24px 20px; }
  .certificate-image { width: 100%; max-width: 635px; justify-self: center; padding: 9px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding-bottom: 108px; }
  .mobile-cta { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: .75fr 1.25fr; min-height: 58px; box-shadow: 0 -10px 30px rgba(0,0,0,.25); }
  .mobile-cta a, .mobile-cta button { display: grid; place-items: center; border: 0; font-weight: 850; text-decoration: none; }
  .mobile-cta a { color: #fff; background: #1e1e1e; }
  .mobile-cta button { color: #fff; background: var(--red); }
  .back-to-top {
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }
  .back-to-top svg { width: 21px; height: 21px; }
  .modal-card { padding: 30px 18px; }
  .modal-close { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* ==============================================================
   V6: первый экран сделан шире.
   Увеличиваем полезную ширину hero-блока, чтобы контент занимал
   больше места по горизонтали, но оставался аккуратным и центрированным.
   ============================================================== */
.hero .container.hero-layout {
  width: min(calc(100% - 28px), 1380px);
}
.hero-layout {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding-top: 86px;
  padding-bottom: 94px;
}
.hero-copy {
  width: min(100%, 1220px);
  margin-inline: auto;
}
.hero-copy .eyebrow,
.contact-copy .eyebrow {
  justify-content: center;
}
.hero-copy h1 {
  max-width: 1140px;
  margin-inline: auto;
}
.hero-lead {
  max-width: 900px;
  margin: 28px auto 0;
}
.hero-actions {
  justify-content: center;
}
.hero-points {
  width: min(100%, 960px);
  margin: 46px auto 0;
  text-align: center;
}

.contact-layout {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.contact-copy {
  width: min(100%, 980px);
  margin-inline: auto;
}
.contact-copy h2 {
  max-width: 900px;
  margin-inline: auto;
}
.contact-links {
  justify-content: center;
}
.contact-links a {
  align-items: center;
  text-align: center;
}

@media (max-width: 700px) {
  .hero .container.hero-layout {
    width: min(calc(100% - 24px), 1380px);
  }
  .hero-layout {
    padding-top: 58px;
    padding-bottom: 68px;
  }
  .hero-actions {
    width: 100%;
  }
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}


/* ==============================================================
   Joomla integration helpers
   ============================================================== */
.joomla-menu .mod-menu,
.joomla-menu ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.joomla-menu li { margin: 0; padding: 0; list-style: none; }
.joomla-menu a { display: inline-block; }
.joomla-component-page { min-height: 60vh; background: #f3f3f3; }
.joomla-component-page .container { max-width: 980px; }
.joomla-footer-modules { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 900px) {
  .joomla-menu .mod-menu,
  .joomla-menu ul {
    display: grid;
    gap: 0;
    width: 100%;
  }
  .joomla-menu li { width: 100%; }
  .joomla-menu a { display: block; width: 100%; }
}


/* ==============================================================
   Joomla v2 — динамический контент из параметров шаблона
   ============================================================== */
.site-footer .mod-menu,
.site-footer .mod-menu ul,
.site-footer ul.mod-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .mod-menu li { margin: 0; padding: 0; list-style: none; }
.site-footer .mod-menu a { color: #aaa; font-size: .84rem; text-decoration: none; }
.site-footer .mod-menu a:hover { color: #fff; }
.advantage-icon img { width: 30px; height: 30px; object-fit: contain; }

/* ==============================================================
   Joomla v3 — формы, защита контактов, legal-страницы и consent UI
   ============================================================== */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.lead-form button[disabled],
.contact-reveal-button[disabled] {
  cursor: wait;
  opacity: .62;
}
.form-legal-note,
.captcha-notice {
  margin: 10px 0 14px;
  color: #747474;
  font-size: .75rem;
  line-height: 1.45;
}
.form-legal-note a,
.consent a,
.captcha-notice a {
  color: #343434;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-optional {
  padding-top: 12px;
  border-top: 1px solid #dadada;
}
.captcha-slot {
  min-height: 100px;
  margin: 16px 0 4px;
}

/* Кнопка выглядит как обычный контакт, но полного контакта в HTML нет. */
.contact-reveal-button {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: inherit;
}
.header-phone.contact-reveal-button {
  cursor: pointer;
}
.contact-links .contact-reveal-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  cursor: pointer;
}
.contact-links .contact-reveal-button span {
  color: #808080;
  font-size: .72rem;
  text-transform: uppercase;
}
.contact-links .contact-reveal-button strong {
  font-size: 1.08rem;
}
.footer-link-button.contact-reveal-button {
  cursor: pointer;
  text-align: left;
}
.mobile-cta .contact-reveal-button {
  width: 100%;
}

/* Юридические страницы встроены в шаблон, чтобы ссылки работали сразу. */
.legal-page {
  min-height: 70vh;
  color: #ececec;
  background: #0a0a0a;
}
.legal-container {
  width: min(calc(100% - 40px), 980px);
}
.legal-container > h1 {
  max-width: 900px;
  margin: 0 0 38px;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.legal-content {
  color: #c9c9c9;
  font-size: 1rem;
}
.legal-content h2 {
  margin: 42px 0 14px;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
}
.legal-content p,
.legal-content li {
  max-width: 900px;
}
.legal-content a {
  color: #fff;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}
.legal-lead {
  padding: 18px 20px;
  border-left: 3px solid var(--red);
  background: #151515;
  border-radius: 0 10px 10px 0;
}
.legal-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: .9rem;
}
.legal-table th,
.legal-table td {
  padding: 13px 14px;
  vertical-align: top;
  border: 1px solid rgba(255,255,255,.14);
  text-align: left;
}
.legal-table th {
  color: #fff;
  background: #171717;
}
.legal-content code {
  padding: 2px 6px;
  color: #fff;
  background: #202020;
  border-radius: 5px;
}
.legal-back {
  margin-top: 46px;
}

/* Согласие на необязательную аналитику. */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
  position: fixed;
  z-index: 250;
  left: 50%;
  bottom: 22px;
  width: min(calc(100% - 32px), 1040px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  color: #fff;
  background: rgba(15,15,15,.97);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  backdrop-filter: blur(12px);
}
.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}
.cookie-banner p {
  margin: 0 0 5px;
  color: #b7b7b7;
  font-size: .84rem;
}
.cookie-banner a {
  color: #fff;
  font-size: .8rem;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.cookie-actions .button {
  min-height: 44px;
  padding-inline: 17px;
  font-size: .83rem;
}

@media (max-width: 760px) {
  .legal-container { width: min(calc(100% - 28px), 980px); }
  .legal-table { display: block; overflow-x: auto; }
  .cookie-banner {
    bottom: 72px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-actions .button { width: 100%; }
}


/* V3.0.1 — совместимость старых и новых якорей разделов.
   Если якорь раздела изменён в админке, прежняя ссылка (#advantages и т.п.)
   остаётся рабочей и ведёт к тому же блоку. */
.anchor-alias {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

/* ==============================================================
   V3.0.5 — более плотная компоновка лендинга
   Уменьшаем лишние вертикальные разрывы, поднимаем первый экран
   ближе к шапке и делаем навигацию визуально соразмерной логотипу.
   Иконки преимуществ сохраняются и получают фиксированную геометрию.
   ============================================================== */

/* Шапка */
.main-nav {
  gap: 28px;
}
.main-nav a {
  font-size: 1rem;
  line-height: 1.15;
  padding: 11px 2px;
}
.header-phone span {
  font-size: .74rem;
}
.header-phone strong {
  font-size: 1rem;
}

/* Первый экран: без растягивания до полной высоты окна. */
.hero {
  min-height: auto;
  align-items: start;
}
.hero .container.hero-layout {
  width: min(calc(100% - 40px), 1380px);
}
.hero-layout {
  padding-top: 32px;
  padding-bottom: 50px;
}
.hero-copy {
  width: min(100%, 1220px);
}
.hero-copy .eyebrow {
  margin-bottom: 12px;
}
.hero-copy h1 {
  max-width: 1180px;
  font-size: clamp(3rem, 5.45vw, 5.9rem);
  line-height: .95;
}
.hero-lead {
  max-width: 880px;
  margin-top: 20px;
}
.hero-actions {
  margin-top: 24px;
}
.hero-points {
  margin-top: 28px;
}
.hero-points li {
  min-height: 80px;
}
.hero::after {
  height: 58px;
  bottom: 0;
}

/* Общий вертикальный ритм. */
.section {
  padding: 68px 0;
}
.section-heading {
  margin-bottom: 28px;
}
.section-heading > p:last-child {
  margin-top: 14px;
}
.split-heading {
  gap: 36px;
}

/* Полоса доверия. */
.trust-strip-inner > div {
  padding-top: 19px;
  padding-bottom: 19px;
}

/* Применение. */
.application-card {
  min-height: 215px;
  padding: 24px 22px;
}
.application-card h3 {
  margin-top: 42px;
}

/* Преимущества. */
.advantages::before {
  top: 34px;
}
.advantage-grid {
  gap: 14px;
}
.advantage-card {
  min-height: 232px;
  padding: 21px;
}
.advantage-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}
.advantage-icon svg {
  display: block;
  width: 31px;
  height: 31px;
}
.advantage-icon img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}
.advantage-value {
  margin-top: 20px;
}

/* Продукция. */
.product-content {
  padding: 20px 22px 23px;
}
.product-note {
  margin-top: 18px;
}

/* Подбор и сертификаты. */
.selection-layout,
.certificate-layout {
  gap: 46px;
}
.selection-copy > p:not(.eyebrow) {
  margin: 16px 0;
}
.lead-form {
  padding: 26px;
}
.certificate-copy p:not(.eyebrow) {
  margin-top: 16px;
}
.certificate-actions {
  margin-top: 21px;
}

/* Порядок работы. */
.process-grid li {
  min-height: 205px;
  padding: 23px;
}
.process-grid h3 {
  margin-top: 46px;
}

/* FAQ. */
.faq-layout {
  gap: 50px;
}
.accordion summary {
  padding-top: 18px;
  padding-bottom: 18px;
}
.accordion summary::after {
  top: 14px;
}

/* Контакты и подвал. */
.contact-cta {
  padding: 60px 0;
}
.contact-links {
  margin: 22px 0;
}
.site-footer {
  padding-top: 44px;
  padding-bottom: 54px;
}
.footer-bottom {
  margin-top: 28px;
}

@media (max-width: 1120px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .94rem; }
}

@media (max-width: 900px) {
  .section { padding: 58px 0; }
  .hero-layout { padding-top: 34px; padding-bottom: 46px; }
  .selection-layout,
  .certificate-layout,
  .faq-layout { gap: 32px; }
  .main-nav a { font-size: 1rem; padding: 14px 0; }
}

@media (max-width: 620px) {
  .section { padding: 48px 0; }
  .hero-layout { padding-top: 28px; padding-bottom: 40px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 12.5vw, 4rem); }
  .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .hero-points { margin-top: 24px; }
  .application-card,
  .advantage-card { min-height: auto; }
  .application-card h3 { margin-top: 30px; }
  .process-grid li { min-height: 175px; }
  .process-grid h3 { margin-top: 34px; }
  .contact-cta { padding: 50px 0; }
}


/* ==============================================================
   v3.0.7 — поддержка Joomla Page Class.
   Укажите в пункте меню: Отображение страницы → CSS-класс страницы → legal-page
   для тёмного оформления юридических материалов.
   ============================================================== */
body.legal-page,
.joomla-component-page.legal-page {
  color: #d4d4d4;
  background: #080808;
}
body.legal-page .joomla-component-page,
.joomla-component-page.legal-page {
  min-height: 70vh;
  background: #080808;
}
body.legal-page .joomla-component-page .container,
.joomla-component-page.legal-page .container {
  width: min(calc(100% - 40px), 1120px);
  max-width: 1120px;
}
body.legal-page .joomla-component-page .item-page,
.joomla-component-page.legal-page .item-page {
  max-width: 980px;
}
body.legal-page .joomla-component-page h1,
body.legal-page .joomla-component-page h2,
body.legal-page .joomla-component-page h3,
body.legal-page .joomla-component-page h4,
.joomla-component-page.legal-page h1,
.joomla-component-page.legal-page h2,
.joomla-component-page.legal-page h3,
.joomla-component-page.legal-page h4 {
  color: #fff;
}
body.legal-page .joomla-component-page h1,
.joomla-component-page.legal-page h1 {
  max-width: 900px;
  margin: 0 0 34px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
body.legal-page .joomla-component-page h2,
.joomla-component-page.legal-page h2 {
  margin: 44px 0 16px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}
body.legal-page .joomla-component-page h3,
.joomla-component-page.legal-page h3 {
  margin: 30px 0 12px;
  font-size: 1.15rem;
}
body.legal-page .joomla-component-page p,
body.legal-page .joomla-component-page li,
.joomla-component-page.legal-page p,
.joomla-component-page.legal-page li {
  color: #c9c9c9;
  line-height: 1.75;
}
body.legal-page .joomla-component-page a,
.joomla-component-page.legal-page a {
  color: #fff;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}
body.legal-page .joomla-component-page a:hover,
.joomla-component-page.legal-page a:hover {
  color: #ff343b;
}
body.legal-page .joomla-component-page ul,
body.legal-page .joomla-component-page ol,
.joomla-component-page.legal-page ul,
.joomla-component-page.legal-page ol {
  padding-left: 1.4rem;
}
body.legal-page .joomla-component-page .article-info,
body.legal-page .joomla-component-page .icons,
.joomla-component-page.legal-page .article-info,
.joomla-component-page.legal-page .icons {
  color: #929292;
}
@media (max-width: 620px) {
  body.legal-page .joomla-component-page .container,
  .joomla-component-page.legal-page .container {
    width: min(calc(100% - 28px), 1120px);
  }
  body.legal-page .joomla-component-page h1,
  .joomla-component-page.legal-page h1 {
    margin-bottom: 26px;
  }
}


/* ==============================================================
   v3.0.8 — надёжная поддержка Page Class Joomla для материалов.

   Joomla 6 выводит «CSS-класс страницы» как pageclass_sfx прямо после
   класса item-page. Если значение введено без начального пробела,
   стандартная разметка Joomla может получиться как item-pagelegal-page.
   Эти правила поддерживают оба варианта и не зависят от того, удалось ли
   шаблону получить активный пункт меню на сервере.
   ============================================================== */

/* Родительский контейнер становится тёмным, когда внутри материал с legal-page. */
.joomla-component-page:has(.com-content-article.legal-page),
.joomla-component-page:has(.com-content-article.item-pagelegal-page) {
  min-height: 70vh;
  color: #d4d4d4;
  background: #080808;
}

.joomla-component-page:has(.com-content-article.legal-page) > .container,
.joomla-component-page:has(.com-content-article.item-pagelegal-page) > .container {
  width: min(calc(100% - 40px), 1120px);
  max-width: 1120px;
}

.joomla-component-page .com-content-article.legal-page,
.joomla-component-page .com-content-article.item-pagelegal-page {
  max-width: 980px;
  color: #d4d4d4;
}

.joomla-component-page .com-content-article.legal-page h1,
.joomla-component-page .com-content-article.legal-page h2,
.joomla-component-page .com-content-article.legal-page h3,
.joomla-component-page .com-content-article.legal-page h4,
.joomla-component-page .com-content-article.item-pagelegal-page h1,
.joomla-component-page .com-content-article.item-pagelegal-page h2,
.joomla-component-page .com-content-article.item-pagelegal-page h3,
.joomla-component-page .com-content-article.item-pagelegal-page h4 {
  color: #fff;
}

.joomla-component-page .com-content-article.legal-page h1,
.joomla-component-page .com-content-article.item-pagelegal-page h1 {
  max-width: 900px;
  margin: 0 0 34px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.joomla-component-page .com-content-article.legal-page h2,
.joomla-component-page .com-content-article.item-pagelegal-page h2 {
  margin: 44px 0 16px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}

.joomla-component-page .com-content-article.legal-page h3,
.joomla-component-page .com-content-article.item-pagelegal-page h3 {
  margin: 30px 0 12px;
  font-size: 1.15rem;
}

.joomla-component-page .com-content-article.legal-page p,
.joomla-component-page .com-content-article.legal-page li,
.joomla-component-page .com-content-article.item-pagelegal-page p,
.joomla-component-page .com-content-article.item-pagelegal-page li {
  color: #c9c9c9;
  line-height: 1.75;
}

.joomla-component-page .com-content-article.legal-page a,
.joomla-component-page .com-content-article.item-pagelegal-page a {
  color: #fff;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.joomla-component-page .com-content-article.legal-page a:hover,
.joomla-component-page .com-content-article.item-pagelegal-page a:hover {
  color: #ff343b;
}

.joomla-component-page .com-content-article.legal-page ul,
.joomla-component-page .com-content-article.legal-page ol,
.joomla-component-page .com-content-article.item-pagelegal-page ul,
.joomla-component-page .com-content-article.item-pagelegal-page ol {
  padding-left: 1.4rem;
}

@media (max-width: 620px) {
  .joomla-component-page:has(.com-content-article.legal-page) > .container,
  .joomla-component-page:has(.com-content-article.item-pagelegal-page) > .container {
    width: min(calc(100% - 28px), 1120px);
  }
}
