/* ==========================================================================
   ВТ-СЕРВИС — ОБЩИЕ КОМПОНЕНТЫ ИЗ ГЛАВНОЙ
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('./tokens.css');

/* Сброс стилей */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-dark-theme);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* СЕТКА И КОНТЕЙНЕР */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

.section {
  padding: var(--section-space) 0;
  position: relative;
}

/* ЗОЛОТАЯ ГРАДИЕНТНАЯ ПОЛОСКА НАД ЗАГОЛОВКАМИ */
.gold-line {
  width: 70px;
  height: 2px;
  margin: 0 auto 16px auto;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.gold-line-left {
  width: 70px;
  height: 2px;
  margin: 0 0 16px 0;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

/* ФОНЫ И ПАТТЕРНЫ */

/* Светлая секция с узором */
.section-light {
  background-color: var(--bg-light);
  color: var(--text-light-theme);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.08'%3E%3Cpath d='M30 0l5 10-5 10-5-10zM0 30l10-5 10 5-10 5zM60 30l-10-5-10 5 10 5zM30 60l-5-10 5-10 5 10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Чисто белая секция без узора */
.section-white-flat {
  background-color: #ffffff;
  color: var(--text-light-theme);
  background-image: none;
}

/* Темная секция с узором */
.section-dark-pattern {
  background-color: var(--bg-dark);
  color: var(--text-dark-theme);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.06'%3E%3Cpath d='M30 0l5 10-5 10-5-10zM0 30l10-5 10 5-10 5zM60 30l-10-5-10 5 10 5zM30 60l-5-10 5-10 5 10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Темная чистая секция */
.section-dark-flat {
  background-color: var(--bg-dark-flat);
  color: var(--text-dark-theme);
}

/* ЗАГОЛОВКИ */
.section-title-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--type-section);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-light .section-title {
  color: #1a202c;
}

.gold-text {
  color: var(--accent-gold);
}

/* КНОПКИ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--button-padding-y) var(--button-padding-x);
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-size: var(--type-button);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #0d111a;
  box-shadow: 0 4px 15px rgba(217, 165, 32, 0.3);
}

.btn-gold:hover {
  background-color: var(--accent-gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 165, 32, 0.45);
}

.btn-outline-dark {
  background: rgba(15, 18, 29, 0.6);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline-dark:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* ШАПКА (HEADER) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: all var(--transition-normal);
  background: rgba(18, 22, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
  padding: 14px 0;
  background: rgba(12, 15, 23, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-gold);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cbd5e1;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(18, 22, 32, 0.4) 0%, rgba(18, 22, 32, 0.92) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  margin: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--type-hero);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-text {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 760px;
  margin: 0 0 36px 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

/* СЕКЦИЯ 2: ПОЧЕМУ ПРЕДПРИЯТИЯ ВЫБИРАЮТ (СВЕТЛАЯ) */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: var(--bg-light-card);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(217, 165, 32, 0.15);
  border-color: rgba(217, 165, 32, 0.4);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  background: rgba(217, 165, 32, 0.1);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.advantage-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.35;
}

/* СЕКЦИЯ 3: НАШИ УСЛУГИ (ТЕМНАЯ) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: var(--card-padding-y) var(--card-padding-x);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: var(--bg-dark-card-hover);
  border-color: rgba(217, 165, 32, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(217, 165, 32, 0.1);
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: var(--type-card);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.25;
}

.service-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* СЕКЦИЯ 4: РЕШЕНИЯ ДЛЯ ПРОМЫШЛЕННОСТИ (СВЕТЛАЯ) */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.solution-card {
  background: var(--bg-light-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  padding: 36px 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 25px rgba(217, 165, 32, 0.2);
}

.solution-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(217, 165, 32, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.solution-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.35;
}

/* СЕКЦИЯ 5: РЕАЛИЗОВАННЫЕ ПРОЕКТЫ (СВЕТЛАЯ) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Анимация появления элементов при скролле */
.anim-hidden {
  opacity: 0;
  transform: translateY(28px);
}

.anim-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card {
  background: var(--bg-light-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(217, 165, 32, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(217, 165, 32, 0.15) !important;
}

.project-img-wrap {
  position: relative;
  width: 100%;
  height: var(--project-image-height);
  overflow: hidden;
  cursor: pointer;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* При наведении картинка НЕ увеличивается */
.project-card:hover .project-img-wrap img {
  transform: none;
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 29, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-img-overlay {
  opacity: 1;
}

.project-zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #0f121d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 10px;
  line-height: 1.25;
}

.project-desc {
  color: #4a5568;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* СЕКЦИЯ 6: О КОМПАНИИ И СТАТИСТИКА (ТЕМНАЯ) */
.about-content {
  max-width: 860px;
  margin-bottom: 50px;
}

.about-text {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-size: 0.95rem;
  font-weight: 600;
}

.about-link:hover {
  text-decoration: underline;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 40px;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* СЕКЦИЯ 7: БАННЕР ПРИЗЫВА (ТЕМНЫЙ ФЛЭТ) */
.cta-banner {
  text-align: center;
  position: relative;
  padding: 85px 0;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

/* СЕКЦИЯ 8: СВЯЗАТЬСЯ С НАМИ (СВЕТЛАЯ) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d3748;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-control);
  color: #1a202c;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(217, 165, 32, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(217, 165, 32, 0.1);
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.8rem;
  color: #718096;
  margin-bottom: 2px;
}

.contact-detail-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a202c;
}

/* СЕКЦИЯ 9: ПОДВАЛ (FOOTER) */
.footer {
  background-color: var(--bg-footer);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--accent-gold);
}

.footer-text {
  font-size: 0.85rem;
  color: #718096;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  font-size: 0.85rem;
  color: #a0aec0;
}

.footer-nav-link:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #4a5568;
}

/* МОДАЛЬНОЕ ОКНО ЛАЙТБОКСА */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lightbox-content img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-icon);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1024px) {
  .advantages-grid, .services-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-title {
    font-size: var(--type-hero-tablet);
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0b0e17;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-list.active {
    transform: translateY(0);
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-btn {
    display: none;
  }
  .advantages-grid, .services-grid, .solutions-grid, .projects-grid, .stats-row, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: var(--type-hero-mobile);
  }
}
