/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15,13,16,0.95);
  display: grid;
  place-items: center;
  padding: 40px;
  opacity: 0;
  transition: opacity .3s;
  backdrop-filter: blur(12px);
}
.lightbox.is-open { opacity: 1; }
.lightbox__img { max-width: 90vw; max-height: 80vh; }
.lightbox__img img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink-900);
  font-size: 24px;
}
.lightbox__cap {
  position: absolute;
  bottom: 32px; left: 32px;
  color: var(--cream);
  font-size: 15px;
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lightbox__type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-400);
}
.lightbox__main {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
}

/* Hero meta progress */
.hero__meta .progress-wrap {
  flex: 1;
  margin: 0 24px;
  height: 1px;
  background: rgba(15,13,16,0.12);
  position: relative;
  overflow: hidden;
}
.hero__meta .progress {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--brand-700);
  width: 0;
  transition: width .2s;
}

/* Tagpills in hero */
.tagpills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.tagpills .pill {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--white);
  transition: all .25s var(--e-out);
}
.tagpills .pill:hover {
  background: var(--brand-700);
  color: var(--cream);
  border-color: var(--brand-700);
}

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: 4px; }
.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.faq__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-900);
  display: grid; place-items: center;
  transition: transform .3s var(--e-spring), background .3s;
  font-size: 18px;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--brand-700); color: var(--cream); border-color: var(--brand-700); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--e-out), margin .5s var(--e-out);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
}
.faq__item.is-open .faq__a { max-height: 500px; margin-top: 16px; }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  padding: 32px;
  background: var(--paper);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
}
.contact-card h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 10px;
  font-weight: 600;
}
.contact-card .value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.contact-card .value a { transition: color .2s; }
.contact-card .value a:hover { color: var(--brand-700); }
.contact-card small { display: block; margin-top: 8px; color: var(--ink-500); font-size: 13px; }

/* Map embed */
.map {
  height: clamp(300px, 38vw, 480px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* Mobile menu */
.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  border-radius: 8px;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink-900);
  transition: transform .3s, top .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
}

.mmenu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--brand-700);
  color: var(--cream);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px 40px;
  gap: 24px;
  transform: translateY(-100%);
  transition: transform .5s var(--e-out);
}
.mmenu.is-open { transform: translateY(0); }
.mmenu a {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--cream);
}
.mmenu a:hover { color: var(--teal-400); }
.mmenu__contacts {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
}
.mmenu__contacts span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 20px;
}

/* Pricelist tables */
.ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ptable th, .ptable td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.ptable th {
  background: var(--paper);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
}
.ptable td:not(:first-child) { font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--brand-700); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tr:hover td { background: var(--paper); }
@media (max-width: 600px) {
  .ptable { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ptable th, .ptable td { padding: 12px 12px; white-space: nowrap; }
}

/* Менеджеры: телефон + почта + мессенджеры */
.mgr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1300px) { .mgr-grid { grid-template-columns: 1fr; } }
.mgr-grid .contact-card { padding: 24px 20px; }
.mgr-grid .contact-card .value { font-size: 18px; white-space: nowrap; }
.contact-card .mgr-mail {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-700);
  word-break: break-all;
}
.contact-card .mgr-mail:hover { color: var(--brand-700); }

/* Чипы мессенджеров (МАКС / Telegram) */
.chans { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink-900);
  transition: all .2s var(--e-out);
}
.chan svg { width: 14px; height: 14px; }
.chan--max:hover { background: var(--brand-600); color: var(--cream); border-color: var(--brand-600); }
.chan--tg:hover  { background: var(--teal-600); color: var(--cream); border-color: var(--teal-600); }
.chan--vk:hover  { background: #0077FF; color: var(--cream); border-color: #0077FF; }

/* Схема проезда (картинка) */
.scheme {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}
.scheme img { width: 100%; height: auto; display: block; }

/* Cookie-баннер */
.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9997;
  max-width: 560px;
  margin: 0 auto;
  background: var(--brand-900);
  color: var(--cream);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 48px rgba(22,5,18,0.4);
  transform: translateY(140%);
  transition: transform .5s var(--e-out);
  font-size: 13px;
  line-height: 1.5;
}
.cookie.is-shown { transform: translateY(0); }
.cookie a { color: var(--teal-400); text-decoration: underline; }
.cookie button {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--teal-600);
  color: var(--brand-900);
  font-weight: 700;
  font-size: 13px;
}
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: stretch; text-align: center; } }

/* Табы калькуляторов */
.calctabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.calctab {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink-700);
  transition: all .2s var(--e-out);
  white-space: nowrap;
}
.calctab:hover { border-color: var(--brand-600); color: var(--brand-700); }
.calctab.is-active { background: var(--brand-700); color: var(--cream); border-color: var(--brand-700); }
.calc__hint {
  padding: 18px 20px;
  background: var(--paper);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-700);
}

/* Прайс — развороты-картинки */
.pricesheets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 760px) { .pricesheets { grid-template-columns: 1fr; } }
.pricesheets img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--white);
}

/* Секция «Пожаловаться директору» */
.director {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .director { grid-template-columns: 1fr; gap: 28px; } }
.director__form { display: flex; flex-direction: column; gap: 14px; }
