/* === common.css === */
/* =============================================
   DAARTS — Common CSS Framework (Mobile-First)
   ============================================= */

/* --- Accessibility --- */
.visually-hidden {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border: 0;
}

/* --- CSS Variables --- */
:root {
   --color-primary: #E6403C;
   --color-primary-dark: #CC0000;
   --color-primary-gradient: linear-gradient(180deg, #E6403C, #B22222);
   --color-text: #000000;
   --color-text-secondary: #3F3F3F;
   --color-text-muted: #A6A6A6;
   --color-heading: #005580;
   --color-link: #005580;
   --color-white: #FFFFFF;
   --color-bg: #FFFFFF;
   --color-border: #D2D2D2;
   --color-border-light: #DEE2E6;
   --color-footer-bg: #F8F8F8;

   --font-primary: Arial, sans-serif;
   --font-condensed: Arial, sans-serif;

   --header-height: 100px;
   --sidebar-width: 250px;
   --container-max: 1200px;
   --gap: 16px;
   --radius: 4px;

   --transition: 300ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
   box-sizing: border-box;
}

html {
   overscroll-behavior-x: none;
   height: 100%;
}

body {
   margin: 0;
   padding: 0;
   font-family: var(--font-primary);
   font-size: 13px;
   line-height: 1.4;
   color: var(--color-text);
   background-color: var(--color-bg);
   overflow-x: clip;
   overscroll-behavior-x: none;
   -webkit-font-smoothing: antialiased;
   word-break: break-word;
   -webkit-text-size-adjust: 100%;
   position: relative;
   width: 100%;
   min-height: 100%;
   display: flex;
   flex-direction: column;
}

main {
   flex: 1;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

a {
   color: var(--color-link);
   text-decoration: none;
   transition: color var(--transition);
}

a:hover {
   color: var(--color-primary);
}


/* --- Container --- */
.container {
   width: 100%;
   max-width: var(--container-max);
   margin: 0 auto;
   padding: 0 var(--gap);
   overflow-x: hidden;
}

/* --- Typography --- */
h1, .h1 {
   font-family: var(--font-condensed);
   font-size: 22px;
   font-weight: normal;
   letter-spacing: 0.7px;
   color: var(--color-text-secondary);
   margin: 0 0 16px;
}

h2, .h2 {
   font-family: var(--font-primary);
   font-size: 20px;
   font-weight: normal;
   color: var(--color-text);
   margin: 0 0 16px;
}

h2.HeadArticle {
   font-weight: bold;
   font-size: 16px;
   color: var(--color-heading);
}

h3, .h3 {
   font-family: var(--font-primary);
   font-weight: bold;
   font-size: 12px;
   color: var(--color-white);
   margin: 0;
}

.section h3, .Tex-article h3 {
   color: var(--color-text);
   font-size: 14px;
}

h4, .h4 {
   font-family: var(--font-primary);
   font-size: 17px;
   color: var(--color-text);
   margin: 0;
}

h5, .h5 {
   font-family: var(--font-condensed);
   font-weight: normal;
   font-size: 16px;
   color: var(--color-text);
   margin: 0;
}

h6, .h6 {
   font-family: var(--font-primary);
   font-size: 13px;
   line-height: 1.5;
   color: var(--color-text);
   margin: 0;
}

.Tex-article {
   font-family: var(--font-primary);
   font-size: 15px;
   line-height: 1.4;
   text-align: justify;
   color: var(--color-text);
}

.Tex-ttable {
   font-family: var(--font-primary);
   font-size: 12px;
   line-height: 1.6;
}

.Ima_des {
   font-family: var(--font-primary);
   font-size: 15px;
   line-height: 1.4;
   text-align: center;
}

.Telmail {
   font-family: var(--font-primary);
   font-size: 12px;
   color: var(--color-white);
}

/* --- Utility Links --- */
a.Menu-top,
a.Menu-top:visited,
a.Menu-top:active {
   color: var(--color-white);
   text-decoration: none;
   transition: all var(--transition);
   position: relative;
   display: inline-block;
}

a.Menu-top::after {
   content: "";
   display: block;
   width: 0;
   height: 1px;
   margin-top: 1px;
   background: transparent;
   transition: all var(--transition);
}

a.Menu-top:hover::after {
   background: var(--color-white);
   width: 100%;
}

a.Menumidldle,
a.Menumidldle:visited,
a.Menumidldle:active {
   color: var(--color-text);
   background: var(--color-white);
   text-decoration: none;
   transition: all var(--transition);
   position: relative;
   display: inline-block;
}

a.Menumidldle::after {
   content: "";
   display: block;
   width: 0;
   height: 0;
   transition: all var(--transition);
}

a.Menumidldle:hover::after {
   background: var(--color-text);
   width: 100%;
}

a.Menu-bottom,
a.Menu-bottom:visited,
a.Menu-bottom:active {
   color: var(--color-text);
   background: var(--color-white);
   text-decoration: none;
   transition: all var(--transition);
   position: relative;
   display: inline-block;
}

a.Menu-bottom::after {
   content: "";
   display: block;
   width: 0;
   height: 1px;
   margin-top: 1px;
   background: transparent;
   transition: all var(--transition);
}

a.Menu-bottom:hover::after {
   background: #0C0C0C;
   width: 100%;
}

a.Product,
a.Product:visited,
a.Product:active {
   color: var(--color-text);
   text-decoration: none;
   transition: all var(--transition);
   position: relative;
   display: inline-block;
}

a.Product::after {
   content: "";
   display: block;
   width: 0;
   height: 1px;
   margin-top: 1px;
   background: transparent;
   transition: all var(--transition);
}

a.Product:hover::after {
   background: var(--color-text);
   width: 100%;
}

/* --- Boxes --- */
.Box {
   background-color: var(--color-white);
   border: 1px solid #737373;
}

.BoxRMenu {
   background-color: var(--color-white);
   border-right: 1px solid #7F7F7F;
}

/* --- Menu styles --- */
.menu-razd {
   font-family: var(--font-primary);
   font-size: 12px;
   color: var(--color-text);
}

h6.Menu-product {
   font-family: var(--font-primary);
   font-weight: normal;
   font-size: 16px;
   color: var(--color-text);
}

.MenuArt {
   font-family: var(--font-primary);
   font-size: 13px;
   text-align: center;
   color: #3C3C3C;
}

.Monitor {
   font-family: var(--font-primary);
   font-size: 20px;
   text-align: center;
}

.System {
   font-family: var(--font-primary);
   font-size: 20px;
   color: var(--color-text-muted);
}

/* --- Theme classes (from WYSIWYG) --- */
.wb-theme-header {
   background-color: #F8F8F8;
   border: 1px solid #D2D2D2;
   color: #222222;
}

.wb-theme-content {
   background-color: var(--color-white);
   border: 1px solid var(--color-border-light);
   color: #222222;
}

.wb-theme-button,
.wb-theme-static {
   background-color: var(--color-primary);
   border: 1px solid #EB6864;
   color: var(--color-white);
}

.wb-theme-button:hover {
   background-color: #E6403C;
   border-color: var(--color-primary-dark);
   color: var(--color-white);
}

.wb-theme-button.active,
.wb-theme-button:active,
.active > .wb-theme-button {
   background-color: var(--color-primary-dark);
   border-color: #B04E4B;
   color: var(--color-white);
}


/* === header.css === */
/* =============================================
   DAARTS — Header & Navigation (Mobile-First)
   ============================================= */

/* --- Header wrapper --- */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 7777;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Top red bar (nav + logo) --- */
.header-top {
   background: #F24242;
}

.header-top .container {
   display: flex;
   align-items: center;
   gap: 12px;
   padding-top: 12px;
   padding-bottom: 12px;
   flex-wrap: wrap;
   overflow-x: visible;
}

/* --- Logo --- */
.header-logo {
   flex-shrink: 0;
   position: relative;
   z-index: 7779;
}

.header-logo img {
   width: 56px;
   height: 56px;
   border: 1px solid #FFFFFF;
   border-radius: 2px;
   box-sizing: border-box;
}

/* --- Contact info bar (below red bar) --- */
.header-contacts {
   display: block;
   background: var(--color-white);
   border-bottom: 1px solid var(--color-border-light);
}

.header-contacts .container {
   font-family: Arial, sans-serif;
   font-size: 12px;
   font-weight: normal;
   color: var(--color-text);
   text-align: center;
   padding-top: 4px;
   padding-bottom: 4px;
}

.header-contacts a {
   color: var(--color-text);
   white-space: nowrap;
}

.header-contacts a:hover {
   color: var(--color-primary);
}

/* --- Hamburger Button --- */
.hamburger {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 44px;
   height: 44px;
   background: none;
   border: none;
   cursor: pointer;
   padding: 8px;
   margin-left: auto;
   -webkit-tap-highlight-color: transparent;
}

.hamburger svg {
   width: 24px;
   height: 24px;
   fill: #FFFFFF;
}

.hamburger:hover svg {
   fill: rgba(255, 255, 255, 0.7);
}

/* --- Main Navigation --- */
.main-nav {
   display: none;
   width: 100%;
   order: 2;
}

.main-nav.is-open {
   display: block;
}

.main-nav ul {
   list-style: none;
   margin: 0;
   padding: 0;
}

.main-nav > ul > li {
   border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav a {
   display: block;
   padding: 12px 16px;
   color: #FFFFFF;
   font-family: var(--font-condensed);
   font-size: 16px;
   text-decoration: none;
   transition: background var(--transition);
}

.main-nav a:hover {
   background: rgba(255, 255, 255, 0.15);
   color: #FFFFFF;
}

.main-nav a.active {
   background: #CC0000;
   color: #FFFFFF;
}

/* --- Dropdown (Products submenu) --- */
.nav-dropdown {
   display: none;
   background: #E6403C;
}

.nav-dropdown.is-open {
   display: block;
}

.nav-dropdown a {
   padding-left: 32px;
   font-size: 14px;
}

.nav-dropdown a.active {
   font-weight: bold;
   border-left: 3px solid #FFFFFF;
   padding-left: 29px;
}

.nav-has-dropdown > a::after {
   content: "";
   display: inline-block;
   width: 6px;
   height: 6px;
   border-right: 1.5px solid currentColor;
   border-bottom: 1.5px solid currentColor;
   transform: rotate(45deg);
   margin-left: 6px;
   vertical-align: baseline;
   margin-bottom: 3px;
   float: right;
   margin-top: 12px;
   transition: transform var(--transition);
}

.nav-has-dropdown.is-open > a::after {
   transform: rotate(-135deg);
   margin-top: 15px;
}

/* --- Mobile overlay drawer (optional) --- */
.nav-overlay {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   z-index: 7776;
}

.nav-overlay.is-visible {
   display: block;
}

/* Nav must be above overlay */
.main-nav {
   z-index: 7778;
}

.hamburger {
   z-index: 7778;
}

/* ======================
   DESKTOP (>=992px)
   ====================== */
@media (min-width: 992px) {
   .header-top .container {
      flex-wrap: nowrap;
      padding-top: 0;
      padding-bottom: 0;
      min-height: 50px;
   }

   .header-logo {
      margin-top: 10px;
      margin-bottom: -26px;
   }

   .header-logo img {
      width: 76px;
      height: 76px;
      border: 1px solid #FFFFFF;
   }

   .hamburger {
      display: none;
   }

   .main-nav {
      display: block;
      width: auto;
      flex: 1;
      order: 1;
      margin-left: 24px;
   }

   .main-nav > ul {
      display: flex;
      align-items: center;
      gap: 4px;
   }

   .main-nav > ul > li {
      border-bottom: none;
      position: relative;
   }

   .main-nav > ul > li > a.active {
      background: #CC0000;
      color: #FFFFFF;
   }

   .main-nav > ul > li > a {
      padding: 14px 12px;
      font-size: 14px;
      white-space: nowrap;
      border-radius: 0;
      color: #FFFFFF;
   }

   .main-nav > ul > li > a:hover {
      background: rgba(255, 255, 255, 0.15);
      color: #FFFFFF;
   }

   /* Desktop dropdown on hover */
   .nav-has-dropdown > a::after {
      margin-left: 6px;
      float: none;
   }

   .nav-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 280px;
      background: #F24242;
      border: 1px solid #EB6864;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      border-radius: 0;
      z-index: 9999;
      padding: 8px 0;
   }

   .nav-dropdown a {
      padding: 8px 16px;
      font-size: 13px;
      color: #FFFFFF;
   }

   .nav-dropdown a:hover {
      background: #E6403C;
      color: #FFFFFF;
   }

   .nav-dropdown a.active {
      border-left: 3px solid #FFFFFF;
      background: #CC0000;
      color: #FFFFFF;
   }

   .nav-has-dropdown:hover > .nav-dropdown,
   .nav-dropdown.is-open {
      display: block;
   }

   /* Contacts bar */
   .header-contacts {
      display: block;
   }

   .header-contacts .container {
      font-size: 15px;
      padding-top: 6px;
      padding-bottom: 6px;
   }
}

/* ======================
   LARGE DESKTOP (>=1200px)
   ====================== */
@media (min-width: 1200px) {
   .main-nav > ul > li > a {
      padding: 14px 14px;
      font-size: 15px;
   }
}


/* === footer.css === */
/* =============================================
   DAARTS — Footer (Mobile-First)
   ============================================= */

.site-footer {
   background: #F24242;
   color: var(--color-white);
   padding: 10px 0;
   margin-top: 40px;
}

.site-footer .container {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   text-align: center;
}

.footer-logo img {
   width: 34px;
   height: 34px;
}

.footer-info {
   font-family: var(--font-primary);
   font-size: 12px;
   color: rgba(255, 255, 255, 0.8);
   line-height: 1.6;
}

.footer-info a {
   color: var(--color-white);
}

.footer-info a:hover {
   text-decoration: underline;
}

@media (min-width: 768px) {
   .site-footer .container {
      flex-direction: row;
      justify-content: center;
      text-align: left;
      position: relative;
   }

   .footer-info:last-child {
      position: absolute;
      right: 16px;
      font-size: 12px;
   }
}


/* === components.css === */
/* =============================================
   DAARTS — Components (Mobile-First)
   ============================================= */

/* --- Hero Section --- */
.hero {
   background: var(--color-primary-gradient);
   color: var(--color-white);
   padding: 32px var(--gap);
   text-align: center;
}

.hero h1 {
   font-family: var(--font-condensed);
   font-size: clamp(18px, 5vw, 24px);
   letter-spacing: 0.07px;
   line-height: 1.4;
   color: var(--color-white);
   margin: 0;
   overflow-wrap: break-word;
   hyphens: auto;
}

/* --- Product Cards Grid --- */
.cards-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: var(--gap);
   padding: var(--gap) 0;
}

.card {
   display: flex;
   flex-direction: column;
   background: var(--color-white);
   border-radius: var(--radius);
   overflow: hidden;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
   cursor: pointer;
   transition: transform var(--transition), box-shadow var(--transition);
   text-decoration: none;
   color: var(--color-text);
}

.card:hover {
   transform: translateY(-4px);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-body {
   aspect-ratio: 1;
   overflow: hidden;
}

.card-body img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform var(--transition);
}

.card:hover .card-body img {
   transform: scale(1.05);
}

.card-footer {
   padding: 12px;
   text-align: center;
   background: #F8F8F8;
}

.card-footer h6 {
   font-size: 13px;
   line-height: 1.4;
   margin: 0;
}

/* --- Product Detail --- */
.product-hero {
   margin-bottom: 20px;
}

.product-hero img {
   width: 100%;
   max-width: 640px;
   height: auto;
   border-radius: var(--radius);
}

.product-description {
   margin-bottom: 24px;
}

.product-back {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 16px;
   font-size: 14px;
   color: var(--color-text-muted);
}

.product-back:hover {
   color: var(--color-primary);
}

/* --- Tables --- */
.table-wrapper {
   width: 100%;
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
   margin: 16px 0;
}

.spec-table {
   width: 100%;
   border-collapse: collapse;
   font-family: var(--font-primary);
   font-size: 13px;
   table-layout: fixed;
}

.spec-table th,
.spec-table td {
   padding: 8px 12px;
   border: 1px solid var(--color-border-light);
   text-align: left;
}

.spec-table th {
   background: #F8F8F8;
   font-weight: bold;
}

.spec-table tr:hover {
   background: #FAFAFA;
}

/* --- Buttons --- */
.btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 20px;
   font-family: var(--font-condensed);
   font-size: 15px;
   border: none;
   border-radius: var(--radius);
   cursor: pointer;
   text-decoration: none;
   transition: all var(--transition);
   min-height: 44px;
}

.btn-primary {
   background: var(--color-primary);
   color: var(--color-white);
}

.btn-primary:hover {
   background: var(--color-primary-dark);
   color: var(--color-white);
}

/* --- Dividers --- */
.divider {
   border: none;
   border-top: 1px solid var(--color-border-light);
   margin: 24px 0;
}

/* --- Scroll to top button --- */
.scroll-top {
   position: fixed;
   right: 16px;
   bottom: 80px;
   width: 48px;
   height: 48px;
   background: var(--color-primary);
   color: var(--color-white);
   border: none;
   border-radius: 50%;
   cursor: pointer;
   display: none;
   align-items: center;
   justify-content: center;
   font-size: 20px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
   transition: all var(--transition);
   z-index: 99999;
}

.scroll-top.is-visible {
   display: flex;
}

.scroll-top:hover {
   background: var(--color-primary-dark);
   transform: translateY(-2px);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
   background: #f5f5f5;
   padding: 10px var(--gap);
   font-size: 13px;
   line-height: 1.4;
}

.breadcrumbs ol {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 4px;
}

.breadcrumbs li {
   display: flex;
   align-items: center;
   gap: 4px;
}

.breadcrumbs li + li::before {
   content: "›";
   color: var(--color-text-muted);
   font-size: 15px;
}

.breadcrumbs a {
   color: var(--color-primary);
   text-decoration: none;
}

.breadcrumbs a:hover {
   text-decoration: underline;
}

.breadcrumbs span[aria-current] {
   color: var(--color-text-muted);
}

/* (old catalog-block removed — see card-style block below) */

/* --- Sections --- */
.section {
   padding: 24px 0;
}

.section-title {
   margin-top: 24px;
   margin-bottom: 20px;
   font-family: var(--font-condensed);
   font-size: 22px;
   color: var(--color-primary);
   padding-bottom: 10px;
   border-bottom: 3px solid var(--color-primary);
   display: inline-block;
   max-width: 100%;
   word-break: break-word;
}

/* Section title above sidebar: full width line, tight spacing */
.container > h1.section-title,
.section > h2.section-title {
   display: block;
   margin-bottom: 16px;
   font-weight: normal;
}

/* Parent section name (transparent) next to h1 */
.section-title-parent {
   color: #D9D9D9;
   font-family: var(--font-condensed);
   font-size: 24px;
   font-weight: normal;
   letter-spacing: 0.07px;
   margin-left: 12px;
}

/* --- Content images --- */
.content-image {
   margin: 16px 0;
   text-align: center;
}

.content-image img {
   max-width: 100%;
   height: auto;
   border-radius: var(--radius);
   border: 1px solid var(--color-border);
}

/* --- Catalog block on product pages (card style like Каталоги.html) --- */
.catalog-block {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 16px;
   margin: 24px auto;
}

.catalog-block .catalog-card {
   display: flex;
   flex-direction: column;
   width: 240px;
   flex-shrink: 0;
   border: 2px solid var(--color-primary);
   border-radius: var(--radius);
   overflow: hidden;
   text-decoration: none;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   background: var(--color-primary-gradient);
}

.catalog-block .catalog-card:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.catalog-block .catalog-card-body {
   background: var(--color-white);
   display: flex;
   align-items: center;
   justify-content: center;
}

.catalog-block .catalog-card-body img {
   width: 100%;
   height: auto;
   border: none;
   border-radius: 0;
   display: block;
   object-fit: contain;
}

.catalog-block .catalog-card-footer {
   padding: 8px 10px;
   text-align: center;
   background: var(--color-primary-gradient);
}

.catalog-block .catalog-card-footer h6 {
   color: var(--color-white);
   font-size: 12px;
   margin: 0;
   font-family: var(--font-primary);
   line-height: 1.4;
}

/* --- Home page cards (smaller, red footer) --- */
.cards-grid--home .card {
   border: 2px solid var(--color-primary);
}

.cards-grid--home .card-body {
   aspect-ratio: 4/3;
}

.cards-grid--home .card-footer {
   background: var(--color-primary-gradient);
}

.cards-grid--home .card-footer h6 {
   color: var(--color-white);
}

/* --- Catalog cards (full image, smaller) --- */
.cards-grid--catalog {
   grid-template-columns: repeat(2, 1fr);
   justify-content: center;
   gap: 10px;
   max-width: 950px;
   margin: 0 auto;
}

.cards-grid--catalog .card {
   border: 2px solid var(--color-primary);
}

.cards-grid--catalog .card {
   background: var(--color-primary-gradient);
}

.cards-grid--catalog .card-body {
   aspect-ratio: auto;
   overflow: hidden;
   flex: 1;
   display: flex;
   align-items: flex-end;
   background: var(--color-white);
}

.cards-grid--catalog .card-body img {
   width: 100%;
   height: auto;
   object-fit: contain;
}

.cards-grid--catalog .card-footer {
   background: var(--color-primary-gradient);
   min-height: 50px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.cards-grid--catalog .card-footer h6 {
   color: var(--color-white);
   font-size: 12px;
}

/* --- 2-column image grid --- */
.cards-grid--2col {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--gap);
   margin: 16px 0;
}

/* Product pages: keep 2-column layout for side-by-side images */
.page-content .cards-grid--2col {
   grid-template-columns: 1fr 1fr;
}

/* Product pages: align left, limit width to text block */
.page-content .content-image {
   text-align: left;
}

.page-content .content-image img {
   max-width: 480px;
   width: 100%;
   height: auto;
}

/* Product pages: catalog block aligned with text */
.page-content .catalog-block {
   overflow: visible;
   max-width: 90ch;
   margin-left: 0;
   margin-right: 0;
}

/* Product pages: optimal line length 50-75 chars */
.page-content p,
.page-content ul,
.page-content ol,
.page-content h4,
.page-content h5 {
   max-width: 90ch;
}

/* --- Cookie consent banner --- */
.cookie-banner {
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   background: #222;
   color: #fff;
   padding: 10px 16px;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: center;
   gap: 8px 12px;
   z-index: 9999;
   transform: translateY(100%);
   transition: transform 0.4s ease;
   box-sizing: border-box;
}

.cookie-banner.is-visible {
   transform: translateY(0);
}

.cookie-banner__text {
   flex: 1 1 200px;
   font-size: 12px;
   line-height: 1.4;
   text-align: center;
}

.cookie-banner__text a {
   color: #fff;
   text-decoration: underline;
}

.cookie-banner__btn {
   flex-shrink: 0;
   padding: 6px 16px;
   background: var(--color-primary);
   color: #fff;
   border: none;
   border-radius: var(--radius);
   cursor: pointer;
   font-size: 13px;
   min-height: 44px;
   white-space: nowrap;
   transition: background var(--transition);
}

.cookie-banner__btn:hover {
   background: var(--color-primary-dark);
}

/* --- Text article styles --- */
.Tex-article {
   font-size: 14px;
   line-height: 1.7;
}

/* --- Legal page two-column layout --- */
.legal-columns {
   display: grid;
   grid-template-columns: 1fr;
   gap: 24px;
}

@media (min-width: 768px) {
   .legal-columns {
      grid-template-columns: 1fr 1fr;
      gap: 40px;
   }
}

/* ======================
   TABLET (>=576px)
   ====================== */
@media (min-width: 576px) {
   .cards-grid {
      grid-template-columns: repeat(3, 1fr);
   }

   .cards-grid--catalog {
      grid-template-columns: repeat(3, 1fr);
   }

   .hero h1 {
      font-size: 27px;
   }
}

/* ======================
   DESKTOP (>=992px)
   ====================== */
@media (min-width: 992px) {
   .cards-grid {
      grid-template-columns: repeat(4, 1fr);
   }

   .cards-grid--catalog {
      grid-template-columns: repeat(5, 1fr);
   }

   .hero {
      padding: 48px var(--gap);
   }

   .hero h1 {
      font-size: 30px;
   }
}

/* --- Responsive 2-column grids (mobile collapse) --- */
@media (max-width: 575px) {
   .cards-grid--2col,
   .grid-2col-responsive {
      grid-template-columns: 1fr !important;
   }
}

.grid-2col-responsive {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 16px;
}
