/* ================= RESET ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0d1522;
  background: #fff;
  line-height: 1.4;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.btn {
  display: inline-block; padding: 15px 38px; border-radius: 30px;
  font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 1px; transition: .3s; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: #fff; box-shadow: 0 8px 25px rgba(59,130,246,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59,130,246,.6); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }


/* ================= HEADER / HERO ================= */
.header {
  position: relative;
  background: #0d1522 url('images/header-bg.jpg') center/cover no-repeat;
  color: #fff;
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,20,35,.92) 0%,
    rgba(10,20,35,.75) 45%,
    rgba(10,20,35,.55) 100%
  );
  pointer-events: none;
}
.header__inner {
  position: relative;
  z-index: 2;
}

/* --- Верхняя строка: лого + меню --- */
.header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 28px 0;
}
.logo { font-size: 14px; line-height: 1.4; font-weight: 600; }
.logo span { display: block; }
.logo .big { font-size: 19px; font-weight: 800; letter-spacing: .5px; }

.nav { display: flex; gap: 32px; font-size: 14   px; font-weight: 600; letter-spacing: .5px; padding-top: 6px; }
.nav a { text-transform: uppercase; transition: color .3s; }
.nav a:hover, .nav a.active { color: #3b82f6; }

/* --- Контакты (только на главной) --- */
.hero__contacts {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  margin: 50px 0 55px;
}
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.contact-icon {
  width: 38px; height: 38px; background: #3b82f6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; fill: #fff; }
.contact-item small { display: block; opacity: .7; font-size: 11px; }
.contact-item strong { font-size: 15px; }

/* --- Контент героя --- */
.hero__title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 620px;
  margin-bottom: 22px;
}
.hero__desc {
  font-size: 15px;
  line-height: 1.6;
  max-width: 460px;
  opacity: .85;
  margin-bottom: 32px;
}

/* --- Низ героя: статы + фичи --- */
.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 25px;
  margin-top: 70px;
  padding-bottom: 60px;
  align-items: start;
}
.stat-card {
  background: rgba(20,30,50,.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 25px;
}
.stat-card .num { font-size: 36px; font-weight: 800; margin-bottom: 5px; }
.stat-card .txt { font-size: 11.5px; opacity: .8; line-height: 1.4; }
.hero__features { display: flex; flex-direction: column; gap: 18px; }
.feature {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.5;
}
.feature::before {
  content: '';
  width: 6px; height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

/* --- Модификатор для внутренних страниц: маленькая шапка --- */
.header--small .header__top { padding: 30px 0 40px; }
/* ================= SERVICES ================= */
.services { background: #eef2f8; padding: 70px 0; }
.services__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 40px; gap: 30px;
}
.section-title {
  font-size: 32px; font-weight: 900; text-transform: uppercase;
  margin-bottom: 14px;
}
.services__desc {
  font-size: 15px; line-height: 1.6; color: #4a5568; max-width: 560px;
}
.arrows { display: flex; gap: 12px;}
.arrow {
  width: 40px; height: 40px; border-radius: 50%; background: #3b82f6;
  display: flex; align-items: center; justify-content: center;
  transition: .3s; cursor: pointer;
}
.arrow:hover { background: #2563eb; }
.arrow svg { width: 16px; height: 16px; fill: #fff; }

.carousel { overflow: hidden; }
.carousel__track {
  display: flex; gap: 24px;
  transition: transform .5s ease;
}
.service-card {
  background: #fff; border-radius: 16px; padding: 20px;
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex; flex-direction: column;
  box-shadow: 0 5px 20px rgba(0,0,0,.05);
}
.service-card__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  margin-bottom: 16px; line-height: 1.35;
}
.service-card__title::before {
  content: ''; width: 8px; height: 8px; background: #3b82f6;
  border-radius: 50%; flex-shrink: 0;
}
.service-card__img {
  width: 100%; height: 350px; border-radius: 10px;
  background: #cbd5e0 center/cover no-repeat; margin-bottom: 20px;
}
.service-card .btn { align-self: center; }

/* ================= ABOUT (dark) ================= */
.about { background: #0d1522; padding: 80px 0; color: #fff; }
.about__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.about__title {
  font-size: 32px; font-weight: 900; text-transform: uppercase;
  line-height: 1.15; margin-bottom: 35px;
}
.about__list { display: flex; flex-direction: column; gap: 25px; }
.about-item h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.about-item h3::before { content: '✓'; color: #3b82f6; font-weight: 900; }
.about-item p { font-size: 15px; line-height: 1.6; opacity: .7; }

.about__visual { position: relative; }
.about__img {
  width: 100%; height: 480px; border-radius: 16px;
  background: url('images/about.png') center/cover no-repeat;
}
.about__float {
  position: absolute; right: -30px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 20px;
}
.float-card {
  background: #1a2740; border: 1px solid rgba(59,130,246,.3);
  border-radius: 12px; padding: 18px 20px; max-width: 230px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.float-card .ico {
  width: 60px; height: 60px; background: #3b82f6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.float-card .ico svg,
.float-card .ico img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1); /* принудительно делает иконку белой */
}.float-card p { font-size: 14px; line-height: 1.4; }

/* ================= VIDEO ================= */
.video-section {
  width: 100%;
  background: #0d1522;
  overflow: hidden;
  line-height: 0; /* убирает микро-зазор под видео */
}
.video-section video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
}

/* ================= ADVANTAGES ================= */
.advantages { background: #eef2f8; padding: 80px 0; }
.advantages__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
}
.advantages__title {
  font-size: 36px; font-weight: 900; text-transform: uppercase;
  margin-bottom: 40px;
}
.adv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adv-card {
  background: #fff; border-radius: 14px; padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,.05);
}
.adv-card .ico {
  width: 50px; height: 50px; background: #3b82f6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.adv-card .ico svg { width: 22px; height: 22px; fill: #fff; }
.adv-card h3 {
  font-size: 15px; font-weight: 800; text-transform: uppercase;
  margin-bottom: 10px; line-height: 1.4;
}
.adv-card p { font-size: 14px; line-height: 1.4; color: #4a5568; }
.adv-image {
  height: 480px; border-radius: 16px;
  background: url('images/advantage.jpg') center/cover no-repeat;
}

/* ================= INNER PAGE (breadcrumbs + title) ================= */
.page { background: #eef2f8; padding: 40px 0 70px; min-height: 50vh; }
.breadcrumbs {
  font-size: 15px; color: #4a5568; margin-bottom: 40px;
}
.breadcrumbs a { color: #3b82f6; }
.breadcrumbs span { opacity: .6; margin: 0 5px; }
.page__title {
  font-size: 44px; font-weight: 900; margin-bottom: 50px; color: #0d1522;
}

/* ================= ABOUT PAGE ================= */
.about-page__intro {
  font-size: 17px; font-weight: 600; line-height: 1.5;
  color: #0d1522; max-width: 900px; margin-bottom: 70px;
}
.about-page__list { display: flex; flex-direction: column; gap: 60px; }
.about-page__item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.about-page__cert {
  width: 100%;
  height: 340px;
  border-radius: 12px;
  background: #fff center/contain no-repeat;
  box-shadow: 0 5px 20px rgba(0,0,0,.08);
  border: 1px solid #e2e8f0;
}
.about-page__text h3 {
  font-size: 17px; font-weight: 800; margin-bottom: 14px; color: #0d1522;
}
.about-page__text p {
  font-size: 15px; line-height: 1.6; color: #4a5568; margin-bottom: 10px;
}
.about-page__text .btn { margin-top: 15px; }

/* ================= PROJECTS (grid table) ================= */
.projects__table { margin-bottom: 50px; }
.projects__row {
  display: grid;
  grid-template-columns: 60px 1.3fr 2fr 1.2fr .8fr 1.2fr;
  gap: 0;
  background: #e2e8f0;
  margin-bottom: 4px;
  font-size: 15px;
  align-items: stretch;
}
.projects__row > div { padding: 16px 14px; }
.projects__row--head {
  background: #d4dbe4;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .3px;
}
.projects__row:nth-child(even):not(.projects__row--head) { background: #dfe5ec; }

.projects__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.project-card {
  background: #fff; border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column;
  box-shadow: 0 5px 20px rgba(0,0,0,.05);
}
.project-card__img {
  width: 100%; height: 180px; border-radius: 10px;
  background: #cbd5e0 center/cover no-repeat; margin-bottom: 16px;
}
.project-card__title {
  font-size: 15px; font-weight: 800; text-align: center; margin-top: auto;
}

/* ================= CONTACTS PAGE ================= */
.contacts-page {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px;
}
.contacts-page__list { display: flex; flex-direction: column; gap: 25px; }
.contacts-page__item { font-size: 15px; line-height: 1.5; }
.contacts-page__item strong { display: block; margin-bottom: 4px; font-weight: 800; }
.contacts-page__item a { color: #0d1522; font-weight: 700; }
.contacts-page__map {
  width: 100%; height: 480px; border-radius: 14px;
  background: url('images/map.jpg') center/cover no-repeat;
  box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

/* ================= FOOTER ================= */
.footer { background: #0d1522; padding: 70px 0 30px; color: #fff; }
.footer__title {
  font-size: 32px; font-weight: 900; text-transform: uppercase;
  margin-bottom: 40px;
}
.footer__grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px;
  margin-bottom: 50px;
}
.footer__contacts { display: flex; flex-direction: column; gap: 45px; }
.footer__contact { display: flex; gap: 15px; align-items: flex-start; font-size: 12.5px; }
.footer__contact .ico {
  width: 38px; height: 38px; background: #3b82f6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer__contact .ico svg { width: 16px; height: 16px; fill: #fff; }
.footer__contact small { display: block; opacity: .6; font-size: 14px; margin-bottom: 3px; }
.footer__contact strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.footer__contact a { color: #60a5fa; }
.footer__map {
  background: #333; border-radius: 14px; height: 320px;
  background: url('images/map.jpg') center/cover no-repeat;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 25px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 14px; opacity: .6;
}

/* ================= UP BUTTON ================= */
.up-btn {
  position: fixed; right: 30px; bottom: 30px;
  width: 48px; height: 48px; background: #3b82f6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 25px rgba(59,130,246,.5);
  z-index: 100; transition: .3s;
}
.up-btn:hover { transform: translateY(-3px); }
.up-btn svg { width: 20px; height: 20px; fill: #fff; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero__title { font-size: 30px; }
  .hero__bottom { grid-template-columns: 1fr 1fr; }
  .hero__features { grid-column: span 2; }
  .service-card { flex: 0 0 calc((100% - 24px) / 2); }
  .about__grid, .advantages__grid, .footer__grid,
  .contacts-page { grid-template-columns: 1fr; }
  .about__float { position: static; transform: none; margin-top: 20px; flex-direction: row; flex-wrap: wrap; }
  .projects__row { grid-template-columns: 40px 1fr 1.5fr 1fr .6fr 1fr; font-size: 11px; }
  .projects__cards { grid-template-columns: 1fr 1fr; }
  .about-page__item { grid-template-columns: 200px 1fr; gap: 30px; }
.about-page__cert { height: 280px; }
  .video-section { height: 100%; }
  .hero__title { font-size: 30px; }
.hero__bottom { grid-template-columns: 1fr 1fr; }
.hero__features { grid-column: span 2; }

}
@media (max-width: 640px) {
  .header__inner { flex-direction: column; gap: 15px; }
  .nav { flex-wrap: wrap; justify-content: flex-start; gap: 15px; font-size: 11px; padding-top: 0; }
  .hero__contacts { flex-direction: column; align-items: center; gap: 12px; }
  .hero__title { font-size: 22px; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__features { grid-column: span 1; }
  .service-card { flex: 0 0 100%; }
  .section-title, .about__title, .advantages__title, .footer__title { font-size: 22px; }
  .page__title { font-size: 28px; }
  .adv-cards { grid-template-columns: 1fr; }
  .projects__row { grid-template-columns: 1fr; padding: 12px; }
  .projects__row > div { padding: 6px 0; }
  .projects__row--head { display: none; }
  .projects__cards { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 15px; align-items: flex-start; }
  .about-page__item { grid-template-columns: 1fr; gap: 20px; }
  .about-page__cert { height: 260px; max-width: 300px; margin: 0 auto; }
  .video-section { height: 100%; }
  .hero__contacts { flex-direction: column; align-items: flex-end; gap: 12px; margin: 30px 0 35px; }
.hero__title { font-size: 22px; }
.hero__bottom { grid-template-columns: 1fr; padding-bottom: 40px; }
.hero__features { grid-column: span 1; }
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, .9);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
  opacity: 0;
  transition: opacity .25s ease;
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .6);
  transform: scale(.96);
  transition: transform .25s ease;
  cursor: default;
  background: #fff;
}
.lightbox.is-open .lightbox__img {
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .25s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, .25);
}
.lightbox__close svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

/* Подсказка: кликабельные картинки */
.js-lightbox {
  cursor: zoom-in;
  transition: transform .25s, box-shadow .25s;
}
.js-lightbox:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}

/* На мобильном — паддинги поменьше */
@media (max-width: 640px) {
  .lightbox { padding: 20px 12px; }
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
}
