/*
Theme Name: LT-Company
Theme URI: https://lt-company.com.ua
Author: LT-Company
Description: Кастомна тема для LT-Company — комплексні фасадні рішення. Мігровано з Tilda.
Version: 1.0.0
Text Domain: lt-company
License: Private
*/

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Futura PT', 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.6; color: #333; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: 'Opinion Pro', 'Futura PT', sans-serif; font-weight: 500; line-height: 1.2; }

/* ============================================================
   CSS VARIABLES (Brand Design System)
   ============================================================ */
:root {
  --color-primary: #a5053a;
  --color-primary-hover: #8c042f;
  --color-accent: #de7439;
  --color-accent-hover: #c56530;
  --color-dark: #000000;
  --color-dark-alt: #111111;
  --color-gray-bg: #eeeeee;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-link-active: #d41c59;
  
  --font-heading: 'Opinion Pro', 'Futura PT', sans-serif;
  --font-body: 'Futura PT', 'Segoe UI', Arial, sans-serif;
  
  --container-max: 1200px;
  --container-padding: 20px;
  --section-padding: 75px;
  --border-radius: 5px;
  
  --shadow-card: 0px 0px 5px rgba(0,0,0,0.3);
  --shadow-card-hover: 0px 10px 10px rgba(0,0,0,0.7);
  --transition: 0.3s ease-in-out;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.t-title-xl { font-size: 30px; letter-spacing: 3px; text-shadow: 0px 2px 10px rgba(0,0,0,1); }
.t-title-xs { font-size: 32px; text-transform: uppercase; }
.t-uptitle  { font-size: 64px; text-transform: uppercase; letter-spacing: 2px; font-weight: 300; }
.t-descr-xl { font-size: 20px; }
.t-descr-sm { font-size: 14px; }
.t-name-md  { font-size: 18px; font-weight: 500; }
.t-name-sm  { font-size: 22px; line-height: 0.8; font-weight: 400; }

@media (max-width: 768px) {
  .t-uptitle { font-size: 36px; }
  .t-title-xl { font-size: 22px; }
  .t-title-xs { font-size: 24px; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.container-full { width: 100%; }
.section { padding: var(--section-padding) 0; }
.section--gray { background: var(--color-gray-bg); }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--primary { background: var(--color-primary); color: var(--color-white); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { justify-content: center; align-items: center; }
.gap-20 { gap: 20px; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}
.header-logo img {
  width: 200px;
  height: auto;
}
.header-phones {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}
.header-phones a {
  display: block;
  color: var(--color-dark);
  white-space: nowrap;
}
.header-phones a:hover { color: var(--color-link-active); }

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--border-radius);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-cta--accent {
  background: var(--color-accent);
}
.btn-cta--accent:hover {
  background: var(--color-accent-hover);
}
.btn-cta--outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn-cta--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Navigation bar */
.header-nav {
  border-top: 1px solid #eee;
}
.nav-list {
  display: flex;
  justify-content: flex-start;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.nav-list li { margin-right: 30px; }
.nav-list a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
  position: relative;
  transition: color var(--transition);
}
.nav-list a:hover,
.nav-list a.active { color: var(--color-link-active); }
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-link-active);
  transition: width var(--transition);
}
.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lang-switcher a {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 4px 8px;
  border-radius: 3px;
  transition: all var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--color-primary);
  background: rgba(165, 5, 58, 0.08);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.mobile-toggle span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  transition: all 0.25s ease-in-out;
}
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2),
.mobile-toggle span:nth-child(3) { top: 8px; }
.mobile-toggle span:nth-child(4) { top: 16px; }
.mobile-toggle.open span:nth-child(1) { top: 8px; width: 0; left: 50%; }
.mobile-toggle.open span:nth-child(2) { transform: rotate(45deg); }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg); }
.mobile-toggle.open span:nth-child(4) { top: 8px; width: 0; left: 50%; }

.mobile-header-call {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: background var(--transition), transform var(--transition);
}
.mobile-header-call:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.mobile-header-call svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 980px) {
  .header-top {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-logo img {
    width: 128px;
  }
  .header-logo { margin-right: auto; }
  .header-right-desktop {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    margin-left: 6px;
    min-width: 0;
  }
  .header-right-desktop .header-phones,
  .header-right-desktop .lang-switcher {
    display: none !important;
  }
  .header-right-desktop .btn-cta {
    padding: 8px 10px;
    max-width: 180px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
  .mobile-header-call { display: inline-flex; }
  .mobile-header-call {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .mobile-toggle { display: block; }
  .mobile-toggle {
    width: 26px;
    flex: 0 0 26px;
  }
  .header-nav { display: none; }
  .header-nav.open {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    overflow-y: auto;
    z-index: 999;
  }
  .header-nav.open .nav-list {
    flex-direction: column;
    padding: 20px;
  }
  .header-nav.open .nav-list li { margin: 0; }
  .header-nav.open .nav-list a {
    padding: 16px 0;
    font-size: 20px;
    border-bottom: 1px solid #eee;
  }
  .header-phones { display: none; }
}

@media (max-width: 480px) {
  .header-top {
    gap: 5px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .header-right-desktop {
    gap: 4px !important;
    margin-left: 2px;
  }
  .header-logo img {
    width: 94px;
  }
  .header-right-desktop .btn-cta {
    width: 78px;
    flex: 0 0 78px;
    max-width: none;
    padding: 6px 3px;
    font-size: 6.8px;
    letter-spacing: 0;
  }
  .mobile-header-call {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  }
  .mobile-header-call svg {
    width: 15px;
    height: 15px;
  }
  .mobile-toggle {
    width: 24px;
    flex-basis: 24px;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero__slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}
.hero__slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero__slide.active { opacity: 1; }
.hero__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.5));
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}
.hero__uptitle {
  font-size: 64px;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 1s 0.3s forwards;
}
.hero__title {
  font-size: 30px;
  letter-spacing: 3px;
  text-shadow: 0px 2px 10px rgba(0,0,0,1);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 1s 0.6s forwards;
}
.hero__cta {
  opacity: 0;
  animation: fadeInUp 1s 0.9s forwards;
}
.hero__arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}
.hero__arrow svg { fill: var(--color-link-active); width: 38px; height: 19px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    background: #1b1b1b;
  }
  .hero__slide { transition: opacity 0.45s ease-in-out; }
  .hero__slide:first-child.active { background-image: var(--hero-bg-mobile, var(--hero-bg)) !important; }
  .hero__overlay {
    background: rgba(0,0,0,0.34);
  }
  .hero__uptitle { font-size: 32px; }
  .hero__title { font-size: 20px; }
}

/* ============================================================
   INTRO TEXT BLOCK
   ============================================================ */
.intro-head {
  text-align: center;
  padding: 135px 0 30px;
  background: var(--color-gray-bg);
}
.intro-head__title {
  margin: 0;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000;
}
.intro-head__subtitle {
  margin: 30px auto 0;
  max-width: 1100px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--color-text);
}
.intro-text {
  text-align: center;
  padding: 60px 0;
  background: var(--color-gray-bg);
}
.intro-text__line {
  width: 100px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto 24px;
}
.intro-text__content {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text);
}
.intro-text__line--bottom {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .intro-head {
    padding: 90px 0 24px;
  }
  .intro-head__title {
    font-size: 40px;
  }
  .intro-head__subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .intro-head__title {
    font-size: 32px;
  }
  .intro-head__subtitle {
    font-size: 16px;
  }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section__title {
  text-align: center;
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 60px;
  position: relative;
}
.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 16px auto 0;
}
.section__title--no-underline::after {
  display: none;
}
.section__subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--color-text-light);
  margin-top: -40px;
  margin-bottom: 60px;
}
.section__subtitle a {
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-accent);
}
.section__subtitle a:hover { color: var(--color-primary); }

/* ============================================================
   DIRECTION CARDS (Homepage Sections)
   ============================================================ */
.direction-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.direction-card {
  background: var(--color-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.direction-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.direction-card__img {
  width: 100%;
  padding-bottom: 77.78%;
  position: relative;
  overflow: hidden;
}
.direction-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.direction-card__content { padding: 20px; }
.direction-card__title {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.direction-card__list {
  list-style: none;
}
.direction-card__list li { margin-bottom: 6px; }
.direction-card__list a {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 300;
  opacity: 0.9;
}
.direction-card__list a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 768px) {
  .direction-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   CLIENTS SECTION ("Для кого ми працюємо")
   ============================================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}
.client-item {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.client-item__title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  min-height: 2.5em;
  margin-bottom: 18px;
}
.client-item__line {
  width: min(100%, 240px);
  height: 3px;
  background: var(--color-primary);
}
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .client-item {
    min-width: 0;
  }
  .client-item__title {
    font-size: 22px;
    min-height: auto;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .client-item__line {
    width: 100%;
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .client-item__title {
    font-size: 18px;
    line-height: 1.2;
  }
}

/* ============================================================
   BENEFITS / ADVANTAGES SECTION
   ============================================================ */
.benefits-section {
  background: var(--color-gray-bg);
  padding: 60px 0 0;
}
.benefits-section__panel {
  background: var(--color-primary);
  padding: 56px 0 44px;
}
.benefits-section__container {
  max-width: 1200px;
}
.benefits-section__title {
  margin: 0 0 48px;
  text-align: center;
  color: var(--color-white);
  font-size: clamp(34px, 2.9vw, 42px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
  text-align: left;
}
.benefit-item {
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.benefit-item__icon {
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 6px;
}
.benefit-item__icon img { display: none !important; }
.benefit-item__icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 11px;
  width: 18px;
  height: 10px;
  border-left: 3px solid var(--color-white);
  border-bottom: 3px solid var(--color-white);
  transform: rotate(-45deg);
}
.benefit-item__title {
  font-size: clamp(19px, 1.35vw, 24px);
  font-weight: 400;
  line-height: 1.24;
  color: var(--color-white);
}

@media (max-width: 1200px) {
  .benefits-section__title {
    font-size: 36px;
  }
  .benefit-item__title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .benefits-section {
    padding-top: 40px;
  }
  .benefits-section__panel {
    padding: 40px 0 30px;
  }
  .benefits-section__title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .benefit-item__title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DIVIDER (diagonal shape)
   ============================================================ */
.shape-divider {
  position: relative;
  height: 8vw;
  overflow: hidden;
}
.shape-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.shape-divider--white svg path { fill: #fff; }
.shape-divider--gray svg path { fill: var(--color-gray-bg); }

/* ============================================================
   PRODUCT GRID (Image cards with hover)
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 10px;
}
.product-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
  aspect-ratio: 1/1;
}
.product-card:hover { box-shadow: var(--shadow-card-hover); }
.product-card__img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  transition: transform 0.5s ease;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card:hover .product-card__img { transform: scale(1.08); }
.product-card__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
  z-index: 2;
  transition: opacity var(--transition);
}
.product-card__content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.product-card__title {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-white);
}
.product-card__title a { color: var(--color-white); }
.product-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition);
}
.product-card:hover .product-card__arrow {
  opacity: 1;
  transform: translateX(0);
}
.product-card__arrow svg { stroke: white; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CHRONICLE TILES
   ============================================================ */
.chronicle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.chronicle-tile {
  position: relative;
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
}
.chronicle-tile__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  transition: transform 0.5s ease;
}
.chronicle-tile__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chronicle-tile:hover .chronicle-tile__bg { transform: scale(1.1); }
.chronicle-tile__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.8));
  z-index: 2;
}
.chronicle-tile__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 3;
  color: var(--color-white);
}
.chronicle-tile__title { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.chronicle-tile__title a { color: var(--color-white); }
.chronicle-tile__btn {
  display: inline-block;
  padding: 8px 20px;
  background: white;
  color: var(--color-dark);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}
.chronicle-tile:hover .chronicle-tile__btn {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .chronicle-grid { grid-template-columns: repeat(2, 1fr); }
  .chronicle-tile { height: 200px; }
}
@media (max-width: 480px) {
  .chronicle-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROJECT GRID (large tiles, 4 columns)
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.project-tile {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.project-tile__img {
  position: absolute;
  inset: 0;
  display: block;
}
.project-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-tile__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-tile:hover .project-tile__overlay { opacity: 1; }
.project-tile__content { text-align: center; color: var(--color-white); }
.project-tile__type { font-size: 14px; text-transform: uppercase; margin-bottom: 4px; }
.project-tile__name { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.project-tile__descr { font-size: 14px; opacity: 0.8; }

@media (max-width: 768px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-tile { height: 250px; }
}
@media (max-width: 480px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCTION SECTION
   ============================================================ */
.production {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.production__item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.production__icon {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
}
.production__heading { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.production__descr { font-size: 15px; color: var(--color-text-light); }
.production__img img { border-radius: var(--border-radius); width: 100%; }

@media (max-width: 768px) {
  .production { grid-template-columns: 1fr; }
  .production__img { order: -1; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: 900px;
  margin: 0 auto;
}
.contact-form__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-form__field {
  flex: 1;
  min-width: 200px;
}
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #000;
  border-radius: var(--border-radius);
  background: var(--color-gray-bg);
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--color-dark);
  transition: border-color var(--transition);
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.contact-form__field input::placeholder { color: #000; opacity: 0.5; }
.contact-form__submit { flex-shrink: 0; }
.contact-form__consent {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
}
.contact-form__consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.contact-form__consent a { color: var(--color-primary); text-decoration: underline; }
.lt-legacy-form-consent {
  width: 100%;
  margin: 16px 0 12px;
  justify-content: center;
}
.lt-legacy-form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-light);
  text-align: left;
}
.lt-legacy-form-consent input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  appearance: auto;
}
.contact-form__success {
  display: none;
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .contact-form__row { flex-direction: column; }
  .contact-form__submit { width: 100%; }
  .contact-form__submit .btn-cta { width: 100%; }
}

/* ============================================================
   POPUP / MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.contact-form__success { display: none; }
.modal-content {
  background: var(--color-white);
  border-radius: 8px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}
.modal-close:hover { color: var(--color-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 75px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-col__logo { margin-bottom: 20px; }
.footer-col__logo img { width: 250px; }
.footer-col__address {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
  font-weight: 400;
}
.footer-col__address a {
  color: var(--color-white);
}
.footer-col__address a:hover {
  color: var(--color-accent);
}
.footer-col__copyright {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.7;
}
.footer-col__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-link-active);
  margin-bottom: 16px;
  font-family: var(--font-heading);
}
.footer-col__title a { color: var(--color-link-active); }
.footer-col__title a:hover { color: var(--color-accent); }
.footer-col__list { list-style: none; }
.footer-col__list li { margin-bottom: 6px; }
.footer-col__list a {
  font-size: 15px;
  color: var(--color-white);
  opacity: 0.85;
  font-family: var(--font-heading);
}
.footer-col__list a:hover { opacity: 1; color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.7;
}
.footer-bottom a { color: var(--color-white); text-decoration: underline; }
.footer-bottom a:hover { color: var(--color-accent); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   GOOGLE MAP
   ============================================================ */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top svg { fill: var(--color-accent); }

/* ============================================================
   PAGE TEMPLATES (About, Products, etc.)
   ============================================================ */
.page-header {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
  text-align: center;
  margin-top: 100px;
}
.page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}
.page-header__content { position: relative; z-index: 2; }
.page-header__title { font-size: 42px; text-transform: uppercase; letter-spacing: 3px; }

.page-content {
  padding: 60px 0;
}
.page-content p { margin-bottom: 16px; }

.rail-facade-page {
  color: var(--color-text);
}

.rail-facade-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: stretch;
  margin-bottom: 54px;
}

.rail-facade-hero__media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--color-dark-alt);
  box-shadow: var(--shadow-card);
}

.rail-facade-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.42));
  pointer-events: none;
}

.rail-facade-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-facade-hero__label {
  display: none;
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--border-radius);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.rail-facade-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 460px;
  padding: 38px;
  border-radius: var(--border-radius);
  background: var(--color-gray-bg);
  box-shadow: var(--shadow-card);
}

.rail-facade-eyebrow {
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rail-facade-page h1 {
  margin-bottom: 20px;
  color: var(--color-dark);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rail-facade-page h2 {
  margin-bottom: 18px;
  color: var(--color-dark);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.rail-facade-lead {
  color: var(--color-dark);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.rail-facade-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 54px;
}

.rail-facade-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 96px;
  padding: 20px 22px;
  border-top: 4px solid var(--color-primary);
  border-radius: var(--border-radius);
  background: var(--color-gray-bg);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.rail-facade-stat strong {
  display: block;
  margin-bottom: 0;
  color: var(--color-primary);
  font-size: 30px;
  line-height: 1;
}

.rail-facade-stat span {
  display: block;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.rail-facade-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 54px;
}

.rail-facade-section--gray {
  padding: 34px;
  border-radius: var(--border-radius);
  background: var(--color-gray-bg);
}

.page-content .rail-facade-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-content .rail-facade-list li {
  min-height: 112px;
  padding: 18px 20px;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  color: var(--color-dark);
}

.rail-facade-gallery-wrap {
  margin-bottom: 12px;
}

.rail-facade-gallery-head {
  max-width: 680px;
  margin-bottom: 24px;
}

.rail-facade-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rail-facade-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

@media (max-width: 960px) {
  .rail-facade-hero,
  .rail-facade-section {
    grid-template-columns: 1fr;
  }

  .rail-facade-hero__media,
  .rail-facade-hero__content {
    min-height: 0;
  }

  .rail-facade-hero__media {
    aspect-ratio: 16 / 10;
  }

  .rail-facade-stats,
  .rail-facade-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rail-facade-hero {
    gap: 20px;
    margin-bottom: 36px;
  }

  .rail-facade-hero__content,
  .rail-facade-section--gray {
    padding: 24px 20px;
  }

  .rail-facade-page h1 {
    font-size: 30px;
  }

  .rail-facade-page h2 {
    font-size: 24px;
  }

  .rail-facade-lead {
    font-size: 18px;
  }

  .rail-facade-stats,
  .page-content .rail-facade-list,
  .rail-facade-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thank-you {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  margin-top: 100px;
}
.thank-you__icon { font-size: 64px; margin-bottom: 20px; color: var(--color-primary); }
.thank-you__title { font-size: 36px; margin-bottom: 16px; }
.thank-you__text { font-size: 18px; color: var(--color-text-light); margin-bottom: 30px; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.visible-mobile { display: none; }

@media (max-width: 768px) {
  .hidden-mobile { display: none !important; }
  .visible-mobile { display: block; }
}

/* ============================================================
   INNER PAGE RESPONSIVE OVERRIDES
   Uses .lt-grid-4 and .lt-grid-3 classes on grid containers
   ============================================================ */

/* Prevent horizontal overflow on all viewports */
html, body { overflow-x: hidden; }

@media (max-width: 1024px) {
  /* Container horizontal padding for tablet */
  .container,
  .page-content,
  section > div[style*="max-width"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* Footer links: bigger touch-targets on tablet */
  .footer-col__list li { margin-bottom: 6px; }
  .footer-col__list a {
    display: inline-block;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.6;
  }
  .footer-col__title a { font-size: 17px; }
}

@media (max-width: 980px) {
  .lt-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .lt-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  /* Inner page hero sections */
  section[style*="min-height:60vh"] { min-height: 40vh !important; }
  section[style*="min-height:60vh"] h1 { font-size: 28px !important; }
  /* About page grids */
  .about-services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-icons-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .about-production-cols { grid-template-columns: 1fr !important; }
  /* Products section: stack 2-col on tablet */
  section div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  /* Footer: 2-column layout on mobile */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .footer-col__list a {
    padding: 6px 0;
    font-size: 13px;
  }
  /* Product details table mobile */
  .project-details th,
  .project-details td {
    display: block;
    width: 100% !important;
    padding: 8px 12px !important;
  }
  .project-details th { border-bottom: none !important; }
}

@media (max-width: 640px) {
  .lt-grid-4 { grid-template-columns: 1fr !important; }
  .lt-grid-3 { grid-template-columns: 1fr !important; }
  section[style*="min-height:60vh"] {
    min-height: 35vh !important;
    padding: 40px 15px !important;
  }
  section[style*="min-height:60vh"] h1 {
    font-size: 22px !important;
    letter-spacing: 1px !important;
  }
  section[style*="min-height:60vh"] p {
    font-size: 12px !important;
  }
  section form[style*="display:flex"] {
    flex-direction: column !important;
  }
  section form input,
  section form button {
    width: 100% !important;
    min-width: unset !important;
  }
  .about-icons-grid { grid-template-columns: repeat(2, 1fr) !important; }
  section[style*="padding:60px"] h2,
  section[style*="padding:80px"] h2 {
    font-size: 20px !important;
  }
  /* Products section: 1-col stack on mobile */
  section div[style*="grid-template-columns: repeat(4"],
  section div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  /* Footer: single column on small mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   TILDA CSS COMPATIBILITY LAYER
   For migrated product/facade/project pages
   ============================================================ */

/* --- Base Tilda layout --- */
.t-rec { position: relative; }
.t-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.t-container_100 { width: 100%; max-width: 100%; padding: 0; }
.t-container_flex { display: flex; flex-wrap: wrap; }
.t-align_center { text-align: center; }
.t-align_left { text-align: left; }
.t-margin_auto { margin-left: auto; margin-right: auto; }
.t-col { box-sizing: border-box; }
.t-col_12 { width: 100%; }
.t-col_10 { width: 83.333%; }
.t-col_8 { width: 66.666%; }
.t-col_6 { width: 50%; }
.t-col_5 { width: 41.666%; }
.t-col_4 { width: 33.333%; }
.t-col_3 { width: 25%; }
.t-prefix_1 { margin-left: 8.333%; }

/* --- Typography --- */
.t-title { font-family: 'Opinion Pro', 'Futura PT', sans-serif; font-weight: 500; text-transform: uppercase; }
.t-title_xxl { font-size: 48px; }
.t-title_xl { font-size: 36px; }
.t-title_xs { font-size: 32px; text-transform: uppercase; }
.t-uptitle { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: #888; }
.t-uptitle_sm { font-size: 14px; }
.t-descr { font-family: 'Futura PT', sans-serif; }
.t-descr_xxl { font-size: 20px; line-height: 1.5; }
.t-descr_xl { font-size: 18px; line-height: 1.5; }
.t-descr_sm { font-size: 15px; line-height: 1.5; }
.t-descr_xs { font-size: 14px; line-height: 1.5; }
.t-name { font-family: 'Futura PT', sans-serif; font-weight: 500; }
.t-name_xl { font-size: 24px; }
.t-name_lg { font-size: 22px; }
.t-name_xs { font-size: 18px; }
.t-heading_xs { font-size: 24px; font-weight: 600; }
.t-text { font-family: 'Futura PT', sans-serif; }
.t-text_md { font-size: 16px; }
.t-text_xs { font-size: 14px; }
.t-text_weight_plus { font-weight: 600; }
.t-section__title { margin-bottom: 60px; }
.t-section__descr { max-width: 560px; }

/* --- T050: Hero title block --- */
.t050 { text-align: center; }
.t050__title { margin-bottom: 24px; }
.t050__descr { max-width: 800px; margin: 0 auto; line-height: 1.6; }
.t050__uptitle { margin-bottom: 16px; color: #888; }

/* --- T774: Card grid (product types) --- */
.t774__container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.t774__container .t-clear.t774__separator { display: none !important; }
.t774__col,
.t774__container .t-col_4,
.t774__container .t-col_3,
.t774__container .t-card__col {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.t774__wrapper {
  background-color: #eee;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.t774__wrapper:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.2); transform: translateY(-4px); }
.t774__imgwrapper {
  position: relative !important;
  padding-bottom: 66.6667% !important; /* 3:2 aspect ratio */
  overflow: hidden !important;
  width: 100% !important;
  height: 0 !important;
}
.t774__bgimg,
.t774__imgwrapper .t-bgimg,
.t774__imgwrapper .t774__bgimg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  right: 0 !important;
  bottom: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.5s;
}
.t774__wrapper:hover .t774__bgimg,
.t774__wrapper:hover .t774__imgwrapper .t-bgimg { transform: scale(1.05); }
.t774__content { flex: 0 0 auto; }
.t774__textwrapper { text-align: center; padding: 16px 12px; }
.t774__paddingsmall { padding: 8px; }
.t-card__title { font-family: 'Futura PT', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 18px; letter-spacing: 0.5px; }

@media (max-width: 960px) {
  .t774__container { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
}
@media (max-width: 600px) {
  .t774__container { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* --- T923: Project cards ("НАШІ ПРОЕКТИ") --- */
.t923 { position: relative; overflow: visible !important; }
.t923__slds-wrapper,
.t923 .t-slds__main,
.t923 .t-slds__container,
.t923 .t-slds {
  position: relative !important;
  overflow: visible !important;
  max-width: 1200px;
  margin: 0 auto;
}
.t923 .t-slds__items-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  transform: none !important;
  padding: 0 20px;
}
.t923 .t-slds__item {
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box;
  opacity: 1 !important;
  position: relative !important;
  left: auto !important;
  transform: none !important;
}
.t923__col { width: 100% !important; }
.t923__wrapper {
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s, transform 0.3s;
}
.t923__wrapper:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.2); transform: translateY(-4px); }
.t923__imgwrapper,
.t923__imgwrapper_1-1 {
  position: relative !important;
  padding-bottom: 75% !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 0 !important;
}
.t923__bgimg,
.t923__imgwrapper .t-bgimg,
.t923__imgwrapper .t923__bgimg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  right: 0 !important;
  bottom: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.5s;
}
.t923__wrapper:hover .t923__bgimg,
.t923__wrapper:hover .t923__imgwrapper .t-bgimg { transform: scale(1.05); }
.t923__content { flex: 0 0 auto; }
.t923__textwrapper { text-align: center; padding: 16px 12px; }
.t923__paddingsmall { padding: 8px; }

/* Hide slider arrows (using grid, not slider) */
.t923 .t-slds__arrow_container,
.t923 .t-slds__arrow_wrapper,
.t923 .t-slds__arrow_wrapper-left,
.t923 .t-slds__arrow_wrapper-right,
.t923 .t-slds__arrow { display: none !important; }

@media (max-width: 960px) {
  .t923 .t-slds__items-wrapper { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .t923 .t-slds__items-wrapper { grid-template-columns: 1fr !important; }
}

.single-product .page-content .lt-gallery-clickable {
  cursor: zoom-in;
}

.single-product .page-content .lt-gallery-clickable:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.single-product .page-content .lt-product-gallery-carousel .lt-product-gallery-scroller,
.single-product .page-content .rail-facade-gallery.lt-product-gallery-scroller {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) #e5e5e5;
  cursor: grab;
}

.single-product .page-content .lt-product-gallery-scroller.lt-product-gallery-scroller--dragging {
  cursor: grabbing;
  user-select: none;
}

.single-product .page-content .lt-product-gallery-carousel .lt-gallery-nav,
.single-product .page-content .rail-facade-gallery-wrap .lt-gallery-nav {
  display: none !important;
}

.single-product .page-content .lt-product-gallery-carousel .lt-product-gallery-scroller::-webkit-scrollbar,
.single-product .page-content .rail-facade-gallery.lt-product-gallery-scroller::-webkit-scrollbar {
  height: 8px;
}

.single-product .page-content .lt-product-gallery-carousel .lt-product-gallery-scroller::-webkit-scrollbar-thumb,
.single-product .page-content .rail-facade-gallery.lt-product-gallery-scroller::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--color-primary);
}

.single-product .page-content .lt-product-gallery-carousel .lt-product-gallery-scroller::-webkit-scrollbar-track,
.single-product .page-content .rail-facade-gallery.lt-product-gallery-scroller::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e5e5e5;
}

.single-product .page-content .t923.lt-product-gallery-carousel .t-slds,
.single-product .page-content .t923.lt-product-gallery-carousel .t-slds__main,
.single-product .page-content .t923.lt-product-gallery-carousel .t-slds__container {
  overflow: visible !important;
}

.single-product .page-content .t923.lt-product-gallery-carousel .t-slds__container {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 14px;
}

.single-product .page-content .t923.lt-product-gallery-carousel .t-slds__items-wrapper {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  width: 100% !important;
  min-width: 100% !important;
  padding: 0 !important;
  transform: none !important;
}

.single-product .page-content .t923.lt-product-gallery-carousel .t-slds__item {
  flex: 0 0 calc((100% - 40px) / 3) !important;
  max-width: calc((100% - 40px) / 3) !important;
  scroll-snap-align: start;
}

.single-product .page-content .t604.lt-product-gallery-carousel .t-slds,
.single-product .page-content .t604.lt-product-gallery-carousel .t-slds__main,
.single-product .page-content .t604.lt-product-gallery-carousel .t-slds__container {
  overflow: visible !important;
}

.single-product .page-content .t604.lt-product-gallery-carousel .t-slds__container {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 14px;
}

.single-product .page-content .t604.lt-product-gallery-carousel .t-slds__items-wrapper {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  width: 100% !important;
  min-width: 100% !important;
  padding: 0 !important;
  transform: none !important;
}

.single-product .page-content .t604.lt-product-gallery-carousel .t-slds__item {
  flex: 0 0 calc((100% - 40px) / 3) !important;
  max-width: calc((100% - 40px) / 3) !important;
  scroll-snap-align: start;
}

.single-product .page-content .t604.lt-product-gallery-carousel .t604__imgwrapper {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.single-product .page-content .t604.lt-product-gallery-carousel .t-slds__bullet_wrapper,
.single-product .page-content .t604.lt-product-gallery-carousel .t-slds__caption__container {
  display: none !important;
}

.single-product .page-content .rail-facade-gallery.lt-product-gallery-carousel {
  display: flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  gap: 18px;
  padding-bottom: 14px;
}

.single-product .page-content .rail-facade-gallery.lt-product-gallery-carousel img {
  flex: 0 0 calc((100% - 36px) / 3);
  max-width: calc((100% - 36px) / 3);
  scroll-snap-align: start;
}

.lt-gallery-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 0 20px;
}

.lt-gallery-nav__button,
.lt-gallery-lightbox__close,
.lt-gallery-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 32px;
  line-height: 1;
  box-shadow: var(--shadow-card);
  transition: background var(--transition), transform var(--transition);
}

.lt-gallery-nav__button:hover,
.lt-gallery-lightbox__close:hover,
.lt-gallery-lightbox__nav:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.lt-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0,0,0,0.88);
}

.lt-gallery-lightbox.open {
  display: flex;
}

.lt-gallery-lightbox__image {
  width: auto;
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.lt-gallery-lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
}

.lt-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.lt-gallery-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.lt-gallery-lightbox__nav--prev {
  left: 22px;
}

.lt-gallery-lightbox__nav--next {
  right: 22px;
}

.lt-gallery-lightbox__nav[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .single-product .page-content .t923.lt-product-gallery-carousel .t-slds__item,
  .single-product .page-content .t604.lt-product-gallery-carousel .t-slds__item,
  .single-product .page-content .rail-facade-gallery.lt-product-gallery-carousel img {
    flex-basis: calc((100% - 20px) / 2) !important;
    max-width: calc((100% - 20px) / 2) !important;
  }
}

@media (max-width: 640px) {
  .single-product .page-content .t923.lt-product-gallery-carousel .t-slds__item,
  .single-product .page-content .t604.lt-product-gallery-carousel .t-slds__item,
  .single-product .page-content .rail-facade-gallery.lt-product-gallery-carousel img {
    flex-basis: 86% !important;
    max-width: 86% !important;
  }

  .lt-gallery-lightbox {
    padding: 18px;
  }

  .lt-gallery-lightbox__close {
    top: 14px;
    right: 14px;
  }

  .lt-gallery-lightbox__nav--prev {
    left: 12px;
  }

  .lt-gallery-lightbox__nav--next {
    right: 12px;
  }
}

/* --- T549: Process steps (Проектування → Виробництво → Монтаж) --- */
.t549 .t-container { display: flex; justify-content: center; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.t549__col { width: auto !important; flex: 1; min-width: 200px; max-width: 300px; text-align: center; position: relative; }
.t549__imgwrapper { margin-bottom: 20px; position: relative; }
.t549__bgimg { width: 80px; height: 80px; background-size: contain; background-repeat: no-repeat; background-position: center; margin: 0 auto; }
.t549__arrow { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); }
.t549__textwrapper { margin-top: 12px; }
.t549__title { font-size: 20px !important; font-weight: 600; margin-bottom: 8px; }
.t549__text { font-size: 16px !important; opacity: 0.85; }

/* Keep process-step text readable on product pages with dark/maroon background */
.single-product .t549 .t549__title,
.single-product .t549 .t549__text,
.single-product .t549 .t-descr {
  color: #fff !important;
}
.single-product .t549 .t549__text {
  opacity: 1;
}

@media (max-width: 768px) {
  .t549 .t-container { flex-direction: column; align-items: center; }
  .t549__col { max-width: 100%; }
  .t549__arrow { display: none; }
}

/* --- T920: Benefits/Advantages list --- */
.t920__container { list-style: none; padding: 0; max-width: 1200px; margin: 0 auto; }
.t920__row { display: flex; margin-bottom: 40px; padding: 0; }
.t920__col { padding: 0 20px; }
.t920__offset { display: block; }
.t920__itemwrapper { position: relative; }
.t920__wrapper { position: relative; padding: 20px 0; }
.t920__title { font-size: 22px; font-weight: 600; margin-bottom: 12px; font-family: 'Opinion Pro', 'Futura PT', sans-serif; }
.t920__descr { font-size: 16px; line-height: 1.6; color: #555; font-family: 'Futura PT', sans-serif; }
.t920__symbol { font-size: 72px; font-weight: 700; color: #ccc; opacity: 0.3; position: absolute; top: -20px; right: 0; font-family: 'Opinion Pro', sans-serif; z-index: -1; }
.t920__bottommargin_sm { margin-bottom: 12px; }

@media (max-width: 960px) {
  .t920__row { flex-direction: column; }
  .t920__col { width: 100% !important; }
  .t920__offset { display: none; }
  .t920__symbol { font-size: 48px; }
}

/* --- T509: Alternating image+text blocks --- */
.t509 .t-container { max-width: 1200px; margin: 0 auto; }
.t509__colwrapper { width: 83.333% !important; margin-left: 8.333% !important; }
.t509 .t-card__container { list-style: none; padding: 0; }
.t509__row { display: flex !important; align-items: center; margin-bottom: 40px; gap: 30px; }
.t509__col { padding: 0 15px; }
.t509__blockimg { width: 100%; height: 280px; background-size: cover; background-position: center; border-radius: 5px; }
.t509__textwrapper { padding: 20px 0; }
.t509__content { display: flex; align-items: center; min-height: 200px; }
.t509__box { width: 100%; }
.t509__mobileimg { display: none !important; }
.t509__desktopimg { display: block !important; }
.t509__leftcol { order: 1; }
.t509__rightcol { order: 2; }
.t509 .t-card__descr { font-size: 16px; line-height: 1.5; color: #555; }

@media (max-width: 768px) {
  .t509__row { flex-direction: column !important; }
  .t509__col { width: 100% !important; padding: 0; }
  .t509__mobileimg { display: block !important; }
  .t509__desktopimg { display: none !important; }
  .t509__colwrapper { width: 100% !important; margin-left: 0 !important; }
  .t509__blockimg { height: 200px; }
}

/* --- T372: Quote/highlight text --- */
.t372 .t-container { max-width: 1200px; margin: 0 auto; }
.t372 .t-divider { margin-bottom: 20px; }
.t372__text { font-size: 20px; line-height: 1.5; font-family: 'Opinion Pro', 'Futura PT', sans-serif; }

/* --- T690: Contact form block --- */
.t690 .t-container { max-width: 1200px; margin: 0 auto; }
.t690 .t-form__inputsbox_horizontal { display: flex; gap: 12px; flex-wrap: wrap; }
.t690 .t-input-group { flex: 1; min-width: 200px; }
.t690 .t-input { width: 100%; padding: 14px 16px; border: 1px solid #000; border-radius: 5px; background: #eee; font-size: 16px; font-family: 'Futura PT', sans-serif; }
.t690 .t-input:focus { outline: none; border-color: var(--color-primary); }
.t690 .t-form__submit { flex-shrink: 0; }
.t690 .t-submit { display: inline-flex; align-items: center; justify-content: center; padding: 14px 40px; font-size: 16px; font-weight: 600; color: #fff; background: var(--color-primary); border: none; border-radius: 5px; cursor: pointer; transition: background 0.3s; font-family: 'Futura PT', sans-serif; }
.t690 .t-submit:hover { background: var(--color-primary-hover); }

@media (max-width: 768px) {
  .t690 .t-form__inputsbox_horizontal { flex-direction: column; }
}

/* --- Gallery blocks (T552, etc) --- */
.t-slds__container { position: relative; overflow: hidden; }
.t-slds__items-wrapper { display: flex; }
.t-slds__item { flex-shrink: 0; width: 100%; }

/* --- T123/T131: Map embed --- */
.t123 iframe { width: 100%; min-height: 400px; border: 0; }

/* --- Image gallery grids --- */
.t492 .t-container { max-width: 1200px; margin: 0 auto; }
.t492__wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.t492__blockimg { width: 100%; height: 250px; background-size: cover; background-position: center; border-radius: 3px; cursor: pointer; transition: opacity 0.3s; }
.t492__blockimg:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .t492__wrapper { grid-template-columns: repeat(2, 1fr); }
  .t492__blockimg { height: 180px; }
}

/* --- General image handling --- */
.t-bgimg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.t-width { max-width: 1200px; margin: 0 auto; }
.t-width_100 { max-width: 100%; }
.t-width_6 { max-width: 600px; }
.t-valign_middle { display: flex; align-items: center; }

/* --- Page content images (fix broken layout) --- */
.page-content .t-rec { margin-bottom: 0; }
.page-content .t-rec img { max-width: 100%; height: auto; }

/* --- List items with check icons --- */
.page-content ul { list-style: none; padding-left: 0; }
.page-content ul li { padding: 4px 0; }

/* --- T552: Image slider for projects/chronicles --- */
.t552 { position: relative; overflow: hidden; }
.t552__container { max-width: 1200px; margin: 0 auto; }
.t552__wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px; }

/* --- Responsive text --- */
@media (max-width: 768px) {
  .t-title_xxl { font-size: 28px; }
  .t-title_xl { font-size: 24px; }
  .t-title_xs { font-size: 22px; }
  .t-descr_xxl { font-size: 16px; }
  .t-name_xl { font-size: 18px; }
  .t-col_10, .t-col_6, .t-col_5, .t-col_4, .t-col_3 { width: 100%; }
  .t-prefix_1 { margin-left: 0; }
  .t-section__title { margin-bottom: 30px; }
}

/* ==============================================================
   TILDA GRID & TYPOGRAPHY (imported content compatibility)
   ============================================================== */

/* --- Basic Grid --- */
.t-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.t-container_flex { display: flex; flex-wrap: wrap; }
.t-col { box-sizing: border-box; padding: 0 15px; }
.t-col_12 { width: 100%; }
.t-col_10 { width: 83.333%; }
.t-col_8 { width: 66.666%; }
.t-col_6 { width: 50%; }
.t-col_5 { width: 41.666%; }
.t-col_4 { width: 33.333%; }
.t-col_3 { width: 25%; }
.t-prefix_1 { margin-left: 8.333%; }
.t-align_center { text-align: center; }
.t-margin_auto { margin-left: auto; margin-right: auto; }
.t-valign_top { vertical-align: top; }
.t-clear { clear: both; }

/* --- Typography --- */
.t-title { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #333; line-height: 1.25; }
.t-title_xxl { font-size: 52px; }
.t-title_xl { font-size: 44px; }
.t-title_lg { font-size: 36px; }
.t-title_md { font-size: 30px; }
.t-title_xs { font-size: 28px; }
.t-title_xxs { font-size: 22px; }

.t-name { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #333; line-height: 1.35; }
.t-name_xl { font-size: 24px; }
.t-name_lg { font-size: 20px; }
.t-name_md { font-size: 18px; }
.t-name_sm { font-size: 16px; }
.t-name_xs { font-size: 14px; }

.t-descr { font-family: 'Montserrat', sans-serif; color: #555; line-height: 1.55; }
.t-descr_xxl { font-size: 22px; }
.t-descr_xl { font-size: 20px; }
.t-descr_lg { font-size: 18px; }
.t-descr_md { font-size: 16px; }
.t-descr_sm { font-size: 15px; }
.t-descr_xs { font-size: 14px; }

.t-text { font-family: 'Montserrat', sans-serif; line-height: 1.55; color: #333; }
.t-text_md { font-size: 16px; }

.t-section__title { text-align: center; }

/* --- T820: Advantages/Features List (check icons + text) --- */
.t820__container { 
  display: flex !important; 
  flex-wrap: wrap !important; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; 
  list-style: none !important;
}
.t820__container > li,
.t820__container > .t-item {
  display: flex !important;
  align-items: flex-start;
  padding: 15px 20px;
  box-sizing: border-box;
  width: 50% !important;
}
.t820__container .t-cell { display: inline-block; vertical-align: top; }
.t820__bgimg {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  margin-right: 15px;
  margin-top: 3px;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 50%;
}
.t820__textwrapper { flex: 1; }
.t820__textwrapper .t-name { margin-bottom: 10px; font-size: 18px; font-weight: 700; }
.t820__textwrapper .t-descr { font-size: 15px; line-height: 1.6; color: #555; }

/* --- T500: Feature grid with center image (glass types) --- */
.t500__container {
  display: flex;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  align-items: center;
}
.t500__container > .t-cell {
  display: block;
  box-sizing: border-box;
}
.t500__cell_25 { 
  width: 25%; 
  padding: 0 20px; 
  text-align: center;
}
.t500__cell_50 { 
  width: 50%; 
  padding: 0 20px; 
  text-align: center;
}
.t500__cell_25 .t-name { 
  font-size: 18px; 
  font-weight: 700; 
  margin-bottom: 8px; 
}
.t500__cell_25 .t-descr { 
  font-size: 14px; 
  line-height: 1.5; 
  color: #666;
}
.t500__item { margin-bottom: 25px; }
.t500__item_padding-top { margin-top: 10px; }
.t500__img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
  margin: 0 auto; 
}

/* --- T-record sections --- */
.t-rec { padding: 40px 0; }
.t-rec_pt_0 { padding-top: 0; }
.t-rec_pb_0 { padding-bottom: 0; }

/* --- UL list style reset for Tilda lists --- */
.page-content ul.t820__container { 
  list-style: none; 
  padding-left: 0; 
  margin: 0;
}
.page-content ul.t820__container li { padding: 15px 20px; }

/* --- Responsive Tilda grid --- */
@media (max-width: 960px) {
  .t-col_6, .t-col_5, .t-col_4, .t-col_3 { width: 100%; }
  .t-prefix_1 { margin-left: 0; }
  .t820__container > li,
  .t820__container > .t-item { width: 100%; }
  .t500__container { flex-wrap: wrap; }
  .t500__cell_25, .t500__cell_50 { width: 100%; }
  .t500__cell_50 { order: -1; margin-bottom: 30px; }
  .t-title_xxl { font-size: 32px; }
  .t-title_xl { font-size: 28px; }
  .t-title_xs { font-size: 24px; }
  .t-name_lg { font-size: 18px; }
}

/* ============================================================
   GLOBAL MOBILE CONTACT FORM NORMALIZATION
   Covers all inline-migrated forms across pages/products/projects
   ============================================================ */
@media (max-width: 900px) {
  form.js-contact-form,
  .contact-form.js-contact-form,
  .chronicle-cta__form,
  .t-form.js-contact-form,
  .ch-contact form {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  form.js-contact-form .contact-form__row,
  .ch-contact form .contact-form__row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: 100% !important;
  }

  form.js-contact-form .contact-form__field,
  form.js-contact-form .contact-form__submit,
  form.js-contact-form .t-form__submit,
  form.js-contact-form .t-input-group,
  form.js-contact-form .t-input-block,
  form.js-contact-form > .t-input-group,
  form.js-contact-form > .contact-form__field,
  form.js-contact-form > .contact-form__submit,
  form.js-contact-form > input:not([type="hidden"]),
  form.js-contact-form > textarea,
  form.js-contact-form > button[type="submit"],
  .ch-contact form .contact-form__field,
  .ch-contact form .contact-form__submit,
  .ch-contact form > input:not([type="hidden"]),
  .ch-contact form > textarea,
  .ch-contact form > button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
  }

  form.js-contact-form input:not([type="hidden"]):not([type="checkbox"]),
  form.js-contact-form textarea,
  form.js-contact-form button[type="submit"],
  form.js-contact-form .btn-cta,
  form.js-contact-form .t-submit,
  .ch-contact form input:not([type="hidden"]):not([type="checkbox"]),
  .ch-contact form textarea,
  .ch-contact form button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  form.js-contact-form label[style*="flex-basis:100%"],
  form.js-contact-form .contact-form__consent,
  form.js-contact-form > label[style*="display:flex"],
  .ch-contact form label[style*="flex-basis:100%"],
  .ch-contact form .contact-form__consent,
  .ch-contact form > label[style*="display:flex"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    display: grid !important;
    grid-template-columns: 16px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    line-height: 1.45 !important;
    margin-top: 4px !important;
  }

  form.js-contact-form label[style*="flex-basis:100%"] input[type="checkbox"],
  form.js-contact-form .contact-form__consent input[type="checkbox"],
  form.js-contact-form > label[style*="display:flex"] input[type="checkbox"],
  .ch-contact form label[style*="flex-basis:100%"] input[type="checkbox"],
  .ch-contact form .contact-form__consent input[type="checkbox"],
  .ch-contact form > label[style*="display:flex"] input[type="checkbox"] {
    grid-column: 1 !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  form.js-contact-form label[style*="flex-basis:100%"] span,
  form.js-contact-form .contact-form__consent label,
  form.js-contact-form .contact-form__consent span,
  form.js-contact-form > label[style*="display:flex"] span,
  .ch-contact form label[style*="flex-basis:100%"] span,
  .ch-contact form .contact-form__consent label,
  .ch-contact form .contact-form__consent span,
  .ch-contact form > label[style*="display:flex"] span {
    grid-column: 2 !important;
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  form.js-contact-form .contact-form__consent label,
  .ch-contact form .contact-form__consent label {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ============================================================
   Blog
   ============================================================ */
.blog-hero {
  margin-top: 0;
  padding: 72px 0 58px;
  background: var(--color-gray-bg, #f3f3f3);
  text-align: center;
}

.blog-hero__title {
  margin: 0;
  color: #252525;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
}

.blog-hero__title::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  margin: 24px auto 0;
  background: var(--color-primary, #b0003a);
}

.blog-page {
  padding: 72px 0 86px;
  background: #fff;
}

.blog-index-page {
  padding-top: 72px !important;
  padding-bottom: 92px !important;
}

.blog-title-band {
  margin-top: 100px;
  padding: 60px 0;
  background: var(--color-gray-bg, #f3f3f3);
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
  gap: 28px;
  justify-content: start;
}

.blog-card {
  display: flex;
  min-width: 0;
  max-width: 360px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.blog-card__image {
  display: grid;
  min-height: 190px;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: #f4f4f4;
  color: #fff;
  text-decoration: none;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.03);
}

.blog-card__placeholder {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0;
}

.blog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.blog-card__date,
.blog-single__date {
  color: var(--color-primary, #b0003a);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.blog-card__title {
  margin: 0;
  color: #1f1f1f;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--color-primary, #b0003a);
}

.blog-card__excerpt {
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.blog-card__excerpt p {
  margin: 0;
}

.blog-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-card__more,
.blog-single__back {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  color: var(--color-primary, #b0003a);
  font-weight: 700;
  text-decoration: none;
}

.blog-card__more:hover,
.blog-single__back:hover {
  text-decoration: underline;
}

.blog-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 42px 28px;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  text-align: center;
}

.blog-empty h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

.blog-empty p {
  margin: 0;
  color: #555;
  font-size: 17px;
  line-height: 1.6;
}

.blog-single {
  padding: 72px 0 92px;
  background: #fff;
}

.single-post .blog-single {
  padding-top: 184px;
}

.blog-single__inner {
  max-width: 920px;
}

.blog-single__header {
  margin: 22px 0 32px;
}

.blog-single__title {
  margin: 10px 0 0;
  color: #202020;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
}

.blog-single__image {
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 6px;
}

.blog-single__image img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-single__content {
  padding: 0;
}

.postid-312 .blog-single__content {
  padding-top: 0;
}

.postid-312 .blog-single__content .lt-ubc-article {
  color: #202020;
  font-size: 16px;
  line-height: 1.65;
}

.postid-312 .blog-single__content .lt-ubc-article p {
  margin: 0 0 18px;
}

.postid-312 .blog-single__content .lt-ubc-lead {
  margin: 0 0 30px;
}

.postid-312 .blog-single__content .lt-ubc-lead p:first-child {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.58;
}

.postid-312 .blog-single__content .lt-ubc-event-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
  padding: 22px;
  border: 1px solid #e8e8e8;
  border-left: 5px solid var(--color-primary, #b0003a);
  border-radius: 6px;
  background: #f4f4f4;
}

.postid-312 .blog-single__content .lt-ubc-event-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary, #b0003a);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.postid-312 .blog-single__content .lt-ubc-event-card span {
  display: block;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.postid-312 .blog-single__content .lt-ubc-article h2 {
  margin: 34px 0 14px;
  color: #202020;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.postid-312 .blog-single__content .lt-ubc-directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.postid-312 .blog-single__content .lt-ubc-directions li {
  position: relative;
  padding: 0 0 0 25px;
  color: #333;
  font-weight: 700;
}

.postid-312 .blog-single__content .lt-ubc-directions li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary, #b0003a);
}

.postid-312 .blog-single__content .lt-ubc-poster-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 34px 0;
}

.postid-312 .blog-single__content .lt-ubc-poster-row figure {
  margin: 0;
}

.postid-312 .blog-single__content .lt-ubc-poster-row img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

.postid-312 .blog-single__content .lt-ubc-cta {
  margin: 34px 0 0;
  padding: 26px 30px;
  border-radius: 6px;
  background: #090909;
  color: #fff;
}

.postid-312 .blog-single__content .lt-ubc-cta strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 23px;
  line-height: 1.25;
}

.postid-312 .blog-single__content .lt-ubc-cta p {
  margin: 0;
  color: #f2f2f2;
  font-size: 17px;
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 48px 0 42px;
  }

  .blog-hero__title {
    font-size: 32px;
  }

  .blog-page,
  .blog-single {
    padding: 48px 0 64px;
  }

  .single-post .blog-single {
    padding-top: 132px;
  }

  .blog-index-page {
    padding-top: 48px !important;
    padding-bottom: 64px !important;
  }

  .blog-title-band {
    margin-top: 86px;
    padding: 44px 0;
  }

  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .blog-card {
    max-width: none;
  }

  .blog-card__body {
    padding: 20px;
  }

  .blog-card__title {
    font-size: 22px;
  }

  .blog-single__title {
    font-size: 32px;
  }

  .postid-312 .blog-single__content .lt-ubc-event-card,
  .postid-312 .blog-single__content .lt-ubc-directions,
  .postid-312 .blog-single__content .lt-ubc-poster-row {
    grid-template-columns: 1fr;
  }

  .postid-312 .blog-single__content .lt-ubc-lead p:first-child {
    font-size: 18px;
  }
}
