/* ============================================================
   MAT THEME — main.css
   Дизайн: «Материалы и технологии для дорожной разметки»
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --mat-red: #e31e24;
  --mat-red-dark: #c41920;
  --mat-dark: #0c111d;
  --mat-dark-2: #111827;
  --mat-sidebar-bg: #14192b;
  --mat-white: #ffffff;
  --mat-light-bg: #f4f6f9;
  --mat-text: #2d2d2d;
  --mat-text-muted: #6b7080;
  --mat-border: #e2e6ee;
  --mat-topbar-bg: #0c111d;

  --mat-font-head: "Oswald", sans-serif;
  --mat-font-body: "Roboto", sans-serif;

  --mat-max-w: 1200px;
  --mat-sidebar-w: 300px;
  --mat-topbar-h: 44px;
  --mat-header-h: 76px;
  --mat-radius: 2px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--mat-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--mat-text);
  background: var(--mat-white);
}
body.single-mat_product .header,
body.single-mat_product .mat-header,
body.single-mat_product #site-header {
    display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--mat-font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

a {
  color: var(--mat-red);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--mat-red-dark);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style: none;
}
input,
button,
textarea,
select {
  font-family: inherit;
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.mat-container {
  max-width: var(--mat-max-w);
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.mat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  font-family: var(--mat-font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.mat-btn-primary {
  background: var(--mat-red);
  color: var(--mat-white);
  border-color: var(--mat-red);
}
.mat-btn-primary:hover {
  background: var(--mat-red-dark);
  border-color: var(--mat-red-dark);
  color: var(--mat-white);
}
.mat-btn-outline {
  background: transparent;
  color: var(--mat-white);
  border-color: var(--mat-white);
}
.mat-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--mat-white);
}
.mat-btn-outline-dark {
  background: transparent;
  color: var(--mat-dark);
  border-color: var(--mat-dark);
}
.mat-btn-outline-dark:hover {
  background: var(--mat-dark);
  color: var(--mat-white);
}

/* ============================================================
   5. TOP BAR
   ============================================================ */
.mat-topbar {
  background: var(--mat-topbar-bg);
  min-height: var(--mat-topbar-h);
  display: flex;
  align-items: center;
}
.mat-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.mat-topbar-left,
.mat-topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.mat-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
a.mat-topbar-item:hover {
  color: var(--mat-white);
}
.mat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.65;
}

/* ============================================================
   6. MAIN HEADER
   ============================================================ */
.mat-mainheader {
  background: var(--mat-white);
  border-bottom: 1px solid var(--mat-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 200;
}
.mat-mainheader-inner {
  display: flex;
  align-items: center;
  height: var(--mat-header-h);
  gap: 28px;
}
.social{
	display:flex;
	gap:10px;
}

/* Logo */
.mat-logo-link {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
}
.mat-logo-icon {
  display: block;
  flex-shrink: 0;
}
.mat-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mat-logo-text strong {
  font-family: var(--mat-font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mat-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mat-logo-text small {
  font-size: 11px;
  color: var(--mat-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Logo in footer = white text */
.mat-footer-logo .mat-logo-text strong {
  color: var(--mat-white);
}
.mat-footer-logo .mat-logo-text small {
  color: rgba(255, 255, 255, 0.4);
}

/* Navigation */
.mat-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.mat-nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mat-nav-menu li a {
  display: block;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mat-text);
  position: relative;
  transition: color 0.2s;
}
.mat-nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--mat-red);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.mat-nav-menu li a:hover,
.mat-nav-menu li.current-menu-item > a,
.mat-nav-menu li.active > a {
  color: var(--mat-red);
}
.mat-nav-menu li.current-menu-item > a::after,
.mat-nav-menu li.active > a::after {
  transform: scaleX(1);
}

/* CTA button */
.mat-btn-cta {
  flex-shrink: 0;
  font-size: 12.5px;
  padding: 9px 18px;
	border-radius: 5px;
}

/* Scrolled state */
.mat-mainheader--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Mobile toggle */
.mat-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.mat-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mat-dark);
  transition: all 0.25s;
}
.mat-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mat-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mat-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   7. PAGE WRAPPER (sidebar + content)
   ============================================================ */
.mat-page-wrapper {
  display: flex;
  align-items: stretch;
}

/* ============================================================
   8. PRODUCTS SIDEBAR
   ============================================================ */
.mat-products-sidebar {
  width: var(--mat-sidebar-w);
  flex-shrink: 0;
  background: var(--mat-sidebar-bg);
  display: flex;
  flex-direction: column;
}
.mat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mat-sidebar-title {
  font-family: var(--mat-font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--mat-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mat-sidebar-menu-icon {
  color: rgba(255, 255, 255, 0.45);
  line-height: 0;
}

/* Sidebar menu */
.mat-sidebar-menu {
  flex: 1;
  padding: 5px 0;
}
.mat-sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px 9px 12px;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  transition:
    background 0.15s,
    color 0.15s;
  position: relative;
}
.mat-sidebar-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--mat-white);
}
.mat-sidebar-menu li.current-menu-item > a,
.mat-sidebar-menu li.active > a {
  background: rgba(227, 30, 36, 0.14);
  color: var(--mat-white);
  border-left: 3px solid var(--mat-red);
  padding-left: 9px;
}

/* Sidebar item icon */
.mat-sidebar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.mat-sidebar-price {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.mat-sidebar-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.mat-sidebar-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.mat-sidebar-icon-bg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

/* Sidebar label */
.mat-sidebar-label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #d7d7d7;
  line-height: 1.3;
}

/* Sidebar arrow */
.mat-sidebar-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 15px;
  align-self: center;
}

/* Download catalog button */
.mat-catalog-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition:
    background 0.15s,
    color 0.15s;
  text-decoration: none;
}
.mat-catalog-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--mat-white);
}

/* ============================================================
   9. MAIN CONTENT AREA
   ============================================================ */
/* Content column next to sidebar (homepage) */
.mat-sidebar-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
/* Kept for inner page templates */
.mat-main-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* Inner pages without sidebar */
.mat-page-container {
  max-width: var(--mat-max-w);
  margin: 0 auto;
  padding: 50px 0px 60px;
}
.mat-page-main {
  max-width: 860px;
}

/* ============================================================
   10. HERO SLIDER
   ============================================================ */
.mat-hero {
  position: relative;
  height: 490px;
  overflow: hidden;
  background: var(--mat-dark-2);
}
.mat-hero-slides {
  position: relative;
  height: 100%;
}

.mat-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.mat-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Slide background */
.mat-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  /* Gradient fallback when no image */
  background-image: linear-gradient(
    120deg,
    #0d1421 0%,
    #1b2d4f 60%,
    #0d1421 100%
  );
}
.mat-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 14, 27, 0.93) 0%,
    rgba(9, 14, 27, 0.7) 50%,
    rgba(9, 14, 27, 0.15) 100%
  );
}

/* Slide content */
.mat-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 120px;
  max-width: 800px;
}
.mat-hero-content h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--mat-white);
  text-transform: uppercase;
  margin: 0 0 18px;
  line-height: 1.08;
}
.mat-hero-content h1 .text-red {
  color: var(--mat-red);
}
.mat-hero-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 32px;
  max-width: 450px;
  line-height: 1.65;
}
.mat-hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero arrows */
.mat-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--mat-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}
.mat-hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}
.mat-hero-arrow--prev {
  left: 14px;
}
.mat-hero-arrow--next {
  right: 14px;
}

/* Hero dots */
.mat-hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.mat-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}
.mat-hero-dot.active {
  background: var(--mat-red);
  transform: scale(1.25);
}

/* ============================================================
   11. FEATURES STRIP
   ============================================================ */
.mat-features {
  background: var(--mat-dark-2);
  padding: 26px 30px;
}
.mat-features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--mat-max-w);
  margin: 0 auto;
}
.mat-feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.mat-footer-logo-img{
	width: 80%;
}
.mat-feature-icon {
  width: 50px;
  height: 50px;
  border: 1.8px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--mat-white);
}
.mat-feature-title {
  font-family: var(--mat-font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mat-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 3px;
}
.mat-feature-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ============================================================
   12. ABOUT SECTION
   ============================================================ */
.mat-about {
  background: var(--mat-white);
  padding: 62px 0;
}
.mat-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  max-width: var(--mat-max-w);
  margin: 0 auto;
}

/* Section heading with red underline */
.mat-section-heading {
  font-family: var(--mat-font-head);
  font-size: 27px;
  font-weight: 700;
  color: var(--mat-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  padding-bottom: 0;
}
.mat-section-heading::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--mat-red);
  margin-top: 10px;
}


.mat-about-text p {
  color: var(--mat-text-muted);
  font-size: 14.5px;
  line-height: 1.72;
  margin: 0 0 16px;
}
.mat-about-text .mat-btn {
  margin-top: 8px;
}

/* About image */
.mat-about-image-wrap {
  overflow: hidden;
  border-radius: var(--mat-radius);
}
.mat-about-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.custom-logo {
  width: 150px;
}

/* Placeholder */
.mat-about-placeholder {
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, #1a2840 0%, #0c111d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* ============================================================
   13. STATS STRIP
   ============================================================ */
.mat-stats {
  background: var(--mat-dark);
  padding: 52px 0;
}
.mat-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--mat-max-w);
  margin: 0 auto;
}
.mat-stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mat-stat-icon {
  width: 56px;
  height: 56px;
  border: 1.8px solid var(--mat-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--mat-red);
}
.mat-stat-value {
  font-family: var(--mat-font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--mat-white);
  line-height: 1;
  margin: 0 0 5px;
}
.mat-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

/* ======================================================
   НОВОСТИ: ДВУХКОЛОНОЧНЫЙ МАКЕТ С КАРТИНКОЙ
   ====================================================== */
.mat-news {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.mat-news-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mat-news-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-top: 30px;
    align-items: stretch;
}

/* --- ЛЕВАЯ ГЛАВНАЯ КАРТОЧКА --- */
.mat-news-featured {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.mat-news-featured-img-wrap {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.mat-news-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mat-news-featured:hover .mat-news-featured-img {
    transform: scale(1.05);
}

.mat-news-card-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #2b3038;
}

.mat-news-featured-body {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.mat-news-date {
    color: #e31e24;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mat-news-featured-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.mat-news-featured-title a {
    color: #111;
    text-decoration: none;
}

.mat-news-featured-title a:hover {
    color: #e31e24;
}

.mat-news-featured-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.mat-news-more {
    color: #e31e24;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    text-transform: uppercase;
}

/* --- ПРАВЫЙ СПИСОК НОВОСТЕЙ --- */
.mat-section-header{
	display:flex;
	align-items:center;
	justify-content:space-between;
}

.mat-news-list {
    background: #ffffff;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.mat-news-list-item {
    border-bottom: 1px solid #f0f0f0;
}

.mat-news-list-item:last-child {
    border-bottom: none;
}

.mat-news-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 25px;
    text-decoration: none;
    color: #111;
    transition: background-color 0.2s;
}

.mat-news-list-link:hover {
    background-color: #fafafa;
}

.mat-news-list-content {
    padding-right: 15px;
}

.mat-news-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 4px 0 0 0;
    color: #222;
    transition: color 0.2s;
}

.mat-news-list-link:hover .mat-news-list-title {
    color: #e31e24;
}

.mat-news-list-arrow {
    color: #555;
    display: flex;
    align-items: center;
    transition: transform 0.2s, color 0.2s;
}

.mat-news-list-link:hover .mat-news-list-arrow {
    transform: translateX(4px);
    color: #e31e24;
}

/* Адаптировано под мобильные устройства */
@media (max-width: 992px) {
    .mat-news-layout {
        grid-template-columns: 1fr;
    }
    .mat-news-featured {
        flex-direction: column;
    }
    .mat-news-featured-img-wrap {
        height: 220px;
    }
}

/* ============================================================
   15. CTA SECTION
   ============================================================ */
.mat-cta {
  background: linear-gradient(135deg, #141c33 0%, #0c111d 100%);
  padding: 52px 0;
}
.mat-cta-inner {
  display: flex;
  align-items: center;
  gap: 44px;
  max-width: var(--mat-max-w);
  margin: 0 auto;
}
.mat-cta-left {
  flex: 0 0 300px;
}
.mat-cta-heading {
  font-family: var(--mat-font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--mat-white);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.mat-cta-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
}
.mat-cta-right {
	width:100%;
  flex: 1;
}

/* CTA Form */
.mat-cta-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.mat-cta-form input, textarea {
  flex: 1;
  min-width: 0;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--mat-white);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}
.mat-cta-form input::placeholder, .mat-cta-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.mat-cta-form input:focus, .mat-cta-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.38);
}
.mat-cta-form button {
  padding: 12px 22px;
  background: var(--mat-red);
  color: var(--mat-white);
  font-family: var(--mat-font-head);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.mat-cta-form button:hover {
  background: var(--mat-red-dark);
}
.mat-cta-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.mat-cta-form-success {
  display: none;
  color: #5ee89a;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
}
/* ==========================================================================
   СЛАЙДЕР БЛОКА "О КОМПАНИИ"
   ========================================================================== */

.mat-about-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    overflow: hidden;
}

.mat-about-slider {
    position: relative;
    width: 100%;
    height: 380px; /* Вы можете скорректировать высоту */
}

.mat-about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.mat-about-slide.active {
    opacity: 1;
    visibility: visible;
}

.mat-about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Стрелки слайдера */
.mat-about-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(12, 17, 29, 0.65);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mat-about-arrow:hover {
    background: #e31e24; /* Фирменный красный акцент */
    transform: translateY(-50%) scale(1.08);
}

.mat-about-arrow--prev {
    left: 12px;
}

.mat-about-arrow--next {
    right: 12px;
}

@media screen and (max-width: 768px) {
    .mat-about-slider {
        height: 260px;
    }
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.mat-footer {
  background: var(--mat-dark);
}
.mat-footer-top {
  padding: 52px 0 42px;
}
.mat-footer-top-inner {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr 200px;
  gap: 36px;
  max-width: var(--mat-max-w);
  margin: 0 auto;
}
.mat-footer-col h4 {
  font-family: var(--mat-font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mat-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
}
.mat-footer-menu li {
  margin-bottom: 9px;
}
.mat-footer-menu a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.2s;
}
.mat-footer-menu a:hover {
  color: var(--mat-white);
}

/* Footer contacts list */
.mat-footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}
.mat-footer-contacts .mat-icon {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.35);
}
.mat-footer-contacts a {
  color: rgba(255, 255, 255, 0.52);
}
.mat-footer-contacts a:hover {
  color: var(--mat-white);
}

/* Footer bottom bar */
.mat-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 0;
}
.mat-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--mat-max-w);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.mat-footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* Social links */
.mat-social-links {
  display: flex;
  gap: 8px;
}
.mat-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  transition:
    background 0.2s,
    color 0.2s;
}
.mat-social-links a:hover {
  background: var(--mat-red);
  color: var(--mat-white);
}
.mat-social-links svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   17. SINGLE / ARCHIVE / PAGE STYLES
   ============================================================ */
.mat-entry-header {
  margin-bottom: 28px;
}
.mat-entry-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--mat-text-muted);
}
.mat-entry-date {
  color: var(--mat-red);
  font-weight: 500;
}
.mat-entry-title {
  font-family: var(--mat-font-head);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  color: var(--mat-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--mat-red);
}
.mat-archive-title {
  margin-bottom: 36px;
}
.mat-entry-thumbnail {
  margin: 0 0 32px;
}
.mat-entry-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
.mat-entry-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mat-text);
}
.mat-entry-content p {
  margin-bottom: 18px;
}
.mat-entry-content h2,
.mat-entry-content h3 {
  margin: 28px 0 14px;
}
.mat-entry-content ul,
.mat-entry-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
  list-style: disc;
}
.mat-entry-content ol {
  list-style: decimal;
}
.mat-entry-content img {
  margin: 20px 0;
}
.mat-entry-footer {
  margin-top: 36px;
}
.mat-back-btn {
  font-size: 13px;
  padding: 9px 20px;
}

/* Archive grid */
.mat-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.mat-no-posts {
  color: var(--mat-text-muted);
  font-size: 15px;
}

/* Pagination */
.mat-pagination {
  margin-top: 32px;
}
.mat-pagination .nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mat-pagination .page-numbers {
  padding: 8px 14px;
  background: var(--mat-light-bg);
  color: var(--mat-text);
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}
.mat-pagination .page-numbers.current,
.mat-pagination .page-numbers:hover {
  background: var(--mat-red);
  color: var(--mat-white);
}

/* ============================================================
   18. Single PAGE
   ============================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
/*.product-page {
  padding: 70px 0;
}*/

.product-grid {
  display: flex;
  justify-content:space-between;
}

.breadcrumbs {
  font-size: 14px;
  margin-bottom: 25px;
  color: #777;
}

.breadcrumbs a {
  color: #777;
  text-decoration: none;
}

.product-title {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 25px;
  font-family: "Oswald", sans-serif;
}

.product-short {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 35px;
}

.product-price {
  font-size: 25px;
  font-weight: 700;
  color: #e02020;
  margin-bottom: 35px;
}

.product-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 16px 34px;
  background: #e31e24;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.btn-secondary {
  padding: 16px 34px;
  border: 2px solid #e31e24;
  color: #e31e24;
  border-radius: 8px;
  text-decoration: none;
}

.hero-image {
  max-width: 400px;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

.product-description h2 {
  margin-bottom: 30px;

  font-size: 38px;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: 1fr 450px;

    gap: 40px;
  }

  .product-title {
    font-size: 42px;
  }
}
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-title {
    font-size: 36px;
  }

  .product-buttons {
    margin-top: 30px;
  }
}
@media (max-width: 768px) {
	.product-hero{
	padding:0 !important;
	}
	.product-image img{
		width:100%;
		height:auto !important;
	}
	.product-grid{
		display:flex !important;
		flex-wrap:wrap !important;
		gap:20px !important;
	}
	.mat-projects-inner{
		padding: 0px 15px;
	}
	.mat-footer-top-inner{
		padding: 0px 15px;
	}
	.mat-footer-bottom-inner{
		padding: 0px 15px;
	}
	
  .product-page {
    padding: 40px 0;
  }

  .product-title {
    font-size: 30px;
  }

  .product-short {
    font-size: 16px;
  }

  .product-price {
    font-size: 28px;
  }

  .product-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;

    text-align: center;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .product-description {
    margin-top: 60px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .product-title {
    font-size: 26px;
  }

  .breadcrumbs {
    font-size: 12px;
  }

  .document-card {
    padding: 18px;
  }

  .document-icon {
    width: 55px;

    height: 55px;
  }
}
/* ============================================================
   18. 404 PAGE
   ============================================================ */
.mat-404-inner {
  padding: 80px 20px;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.mat-404-code {
  font-family: var(--mat-font-head);
  font-size: 120px;
  font-weight: 700;
  color: var(--mat-red);
  line-height: 1;
  margin-bottom: 16px;
}
.mat-404-title {
  font-size: 32px;
  color: var(--mat-dark);
  margin-bottom: 16px;
}
.mat-404-text {
  color: var(--mat-text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.product-documents {
  margin-top: 90px;
}

.documents-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 25px;
}

.document-card {
  display: flex;

  gap: 20px;

  align-items: center;

  padding: 25px;

  border-radius: 16px;

  border: 1px solid #ececec;

  text-decoration: none;

  color: #222;

  transition: 0.3s;

  background: #fff;
}

.document-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.document-icon {
  width: 65px;

  height: 65px;

  border-radius: 14px;

  background: #f4f6f8;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 28px;
}

.document-card h3 {
  margin: 0;

  font-size: 18px;
}

.document-card p {
  margin-top: 8px;

  color: #888;
}

/* ============================================================
   19. RESPONSIVE — ≤ 1100px
   ============================================================ */
@media (max-width: 1100px) {
  .mat-features-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .mat-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .mat-footer-top-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .mat-footer-logo {
    grid-column: 1 / -1;
  }
  .mat-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   20. RESPONSIVE — ≤ 960px
   ============================================================ */
@media (max-width: 960px) {
  .mat-page-wrapper {
    flex-direction: column;
  }

  .mat-products-sidebar {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mat-sidebar-menu {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  .mat-about-inner {
    grid-template-columns: 1fr;
  }
  .mat-about-image-wrap {
    order: -1;
  }
  .mat-about-img,
  .mat-about-placeholder {
    height: 260px;
  }

  .mat-cta-inner {
    flex-direction: column;
    gap: 28px;
  }
  .mat-cta-left {
    flex: none;
    width: 100%;
  }
  .mat-cta-form {
    flex-wrap: wrap;
  }
  .mat-cta-form input {
    flex: 1 0 20px;
  }

  .mat-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   21. RESPONSIVE — ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
	.mat-footer-logo-img{
		width:50%;
	}
	.mat-hero-arrow--prev{
		left:0px;
	}
	.mat-hero-arrow--next{
		right:0px;
	}
  .mat-topbar-inner {
    justify-content: center;
  }
  .mat-topbar-left,
  .mat-topbar-right {
    justify-content: center;
    gap: 10px;
  }

  .mat-mainheader-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 14px;
  }
  .mat-logo {
    order: 1;
  }
  .mat-mobile-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }
  .mat-btn-cta {
    order: 3;
  }

  .mat-nav {
    order: 4;
    width: 100%;
    display: none;
  }
  .mat-nav.is-open {
    display: flex;
  }
  .mat-nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .mat-nav-menu li a {
    padding: 10px 0;
    border-bottom: 1px solid var(--mat-border);
  }
  .mat-nav-menu li a::after {
    display: none;
  }

  .mat-features-inner {
    grid-template-columns: 1fr;
  }
  .mat-stats-inner {
    grid-template-columns: 1fr 1fr;
  }
  .mat-news-grid {
    grid-template-columns: 1fr;
  }
  .mat-archive-grid {
    grid-template-columns: 1fr;
  }

  .mat-hero {
    height: 420px;
  }
  .mat-hero-content {
    padding: 0 52px;
  }

  .mat-footer-top-inner {
    grid-template-columns: 1fr 1fr;
  }

  .mat-about-inner,
  .mat-features-inner,
  .mat-stats-inner,
  .mat-news-inner,
  .mat-cta-inner {
    padding: 0 16px;
  }

  .mat-features {
    padding: 22px 0;
  }
  .mat-about,
  .mat-news,
  .mat-cta {
    padding: 44px 0;
  }
  .mat-stats {
    padding: 40px 0;
  }
}

/* ============================================================
   22. RESPONSIVE — ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
	
  .mat-sidebar-menu {
    grid-template-columns: 1fr;
  }
  .mat-stats-inner {
    grid-template-columns: 1fr;
  }
  .mat-cta-form {
    flex-direction: column;
  }
  .mat-footer-top-inner {
    grid-template-columns: 1fr;
  }
  .mat-hero-content h1 {
    font-size: 24px;
  }
}

/* ============================================================
   23. BLOCK EDITOR OVERRIDES
   ============================================================ */
.editor-styles-wrapper body,
.editor-styles-wrapper {
  font-family: var(--mat-font-body) !important;
  font-size: 15px !important;
  color: var(--mat-text) !important;
}
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
  font-family: var(--mat-font-head) !important;
}
/* ======================================================
   НАШИ ОБЪЕКТЫ (ПРОЕКТЫ)
   ====================================================== */
.mat-projects {
    padding: 60px 0;
    background-color: #f8f9fa; /* Или другой фоновый цвет вашей темы */
}
.mat-projects-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.mat-projects-grid {
    display: flex;
	flex-wrap:wrap;
    gap: 30px;
    margin-top: 30px;
}
.mat-project-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mat-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.mat-project-card-img-link {
    display: block;
    height: 220px;
    overflow: hidden;
}
.mat-project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mat-project-card:hover .mat-project-card-img {
    transform: scale(1.05);
}
.mat-project-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.mat-project-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.mat-project-title a {
    color: #111;
    text-decoration: none;
}
.mat-project-title a:hover {
    color: #e31e24; /* Ваш фирменный красный акцент */
}
.mat-project-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* ==========================================================================
   УВЕДОМЛЕНИЯ ФОРМЫ
   ========================================================================== */

.mat-cta-form-success {
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    display: none; /* Изначально скрыто */
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Состояние при активной показ-анимации */
.mat-cta-form-success.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 1;
    transform: translateY(0);
}

/* Успешная отправка (Зеленая плашка) */
.mat-cta-form-success.status-success {
    background-color: rgba(40, 167, 69, 0.12);
    color: #2e7d32;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Ошибка отправки (Красная плашка) */
.mat-cta-form-success.status-error {
    background-color: rgba(220, 53, 69, 0.12);
    color: #d32f2f;
    border: 1px solid rgba(220, 53, 69, 0.3);
}
#mat-mobile-toggle,
.mat-mobile-toggle {
    pointer-events: auto !important;
    z-index: 100001 !important;
    position: relative !important;
    cursor: pointer !important;
}

#mat-mobile-toggle span,
.mat-mobile-toggle span {
    pointer-events: none !important; /* Клик пройдет сквозь полоски прямо на кнопку */
}