/*
Theme Name: Tetratex Group
Theme URI: https://tetratex.uz
Description: Corporate theme for Tetratex Group textile holding
Author: Tetratex Dev
Version: 1.0.1
Text Domain: tetratex
*/

/* ===== VARIABLES ===== */
:root {
  --color-primary: #2d2d2d;
  --color-primary-light: #444444;
  --color-accent: #4dba80;
  --color-accent-hover: #3da96e;
  --color-accent-light: #7ec49f;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-bg-light: #f5f7f6;
  --color-bg-dark: #1e1e1e;
  --color-telegram: #0088cc;
  --color-telegram-hover: #0077b3;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

body.o-hidden {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  height: var(--header-height);
  transition: background var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-icon {
  height: 36px;
  width: auto;
}

.site-header__logo-text {
  color: #000000;
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__navbar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header__navbar li {
  position: relative;
}

.header__navbar li a {
  display: block;
  padding: 10px 5px;
  color: var(--color-accent);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color var(--transition);
}

.header__navbar li a:hover {
  color: var(--color-accent);
}

/* Dropdown */
.header__navbar li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--color-white);
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 101;
}

.header__navbar li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__navbar li .sub-menu li a {
  padding: 12px 20px;
  font-size: 13px;
  text-transform: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--color-text);
}

.header__navbar li .sub-menu li:last-child a {
  border-bottom: none;
}

.header__navbar li .sub-menu li a:hover {
  background: var(--color-bg-light);
  color: var(--color-accent);
}

/* Social icons in header */
.header__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__social a {
  color: var(--color-accent);
  font-size: 18px;
  transition: color var(--transition);
}

.header__social a:hover {
  color: var(--color-accent);
}

/* Language switcher (dropdown) */
.lang-switcher {
  position: relative;
  margin-left: 15px;
}

.lang-switcher__current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-primary);
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.lang-switcher__current:hover {
  background: rgba(255,255,255,0.1);
}

.lang-switcher__arrow {
  font-size: 10px;
  transition: transform var(--transition);
}

.lang-switcher:hover .lang-switcher__arrow {
  transform: rotate(180deg);
}

.lang-switcher__flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.lang-switcher__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 130px;
  background: var(--color-white);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 200;
}

.lang-switcher:hover .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-primary);
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition);
}

.lang-switcher__item:hover {
  background: var(--color-bg-light);
  color: var(--color-accent);
}

/* Hamburger */
.header__close {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 102;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform-origin: center;
  transition: all var(--transition);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== HERO VIDEO SECTION ===== */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Background slides */
.hero-video__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.hero-video__bg--active {
  opacity: 1;
}

.hero-video__bg img,
.hero-video__bg video,
.hero-video__bg iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Company cards inside hero */
.hero-companies {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
}

.hero-companies .company-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(5px);
  border-radius: 0;
  border-right: 1px solid rgba(0,0,0,0.06);
  box-shadow: none;
  padding: 25px 20px;
}

.hero-companies .company-card:first-child {
  border-radius: 8px 0 0 0;
}

.hero-companies .company-card:last-child {
  border-right: none;
  border-radius: 0 8px 0 0;
}

.hero-companies .company-card:hover {
  background: rgba(255,255,255,1);
  transform: none;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .hero-companies {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    display: flex;
    width: 100%;
    gap: 0;
    padding: 0;
  }

  .hero-companies .company-card {
    flex: 1;
    min-width: 0;
    border-right: 1px solid rgba(0,0,0,0.06);
    border-bottom: none;
    border-radius: 0 !important;
    padding: 15px 10px;
  }

  .hero-companies .company-card:first-child { border-radius: 0 !important; }
  .hero-companies .company-card:last-child { border-right: none; border-radius: 0 !important; }

  .hero-companies .company-card__icon { width: 36px; height: 36px; font-size: 20px; }
  .hero-companies .company-card__icon img { width: 36px; height: 36px; }
  .hero-companies .company-card__title { font-size: 10px; }
}

.hero-video__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-video__pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKLW/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIvPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+jADjGAAAABdJREFUeNpi+P//PwMDAwMTAxIABBgAGKQD/QkFxQYAAAAASUVORK5CYII=');
  z-index: 2;
  opacity: 0.3;
}

.hero-video__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  color: var(--color-white);
}

.hero-video__title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-video__logo {
  max-width: 400px;
  height: auto;
  margin-bottom: 25px;
}

.hero-video__subtitle {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* ===== OWL CAROUSEL SECTION ===== */
.section-carousel {
  padding: 60px 0;
  background: var(--color-white);
}

.section-carousel .owl-item img {
  width: 100%;
  height: auto;
}

/* ===== COMPANIES CARDS ===== */
.section-companies {
  display: none;
}

.section-companies__title {
  display: none;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.company-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-white);
  padding: 30px 15px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transition: all var(--transition);
  border-right: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.company-card:last-child {
  border-right: none;
}

.company-card:first-child {
  border-radius: 8px 0 0 8px;
}

.company-card:last-child {
  border-radius: 0 8px 8px 0;
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  z-index: 2;
  border-radius: 8px;
  color: var(--color-accent);
}

.company-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 28px;
}

.company-card__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.company-card__title {
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  margin: 0;
}

.company-card__arrow {
  font-size: 12px;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.company-card:hover .company-card__arrow {
  opacity: 1;
}

.company-card__link {
  display: inline-block;
  padding: 10px 25px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: background var(--transition);
}

.company-card__link:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ===== ABOUT SECTION ===== */
.section-about {
  padding: 80px 0;
  background: var(--color-white);
}

.section-about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-about__title {
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 25px;
  text-transform: uppercase;
}

.section-about__text {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.section-about__actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-light);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--accent:hover {
  background: var(--color-accent-hover);
}

.btn--submit {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 16px;
  padding: 14px 40px;
}

.btn--submit:hover {
  background: var(--color-accent-hover);
}

/* Video block in about */
.section-about__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.section-about__media video {
  width: 100%;
  display: block;
}

.section-about__media img {
  width: 100%;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}

.video-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent var(--color-primary);
  margin-left: 4px;
}

.video-play-btn:hover {
  background: var(--color-white);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ===== EXPORT MAP ===== */
.section-export {
  position: relative;
  background: var(--color-accent-light);
  color: var(--color-white);
  overflow: hidden;
  height: 580px;
}

/* Map: top layer, fully interactive */
.export-map {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  width: 1014px;
  height: 580px;
  z-index: 20;
}

.export-map__image {
  width: 1014px;
  height: 580px;
  display: block;
}

.export-map__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1014px;
  height: 580px;
  pointer-events: none;
  z-index: 21;
}

/* Gradients: visual only, never blocks clicks */
.export-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--color-accent-light) 30%, transparent 45%),
    linear-gradient(to left, var(--color-accent-light) 20%, transparent 25%);
}

/* Content container: fixed width, centered, passthrough clicks */
.export-container {
  position: relative;
  z-index: 40;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  pointer-events: none;
}

/* Text: inside container, left side, re-enable clicks on text */
.export-text {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  max-width: 280px;
  pointer-events: auto;
}

.export-text__company {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 15px;
}

.export-text__desc {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.85;
}

.map-point {
  position: absolute;
  width: 14px;
  height: 14px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 25;
  transform: translate(-50%, -50%);
}

.map-point:hover {
  transform: translate(-50%, -50%) scale(1.4);
  background: rgba(255,255,255,0.3);
  border-color: var(--color-white);
}

.map-point--base {
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  animation: pulse-point 2s infinite;
  z-index: 26;
}

.map-point--base:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

@keyframes pulse-point {
  0% { box-shadow: 0 0 0 0 rgba(77, 186, 128, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(77, 186, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 186, 128, 0); }
}

@media (max-width: 768px) {
  .section-export {
    height: auto;
  }

  .export-gradient {
    display: none;
  }

  .export-container {
    position: relative;
    z-index: 40;
    height: auto;
    pointer-events: none;
  }

  .export-text {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 30px 20px;
    max-width: 100%;
    text-align: center;
    pointer-events: auto;
  }

  .export-map {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: 0;
    padding-bottom: 57.2%; /* 580/1014 aspect ratio */
  }

  .export-map__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .export-map__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.map-tooltip {
  position: absolute;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 35;
  white-space: nowrap;
}

.map-tooltip.active {
  opacity: 1;
}

/* ===== STATISTICS ===== */
.section-stats {
  padding: 80px 0;
  background: var(--color-white);
  color: var(--color-text);
}

.section-stats__title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item__icon {
  font-size: 28px;
  color: var(--color-accent);
  margin-bottom: 10px;
  display: block;
}
.stat-item__icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.stat-item__number {
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin-bottom: 10px;
}

.stat-item__label {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.4;
}

/* ===== FEEDBACK FORM ===== */
.section-feedback {
  padding: 80px 0;
  background: var(--color-white);
}

.section-feedback__title {
  text-align: center;
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.section-feedback__desc {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 40px;
  font-size: 15px;
}

.feedback-form {
  max-width: 600px;
  margin: 0 auto;
}

.feedback-form .form-group {
  margin-bottom: 22px;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-secondary);
  font-size: 15px;
  transition: border-color var(--transition);
  background: var(--color-white);
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.feedback-form textarea {
  height: 120px;
  resize: vertical;
}

.feedback-form .btn {
  width: 100%;
  justify-content: center;
}

/* ===== CONTACT FORM 7 STYLES ===== */
.wpcf7-form {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-form p {
  margin-bottom: 22px;
}

.wpcf7-form br {
  display: block;
  margin-bottom: 6px;
  content: "";
}

.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 16px;
}

.wpcf7-form-control:not([type="hidden"]):not([type="submit"]) {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-secondary);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-white);
  box-sizing: border-box;
}

.wpcf7-form-control:not([type="hidden"]):not([type="submit"]):focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 186, 128, 0.15);
}

.wpcf7-form-control.wpcf7-textarea {
  height: 120px;
  resize: vertical;
}

.wpcf7-form-control.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 40px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}

.wpcf7-form-control.wpcf7-submit:hover {
  background: var(--color-accent-hover);
}

.wpcf7-form .wpcf7-response-output {
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 14px;
  margin: 15px 0 0;
}

.wpcf7-form .wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 5px;
}

.wpcf7-form .wpcf7-spinner {
  margin: 10px auto;
  display: block;
}

.wpcf7-form-control.wpcf7-submit {
  margin-top: 8px;
}

/* Contact page form */
.contact-form-wrap .wpcf7-form {
  max-width: 100%;
}

/* ===== SEARCH FORM STYLES ===== */
.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-form .form-group {
  display: flex;
  gap: 10px;
}

.search-form input[type="search"],
.search-field {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-secondary);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-white);
  flex: 1;
}

.search-form input[type="search"]:focus,
.search-field:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 186, 128, 0.15);
}

/* Also style fallback forms consistently */
.feedback-form input,
.feedback-form textarea {
  border-radius: 6px;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 186, 128, 0.15);
}

/* ===== PARTNERS ===== */
.section-partners {
  padding: 80px 0;
  background: var(--color-white);
}

.section-partners__title {
  text-align: center;
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 50px;
  text-transform: uppercase;
}

.partners-carousel .partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.partners-carousel .partner-item img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all var(--transition);
  margin: 0 auto;
}

.partners-carousel .partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-name {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-light);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity var(--transition);
}

.partner-name:hover {
  opacity: 1;
}

/* ===== TELEGRAM BUTTON ===== */
.telegram-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--color-telegram);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: bounce 2s infinite;
  transition: background var(--transition);
}

.telegram-float:hover {
  background: var(--color-telegram-hover);
}

.telegram-float svg {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo-img {
  height: 50px;
  width: auto;
  margin-bottom: 15px;
}

.footer__desc {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}

.footer__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-family: var(--font-primary);
}

.footer__menu li {
  margin-bottom: 10px;
}

.footer__menu li a {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer__menu li a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer__contact p {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.footer__contact a {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  color: var(--color-white);
}

.footer__social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

/* ===== PAGE TEMPLATES ===== */
.page-header {
  background: var(--color-accent);
  padding: 120px 0 60px;
  text-align: center;
  color: var(--color-white);
  position: relative;
}

.page-header--has-bg {
  padding: 140px 0 80px;
}

.page-header--has-bg .container {
  position: relative;
  z-index: 2;
}

.page-header__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.page-header__title {
  font-size: 42px;
  text-transform: uppercase;
}

.page-content {
  padding: 60px 0;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* All media full width */
.page-content img,
.company-page__content img,
.section-about__media img,
.wp-block-image img,
.wp-block-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.page-content iframe,
.company-page__content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

.page-content video,
.company-page__content video {
  width: 100%;
  height: auto;
  display: block;
}

/* Production sections */
.production-section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.production-section:last-child {
  border-bottom: none;
}

.production-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.production-section:nth-child(even) .container {
  direction: rtl;
}

.production-section:nth-child(even) .container > * {
  direction: ltr;
}

.production-section__title {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.production-section__text {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 15px;
  line-height: 1.7;
}

.production-section__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.production-meta-item {
  background: var(--color-bg-light);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.production-section__image {
  border-radius: 8px;
  overflow: hidden;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.product-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card__image {
  height: 200px;
  background: var(--color-bg-light);
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 25px;
}

.product-card__title {
  font-size: 18px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.event-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: all var(--transition);
}

.event-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.event-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 8px;
}
.event-card:hover .event-card__title {
  color: var(--color-accent);
}

.event-card__image {
  height: 220px;
  overflow: hidden;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__body {
  padding: 20px;
}

.event-card__date {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 5px;
}

.event-card__location {
  font-size: 14px;
  color: var(--color-text-light);
}

/* Leadership table */
.leadership-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.leadership-table th,
.leadership-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.leadership-table th {
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 14px;
  text-transform: uppercase;
}

.leadership-table td {
  font-size: 15px;
}

.leadership-table tr:hover td {
  background: var(--color-bg-light);
}

/* Certificates */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 40px 0;
}

.certificate-card {
  text-align: center;
}

.certificate-card__image {
  margin-bottom: 20px;
}

.certificate-card__title {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.certificate-card__desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Contact page */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 40px 0;
}

.contact-info__item {
  margin-bottom: 25px;
}

.contact-info__label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.contact-info__value {
  font-size: 15px;
  color: var(--color-text-light);
}

.contact-info__value a {
  color: var(--color-primary);
}

.contact-info__value a:hover {
  color: var(--color-accent);
}

.contact-map {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ===== ABOUT PAGE - TIMELINE ===== */
.about-page {
  padding: 60px 0;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.about-intro h2 {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.about-intro p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.about-timeline__title {
  font-size: 32px;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 10px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -43px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-accent);
}

.timeline__year {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.timeline__content h3 {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline__content p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== MISSION PAGE ===== */
.mission-page {
  padding: 60px 0;
}

.mission-block {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #eee;
}

.mission-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mission-block__icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 28px;
}

.mission-block__content h2 {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.mission-block__content p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.value-item {
  background: var(--color-bg-light);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  transition: all var(--transition);
}

.value-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.value-item__icon {
  font-size: 32px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.value-item h4 {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ===== CERTIFICATES PAGE ===== */
.section-inner-title {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 30px;
  text-transform: uppercase;
}

.certificate-card__badge {
  margin-bottom: 20px;
}

.cert-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cert-logo-item {
  background: var(--color-bg-light);
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
}

.cert-logo-item__icon {
  margin-bottom: 12px;
}

.cert-logo-item span {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.award-block {
  display: flex;
  gap: 30px;
  align-items: center;
  background: var(--color-bg-light);
  padding: 40px;
  border-radius: 8px;
  border-left: 5px solid var(--color-accent);
}

.award-block__content h3 {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.award-block__content p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== MANUFACTURE PAGE ===== */
.manufacture-intro {
  padding: 40px 0;
  background: var(--color-bg-light);
}

.manufacture-intro__text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.production-section--alt {
  background: var(--color-bg-light);
}

.production-section__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.production-placeholder {
  height: 300px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 64px;
}

.production-meta-item i {
  margin-right: 6px;
}

/* ===== PRODUCTS PAGE ===== */
.product-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-accent);
  font-size: 48px;
}

/* ===== COMPANY PAGE ===== */
.company-page__content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

.company-page__content h2 {
  font-size: 28px;
  color: var(--color-primary);
  margin: 30px 0 15px;
}

.company-page__content h3 {
  font-size: 22px;
  color: var(--color-primary);
  margin: 25px 0 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .section-about .container {
    grid-template-columns: 1fr;
  }

  .production-section .container {
    grid-template-columns: 1fr;
  }

  .production-section:nth-child(even) .container {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 65px;
  }

  .hamburger {
    display: flex;
  }

  .mission-block {
    flex-direction: column;
  }

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

  .cert-logos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .award-block {
    flex-direction: column;
    text-align: center;
  }

  .timeline {
    padding-left: 40px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline__item::before {
    left: -38px;
  }

  .site-header__nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    gap: 0;
    transition: right var(--transition);
    z-index: 101;
    overflow-y: auto;
  }

  .site-header__nav.open {
    right: 0;
  }

  .header__navbar {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .header__navbar li a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    width: 100%;
  }

  .header__navbar li .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    padding-left: 15px;
    box-shadow: none;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: 20px;
  }

  .header__social {
    margin-top: 20px;
  }

  .header__close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: var(--color-text);
    font-size: 24px;
  }

  .hero-video__title {
    font-size: 32px;
  }

  .hero-video__logo {
    max-width: 260px;
  }

  .hero-video__subtitle {
    font-size: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-item__number {
    font-size: 36px;
  }

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

  .company-card {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-radius: 0 !important;
  }

  .company-card:first-child {
    border-radius: 8px 8px 0 0 !important;
  }

  .company-card:last-child {
    border-radius: 0 0 8px 8px !important;
    border-bottom: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-about__actions {
    flex-direction: column;
  }

  .page-header__title {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .companies-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-video__title {
    font-size: 26px;
  }


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

  .cert-logos-grid {
    grid-template-columns: 1fr;
  }

  .leadership-table {
    display: block;
    overflow-x: auto;
  }
}

/* Footer - ВСЕ тексты белые */
.site-footer,
.site-footer *,
.site-footer p,
.site-footer a,
.site-footer a:hover,
.site-footer a:visited,
.site-footer h4,
.site-footer li,
.site-footer span,
.site-footer .footer__desc,
.site-footer .footer__title,
.site-footer .footer__menu li a,
.site-footer .footer__menu li a:hover,
.site-footer .footer__contact p,
.site-footer .footer__contact a,
.site-footer .footer__contact a:hover,
.site-footer .footer__bottom,
.site-footer .footer__social a,
.site-footer .footer__social a:hover {
    color: #ffffff !important;
}
