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

:root {
  --bg:       #0c0c0c;
  --bg-2:     #111111;
  --card:     #161616;
  --border:   #222222;
  --text:     #f5f5f5;
  --muted:    #777777;
  --accent:   #78d800;
  --accent-d: #5fa300;

  --ff-d: 'Barlow Condensed', sans-serif;
  --ff-b: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-b);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Tag / eyebrow ── */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Section title ── */
.section-title {
  font-family: var(--ff-d);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--ff-b);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  cursor: pointer;
  border: none;
  transition: opacity .15s, background .15s, color .15s;
  -webkit-appearance: none;
  border-radius: 0;
}
.btn--accent {
  background: var(--accent);
  color: #0c0c0c;
  box-shadow:
    0 0 8px rgba(120, 216, 0, 0.6),
    0 0 20px rgba(120, 216, 0, 0.35),
    0 0 40px rgba(120, 216, 0, 0.15);
  animation: neon-pulse 2.4s ease-in-out infinite;
}
.btn--accent:hover {
  opacity: 1;
  box-shadow:
    0 0 12px rgba(120, 216, 0, 0.9),
    0 0 30px rgba(120, 216, 0, 0.6),
    0 0 60px rgba(120, 216, 0, 0.3);
  animation: none;
}

@keyframes neon-pulse {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(120, 216, 0, 0.6),
      0 0 20px rgba(120, 216, 0, 0.35),
      0 0 40px rgba(120, 216, 0, 0.15);
  }
  50% {
    box-shadow:
      0 0 14px rgba(120, 216, 0, 0.95),
      0 0 35px rgba(120, 216, 0, 0.55),
      0 0 70px rgba(120, 216, 0, 0.25);
  }
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--wide { width: 100%; text-align: center; }


/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 4vw;
  height: 64px;
  transition: background .25s, border-bottom .25s;
}
.nav--solid {
  background: rgba(12,12,12,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav__logo {
  font-family: var(--ff-d);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color .15s;
}
.nav__links a:hover { color: var(--accent); }

.nav__cta { margin-left: 1.5rem; }

.nav__lang {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: 1.2rem;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--ff-b);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  cursor: pointer;
  padding: .25rem .1rem;
  transition: color .15s;
  line-height: 1;
}
.lang-btn:hover       { color: var(--text); }
.lang-btn--active     { color: var(--accent); }

.lang-sep {
  font-size: .6rem;
  color: var(--border);
  user-select: none;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-left: .5rem;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
/* X state */
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 100vh;
  padding-top: 64px;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4vw 4rem 5vw;
  background: var(--bg);
}

.hero__title {
  font-family: var(--ff-d);
  font-size: clamp(3.8rem, 6.5vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 1.8rem;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 2.4rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__right {
  position: relative;
  overflow: hidden;
}
.hero__right img {
  object-position: center top;
}
.hero__right-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 30%);
  pointer-events: none;
}


/* ═══════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  background: var(--accent);
  padding: .7rem 0;
  user-select: none;
}
.marquee__inner {
  display: flex;
  white-space: nowrap;
  animation: scroll-x 24s linear infinite;
}
.marquee__inner span {
  font-family: var(--ff-d);
  font-size: .95rem;
  letter-spacing: .12em;
  color: #0c0c0c;
  padding-right: 0;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════
   STATS
═══════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 2.4rem 3rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat__icon {
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.stat__body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.stat__n {
  font-family: var(--ff-d);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: .04em;
}

.stat__l {
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  max-width: 22ch;
}


/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 80vh;
}

.about__photo {
  overflow: hidden;
  position: relative;
}
.about__photo img { object-position: center top; }

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem,7vw,7rem) clamp(2.5rem,5vw,5rem);
  background: var(--bg-2);
}

.about__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  margin-top: 1.6rem;
  margin-bottom: 2rem;
  max-width: 50ch;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 2.4rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
}
.about__list li {
  font-size: .88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
}
.about__list li span {
  color: var(--text);
  font-weight: 500;
}


/* ═══════════════════════════════════════════
   SELECTION
═══════════════════════════════════════════ */
.selection {
  padding: clamp(5rem,10vw,9rem) 5vw;
  border-top: 1px solid var(--border);
}

.selection__head { margin-bottom: 3.5rem; }

.selection__sub {
  font-size: .9rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 44ch;
}

.selection__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.sel-card {
  padding: 2.4rem;
  border-radius: 2px;
  background: var(--bg-2);
}
.sel-card--yes { border-left: 3px solid var(--accent); }
.sel-card--no  { border-left: 3px solid var(--border); }

.sel-card__title {
  font-family: var(--ff-d);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.sel-card--yes .sel-card__title { color: var(--accent); }
.sel-card--no  .sel-card__title { color: var(--muted); }

.sel-card li {
  font-size: .9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  padding: .6rem 0 .6rem 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: relative;
}
.sel-card li:last-child { border-bottom: none; }
.sel-card--yes li { color: #ccc; }
.sel-card--yes li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.sel-card--no  li::before { content: '—'; position: absolute; left: 0; color: #333; }


/* ═══════════════════════════════════════════
   PROBLEMS
═══════════════════════════════════════════ */
.problems {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem,5vw,6rem);
  align-items: start;
  padding: clamp(5rem,10vw,9rem) 5vw;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.problems__head { position: sticky; top: 80px; }

.problems__list {
  display: flex;
  flex-direction: column;
}

.prob {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.prob:first-child { border-top: 1px solid var(--border); }
.prob:hover { background: var(--bg-2); }

.prob__n {
  font-family: var(--ff-d);
  font-size: clamp(2.5rem,5vw,5rem);
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 3.5rem;
  transition: color .2s;
}
.prob:hover .prob__n { color: var(--accent); }

.prob h3 {
  font-family: var(--ff-d);
  font-size: clamp(1.4rem,2.5vw,2rem);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.prob p {
  font-size: .9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 48ch;
}


/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services {
  padding: clamp(5rem,10vw,9rem) 5vw;
  border-top: 3px solid var(--accent);
  background: var(--bg-2);
}

.services__head { margin-bottom: 3.5rem; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.srv-card {
  background: var(--card);
  padding: 2.4rem 1.8rem;
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background .2s;
}
.srv-card:hover { background: #1d1d1d; }

.srv-card__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.srv-card h3 {
  font-family: var(--ff-d);
  font-size: 1.5rem;
  letter-spacing: .04em;
}

.srv-card p {
  font-size: .86rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}


/* ═══════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════ */
.gallery {
  border-top: 1px solid var(--border);
}

.gallery__head {
  padding: clamp(3rem,6vw,5rem) 5vw 2rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 420px 380px 280px;
  gap: 3px;
  background: var(--bg);
}

.bento__item { overflow: hidden; background: #111; }
.bento__item img {
  object-position: center 15%;
  transition: transform .5s ease;
}
.bento__item:hover img { transform: scale(1.04); }

/* tall hero — лівий стовпець, 2 рядки */
.bento__item:nth-child(1) { grid-column: 1;     grid-row: 1 / 3; }
.bento__item:nth-child(2) { grid-column: 2;     grid-row: 1; }
.bento__item:nth-child(3) { grid-column: 3;     grid-row: 1; }
.bento__item:nth-child(4) { grid-column: 2;     grid-row: 2; }
.bento__item:nth-child(5) { grid-column: 3;     grid-row: 2; }
/* wide bottom — повна ширина */
.bento__item:nth-child(6) { grid-column: 1 / 4; grid-row: 3; }


/* ═══════════════════════════════════════════
   CERTIFICATES
═══════════════════════════════════════════ */
.certs {
  padding: clamp(5rem,10vw,9rem) 5vw;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.certs__head { margin-bottom: 3rem; }

.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem,2vw,2rem);
}

.cert-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.cert-item:hover { border-color: var(--accent); }
.cert-item img { object-fit: contain; background: #fff; }


/* ═══════════════════════════════════════════
   FORM
═══════════════════════════════════════════ */
.form-sec {
  position: relative;
  border-top: 3px solid var(--accent);
  overflow: hidden;
}

.form-sec__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.form-sec__bg img { object-position: center 30%; }

.form-sec__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(12,12,12,.97) 45%,
    rgba(12,12,12,.85) 100%
  );
}

.form-sec__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,6rem);
  align-items: center;
  padding: clamp(5rem,10vw,9rem) 5vw;
}

.form-sec__desc {
  font-size: .92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
  max-width: 42ch;
}

.form-sec__geo {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}
.form-sec__geo span {
  font-size: .78rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: .05em;
}

/* form fields */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form__field label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__field input,
.form__field textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .95rem 1rem;
  font-size: .95rem;
  font-family: var(--ff-b);
  font-weight: 300;
  outline: none;
  resize: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color .15s;
}
.form__field input:focus,
.form__field textarea:focus { border-color: var(--accent); }
.form__field input::placeholder,
.form__field textarea::placeholder { color: #2c2c2c; }

.form__note {
  font-size: .68rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: .05em;
  margin-top: .2rem;
}

.form__success {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 2.5rem;
  font-size: .95rem;
  font-weight: 300;
  text-align: center;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════
   CONTACTS
═══════════════════════════════════════════ */
.contacts {
  border-top: 3px solid var(--accent);
  background: var(--bg-2);
}

.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 480px;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem,7vw,6rem) clamp(2.5rem,5vw,5rem);
  border-right: 1px solid var(--border);
}

.contacts__socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.4rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(120,216,0,.05);
}
.social-link svg { flex-shrink: 0; color: var(--accent); }

.contacts__map {
  position: relative;
  min-height: 400px;
}
.contacts__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(1) invert(0.9) contrast(0.85);
}


/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2rem 5vw;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__logo {
  font-family: var(--ff-d);
  font-size: 1.3rem;
  letter-spacing: .08em;
}

.footer__tagline {
  font-size: .7rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 1;
}

.footer__privacy {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.footer__privacy:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */

/* ── Hero entrance (page load) ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__left .tag   { animation: fade-up .55s ease both .05s; }
.hero__title       { animation: fade-up .7s  ease both .2s;  }
.hero__sub         { animation: fade-up .6s  ease both .4s;  }
.hero__actions     { animation: fade-up .6s  ease both .55s; }
.hero__right       { animation: fade-up .9s  ease both .1s;  }

/* ── Scroll reveal ── */
.reveal,
.reveal-left,
.reveal-right {
  transition:
    opacity   .65s ease var(--delay, 0s),
    transform .65s ease var(--delay, 0s);
}
.reveal       { opacity: 0; transform: translateY(26px); }
.reveal-left  { opacity: 0; transform: translateX(-28px); }
.reveal-right { opacity: 0; transform: translateX(28px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Respect reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero__left .tag, .hero__title,
  .hero__sub, .hero__actions, .hero__right {
    animation: none;
  }
  .reveal, .reveal-left, .reveal-right {
    transform: none;
    transition: opacity .3s ease var(--delay, 0s);
  }
}


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── Планшет альбомний (1100px) ── */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .problems       { grid-template-columns: 1fr; }
  .problems__head { position: static; margin-bottom: 2.5rem; }
}

/* ── Планшет портретний / великий телефон (900px) ── */
@media (max-width: 900px) {

  /* NAV */
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__lang  { margin-left: auto; }
  .nav__burger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(12,12,12,.98);
    border-bottom: 1px solid var(--border);
    z-index: 199;
  }
  .nav__links.open li { border-bottom: 1px solid var(--border); }
  .nav__links.open li:last-child { border-bottom: none; }
  .nav__links.open a {
    display: block;
    padding: 1rem 5vw;
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: .06em;
  }
  .nav__links.open a:hover { color: var(--accent); }

  /* HERO */
  .hero              { grid-template-columns: 1fr; min-height: auto; }
  .hero__right       { height: 56vw; min-height: 260px; max-height: 440px; }
  .hero__right-fade  { background: linear-gradient(to bottom, transparent 50%, var(--bg) 100%); }
  .hero__left        { padding: 2.8rem 5vw 3rem; }

  /* STATS */
  .stats   { grid-template-columns: repeat(3, 1fr); }
  .stat    { padding: 1.6rem 1.2rem; gap: .9rem; }
  .stat__n { font-size: clamp(1.2rem, 2.8vw, 1.8rem); }

  /* ABOUT */
  .about        { grid-template-columns: 1fr; }
  .about__photo { height: 88vw; min-height: 340px; }
  .about__photo img { object-position: center 12%; }

  /* SELECTION */
  .selection__grid { grid-template-columns: 1fr; gap: 1.2rem; }

  /* SERVICES */
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  /* GALLERY */
  .bento {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 2px;
  }
  .bento__item {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 220px;
  }
  .bento__item:nth-child(1) {
    grid-column: 1 / 3 !important;
    height: 300px;
  }
  .bento__item:nth-child(1) img { object-position: center 45%; }

  /* CERTIFICATES */
  .certs__grid { grid-template-columns: repeat(3, 1fr); }

  /* FORM */
  .form-sec__inner   { grid-template-columns: 1fr; }
  .form-sec__overlay { background: rgba(12,12,12,.94); }

  /* CONTACTS */
  .contacts__inner { grid-template-columns: 1fr; }
  .contacts__info  { border-right: none; border-bottom: 1px solid var(--border); }
  .contacts__map   { min-height: 340px; }

  /* FOOTER */
  .footer__inner   { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .footer__tagline { flex: unset; }
}

/* ── Телефон (600px) ── */
@media (max-width: 600px) {

  /* NAV */
  .nav          { height: 56px; }
  .nav__links.open { top: 56px; }

  /* HERO */
  .hero__right  { height: 66vw; }
  .hero__title  { font-size: clamp(2.8rem, 11vw, 4.5rem); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }

  /* STATS */
  .stats { grid-template-columns: 1fr; }
  .stat  { border-right: none; border-bottom: 1px solid var(--border); padding: 1.4rem 5vw; }
  .stat:last-child { border-bottom: none; }

  /* SERVICES */
  .services__grid { grid-template-columns: 1fr; }

  /* GALLERY */
  .bento__item             { height: 180px; }
  .bento__item:nth-child(1){ height: 240px !important; }

  /* CERTIFICATES */
  .certs__grid { grid-template-columns: 1fr; max-width: 360px; }

  /* PROBLEMS */
  .prob    { gap: 1rem; }
  .prob__n { font-size: 2rem; width: 2.2rem; }

  /* SELECTION */
  .sel-card { padding: 1.6rem 1.2rem; }

  /* CONTACTS */
  .contacts__map { min-height: 260px; }
}

/* ── Малий телефон (400px) ── */
@media (max-width: 400px) {
  .btn            { padding: .85rem 1.6rem; }
  .section-title  { font-size: clamp(2rem, 9vw, 3.2rem); }
  .bento__item    { height: 150px; }
  .bento__item:nth-child(1) { height: 200px !important; }
  .stat__l        { font-size: .7rem; }
}
