:root {
  --bg-dark: #f3f4f6;               /* фоновый цвет страницы (теперь светлый) */
  --bg-section: #ffffff;            /* фон секций/карточек */
  --accent: #0782a1;                /* основной брендовый цвет */
  --accent-soft: #0a9fc4;           /* hover / акценты */
  --accent-light: #e0f6fb;          /* мягкий подсвет / фон */
  --text-main: #111827;             /* основной текст */
  --text-muted: #6b7280;            /* вторичный текст */
  --border-soft: rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
}

/* NAVBAR */

.main-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.main-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.navbar .logo {
  height: 42px;
  width: auto;
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
}

.main-menu .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-menu .nav-link:hover,
.main-menu .nav-link:focus {
  background: rgba(7, 130, 161, 0.08);
  color: var(--accent);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #111827;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-phone i {
  color: var(--accent-soft);
}

/* HERO */

.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 0% 0%, rgba(7, 130, 161, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.16), transparent 55%),
    #f9fafb;
  padding: 120px 0 80px;
  color: #111827;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.4), rgba(248, 250, 252, 0.95));
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-highlight {
  display: block;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  max-width: 560px;
  margin-bottom: 18px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  color: #374151;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.hero-list i {
  color: var(--accent-soft);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.85rem;
  color: #6b7280;
}

.hero-card {
  position: relative;
}

.hero-card img {
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.hero-card-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #e0f2fe, #0782a1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #02131a;
}

.badge-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-text {
  font-size: 0.75rem;
  color: #6b7280;
}

/* СЕКЦИИ БАЗОВО */

section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* КНОПКИ — главный цвет #0782a1 */

.btn-success {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--accent-soft) !important;
  border-color: var(--accent-soft) !important;
}

.btn-outline-success {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background-color: var(--accent) !important;
  color: #f9fafb !important;
  border-color: var(--accent) !important;
}

/* БРЕНДЫ */

.brands-section {
  background: #f9fafb;
}

.brand-card {
  background: radial-gradient(circle at 10% 10%, rgba(7, 130, 161, 0.08), #ffffff);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* УСЛУГИ */

.services-section {
  background: var(--bg-section);
}

.service-card {
  background: radial-gradient(circle at 0 0, rgba(7, 130, 161, 0.08), #ffffff);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.service-img img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.service-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 4px 0 10px;
  font-size: 0.88rem;
  color: #374151;
}

.service-list li::before {
  content: "• ";
  color: var(--accent);
}

/* ПРЕИМУЩЕСТВА */

.advantages-section {
  background: #f9fafb;
}

.adv-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 18px 16px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.adv-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #e0f2fe, #0782a1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #02131a;
  margin-bottom: 10px;
}

.adv-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.adv-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ЭТАПЫ РАБОТЫ */

.process-section {
  background: var(--bg-section);
}

.timeline {
  position: relative;
  margin: 30px auto 10px;
  max-width: 860px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 22px;
}

.timeline-number {
  position: absolute;
  left: 10px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ПОРТФОЛИО */

.portfolio-section {
  background: #f9fafb;
}

.gallery-grid .gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-grid .gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.9rem;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 4px 8px;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Модалка галереи */
/* Модалка галереи */

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9990;
  padding: 16px;              /* отступы по краям на маленьких экранах */
  box-sizing: border-box;
}

.gallery-modal.open {
  display: flex;
}

/* Внутренний контейнер: картинка + подпись + кнопки */
.gallery-modal-inner {
  max-width: 960px;
  max-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Кнопка закрытия */
.gallery-close {
  position: absolute;
  top: -4px;
  right: -4px;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

/* Картинка растягивается по ширине, но не вылазит за экран */
.gallery-modal-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

/* Подпись под картинкой */
.gallery-modal-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #e5e7eb;
  text-align: center;
}

/* Навигация (если используешь стрелки) */
.gallery-modal-nav {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.gallery-prev,
.gallery-next {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  cursor: pointer;
}

/* Адаптив: на мобиле всё чуть компактнее */
@media (max-width: 575.98px) {
  .gallery-modal {
    padding: 10px;
  }

  .gallery-modal-inner {
    max-width: 100%;
  }

  .gallery-modal-img {
    max-height: 70vh;
  }

  .gallery-modal-caption {
    font-size: 0.85rem;
    padding: 0 4px;
  }
}



/* ===== ВИДЕО-БЛОК ===== */

.video-portfolio-section {
  background-color: #f8fafc; /* светлый фон, как у остального светлого дизайна */
}

.video-grid .video-item {
  cursor: pointer;
}

.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background-color: #000;
}

.video-thumb-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Кнопка play поверх превью */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-play-overlay i {
  font-size: 2.2rem;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0,0,0,0.8);
  opacity: 0.9;
}

/* Чуть уменьшаем иконку на очень маленьких экранах */
@media (max-width: 575.98px) {
  .video-play-overlay i {
    font-size: 1.8rem;
  }
}

/* ===== МОДАЛКА ВИДЕО ===== */

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9990;
  padding: 16px;
  box-sizing: border-box;
}

.video-modal.open {
  display: flex;
}

.video-modal-inner {
  max-width: 960px;
  max-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Кнопка закрытия */
.video-modal-close {
  position: absolute;
  top: -4px;
  right: -4px;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

/* Видео во всю ширину, адаптивно */
.video-modal-player {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  background-color: #000;
}

/* Подпись под видео */
.video-modal-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #e5e7eb;
  text-align: center;
}

/* Адаптив для мобильных */
@media (max-width: 575.98px) {
  .video-modal {
    padding: 10px;
  }

  .video-modal-inner {
    max-width: 100%;
  }

  .video-modal-player {
    max-height: 70vh;
  }

  .video-modal-caption {
    font-size: 0.85rem;
    padding: 0 4px;
  }
}


/* ОТЗЫВЫ */

.reviews-section {
  background: var(--bg-section);
}

.reviews-slider {
  max-width: 760px;
  margin: 20px auto 0;
  position: relative;
}

.review-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 18px 18px 16px;
  display: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.review-card.active {
  display: block;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.review-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-name {
  display: block;
  font-weight: 600;
  color: var(--text-main);
}

.reviews-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.reviews-controls button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */

.faq-section {
  background: #f9fafb;
}

.accordion-item {
  background-color: #ffffff;
  border-color: rgba(148, 163, 184, 0.5);
}

.accordion-button {
  background-color: #ffffff;
  color: #111827;
  font-size: 0.95rem;
}

.accordion-button:not(.collapsed) {
  background-color: #e0f6fb;
  color: var(--accent-soft);
  box-shadow: none;
}

.accordion-button::after {
  filter: none;
}

.accordion-body {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* О КОМПАНИИ */

.about-section {
  background: var(--bg-section);
}

.about-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.about-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.about-list i {
  color: var(--accent-soft);
  margin-top: 2px;
}

/* КОНТАКТЫ */

.contacts-section {
  background: #f9fafb;
}

.contacts-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.contacts-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 4px;
}

.contacts-card a {
  color: #111827;
  text-decoration: none;
}

.contacts-card a:hover {
  color: var(--accent-soft);
}

.map-wrapper iframe {
  width: 100%;
  min-height: 280px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
}

/* FOOTER */

.footer-section {
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-section a {
  color: var(--accent-soft);
  text-decoration: none;
}

/* ПЛАВАЮЩИЕ КНОПКИ */

.floating-btn {
  position: fixed;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  border: none;
  z-index: 998;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
}

/* WhatsApp зелёный, звонок — брендовый */

.floating-wa {
  bottom: 72px;
  background: #25d366;
}

.floating-phone {
  bottom: 16px;
  background: var(--accent);
}

.floating-btn i {
  font-size: 1.3rem;
}

/* Только на мобилках показываем плавающие кнопки */
@media (max-width: 767.98px) {
  .floating-btn {
    display: flex;
  }
}

/* Адаптивные правки */

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 95px;
  }

  .hero-card {
    margin-top: 10px;
  }

  .navbar-contacts {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .gallery-grid .gallery-item img {
    height: 150px;
  }
}
/* Кнопка "outline" под светлую тему */
.btn-outline-light {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  background-color: transparent !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent-soft) !important;
}
