/* main.css — полная версия */

* {
  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: #FFFFFF;
  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 {
  max-width: 1280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 16px 40px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  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: 30px;
  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: rgba(255, 255, 255, 0.85);
}

.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: 100vh;
  height: 100vh;
  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%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: left;
}

.hero h1 {
  font-size: 3.2rem;
  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: 60px 0;
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.full-height {
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.section-title-light {
  font-size: 3rem;
  font-weight: 600;
  color: #BCCAE3;
}

.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: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 32px;
}

.about-stat .stat-value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}

.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: 1.6rem;
  color: #404040;
  margin-top: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.about-item {
  border: 1px solid #BDBDBD;
  border-radius: 30px;
  padding: 28px 20px 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 280px;
}

.about-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 16px;
}

.about-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #404040;
  text-align: center;
  line-height: 1.3;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
}

.about-icon {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-desc {
  font-size: 0.9rem;
  color: #404040;
  text-align: center;
  line-height: 1.5;
}

/* ===== PRODUCTS & FOCUS + FOOTER (один блок) ===== */
.section-products-focus-footer {
  background: #FFFFFF;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 0;
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
}

.products-focus-wrapper {
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex: 1;
  justify-content: center;
  padding: 20px 0;
}

.products-block h2,
.focus-block h2 {
  margin-bottom: 20px;
}

.products-list {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: space-between;
  align-items: stretch;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 20px;
  background: transparent;
  border: none;
  text-align: center;
  justify-content: center;
}

.product-item-icon {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-text {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.focus-list {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: stretch;
  align-items: stretch;
}

.focus-card {
  background: rgba(71, 98, 239, 0.05);
  border-radius: 30px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32%;
  min-height: 80px;
}

.focus-item {
  flex: 1;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #404040;
  background: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  background: #4B68FF;
  padding: 40px 0;
  border-top: none;
  margin-top: auto;
  width: 100%;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: auto;
}

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(500%);
  align-self: flex-start;
}

.footer-copy {
  font-size: 0.75rem;
  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: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: auto;
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.85);
}

.contact-phone-link,
.contact-email-link {
  color: rgba(255, 255, 255, 0.85);
  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) {
  .topbar-inner {
    padding: 12px 24px;
  }

  .container,
  .hero-content,
  .footer-inner {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-title-light {
    font-size: 2.6rem;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-stat .stat-value {
    font-size: 2rem;
  }

  .product-text {
    font-size: 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {

  .topbar-inner {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .hero {
    position: relative;
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    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 h1 {
    font-size: 2.4rem !important;
  }

  .section-title-light {
    text-align: center;
  }

  .section-about .about-top,
  .section-about .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .about-stat .stat-value {
    font-size: 2rem;
  }

  .products-list {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .product-item {
    width: 100%;
    max-width: 400px;
  }

  .focus-list {
    flex-direction: column;
    align-items: center;
  }

  .focus-card {
    width: 100%;
    max-width: 400px;
    min-height: 60px;
  }

  .products-focus-wrapper {
    padding: 20px 0;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
  }

  .footer-right {
    width: 100%;
  }

  .footer-contacts {
    width: 100%;
  }

  /* ===== ОТКЛЮЧАЕМ SCROLL-SNAP НА УЗКИХ ЭКРАНАХ ===== */
  html {
    scroll-snap-type: none !important;
  }

  .hero,
  .section,
  .full-height {
    scroll-snap-align: none !important;
    min-height: auto !important;
    height: auto !important;
  }
}

@media (max-width: 640px) {
  .lang-switcher {
    display: none;
  }

  .burger-menu {
    display: block;
  }

  .logo-img,
  .footer-logo {
    height: 32px;
  }

  .container,
  .footer-inner,
  .topbar-inner {
    padding: 0 16px;
  }

  .section-title-light {
    font-size: 1.6rem;
  }

  .product-item {
    padding: 12px 16px;
  }

  .product-item-icon,
  .about-icon {
    width: 60px;
    height: 60px;
  }

  .product-text {
    font-size: 1rem;
  }

  .focus-item {
    font-size: 0.9rem;
    padding: 12px 16px;
    min-height: 50px;
  }

  .footer-contact-item {
    font-size: 0.75rem;
  }

  .footer-left {
    padding-left: 0;
  }

  .products-focus-wrapper {
    gap: 24px;
    padding: 10px 0;
  }

  .section-products-focus-footer {
    padding: 20px 0 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem !important;
  }

  .focus-card {
    min-height: 50px;
    padding: 10px;
  }

  .focus-item {
    font-size: 0.85rem;
    padding: 10px 14px;
    min-height: 40px;
  }
}