/* ===== RESET & VARIABLES ===== */
:root {
  --black:    #0c0b0a;
  --dark:     #141210;
  --dark2:    #1c1a17;
  --card-bg:  #1e1c18;
  --border:   #2d2a24;
  --orange:   #e8742c;
  --orange-h: #f08840;
  --white:    #f4f1ec;
  --gray:     #b2ad a5;
  --gray:     #b2ada5;
  --gray2:    #7c7870;
  --radius:   6px;
  --font:     'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x:hidden; }
body { overflow-x: hidden; }
body {
  font-family: var(--font), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
button { font-family:inherit; cursor:pointer; }

.container { max-width:1240px; margin:0 auto; padding:0 24px; width:100%; box-sizing:border-box; }

.section-title {
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin-bottom: 6px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--orange);
  margin-top: 12px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #1a0e04; border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-h); border-color: var(--orange-h); }
.btn--outline { background: transparent; border-color: rgba(244,241,236,0.45); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--full { width: 100%; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--black);
  font-size: 12.5px;
  color: var(--gray2);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(14,12,10,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__link:hover, .nav__link.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.header__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header__phone-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.2s;
}
.header__phone:hover { color: var(--orange-h); }
.header__phone-arrow { font-size: 11px; color: var(--gray2); }
.header__phone-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--white);
  transition: color 0.2s;
}
.header__phone-icon:hover { color: var(--orange-h); }
.header__btn-wrap { display: flex; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 3px solid var(--orange);
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(11,10,9,0.93) 0%,
    rgba(11,10,9,0.6) 40%,
    rgba(11,10,9,0.15) 72%,
    transparent 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 620px;
}
.hero__title {
  font-size: 44px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.18;
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: 16px;
  color: #ddd8cf;
  line-height: 1.65;
  margin-bottom: 34px;
}
.hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero__features {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: #ccc8c0;
  line-height: 1.4;
}
.hero__features svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }

/* ===== ABOUT ===== */
.about {
  position: relative;
  padding: 86px 0;
  overflow: hidden;
}
.about__bg-img {
  position: absolute;
  inset: 0;
}
.about__bg-img img { width:100%; height:100%; object-fit:cover; filter:brightness(0.28) saturate(0.7); }
.about__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,11,10,0.45), rgba(12,11,10,0.88));
}
.about__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.about__text p {
  font-size: 15px;
  color: #b8b3ab;
  line-height: 1.75;
  margin-bottom: 18px;
}
.about__gallery {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  aspect-ratio: 4/3;
}
.about__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.about__slide.active { opacity: 1; }
.about__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: var(--orange); transform: scale(1.2); }

/* ===== CATALOG ===== */
.catalog {
  padding: 86px 0;
  background: var(--dark2);
}
.catalog__lead {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
  margin-top: 6px;
}
.catalog__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 36px;
}
.catalog__badge svg { flex-shrink: 0; }
.catalog__badge-link {
  color: var(--orange-h);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.catalog__badge-link:hover { color: #fff; }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}
.cat-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 86px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.cat-card__content { position: relative; z-index: 2; }
.cat-card h3 {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 10px;
}
.cat-card__line {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--orange);
  margin-bottom: 14px;
}
.cat-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
  max-width: 58%;
}
.cat-card__arrow {
  display: inline-block;
  margin-top: 20px;
  color: var(--orange);
  font-size: 20px;
  transition: transform 0.2s;
  position: relative;
  z-index: 2;
}
.cat-card:hover .cat-card__arrow { transform: translateX(5px); }
.cat-card__img {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 145px;
  height: 145px;
  object-fit: contain;
  opacity: 0.9;
  z-index: 1;
  transition: transform 0.3s;
}
.cat-card:hover .cat-card__img { transform: scale(1.04); }

.catalog__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.catalog__perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.4;
  flex: 1 1 180px;
  padding: 0 16px 0 0;
}
.catalog__perks svg { color: var(--orange); flex-shrink: 0; margin-top: 1px; }

/* ===== WORKS ===== */
.works {
  padding: 86px 0;
  background: var(--dark);
}
.works__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  align-items: start;
}
.works__head .section-title { margin-bottom: 0; }
.works__main-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--orange);
  cursor: pointer;
}
.works__main-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.3s;
}
.works__main-wrap:hover .works__main-img { transform: scale(1.02); }
.works__strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.works__strip::-webkit-scrollbar { height: 4px; }
.works__strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.works__thumb {
  flex-shrink: 0;
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.works__thumb:hover { opacity: 0.8; }
.works__thumb.active { opacity: 1; border-color: var(--orange); }

/* ===== STAGES ===== */
.stages {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.stages__bg {
  position: absolute;
  inset: 0;
}
.stages__bg img { width:100%; height:100%; object-fit:cover; filter:brightness(0.22) saturate(0.5); }
.stages__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,9,8,0.72);
}
.stages__inner { position: relative; z-index: 2; }
.stages__inner .section-title { margin-bottom: 36px; }
.stages__grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.stage {
  background: rgba(20,18,16,0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  flex: 1;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.stage:hover { border-color: var(--orange); }
.stage__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--orange);
  color: #1a0e04;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
}
.stage p { font-size: 13px; color: #ccc8bf; line-height: 1.5; }
.stage__sep {
  width: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray2);
  font-size: 18px;
  position: relative;
}
.stage__sep::after { content: '—'; }

/* ===== CONTACTS ===== */
.contacts {
  padding: 80px 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
}
.contacts__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}
.contacts__brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 28px;
}
.contacts__block {
  margin-bottom: 22px;
}
.contacts__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray2);
  font-weight: 700;
  margin-bottom: 6px;
}
.contacts__block p {
  font-size: 15.5px;
  margin-bottom: 3px;
  color: var(--white);
}
.contacts__block a { color: var(--white); transition: color 0.2s; }
.contacts__block a:hover { color: var(--orange-h); }
.contacts__map {
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.contacts__map iframe { width: 100%; height: 100%; display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--gray2);
}
.footer__left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer__privacy {
  color: var(--gray2);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer__privacy:hover { color: var(--orange-h); }
.footer__dev {
  font-size: 12px;
  color: var(--gray2);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer__dev:hover { color: var(--orange-h); }
.footer__dev strong { color: var(--orange); font-weight: 600; }

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}

/* wide two-column box */
.modal__box {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: min(860px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  z-index: 1;
  display: flex;
  animation: modalIn 0.22s ease;
}
.modal__box--wide { /* alias, already handled above */ }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* LEFT column */
.modal__form-col {
  flex: 0 0 340px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.modal__form-col h3 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--white);
}
.modal__desc {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.5;
}

form { display: flex; flex-direction: column; gap: 12px; }

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 13px 16px;
  color: var(--white);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,0.09);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray2); }

.modal__consent {
  font-size: 11px;
  color: var(--gray2);
  line-height: 1.5;
  margin-top: 4px;
}
.modal__consent a {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.modal__consent a:hover { color: var(--orange-h); }

/* RIGHT column — photo slider */
.modal__photo-col {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.modal__slider {
  position: absolute;
  inset: 0;
}
.modal__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.modal__slide.active { opacity: 1; }
.modal__slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

/* close button */
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.modal__close:hover { background: var(--orange); }

.modal__success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(232,116,44,0.15);
  color: var(--orange);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
#modalSuccess h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 8px; }
#modalSuccess p { color: var(--gray); font-size: 14px; line-height: 1.6; }

/* mobile: stack columns */
@media (max-width: 640px) {
  .modal__box { flex-direction: column; max-height: 96vh; }
  .modal__form-col { flex: none; padding: 28px 22px; }
  .modal__photo-col { min-height: 220px; flex: 0 0 220px; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.8);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 3;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(232,116,44,0.5); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== RESPONSIVE ===== */

/* --- Tablet 960px --- */
@media (max-width: 960px) {
  /* Header */
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(12,11,10,0.98);
    padding: 16px 20px 20px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    z-index: 199;
  }
  .nav.open { display: flex; }
  .burger { display: flex; }
  .header__phone-wrap { display: none; }

  /* Layouts */
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .catalog__grid { grid-template-columns: 1fr 1fr; }
  .works__inner { grid-template-columns: 1fr; gap: 28px; }
  .contacts__inner { grid-template-columns: 1fr; gap: 32px; }
  .contacts__map { height: 300px; }

  /* Stages */
  .stages__grid { flex-wrap: wrap; gap: 12px; }
  .stage { flex: 1 1 44%; }
  .stage__sep { display: none; }
}

/* --- Mobile 640px --- */
@media (max-width: 640px) {

  /* === HEADER === */
  .breadcrumb { display: none; }
  .header__inner { height: 60px; gap: 0; }
  .logo { font-size: 20px; letter-spacing: 1.5px; }
  .header__right { display: flex; gap: 10px; }
  /* Show phone icon instead of text on mobile */
  .header__phone-wrap { display: flex; align-items: center; }
  .header__phone { display: none; }
  .header__phone-arrow { display: none; }
  .header__phone-icon { display: flex; }
  .header__btn-wrap { display: none; }
  .burger { display: flex; }
  .nav { top: 60px; }

  /* === HERO === */
  .hero { min-height: auto; border-bottom-width: 2px; }
  .hero__overlay {
    background: linear-gradient(180deg,
      rgba(10,9,8,0.75) 0%,
      rgba(10,9,8,0.88) 60%,
      rgba(10,9,8,0.95) 100%
    );
  }
  .hero__inner { padding: 36px 20px 40px; max-width: 100%; }
  .hero__title { font-size: 28px; line-height: 1.2; margin-bottom: 14px; }
  .hero__subtitle { font-size: 14px; margin-bottom: 24px; }
  .hero__btns { flex-direction: column; gap: 10px; }
  .hero__btns .btn { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero__features {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }
  .hero__features li { font-size: 13px; }

  /* === ABOUT === */
  .about { padding: 52px 0; }
  .about__inner { grid-template-columns: 1fr; gap: 24px; padding: 0 20px; }
  .about__text p { font-size: 14px; }
  .about__gallery { border-radius: 6px; }

  /* === CATALOG === */
  .catalog { padding: 52px 0; }
  .catalog__lead { font-size: 15px; }
  .catalog__grid { grid-template-columns: 1fr; gap: 12px; }

  /* Card: horizontal layout — text left, image right */
  .cat-card {
    padding: 20px 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: auto;
  }
  .cat-card__content { flex: 1; min-width: 0; }
  .cat-card h3 { font-size: 15px; margin-bottom: 6px; }
  .cat-card p { font-size: 12.5px; max-width: 100%; }
  .cat-card__arrow { margin-top: 12px; font-size: 18px; }
  .cat-card__img {
    position: static;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    opacity: 1;
    object-fit: contain;
  }

  /* Perks: vertical centered */
  .catalog__perks {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 24px;
  }
  .catalog__perks li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    flex: none;
    width: 100%;
    max-width: 220px;
    padding: 0;
  }
  .catalog__perks svg { width: 22px; height: 22px; }

  /* === WORKS === */
  .works { padding: 52px 0; }
  .works__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    /* prevent grid from overflowing viewport */
    max-width: 100%;
    overflow: hidden;
  }
  .works__head .section-title { margin-bottom: 16px; }
  .works__gallery {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .works__main-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .works__main-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
  }
  .works__strip {
    gap: 6px;
    padding-bottom: 6px;
    /* ensure strip stays within screen */
    max-width: 100%;
    box-sizing: border-box;
  }
  .works__thumb {
    width: 72px;
    height: 48px;
    flex-shrink: 0;
  }

  /* === STAGES === */
  .stages { padding: 52px 0; }
  .stages__grid {
    flex-direction: column;
    gap: 0;
    position: relative;
  }
  .stage__sep { display: none; }
  .stage {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 16px 18px;
    position: relative;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .stage:first-child { border-radius: 6px 6px 0 0; }
  .stage:last-child  { border-radius: 0 0 6px 6px; border-bottom: 1px solid var(--border); }
  /* Vertical connector line */
  .stage::after {
    content: '';
    position: absolute;
    left: 29px;
    bottom: -16px;
    width: 2px;
    height: 16px;
    background: var(--orange);
    z-index: 1;
  }
  .stage:last-child::after { display: none; }
  .stage { margin-bottom: 16px; border-radius: 6px; border: 1px solid var(--border); }
  .stage:last-child { margin-bottom: 0; }
  .stage p { font-size: 13.5px; }

  /* === CONTACTS === */
  .contacts { padding: 52px 0; }
  .contacts__inner { grid-template-columns: 1fr; gap: 28px; }
  .contacts__brand { font-size: 22px; margin-bottom: 20px; }
  .contacts__block p { font-size: 15px; }
  .contacts__map { height: 260px; }

  /* === FOOTER === */
  .footer { padding: 20px 0; }
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .footer__left {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .footer__dev { justify-content: center; }

  /* === MODAL === */
  .modal { padding: 0; align-items: flex-end; }
  .modal__box {
    flex-direction: column;
    max-height: 96vh;
    width: 100%;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }
  .modal__photo-col { min-height: 200px; flex: 0 0 200px; order: -1; border-radius: 16px 16px 0 0; }
  .modal__form-col { flex: none; padding: 24px 20px 28px; overflow-y: auto; }
  .modal__form-col h3 { font-size: 22px; }
  .modal__close { top: 10px; right: 12px; }
}

/* --- Small mobile 380px --- */
@media (max-width: 380px) {
  .hero__title { font-size: 24px; }
  .section-title { font-size: 24px; }
  .cat-card__img { width: 80px; height: 80px; }
}