/* ===========================================================
   layout.css — header, hero, marquee, about, gallery, footer + адаптив
   =========================================================== */

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; }
.logo__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--graphite-900);
  color: var(--yellow-500);
}
.logo__dot { color: var(--amber-500); }
.logo--light { color: var(--white); }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav__link { padding: 9px 15px; border-radius: var(--r-sm); font-weight: 500; font-size: .96rem; color: var(--slate); }
.nav__link:hover { color: var(--graphite-900); background: var(--paper); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; color: var(--graphite-900);
}
.header__phone:hover { color: var(--amber-500); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--graphite-900); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--graphite-950);
  color: var(--white);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 90% 0%, rgba(255,212,0,.16), transparent 60%),
    radial-gradient(640px 380px at 0% 110%, rgba(255,122,0,.14), transparent 55%);
  pointer-events: none;
}
/* тонка сітка-нагрів */
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask: radial-gradient(900px 600px at 60% 40%, #000 30%, transparent 75%);
          mask: radial-gradient(900px 600px at 60% 40%, #000 30%, transparent 75%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { margin: 18px 0; color: var(--white); }
.hero__lead { font-size: 1.12rem; color: rgba(246,247,249,.74); max-width: 36ch; }
.hero__lead strong { color: var(--white); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.hero__trust li { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line-dark); }
.hero__trust li:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.hero__trust li strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--yellow-500); }
.hero__trust li span { color: rgba(246,247,249,.6); font-size: .88rem; }

/* Hero visual — фото у графітовій рамці */
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
}
.hero__frame img { width: 100%; aspect-ratio: 5/4; object-fit: cover; display: block; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,14,17,.55));
}
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  background: var(--white); color: var(--ink);
  border-radius: var(--r-md); padding: 13px 17px;
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.float-card small { display: block; color: var(--slate); font-size: .78rem; }
.float-card strong { font-size: .95rem; font-family: var(--font-display); }
.float-card__icon {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 9px; background: var(--graphite-900); color: var(--yellow-500);
}
.float-card--1 { top: 8%; left: -16px; }
.float-card--2 { bottom: 7%; right: -16px; animation-delay: 1.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee брендів ---------- */
.brands { background: var(--graphite-900); padding: 20px 0; overflow: hidden; }
.brands__track {
  display: flex; gap: 54px; width: max-content;
  animation: marquee 28s linear infinite;
}
.brands__track span {
  font-family: var(--font-display); font-weight: 500; font-size: 1.02rem;
  color: rgba(246,247,249,.5); white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about__media { position: relative; }
.about__img { min-height: 440px; height: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.about__badge {
  position: absolute; bottom: 18px; left: 18px;
  background: var(--graphite-900); color: var(--white);
  border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--shadow-md);
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--yellow-500); }
.about__badge span { font-size: .82rem; color: rgba(246,247,249,.7); }
.about__text h2 { margin-bottom: .6rem; }
.about__text > p { color: var(--slate); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
  grid-auto-flow: dense;
}
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r-lg); grid-column: span 2; }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery__link { display: block; }
.gallery__link:hover img { transform: scale(1.06); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 18px 16px; color: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem;
  background: linear-gradient(transparent, rgba(13,14,17,.85));
}

/* ---------- Contacts layout ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contacts__info h2 { margin-bottom: .6rem; }
.contacts__info > p { color: var(--slate); max-width: 44ch; }

/* ---------- Footer ---------- */
.footer { background: var(--graphite-950); color: rgba(246,247,249,.7); padding: clamp(48px, 6vw, 76px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.1rem; }
.footer__col a, .footer__col span { display: block; color: rgba(246,247,249,.66); margin-bottom: 9px; font-size: .95rem; }
.footer__col a:hover { color: var(--yellow-500); }
.footer__col--brand p { color: rgba(246,247,249,.55); font-size: .95rem; max-width: 36ch; margin-top: 14px; }
.footer__col--brand .logo { color: var(--white); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  font-size: .85rem; color: rgba(246,247,249,.5);
}

/* ===========================================================
   Адаптив
   =========================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__lead { max-width: none; }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__img { min-height: 300px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item, .gallery__item--lg { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--white);
    padding: 12px 20px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-135%);
    transition: transform .3s ease;
    margin-left: 0;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: flex; margin-left: auto; }
  .fab { display: grid; }
  .float-card--1 { left: 8px; }
  .float-card--2 { right: 8px; }
}

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .hero__trust li { padding-right: 18px; margin-right: 18px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 14px 0; }
  .pricelist__row { padding: 15px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
