/* Стили главной страницы (server/homePage.js). Перенесены из local/src/styles/main.css —
   главную раньше рисовал Vue. Шрифты подключает общий шаблон (/fonts/fonts.css), поэтому
   @font-face здесь нет. Файл грузится после встроенных стилей pageLayout.js и поверх них:
   у главной свои отступы контейнера, белый фон и заголовки секций по центру. */
html {
  scroll-behavior: smooth;
}

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

body {
  background: #ffffff !important;
  color: #1e2a3e !important;
  font-family: 'Open Sans', sans-serif !important;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
.nav-links,
.btn,
.hero-title,
.section-title {
  font-family: 'Roboto Flex', 'Open Sans', sans-serif;
  font-weight: 700;
}

a {
  color: inherit;
}

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

.container {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 24px;
}

.floating-menu {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 48px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  left: 20px;
  padding: 12px 8px;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
}

.floating-menu a {
  color: #0a3e6d;
  font-size: 1.4rem;
  position: relative;
  text-align: center;
  transition: 0.2s;
}

.floating-menu a:hover {
  color: #e67e22;
  transform: scale(1.1);
}

.floating-menu a[title]:hover::after {
  background: #0a3e6d;
  border-radius: 24px;
  color: #fff;
  content: attr(title);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  left: 100%;
  margin-left: 12px;
  padding: 4px 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  z-index: 100;
}

/* Шапка, мобильное меню, поиск и кнопки шапки — в общем шаблоне server/pageLayout.js */

.contact-note i {
  color: #e67e22;
  margin-right: 6px;
}

.btn,
.btn-outline {
  border-radius: 40px;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: 0.25s;
}

.btn {
  background: #e67e22;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 12px 32px;
}

.btn:hover {
  background: #c55a11;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #e67e22;
  color: #e67e22;
  padding: 6px 20px;
}

.btn-outline:hover {
  background: #e67e22;
  color: #fff;
}

.btn-spacing-top {
  margin-top: 20px;
}

section[id] {
  scroll-margin-top: 100px;
}

.hero {
  background: linear-gradient(135deg, #f0f7fc 0%, #e5f0f7 100%);
  padding: 70px 0 80px;
}

.hero-grid {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
}

.hero-title {
  color: #0a3e6d;
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-badge {
  background: rgba(230, 126, 34, 0.13);
  border-radius: 30px;
  color: #c55a11;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 6px 16px;
}

.hero-text-emphasis {
  margin-bottom: 24px;
}

.hero-cta {
  margin-top: 10px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 30px;
}

.stat {
  color: #0a3e6d;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat span {
  color: #4a627a;
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
}

.hero-image {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  flex: 1.2;
  padding: 20px;
  text-align: center;
}

.hero-image img {
  border-radius: 28px;
  width: 100%;
}

.section {
  padding: 70px 0;
}

.section-light {
  background: #f9fafc;
}

.section-title {
  color: #0f3b5c;
  font-size: 2.2rem;
  margin-bottom: 48px;
  position: relative;
  text-align: center;
}

.section-title::after {
  background: #e67e22;
  border-radius: 4px;
  content: '';
  display: block;
  height: 3px;
  margin: 12px auto 0;
  width: 70px;
}

.section-title-left {
  text-align: left;
}

.section-title-left::after {
  display: none;
}

.section-title--small {
  font-size: 1.6rem;
}

.two-columns {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.col-text,
.col-image {
  flex: 1;
}

.col-image {
  text-align: center;
}

.col-image img,
.media-video {
  border-radius: 28px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.about-video-column {
  flex: 1.2;
}

.media-video {
  background: #000;
  display: block;
  object-fit: contain;
  width: 100%;
}

.media-fallback {
  min-height: 320px;
}

.media-video--autoplay {
  max-height: 450px;
}

.media-video--gallery {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  max-height: 300px;
}

.section-copy {
  margin-top: 15px;
}

.plc-section-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 30px;
}

.features-grid--spaced {
  margin-top: 20px;
}

.features-grid--compact {
  margin-top: 10px;
}

.feature-item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  transition: 0.2s;
}

.feature-item i {
  color: #e67e22;
  font-size: 1.7rem;
  margin-top: 2px;
  min-width: 32px;
}

.feature-item strong {
  display: block;
  margin-bottom: 6px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.product-grid--chips {
  gap: 12px;
}

.product-card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 28px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  flex: 1 1 280px;
  padding: 30px 25px;
  text-align: center;
  transition: 0.25s;
}

.product-card:hover {
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

.product-icon {
  color: #e67e22;
  font-size: 3rem;
  margin-bottom: 20px;
}

.replacement-block {
  border-radius: 32px;
  margin-bottom: 40px;
  padding: 40px;
}

.replacement-block--warm {
  background: #fef7e8;
}

.replacement-block--cool {
  background: #eef3fc;
}

.badge-replace {
  border-radius: 40px;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 6px 14px;
}

.badge-replace--blue {
  background: #0a3e6d;
  color: #fff;
}

.badge-replace--orange {
  background: #e67e22;
  color: #fff;
}

.replacement-title {
  font-size: 1.8rem;
  margin: 20px 0 15px;
}

.replacement-cta-wrap,
.section-cta-center {
  margin-top: 30px;
  text-align: center;
}

.cert-block {
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #f5f9ff);
  border: 1px solid rgba(230, 126, 34, 0.2);
  border-radius: 48px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  padding: 50px 40px;
}

.cert-text {
  flex: 2;
}

.cert-icon {
  flex: 1;
  text-align: center;
}

.cert-icon img {
  max-width: 160px;
}

.cert-badge {
  background: #0a3e6d;
  border-radius: 40px;
  color: #fff;
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding: 6px 20px;
}

.certificate-lead {
  font-size: 1.2rem;
  font-weight: 600;
}

.certificate-number {
  color: #0a3e6d;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 15px 0;
}

.btn-pdf {
  background: #e67e22;
  border: none;
  border-radius: 40px;
  color: #fff;
  display: inline-block;
  font-size: 0.85rem;
  margin-top: 15px;
  padding: 8px 20px;
  text-decoration: none;
}

.btn-pdf--disabled {
  cursor: default;
  opacity: 0.7;
}

.smart-intro {
  font-size: 1.1rem;
  margin: 0 auto 40px;
  max-width: 800px;
  text-align: center;
}

.smart-benefits-title {
  font-size: 1.4rem;
  margin: 30px 0 15px;
}

.smart-benefits-list {
  list-style: none;
}

.smart-benefits-item {
  margin-bottom: 10px;
}

.smart-benefits-icon,
.smart-spec-icon {
  color: #e67e22;
  margin-right: 10px;
}

.smart-cta {
  margin-top: 30px;
}

.smart-image-block {
  margin-bottom: 30px;
  text-align: center;
}

.smart-image-frame {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: inline-block;
  max-width: 75%;
  padding: 20px;
}

.smart-specs {
  background: #f0f7fc;
  border-radius: 24px;
  margin-top: 40px;
  padding: 30px;
}

.smart-specs-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.smart-specs-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.smart-spec-item strong {
  margin-right: 4px;
}

.quality-block {
  margin-bottom: 50px;
}

.quality-subtitle {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.applications-block {
  margin-top: 50px;
}

.application-chip {
  padding: 6px 20px;
}

.solutions-wrapper {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.solutions-grid {
  display: grid;
  flex: 1;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.solution-card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  text-align: center;
  transition: 0.2s;
}

.solution-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.solution-icon {
  color: #e67e22;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.solutions-gallery {
  display: grid;
  flex: 1;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.solutions-gallery img {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  width: 100%;
}

.video-gallery {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.video-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: 0.2s;
}


.contact-section {
  background: #0a2b3f;
  border-radius: 32px;
  color: #fff;
  padding: 40px;
  text-align: center;
}

.contact-layout {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  text-align: left;
}

.contact-content {
  flex: 1;
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-description {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form-field,
.contact-form-textarea {
  border: none;
  border-radius: 18px;
  font: inherit;
  padding: 14px 18px;
  transition: box-shadow 0.2s ease;
  width: 100%;
}

.contact-form-field:focus,
.contact-form-textarea:focus {
  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.3);
  outline: none;
}

.contact-form-field:disabled,
.contact-form-textarea:disabled,
.contact-submit:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.contact-honeypot {
  height: 0;
  left: -9999px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.contact-submit {
  align-self: flex-start;
  min-width: 220px;
}

.contact-feedback {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: -3px;
}

.contact-feedback--success {
  color: #c8f7d2;
}

.contact-feedback--error {
  color: #ffd5d5;
}

.contact-note {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.contact-illustration {
  flex: 1;
  text-align: center;
}

.contact-illustration img {
  margin: 0 auto;
  max-width: 320px;
}

@media (max-width: 1200px) {
  .floating-menu {
    display: none;
  }

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

@media (max-width: 900px) {
  .hero-grid,
  .two-columns,
  .solutions-wrapper,
  .contact-layout {
    flex-direction: column;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section {
    padding: 56px 0;
  }

  .video-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 36px;
  }

  .replacement-block,
  .cert-block,
  .contact-section,
  .smart-specs {
    padding: 28px 20px;
  }

  .feature-item,
  .product-card,
  .solution-card {
    padding: 18px;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-note {
    overflow-wrap: break-word;
  }
}

/* ── Поверх общего шаблона pageLayout.js ───────────────────────────────── */

/* В шаблоне .section-title — заголовок карточки с линией снизу; на главной линия — ::after по центру */
.home-page .section-title {
  border-bottom: none;
  padding-bottom: 0;
}

/* Подвал во Vue-версии имел собственный контейнер с полями 20px */
.home-page .site-footer .container {
  padding: 0 20px;
}

.home-page .page-content {
  flex: 1 0 auto;
}

/* Плеер videoBlock.js внутри карточки галереи */
.video-card .uvid {
  border-radius: 12px;
}

.contact-feedback[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .home-page .footer-grid {
    gap: 24px;
  }

  .home-page .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }
}

/* Поле поиска в шапке: во Vue-версии строка шапки была на 0,6px ниже (у поля был системный шрифт) */
.home-page .search-box input {
  padding: 7px 16px;
}

/* У фоновых роликов заданы width/height (место занято до загрузки обложки) — высота считается по ширине */
.media-video[width] {
  height: auto;
}
