/*
main.css
*/


:root {
  /* Цвета */
  --color-background-footer: rgb(75, 104, 255);
  --color-background-light: #FAFAFA;
  --color-background-dark: rgba(71, 98, 239, 0.05);
  --color-header-light: #BCCAE3;
  --color-header-dark: #BCCAE3;
  --colorMainDark: #404040;
  --colorMainLight: rgba(255, 255, 255, 0.85);

  /* Размеры шрифтов */
  --fontsize-menu: 18px;
  --fontsize-h1: 68px;
  --fontsize-h2: 64px;
  --fontsize-stat-value: 58px;
  --fontsize-stat-label: 26px;
  --fontsize-about-title: 30px;
  --fontsize-about-descr: 20px;
  --fontsize-product: 36px;
  --fontsize-focus: 23px;
  --fontsize-copiright: 20px;
  --fontsize-contacts: 24px;

  /* Размеры изображений */
  --img-logo-height: 40px;
  --img-about-height: 230px;
  --img-product-height: 90px;

  /* Отступы */
  --paddingPage: 40px;
  --gap-section: 80px;
  --gap-about-grid: 20px;
  --gap-products: 35px;
  --gap-focus: 20px;
  --gap-footer: 8px;

  /* Скругления */
  --border-radius-card: 30px;
  --border-radius-inner: 12px;
  --border-radius-menu: 30px;

  /* Специфичные свойства */
  --about-item-width: 24%;
  --about-item-padding: 40px 25px 40px 25px;
  --about-desc-height: 80px;
  --focus-card-width: 32%;
  --focus-card-min-height: 80px;
  --focus-card-padding: 20px;
  --hero-height: 100vh;
  --hero-min-height: 100vh;
  --section-min-height: 100vh;
  --section-padding: 40px 0;
  --products-footer-min-height: 100vh;
  --products-footer-padding-top: 60px;
  --products-wrapper-padding: 40px 0;
  --product-item-gap: 20px;
  --product-item-padding: 20px;
  --focus-item-padding: 18px;
  --focus-item-min-height: 60px;
  --footer-gap: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: 'Suisse Intl', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--color-background-light);
  color: #161D36;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== ШРИФТЫ ===== */
.section-title-light,
.hero h1,
.about-stat .stat-value {
  font-family: 'Loos ExtraWide', 'Inter', sans-serif;
}

/* ===== FULL-WIDTH ===== */
.full-width {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topbar.scrolled {
  background: #FFFFFF;
  box-shadow: 0 2px 20px rgba(22, 29, 54, 0.08);
}

.topbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 16px var(--paddingPage);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: var(--img-logo-height);
  width: auto;
  display: block;
  transition: filter 0.4s ease;
  filter: brightness(500%);
}

.topbar.scrolled .logo-img {
  filter: brightness(100%);
}

/* ===== МЕНЮ ЯЗЫКОВ ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--border-radius-menu);
  background: rgba(75, 104, 255, 0.15);
  transition: background 0.3s ease;
}

.topbar:not(.scrolled) .lang-switcher {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topbar.scrolled .lang-switcher {
  background: rgb(75, 104, 255);
}

.lang {
  padding: 8px 18px;
  border-radius: 26px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #FFFFFF;
  border: none;
}

.topbar:not(.scrolled) .lang {
  color: rgba(255, 255, 255, 0.85);
}

.topbar:not(.scrolled) .lang.active {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.topbar:not(.scrolled) .lang:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.topbar.scrolled .lang {
  color: #FFFFFF;
}

.topbar.scrolled .lang.active {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.topbar.scrolled .lang:hover {
  background: rgb(64, 64, 64);
  color: #FFFFFF;
}

/* Бургер-меню для мобильных */
.burger-menu {
  display: none;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.3s ease;
}

.burger-menu.open {
  transform: rotate(90deg);
}

.burger-menu svg rect {
  transition: fill 0.3s, stroke 0.3s;
}

.burger-menu svg text {
  transition: fill 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
  display: flex;
}

.topbar:not(.scrolled) .mobile-menu {
  background: rgba(22, 29, 54, 0.85);
  backdrop-filter: blur(8px);
}

.lang-mobile {
  padding: 10px 24px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #161D36;
  border-radius: 8px;
  width: 100%;
  text-align: center;
}

.topbar:not(.scrolled) .lang-mobile {
  color: var(--colorMainLight);
}

.topbar:not(.scrolled) .lang-mobile.active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.topbar.scrolled .lang-mobile.active {
  background: #4B68FF;
  color: #FFFFFF;
}

.lang-mobile:hover {
  background: rgba(75, 104, 255, 0.1);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: var(--hero-min-height);
  height: var(--hero-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  padding: 0;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(22, 29, 54, 0.80) 0%, rgba(22, 29, 54, 0.50) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--paddingPage);
  text-align: left;
}

.hero h1 {
  font-size: var(--fontsize-h1);
  font-weight: 500;
  line-height: 1.4;
  color: #FFFFFF;
  cursor: default;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
  scroll-snap-align: start;
  min-height: var(--section-min-height);
  display: flex;
  align-items: center;
}

.full-height {
  min-height: var(--section-min-height);
}

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

.section-title-light {
  font-size: var(--fontsize-h2);
  font-weight: 600;
  color: var(--color-header-light);
  margin-bottom: var(--gap-section);
}

.section-head {
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
}

.about-item,
.focus-card {
  transition: all 0.5s;
}

.about-item:hover,
.focus-card:hover {
  transform: translateY(-10px);
  box-shadow: 4px 4px 39px -8px rgba(34, 60, 80, 0.21);
}

/* ===== ABOUT ===== */
.section-about .about-top {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-section);
  margin-bottom: var(--gap-section);
}

.about-stat {
  flex: 1;
  text-align: center;
}

.about-stat .stat-value {
  font-size: var(--fontsize-stat-value);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}

.gradient-text {
  background: linear-gradient(180deg, #4B68FF 0%, #1E2B70 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat .stat-label {
  font-size: var(--fontsize-stat-label);
  color: var(--colorMainDark);
}

/* ===== ABOUT GRID (FEATURES) ===== */
.about-grid {
  display: flex;
  gap: var(--gap-about-grid);
  flex-wrap: wrap;
  justify-content: center;
}

.about-item {
  border: 1px solid #BDBDBD;
  border-radius: var(--border-radius-card);
  width: var(--about-item-width);
  text-align: center;
  padding: var(--about-item-padding);
  display: flex;
  flex-direction: column;
  transition: all 0.5s;
}

.about-item:hover {
  transform: translateY(-10px);
  box-shadow: 4px 4px 39px -8px rgba(34, 60, 80, 0.21);
}

.about-title {
  flex-grow: 1;
  font-family: 'Suisse Intl', 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--fontsize-about-title);
  line-height: 1.1;
  text-align: center;
  color: var(--colorMainDark);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-icon {
  height: var(--img-about-height);
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-icon img {
  height: auto;
  max-width: 100%;
}

.about-desc {
  font-family: 'Suisse Intl', 'Inter', sans-serif;
  font-weight: 400;
  font-size: var(--fontsize-about-descr);
  line-height: 1;
  text-align: center;
  height: var(--about-desc-height);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colorMainDark);
  cursor: default;
}

/* ===== PRODUCTS ===== */
.section-products-focus-footer {
  background: var(--color-background-light);
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  scroll-snap-align: start;
  min-height: var(--products-footer-min-height);
  display: flex;
  padding-top: var(--products-footer-padding-top);
}

.products-focus-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
  padding: var(--products-wrapper-padding);
}

.products-block h2,
.focus-block h2 {
  margin-bottom: 20px;
}

.products-list {
  display: flex;
  flex-direction: row;
  gap: var(--gap-products);
  justify-content: space-between;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--product-item-gap);
  flex: 1;
  padding: var(--product-item-padding);
  background: transparent;
  border: none;
  text-align: center;
}

.product-item-icon {
  width: var(--img-product-height);
  height: var(--img-product-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-text {
  font-size: var(--fontsize-product);
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}

/* ===== FOCUS ===== */
.focus-list {
  display: flex;
  flex-direction: row;
  gap: var(--gap-focus);
  justify-content: stretch;
  align-items: stretch;
}

.focus-card {
  background: var(--color-background-dark);
  border-radius: var(--border-radius-card);
  padding: var(--focus-card-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--focus-card-width);
  min-height: var(--focus-card-min-height);
}

.focus-item {
  flex: 1;
  padding: var(--focus-item-padding);
  border-radius: var(--border-radius-inner);
  font-size: var(--fontsize-focus);
  font-weight: 600;
  color: var(--colorMainDark);
  background: var(--color-background-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--focus-item-min-height);
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-background-footer);
  padding: var(--paddingPage) 0;
  border-top: none;
  margin-top: auto;
  width: 100%;
}

.footer-inner {
  margin: 0 auto;
  padding: 0 var(--paddingPage);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--footer-gap);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: auto;
}

.footer-logo {
  height: var(--img-logo-height);
  width: auto;
  display: block;
  filter: brightness(500%);
  align-self: flex-start;
}

.footer-copy {
  font-size: var(--fontsize-copiright);
  color: rgba(255, 255, 255, 0.60);
  text-align: left;
}

.footer-right {
  display: flex;
  align-items: flex-start;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--gap-footer);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--colorMainLight);
  font-size: var(--fontsize-contacts);
  line-height: 1.4;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: auto;
}

.footer-contact-item span {
  color: var(--colorMainLight);
}

.contact-phone-link,
.contact-email-link {
  color: var(--colorMainLight);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-phone-link:hover,
.contact-email-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

html[dir="rtl"] .contact-phone-link,
html[dir="rtl"] .contact-email-link {
  direction: ltr;
  unicode-bidi: embed;
}

html[dir="rtl"] .footer-contact-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-contact-item svg {
  margin-left: 12px;
  margin-right: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1500px) {
  :root {
    --paddingPage: 30px;
    --fontsize-h1: 44px;
    --fontsize-h2: 40px;
    --fontsize-stat-value: 32px;
    --fontsize-stat-label: 24px;
    --fontsize-about-title: 18px;
    --fontsize-about-descr: 16px;
    --fontsize-product: 24px;
    --fontsize-focus: 18px;
    --fontsize-contacts: 16px;
    --img-about-height: 140px;
    --gap-about-grid: 10px;
    --gap-focus: 10px;
    --about-item-width: 49%;
    --about-item-padding: 30px 15px 50px 15px;
    --about-desc-height: 60px;
  }
}

@media (max-width: 1200px) {
  :root {
    --fontsize-h1: 39px;
    --fontsize-h2: 32px;
    --fontsize-stat-value: 32px;
    --fontsize-stat-label: 22px;
    --fontsize-about-title: 14px;
    --fontsize-about-descr: 12px;
    --fontsize-focus: 14px;
    --img-about-height: 100px;
    --img-product-height: 55px;
    --gap-section: 35px;
    --about-item-padding: 25px 15px;
    --about-desc-height: 60px;
    --focus-card-width: 32%;
  }
}

@media (max-width: 1024px) {
  :root {
    --paddingPage: 20px;
    --hero-height: 400px;
    --hero-min-height: 400px;
    --section-min-height: auto;
    --section-padding: 60px 0;
    --products-footer-min-height: auto;
    --products-footer-padding-top: 40px;
  }

  .hero-content {
    bottom: 15%;
  }
}

@media (max-width: 950px) {
  :root {
    --fontsize-h2: 32px;
    --fontsize-stat-value: 26px;
    --fontsize-stat-label: 20px;
    --fontsize-about-title: 18px;
    --fontsize-about-descr: 16px;
    --fontsize-product: 20px;
    --gap-section: 50px;
    --gap-about-grid: 20px;
    --about-item-width: 49%;
    --about-item-padding: 30px 25px 47px 25px;
    --img-about-height: 133px;
    --about-desc-height: 45px;
    --focus-card-width: 49%;
  }
}

@media (max-width: 767px) {
  :root {
    --paddingPage: 20px;
    --fontsize-h1: 26px;
    --fontsize-h2: 24px;
    --fontsize-stat-value: 26px;
    --fontsize-stat-label: 20px;
    --fontsize-about-title: 20px;
    --fontsize-about-descr: 16px;
    --fontsize-product: 20px;
    --fontsize-focus: 20px;
    --fontsize-copiright: 16px;
    --fontsize-contacts: 20px;
    --img-about-height: 140px;
    --img-product-height: 60px;
    --gap-section: 50px;
    --about-item-width: 100%;
    --about-item-padding: 30px 25px 40px 25px;
    --about-desc-height: auto;
    --focus-card-width: 100%;
    --focus-card-min-height: 60px;
    --focus-card-padding: 15px;
    --hero-height: 100vh;
    --hero-min-height: 100vh;
    --section-min-height: auto;
    --section-padding: 40px 0;
    --products-footer-min-height: auto;
    --products-footer-padding-top: 0;
    --products-wrapper-padding: 20px 0;
    --product-item-gap: 16px;
    --product-item-padding: 12px 16px;
    --focus-item-padding: 16px 20px;
    --focus-item-min-height: 50px;
    --footer-gap: 24px;
  }

  html {
    scroll-snap-type: none !important;
  }

  .hero,
  .section,
  .full-height {
    scroll-snap-align: none !important;
    min-height: auto !important;
    height: auto !important;
  }

  .hero {
    min-height: var(--hero-min-height);
    height: var(--hero-height);
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hero-video-bg {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
    flex-shrink: 0;
  }

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

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(22, 29, 54, 0.20) 0%, rgba(22, 29, 54, 0.70) 100%);
  }

  .hero-content {
    position: absolute;
    bottom: 10%;
    padding: 0 var(--paddingPage);
  }

  .section-title-light {
    text-align: center;
  }

  .section-about .about-top {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    margin-bottom: 50px;
  }

  .about-grid {
    flex-direction: column;
    align-items: center;
  }

  .about-item {
    max-width: 400px;
  }

  .products-list {
    flex-direction: column;
    align-items: center;
  }

  .product-item {
    width: 100%;
    max-width: 400px;
  }

  .focus-list {
    flex-direction: column;
    align-items: center;
  }

  .focus-card {
    max-width: 400px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    width: 100%;
  }

  .footer-contacts {
    width: 100%;
  }
}

@media (max-width: 600px) {
  :root {
    --paddingPage: 20px;
    --fontsize-h1: 22px;
    --fontsize-h2: 28px;
    --fontsize-stat-value: 26px;
    --fontsize-stat-label: 20px;
    --fontsize-about-title: 20px;
    --fontsize-about-descr: 16px;
    --fontsize-product: 20px;
    --fontsize-focus: 18px;
    --fontsize-copiright: 12px;
    --fontsize-contacts: 16px;
    --img-logo-height: 32px;
    --img-about-height: 100px;
    --img-product-height: 50px;
    --gap-section: 50px;
    --gap-products: 60px;
    --about-item-padding: 25px 20px;
    --focus-card-min-height: 50px;
    --focus-card-padding: 10px;
    --focus-item-padding: 12px 16px;
    --focus-item-min-height: 50px;
    --products-wrapper-padding: 10px 0;
    --product-item-gap: 12px;
  }

  .lang-switcher {
    display: none;
  }

  .burger-menu {
    display: block;
  }

  .about-icon img {
    height: 70%;
  }

  .section-about .about-top {
    gap: 60px;
  }
}

@media (max-width: 480px) {
  :root {
    --fontsize-h1: 22px;
    --fontsize-h2: 28px;
    --fontsize-stat-value: 26px;
    --fontsize-stat-label: 20px;
    --fontsize-about-title: 18px;
    --fontsize-about-descr: 14px;
    --fontsize-product: 18px;
    --fontsize-focus: 16px;
    --img-about-height: 80px;
    --img-product-height: 50px;
    --focus-card-min-height: 40px;
    --focus-card-padding: 8px;
    --focus-item-padding: 8px 12px;
    --focus-item-min-height: 36px;
  }

  .about-icon img {
    height: 70%;
  }
}