/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C8A84B;
  --gold-dark: #A88830;
  --dark: #0F0F0F;
  --dark2: #1A1A1A;
  --gray: #4A4A4A;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --font: 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

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

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

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.btn--primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn--full { width: 100%; text-align: center; }

/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-title--light { color: var(--white); }
.section-title--left { text-align: left; }

.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 48px;
}

/* ===== НАВИГАЦИЯ ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
}

.nav__logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  color: var(--white);
  font-size: 15px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; color: var(--gold); }

.nav__cta { padding: 8px 20px; font-size: 14px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Слайды фона */
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero__slide--1 { background-image: url('img/000.jpg'); opacity: 1; }
.hero__slide--2 { background-image: url('img/222.jpg'); }
.hero__slide--3 { background-image: url('img/333.jpg'); }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.50) 0%,
    rgba(0,0,0,0.60) 60%,
    rgba(0,0,0,0.80) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 20px;
  pointer-events: auto;
}

.hero__label {
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero__title {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 8px;
}

.hero__utp {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.hero__btn {
  font-size: 18px;
  padding: 18px 44px;
  box-shadow: 0 4px 24px rgba(200,168,75,0.35);
}

/* ===== УСЛУГИ ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  padding: 36px 28px;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  transition: all 0.25s;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(200,168,75,0.12);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 90px;
  height: 120px;
  background-image: url('img/icon2.png');
  background-size: 400% 200%;
  background-repeat: no-repeat;
  margin-bottom: 16px;
}

/* Спрайт 4×2: каждая иконка 384×512 px в исходнике */
.icon--naruzhka  { background-position: 0%      0%;   } /* ряд 1, кол 1: билборд */
.icon--indoor    { background-position: 33.33%  0%;   } /* ряд 1, кол 2: ситилайт */
.icon--transport { background-position: 66.67%  0%;   } /* ряд 1, кол 3: автобус */
.icon--digital   { background-position: 100%    0%;   } /* ряд 1, кол 4: диджитал */
.icon--vystavki  { background-position: 33.33%  100%; } /* ряд 2, кол 2: выставочный стенд */
.icon--conf      { background-position: 66.67%  100%; } /* ряд 2, кол 3: конференция */

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== СПРАЙТ ICON4 (5×2, 1536×1024) ===== */
.icon4 {
  background-image: url('img/icon4.png');
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.icon4-sm {
  --icw: 60px; --irow: 100px;
  width: 60px; height: 60px;
  background-size: 300px 200px;
}
.icon4-md {
  --icw: 72px; --irow: 120px;
  width: 72px; height: 72px;
  background-size: 360px 240px;
}
.icon4-lg {
  --icw: 84px; --irow: 140px;
  width: 84px; height: 84px;
  background-size: 420px 280px;
}
.icon4--phone       { background-position: 0px 0px; }
.icon4--email       { background-position: calc(-1 * var(--icw, 72px)) 0px; }
.icon4--address     { background-position: calc(-2 * var(--icw, 72px)) 0px; }
.icon4--clock       { background-position: calc(-3 * var(--icw, 72px)) 0px; }
.icon4--manufacture { background-position: calc(-4 * var(--icw, 72px)) 0px; }
.icon4--key         { background-position: 0px calc(-1 * var(--irow, 120px)); }
.icon4--gov         { background-position: calc(-1 * var(--icw, 72px)) calc(-1 * var(--irow, 120px)); }
.icon4--guarantee   { background-position: calc(-2 * var(--icw, 72px)) calc(-1 * var(--irow, 120px)); }
.icon4--manager     { background-position: calc(-3 * var(--icw, 72px)) calc(-1 * var(--irow, 120px)); }
.icon4--b2b         { background-position: calc(-4 * var(--icw, 72px)) calc(-1 * var(--irow, 120px)); }

/* ===== ПОЧЕМУ МЫ ===== */
.why {
  position: relative;
  padding: 100px 0;
  background: url('img/666.jpg') center/cover fixed;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.52);
}
.why .container {
  position: relative;
  z-index: 1;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  overflow: hidden;
}
.why__item {
  text-align: center;
  padding: 44px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: default;
  transition: background 0.25s;
}
.why__item:last-child { border-right: none; }
.why__item:hover { background: rgba(255,255,255,0.06); }

.why__stat {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  border-radius: 8px;
}
.why__item:hover .why__stat {
  transform: translateY(2px);
  filter: brightness(0.88);
}
.why__text {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.45;
  max-width: 130px;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages {
  position: relative;
  padding: 80px 0;
  background: url('img/555.jpg') center/cover fixed;
}
.advantages::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.48);
}
.advantages .container {
  position: relative;
  z-index: 1;
}
/* Заголовок белый — фон тёмный */
.advantages .section-title { color: var(--white); }

.advantages__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.advantages__item {
  flex: 0 0 calc(20% - 13px);
}
.advantages__item {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  cursor: default;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.advantages__item img {
  height: 72px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: filter 0.25s;
}
.advantages__item span {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.4;
}
.advantages__item:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 24px rgba(255,255,255,0.10);
}
.advantages__item:hover img {
  filter: brightness(1.08) drop-shadow(0 0 8px rgba(255,255,255,0.35));
}

/* ===== О КОМПАНИИ ===== */
.about {
  padding: 100px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__photo {
  height: 460px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.about__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.about__slide--a1 { background-image: url('img/888.jpg'); }
.about__slide--a2 { background-image: url('img/777.jpg'); }
.about__slide--a3 { background-image: url('img/999.jpg'); }

.about__text p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about__text .btn { margin-top: 12px; }

/* ===== КЛИЕНТЫ ===== */
.clients {
  padding: 80px 0 60px;
  background: var(--light-gray);
  overflow: hidden;
}

.clients__ticker-wrap {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}
.clients__ticker-wrap::before,
.clients__ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.clients__ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, #F5F5F5, transparent);
}
.clients__ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, #F5F5F5, transparent);
}

.clients__ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.clients__ticker-track:hover { animation-play-state: paused; }

.client-logo {
  flex-shrink: 0;
  padding: 10px 28px;
  opacity: 0.65;
  transition: opacity 0.3s;
}
.client-logo:hover { opacity: 1; }
.client-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== КОНТАКТЫ ===== */
.contacts {
  padding: 100px 0;
}
.contacts__info--centered {
  max-width: 520px;
  margin: 0 auto;
}
.contacts__item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  cursor: default;
}
.ci-icon {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}
.contacts__item:hover .ci-icon {
  filter: drop-shadow(0 0 10px rgba(200,168,75,0.65)) brightness(1.08);
}
.ci-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ci-body strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
}
.ci-body a,
.ci-body span {
  font-size: 18px;
  color: var(--dark);
}
.ci-body a:hover { color: var(--gold-dark); }


/* ===== ФУТЕР ===== */
.footer {
  background: var(--dark);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.footer__copy {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.footer__links a {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}
.footer__links a:hover { color: var(--gold); }

/* ===== МОДАЛКА ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 10px;
  padding: 48px 44px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.modal__box h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal__box > p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 28px;
}

.modal__box input,
.modal__box textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #DDD;
  border-radius: 4px;
  font-size: 15px;
  font-family: var(--font);
  margin-bottom: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.modal__box input:focus,
.modal__box textarea:focus { border-color: var(--gold); }
.modal__box textarea { resize: vertical; }

.modal__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
  padding: 4px;
}
.modal__close:hover { color: var(--dark); }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__item { flex: 0 0 calc(33.33% - 11px); }
  /* ticker adapts automatically */
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav { padding: 14px 20px; }

  .section-title { font-size: 28px; }
  .section-sub { font-size: 16px; }

  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__item { flex: 0 0 calc(50% - 8px); }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { height: 260px; }
  /* contacts single-column, already centered */
  .footer__inner { flex-direction: column; gap: 12px; text-align: center; }
  .client-logo img { height: 48px; }
  .client-logo { padding: 8px 18px; }

  .modal__box { padding: 32px 24px; margin: 0 16px; }
}
