/* =========================
   Финальная версия styles.css (исправленная)
   ========================= */

:root {
  --brand-burgundy: #6b0f1a;
  --accent: var(--brand-burgundy);
  --card-bg: rgba(245,245,245,0.92);
  --text-light: #ffffff;
  --map-border: #ffffff;
  --vh: 100vh;
  --svh: 100vh;
  --dvh: 100vh;
  --header-h: 86px;
  --header-pad-x: 36px;
  --hero-tagline-offset-y: 26px;
  --contacts-logo-shift-y: -135px;
  --contacts-ids-shift-x: 50px;
  --contacts-ids-shift-y: -210px;
  --contacts-logo-maxw: 440px;
}
@supports (height: 100dvh) { :root { --dvh: 100dvh; } }
@supports (height: 100svh) { :root { --svh: 100svh; } }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }

body {
  font-family: "Montserrat", system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-synthesis: none;
  color: var(--text-light);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* scroll-margin-top полностью убран — секции при скролле прилегают к верху окна */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
}

/* =========================
   HEADER
   ========================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--header-pad-x);
  background: transparent;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.site-header.visible { opacity: 1; }

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.62);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.nav a:hover { background: rgba(0,0,0,0.78); }

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  background: rgba(255,255,255,0.92);
  color: #000;
  text-decoration: none;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: .4px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.header-phone:hover { background: #fff; }

/* анимация элементов шапки */
.nav a, .header-phone {
  transition: opacity 2s cubic-bezier(0.2, 0.9, 0.3, 1), transform 2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nav a.header-animate-ready, .header-phone.header-animate-ready {
  opacity: 0;
  transform: translateY(30px);
}
.nav a.header-animate-visible, .header-phone.header-animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  min-height: var(--dvh);
  height: var(--dvh);
  overflow: hidden;
  background-image: url("assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* параллакс */
  padding-top: calc(var(--header-h) + 18px);
  padding-bottom: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,10,10,0.42), rgba(10,10,10,0.42));
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 10px 16px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-logo {
  display: block;
  width: min(500px, 86vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
  transform: translateY(0px);
}
.hero-tagline {
  position: relative;
  margin-top: 100px;
  top: clamp(-240px, -6.8vw, -240px);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial !important;
  font-weight: 300;
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.08;
  letter-spacing: .2px;
  color: #ececec;
  transform: translateY(var(--hero-tagline-offset-y));
  opacity: 0;
  transition: opacity 0.5s ease, text-shadow 0.5s ease;
}
.hero-tagline.visible {
  opacity: 1;
  text-shadow: 
    0 0 10px rgba(255,255,255,0.8),
    0 0 20px rgba(255,255,255,0.5),
    0 0 30px rgba(255,255,255,0.3),
    0 2px 6px rgba(0,0,0,0.6),
    0 1px 0 rgba(0,0,0,0.3);
}
.hero-tagline .letter {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hero-tagline .letter.visible {
  opacity: 1;
}
.hero-down {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.55)) drop-shadow(0 0 18px rgba(255,255,255,0.28));
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-down::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -55%) rotate(45deg);
  border-right: 4px solid rgba(255,255,255,0.92);
  border-bottom: 4px solid rgba(255,255,255,0.92);
}
.hero-down.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(100px);
  pointer-events: none;
}
.hero-phone-mobile {
  display: block; /* убрано display: none, управление через opacity */
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(20px);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-phone-mobile.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* =========================
   ЗАГОЛОВКИ СЕКЦИЙ
   ========================= */
.section {
  max-width: 1600px;
  margin: 0 auto;
}
.section-title {
  font-weight: 800;
  font-size: 54px;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: .6px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}
.section-title-dark {
  color: #1b1b1b;
  text-shadow: none;
}

/* =========================
   УСЛУГИ (SERVICES)
   ========================= */
.services-section {
  background: #fff;
  color: #111;
  padding: 70px 20px 96px;
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(107,15,26,0.16);
  clip-path: polygon(66% 0%, 100% 0%, 100% 100%, 46% 100%);
}
.services-section::after {
  content: "";
  position: absolute;
  inset: -90px -120px;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(closest-side at 92% 35%, rgba(107,15,26,0.20), rgba(107,15,26,0) 70%),
    radial-gradient(closest-side at 70% 80%, rgba(107,15,26,0.10), rgba(107,15,26,0) 70%);
  transform: rotate(-6deg);
}
.services-section > * {
  position: relative;
  z-index: 1;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--card-bg);
  padding: 30px 24px 20px;
  box-shadow: 0 8px 0 rgba(0,0,0,0.42), 0 18px 28px rgba(0,0,0,0.35);
  color: #0a0a0a;
  min-height: 590px;
  display: grid;
  grid-template-rows: 190px 1fr auto;
  align-items: start;
  justify-items: center;
  backdrop-filter: blur(4px) saturate(90%);
  border: 1px solid rgba(0,0,0,0.08);
  transition: opacity 2s cubic-bezier(0.2,0.9,0.3,1), transform 2s cubic-bezier(0.2,0.9,0.3,1);
}
.service-card.service-animate-ready {
  opacity: 0;
  transform: translateY(200px);
  pointer-events: none;
}
.icon-wrap {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon {
  width: 160px;
  height: auto;
  opacity: .95;
  filter: grayscale(1);
}
.service-card h3 {
  margin-top: 8px;
  width: 94%;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.24;
  font-size: clamp(19px, 1.4vw, 26px);
}
.service-bullets {
  width: 94%;
  margin: 12px auto 0;
  padding-left: 22px;
  list-style: disc;
  text-align: left;
  text-transform: none;
  font-weight: 800;
  font-size: clamp(19px, 1.25vw, 24px);
  line-height: 1.28;
}
.service-bullets li {
  margin: 2px 0;
}
.service-card h3 .service-subtitle {
  display: block;
  margin: 12px auto 0;
  width: fit-content;
  max-width: 92%;
  text-align: left;
  text-transform: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}
.service-info {
  width: 100%;
  margin-top: 18px;
  padding: 18px 20px;
  border-top: 6px solid rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: flex-start;
}
.info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: #0a0a0a;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.info-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.info-item .label {
  color: var(--brand-burgundy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}
.info-item .value {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  color: #0a0a0a;
}

/* =========================
   О КОМПАНИИ (ABOUT) – десктопная сетка
   ========================= */
.about-section {
  position: relative;
  padding: 70px 20px 150px;
  background: transparent;
}
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(180deg, #0b0b0c 0%, #12060a 55%, #0b0b0c 100%);
  z-index: 0;
  pointer-events: none;
}
.about-section > * {
  position: relative;
  z-index: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.corner-card {
  background: rgba(255,255,255,0.92);
  padding: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  color: #111;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.about-card {
  transition: opacity 2s cubic-bezier(0.2,0.9,0.3,1), transform 2s cubic-bezier(0.2,0.9,0.3,1);
}
.about-card.about-animate-ready {
  opacity: 0;
  transform: translateY(200px);
  pointer-events: none;
}
.about-subtitle {
  color: var(--brand-burgundy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(20px, 1.9vw, 28px);
  letter-spacing: clamp(0.2px, 0.06vw, 0.5px);
  line-height: 1.18;
  word-break: break-word;
}
.text-card .about-text {
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.32;
  color: #111;
  margin-top: 14px;
  text-align: left;
  hyphens: auto;
}
.pic-card {
  padding: 0;
}
.about-pic {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border: 6px solid var(--brand-burgundy);
  box-sizing: border-box;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.about-card.pic-card.about-animate-ready .about-pic {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2,0.9,0.3,1), transform 0.8s cubic-bezier(0.2,0.9,0.3,1);
}
.about-card.pic-card:not(.about-animate-ready) .about-pic {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   МОБИЛЬНЫЕ ПЛИТКИ (скрыты на десктопе)
   ========================= */
.about-popgrid {
  display: none;
}

/* =========================
   ИСТОРИЯ (HISTORY)
   ========================= */
.history-section {
  background: #fff;
  color: #111;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.history-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(107,15,26,0.10);
  clip-path: polygon(0% 0%, 58% 0%, 38% 100%, 0% 100%);
}
.history-section > * {
  position: relative;
  z-index: 1;
}
.history-inner {
  padding: 0 20px;
}
.history-empty {
  margin: 24px auto 0;
  width: min(1200px, 92vw);
  height: 240px;
  border: 2px dashed rgba(0,0,0,0.18);
  border-radius: 12px;
  background: rgba(0,0,0,0.03);
}

/* =========================
   КОНТАКТЫ (CONTACTS)
   ========================= */
.contacts-fullblack {
  background: linear-gradient(180deg, #0b0b0c 0%, #12060a 55%, #0b0b0c 100%);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 70px 0 90px;
  color: #fff;
}
.section-title.contacts-title {
  display: none;
}
.contacts-container {
  width: min(1400px, 100vw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  justify-content: center;
  max-width: 1000px;
}
.contacts-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
}
.brand-logo {
  width: 100%;
  max-width: var(--contacts-logo-maxw);
  height: auto;
  object-fit: contain;
  transform: translateY(var(--contacts-logo-shift-y));
  transition: transform 240ms ease, opacity 2s cubic-bezier(0.2,0.9,0.3,1);
}
.brand-ids {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  color: #eaeaea;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  transform: translate(var(--contacts-ids-shift-x), var(--contacts-ids-shift-y));
  transition: transform 240ms ease, opacity 2s cubic-bezier(0.2,0.9,0.3,1);
}
.contacts-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 25px;
  min-height: 100%;
  padding: 6px 0 6px 30px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  padding: 5px 0;
  transition: opacity 2s cubic-bezier(0.2,0.9,0.3,1), transform 2s cubic-bezier(0.2,0.9,0.3,1);
}
.contact-row:hover {
  text-decoration: underline;
}
.icon-svg {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  flex-shrink: 0;
}
.contact-row img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.contact-row img[src*="whatsapp.svg"] {
  filter: none;
  opacity: 1;
}

/* анимация контактов (начальное скрытое состояние) */
.brand-logo.contacts-animate-ready,
.brand-ids.contacts-animate-ready,
.contact-row.contacts-animate-ready {
  opacity: 0;
}
.brand-logo.contacts-animate-ready {
  transform: translateY(calc(var(--contacts-logo-shift-y) + 40px)) !important;
}
.brand-ids.contacts-animate-ready {
  transform: translate(calc(var(--contacts-ids-shift-x) + 40px), var(--contacts-ids-shift-y)) !important;
}
.contact-row.contacts-animate-ready {
  transform: translateY(150px);
}

/* =========================
   МЕДИАЗАПРОСЫ (адаптив)
   ========================= */

/* планшеты (max-width: 900px) */
@media (max-width: 900px) {
  :root {
    --header-h: 74px;
    --header-pad-x: 16px;
  }
  .nav {
    gap: 10px;
    flex-wrap: nowrap;
  }
  .nav a {
    height: 46px;
    padding: 0 clamp(10px, 1.6vw, 14px);
    font-size: clamp(14px, 2.1vw, 18px);
    white-space: nowrap;
  }
  .header-phone {
    height: 46px;
    padding: 0 clamp(10px, 1.6vw, 14px);
    font-size: clamp(14px, 2.1vw, 16px);
    white-space: nowrap;
  }
  .hero-logo {
    transform: translateY(-18px);
  }
  .hero-tagline {
    top: clamp(-140px, -6vw, -140px);
  }
  .services-section {
    padding: 54px 12px 60px;
  }
  .section-title {
    font-size: 36px;
    margin-bottom: 18px;
  }
  .services-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    padding-bottom: 10px;
  }
  .services-grid::-webkit-scrollbar {
    height: 0;
  }
  .service-card {
    scroll-snap-align: start;
    min-height: unset;
    grid-template-rows: 150px auto auto;
    padding: 18px 14px 14px;
  }
  .icon-wrap {
    height: 150px;
  }
  .service-icon {
    width: 120px;
  }
  .service-card h3 {
    width: 100%;
    font-size: 18px;
    line-height: 1.22;
  }
  .service-bullets {
    width: 100%;
    font-size: 18px;
    padding-left: 20px;
  }
  .service-info {
    margin-top: 12px;
    padding: 12px;
    gap: 10px;
  }
  .info-item .label,
  .info-item .value {
    font-size: 18px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pic-card.corner-card {
    display: block;
    padding: 0;
    background: transparent;
    min-height: 0;
    aspect-ratio: 16/9;
  }
  .pic-card.corner-card .about-pic {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border: 6px solid var(--brand-burgundy);
    box-sizing: border-box;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  }
  .contacts-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .contacts-brand {
    align-items: center;
    min-height: auto;
  }
  .brand-logo {
    max-width: 320px;
    transform: none;
  }
  .brand-ids {
    transform: none;
    text-align: center;
    font-size: 18px;
  }
  .contacts-list {
    padding-left: 0;
  }
  .contact-row {
    font-size: 18px;
  }
  .nav a.header-animate-ready,
  .header-phone.header-animate-ready {
    transform: translateY(15px);
  }
}

/* мобильные телефоны (max-width: 560px) */
@media (max-width: 560px) {
  :root {
    --header-h: 70px;
    --service-scale: 1.15; /* масштаб для карточек услуг */
  }


  /* ===== общее ===== */
  .site-header {
    display: none; /* шапка скрыта */
  }
  .hero {
    height: var(--dvh);
    min-height: var(--dvh);
    overflow: hidden;
    padding-top: 10px;
    background-attachment: fixed;
  }
  .hero-logo {
    width: min(400px, 70vw);
    transform: translateY(-30px);
  }
  .hero-tagline {
    top: -8px;
    font-size: clamp(9px, 4vw, 20px);
    transform: translateY(-50px) !important;
    margin-top: 0;
  }
  .hero-inner {
    max-height: calc(100% - 50px);
    padding-bottom: 0;
  }
  /* стили для .hero-down и .hero-phone-mobile уже описаны выше — они работают */

  /* ===== услуги ===== */
  .services-section {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .services-grid {
    display: grid !important;
    grid-template-columns: unset !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 85vw !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-inline: 8px !important;
    scroll-padding-inline: 8px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
  }
  .services-grid::-webkit-scrollbar { height: 0; }

  .service-card {
    scroll-snap-align: start;
    min-height: 480px !important;
    height: auto;
    display: flex !important;
    flex-direction: column !important;
    padding: calc(12px * var(--service-scale)) calc(10px * var(--service-scale)) calc(10px * var(--service-scale));
  }
  .icon-wrap {
    flex: 0 0 auto;
    height: calc(100px * var(--service-scale));
  }
  .service-icon {
    width: calc(80px * var(--service-scale));
  }
  .service-card h3 {
    flex: 0 0 auto;
    min-height: 160px;
    padding-bottom: 10px;
    overflow: hidden;
    font-size: calc(15px * var(--service-scale));
    line-height: 1.2;
    margin-top: calc(4px * var(--service-scale));
  }
  .service-info {
    margin-top: auto !important;
    padding: calc(10px * var(--service-scale));
    gap: calc(8px * var(--service-scale));
  }
  .meta-row img {
    width: calc(20px * var(--service-scale));
    height: calc(20px * var(--service-scale));
  }
  .info-item .label,
  .info-item .value {
    font-size: calc(14px * var(--service-scale));
    line-height: 1.15;
  }

  /* ===== about – мобильные плитки и попапы ===== */
  .about-grid { display: none !important; }
  .about-popgrid { display: grid !important; }

  .about-popgrid {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    box-sizing: border-box;
    padding-inline: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    justify-content: center;
    justify-items: stretch;
  }

  .about-tile--wide {
    grid-column: 1 / -1;
  }

  .about-tile {
    appearance: none;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    border-radius: 0;
    padding: 14px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 700ms cubic-bezier(0.2,0.9,0.3,1),
                transform 700ms cubic-bezier(0.2,0.9,0.3,1);
  }
  .about-tile.about-animate-ready {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
  }
  .about-tile .about-subtitle {
    margin: 0;
    text-align: center;
  }

  /* диалоговые окна */
  .about-dialog {
    border: 0;
    padding: 0;
    background: transparent;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(560px, 92vw);
    max-height: 82vh;
    border-radius: 0;
  }
  .about-dialog::backdrop {
    background: rgba(0,0,0,0.62);
  }
  .about-dialog-inner {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 18px 44px rgba(0,0,0,0.35);
    border-radius: 0;
    padding: 16px 14px 14px;
    display: grid;
    gap: 12px;
  }
  .about-dialog-close {
    display: none !important;
  }
  .about-dialog-ok {
    border: 0;
    border-radius: 0;
    padding: 12px 14px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.90);
    color: #fff;
    cursor: pointer;
  }
  /* анимация открытия */
  .about-dialog.is-opening::backdrop {
    animation: aboutBackdropIn 220ms ease-out both;
  }
  .about-dialog.is-opening .about-dialog-inner {
    animation: aboutModalIn 220ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
  }
  @keyframes aboutBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes aboutModalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ===== контакты ===== */
  .contacts-container {
    padding: 0 16px;
  }
  .brand-logo {
    max-width: 260px;
  }
  .brand-ids {
    font-size: 18px;
  }
  .contact-row {
    font-size: 16px;
    gap: 10px;
  }
  section[id] {
    scroll-margin-top: -55px; /* нужное значение – чем больше, тем ниже */
  }
}



/* =========================
   ABOUT — MOBILE: вернуть бордовые фигуры + чуть уменьшить шрифт
   Вставь в самый конец styles.css
   ========================= */
@media (max-width: 560px){

  /* 1) Возвращаем фигуры (если их "убил" другой патч прозрачностью/переопределением) */
  .about-tile{
    position: relative;
    overflow: hidden;
  }

  .about-tile::before{
    content:"" !important;
    position:absolute !important;
    inset:auto !important;
    pointer-events:none !important;

    top: -46px !important;
    right: -74px !important;
    width: 170px !important;
    height: 120px !important;

    background: linear-gradient(135deg,
      rgba(107,15,26,0.00) 0%,
      rgba(107,15,26,0.10) 45%,
      rgba(107,15,26,0.22) 100%
    ) !important;

    transform: rotate(18deg) !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%) !important;
    opacity: .95 !important;
  }

  .about-tile::after{
    content:"" !important;
    position:absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 3px !important;

    background: linear-gradient(90deg,
      rgba(107,15,26,0.10),
      rgba(107,15,26,0.85),
      rgba(107,15,26,0.10)
    ) !important;

    opacity: .70 !important;
    pointer-events:none !important;
  }

  /* 2) Индивидуальные фигуры по плиткам (как было) */
  .about-popgrid .about-tile:nth-child(1)::before{
    top: -38px !important;
    right: -88px !important;
    width: 210px !important;
    height: 130px !important;
    transform: rotate(14deg) !important;
    clip-path: polygon(35% 0, 100% 0, 80% 100%, 15% 100%) !important;
    background: linear-gradient(135deg,
      rgba(107,15,26,0.00) 0%,
      rgba(107,15,26,0.16) 48%,
      rgba(107,15,26,0.28) 100%
    ) !important;
    opacity: .95 !important;
  }
  .about-popgrid .about-tile:nth-child(1)::after{
    height: 4px !important;
    opacity: .85 !important;
  }

  .about-popgrid .about-tile:nth-child(2)::before{
    top: -22px !important;
    left: -28px !important;
    right: auto !important;
    width: 120px !important;
    height: 90px !important;
    transform: rotate(-8deg) !important;
    clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%) !important;
    background: linear-gradient(135deg,
      rgba(107,15,26,0.26),
      rgba(107,15,26,0.06)
    ) !important;
    opacity: .85 !important;
  }
  .about-popgrid .about-tile:nth-child(2)::after{
    background: linear-gradient(90deg,
      rgba(107,15,26,0.70),
      rgba(107,15,26,0.10)
    ) !important;
    opacity: .55 !important;
  }

  .about-popgrid .about-tile:nth-child(3)::before{
    top: -18px !important;
    right: -22px !important;
    width: 74px !important;
    height: 150px !important;
    transform: rotate(10deg) !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%) !important;
    background: linear-gradient(180deg,
      rgba(107,15,26,0.26),
      rgba(107,15,26,0.00)
    ) !important;
    opacity: .8 !important;
  }

  .about-popgrid .about-tile:nth-child(4)::before{
    top: -60px !important;
    right: -90px !important;
    width: 260px !important;
    height: 200px !important;
    transform: rotate(0deg) !important;
    clip-path: none !important;
    background:
      radial-gradient(closest-side at 30% 40%, rgba(107,15,26,0.22), rgba(107,15,26,0) 70%),
      radial-gradient(closest-side at 70% 70%, rgba(107,15,26,0.14), rgba(107,15,26,0) 70%) !important;
    opacity: .95 !important;
  }

  .about-popgrid .about-tile:nth-child(5)::before{
    bottom: -55px !important;
    left: -70px !important;
    top: auto !important;
    right: auto !important;
    width: 210px !important;
    height: 140px !important;
    transform: rotate(18deg) !important;
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%) !important;
    background: linear-gradient(135deg,
      rgba(107,15,26,0.20),
      rgba(107,15,26,0.00)
    ) !important;
    opacity: .75 !important;
  }

  .about-popgrid .about-tile:nth-child(6)::before{
    top: -44px !important;
    right: -96px !important;
    width: 240px !important;
    height: 140px !important;
    transform: rotate(20deg) !important;
    clip-path: polygon(20% 0, 100% 0, 78% 100%, 0 100%) !important;
    background: linear-gradient(135deg,
      rgba(107,15,26,0.00) 0%,
      rgba(107,15,26,0.12) 42%,
      rgba(107,15,26,0.26) 100%
    ) !important;
    opacity: .9 !important;
  }

  /* 3) Чуть уменьшаем шрифт на плитках */
  .about-tile.about-subtitle{
    font-size: 14px !important;      /* было 15 */
    letter-spacing: 0.10em !important;
    line-height: 1.08 !important;
  }
}
/* =========================
   ABOUT POPUP: более плавная анимация + бордовый подзаголовок
   TEAM SECTION: новый блок "Команда БЮРО" (вместо history)
   Вставь в самый конец styles.css
   ========================= */

/* 1) Попап — плавнее */
@media (max-width: 560px){
  .about-dialog.is-opening::backdrop{
    animation: aboutBackdropIn 420ms cubic-bezier(0.2, 0.9, 0.25, 1) both !important;
  }
  .about-dialog.is-opening .about-dialog-inner{
    animation: aboutModalIn 520ms cubic-bezier(0.18, 0.92, 0.22, 1) both !important;
  }

  @keyframes aboutModalIn{
    from{ opacity: 0; transform: translateY(18px) scale(0.985); }
    to{ opacity: 1; transform: translateY(0) scale(1); }
  }

  .about-dialog-subtitle{
    margin: -6px 0 4px;
    color: var(--brand-burgundy);
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1.15;
    opacity: .95;
  }
}

/* 2) TEAM SECTION (вместо history) — стилистика как services/history (светлый фон + бордовые акценты) */
.team-section{
  background: #fff;
  color: #111;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.team-section::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background: rgba(107,15,26,0.10);
  clip-path: polygon(0% 0%, 58% 0%, 38% 100%, 0% 100%);
}
.team-section > *{ position: relative; z-index: 1; }

.team-inner{
  padding: 0 20px;
}

.team-title{
  margin-bottom: 30px;
}

/* сетка */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.team-card{
  background: rgba(245,245,245,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 0 rgba(0,0,0,0.18), 0 18px 28px rgba(0,0,0,0.18);
  padding: 18px 16px 16px;
  color: #111;
  display: grid;
  gap: 10px;
  align-content: start;
}

.team-photo-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.team-photo{
  width: min(240px, 72%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 6px solid var(--brand-burgundy);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  background: #fff;
}

.team-name{
  margin-top: 4px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.18;
  text-align: center;
}

.team-role{
  margin: 0;
  text-align: center;
  color: rgba(0,0,0,0.72);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.team-list{
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(0,0,0,0.82);
}

/* маркеры-акценты */
.team-list li{
  position: relative;
  padding-left: 16px;
}
.team-list li::before{
  content:"";
  position:absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--brand-burgundy);
}

/* адаптив */
@media (max-width: 900px){
  .team-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .team-photo{
    width: min(260px, 78%);
  }
  .team-name{
    font-size: 18px;
  }
}

/* на мобилке чуть компактнее */
@media (max-width: 560px){
  .team-section{
    padding: 54px 0 70px;
  }
  .team-inner{
    padding: 0 16px;
  }
  .team-grid{
    width: 100%;
  }
  .team-card{
    padding: 14px 12px 12px;
  }
  .team-photo{
    border-width: 5px;
    width: min(240px, 74%);
  }
  .team-role,
  .team-list{
    font-size: 13px;
  }
}

/* =========================
   TEAM: фото без обрезки (сохраняем исходные пропорции/размер изображения)
   Вставь в самый конец styles.css (перебьёт прежние правила team-photo)
   ========================= */

.team-photo{
  /* вместо квадрата и cover — показываем фото целиком */
  width: min(260px, 80%);
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;

  /* оставляем стиль сайта */
  border: 6px solid var(--brand-burgundy);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  background: #fff;
  display: block;
}

/* чтобы очень вертикальные/горизонтальные фото не разваливали карточки */
.team-photo-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
}

/* адаптив */
@media (max-width: 560px){
  .team-photo{
    width: min(240px, 74%);
    border-width: 5px;
  }
}


.team-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

/* Большие маркеры для пунктов верхнего уровня */
.team-list > li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.team-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--brand-burgundy);
  /* квадратный маркер */
  border-radius: 0;
}

/* Вложенный список — убираем браузерные маркеры и ставим свои, меньшего размера */
.team-sublist {
  list-style: none;
  margin: 6px 0 0 14px; /* отступ слева для вложения */
  padding: 0;
}
.team-sublist li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(0,0,0,0.82);
}
.team-sublist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--brand-burgundy);
  border-radius: 0;
}

/* =========================
   CONTACTS: группировка телефонов (Основные номера / ФИО)
   Ничего не ломает, просто аккуратная типографика.
   Вставь в самый конец styles.css
   ========================= */
.contacts-block{
  display: grid;
  gap: 10px;
}

.contacts-block + .contacts-block{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.contacts-block-title{
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  padding-left: 2px;
}


/* =========================
   CONTACTS: жирный разделитель перед почтой/адресом
   Вставь в самый конец styles.css
   ========================= */
.contacts-divider{
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 1px 0 rgba(0,0,0,0.25) inset;
  margin: 6px 0 2px;
}

/* =========================
   TEAM + ABOUT: анимация как у услуг (вылет снизу + плавное появление)
   Вставь в самый конец styles.css
   ========================= */

/* "Наша команда" */
.team-card{
  transition: opacity 2s cubic-bezier(0.2,0.9,0.3,1), transform 2s cubic-bezier(0.2,0.9,0.3,1);
}
.team-card.team-animate-ready{
  opacity: 0;
  transform: translateY(200px);
  pointer-events: none;
}

/* "О компании" — десктопные карточки и мобильные плитки уже используют about-animate-ready,
   делаем им точно такую же механику, как у service-card.service-animate-ready */
.about-card.about-animate-ready,
.about-tile.about-animate-ready{
  opacity: 0 !important;
  transform: translateY(200px) !important;
  pointer-events: none !important;
}

/* =========================
   HEADER — улучшение под ноутбуки (резиновые размеры)
   ========================= */

.nav{
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
}

.nav a{
  /* было фикс 28px — делаем clamp */
  font-size: clamp(14px, 1.6vw, 28px);
  height: clamp(40px, 4.4vw, 52px);
  padding: 0 clamp(10px, 1.3vw, 18px);
  letter-spacing: clamp(0.4px, 0.12vw, 1.2px);
  white-space: nowrap;
}

.header-phone{
  font-size: clamp(14px, 1.6vw, 28px);
  height: clamp(40px, 4.4vw, 52px);
  padding: 0 clamp(12px, 1.6vw, 22px);
  white-space: nowrap;
}

/* диапазон, где обычно "ломает" (примерно 900–1200) */
@media (max-width: 1200px){
  .header-inner{
    gap: 12px;
  }
  .nav{
    gap: 10px;
  }
}

/* =========================
   ABOUT v2 — "О БЮРО" (вместо плиток/картинок)
   ========================= */

.about-v2-section{
  position: relative;
  padding: 70px 20px 120px;
  background: transparent;
}
.about-v2-section::before{
  content:"";
  position:absolute;
  inset:0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(180deg, #0b0b0c 0%, #12060a 55%, #0b0b0c 100%);
  z-index: 0;
  pointer-events: none;
}
.about-v2-section > *{
  position: relative;
  z-index: 1;
}

.about-v2-grid{
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-v2-card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 8px 0 rgba(0,0,0,0.22), 0 18px 28px rgba(0,0,0,0.20);
  color: #111;
  padding: 18px 16px 16px;
  display: grid;
  gap: 12px;
  align-content: start;

  transition: opacity 2s cubic-bezier(0.2,0.9,0.3,1), transform 2s cubic-bezier(0.2,0.9,0.3,1);
}

.about-v2-title{
  color: var(--brand-burgundy);
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 14px;
}

.about-v2-text{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.78);
}

.about-v2-card.about-v2-animate-ready{
  opacity: 0;
  transform: translateY(200px);
  pointer-events: none;
}

@media (max-width: 900px){
  .about-v2-grid{
    grid-template-columns: 1fr;
  }
  .about-v2-text{
    font-size: 15px;
  }
}

@media (max-width: 560px){
  .about-v2-section{
    padding: 54px 16px 80px;
  }
  .about-v2-grid{
    width: 100%;
    gap: 14px;
  }
  .about-v2-text{
    font-size: 14px;
  }
}

/* =========================
   LEGAL — "Юридические услуги" (новый блок)
   ========================= */

.legal-section{
  background: #fff;
  color: #111;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.legal-section::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background: rgba(107,15,26,0.10);
  clip-path: polygon(66% 0%, 100% 0%, 100% 100%, 46% 100%);
}
.legal-section > *{ position: relative; z-index: 1; }

.legal-inner{
  padding: 0 20px;
}

.legal-grid{
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 26px 1fr;
  gap: 18px;
  align-items: start;
}

.legal-card{
  background: rgba(245,245,245,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 0 rgba(0,0,0,0.18), 0 18px 28px rgba(0,0,0,0.18);
  padding: 18px 16px 16px;
  display: grid;
  gap: 14px;
  align-content: start;

  transition: opacity 2s cubic-bezier(0.2,0.9,0.3,1), transform 2s cubic-bezier(0.2,0.9,0.3,1);
}

.legal-kicker{
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

.legal-title{
  margin-top: 2px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--brand-burgundy);
  font-size: 16px;
}

.legal-steps{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(0,0,0,0.80);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.legal-divider{
  align-self: stretch;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset;
  border: 0;
  transition: opacity 2s cubic-bezier(0.2,0.9,0.3,1), transform 2s cubic-bezier(0.2,0.9,0.3,1);
}

/* анимация как у services/team */
.legal-card.legal-animate-ready,
.legal-divider.legal-animate-ready{
  opacity: 0;
  transform: translateY(200px);
  pointer-events: none;
}

@media (max-width: 900px){
  .legal-grid{
    grid-template-columns: 1fr;
  }
  .legal-divider{
    height: 3px;
    width: 100%;
  }
}

/* =========================
   ABOUT v2 — усиление (выше, жирнее, "кричащие" заголовки)
   Вставь в самый конец styles.css
   ========================= */

.about-v2-grid{
  width: min(1300px, 92vw) !important;
  gap: 20px !important;
}

.about-v2-card{
  padding: 28px 22px 22px !important;
  min-height: 360px;
  border: 1px solid rgba(0,0,0,0.10) !important;
  box-shadow:
    0 10px 0 rgba(0,0,0,0.22),
    0 22px 34px rgba(0,0,0,0.22) !important;
  position: relative;
  overflow: hidden;
}

/* геометрия-акцент в карточке */
.about-v2-card::before{
  content:"";
  position:absolute;
  top: -70px;
  right: -90px;
  width: 240px;
  height: 180px;
  background: linear-gradient(135deg,
    rgba(107,15,26,0.00) 0%,
    rgba(107,15,26,0.14) 45%,
    rgba(107,15,26,0.28) 100%
  );
  transform: rotate(16deg);
  clip-path: polygon(25% 0, 100% 0, 82% 100%, 0% 100%);
  opacity: .95;
  pointer-events:none;
}

.about-v2-title{
  font-size: clamp(18px, 2.2vw, 28px) !important;
  letter-spacing: .14em !important;
  font-weight: 1000 !important;
  text-transform: uppercase;
  color: var(--brand-burgundy) !important;
  line-height: 1.05 !important;
  margin-bottom: 6px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

/* усиливаем текст (чтобы блок был "не узкий") */
.about-v2-text{
  font-size: clamp(15px, 1.05vw, 17px) !important;
  line-height: 1.45 !important;
  letter-spacing: .02em !important;
}

/* адаптив: не даём карточкам стать слишком низкими */
@media (max-width: 900px){
  .about-v2-card{
    min-height: unset;
  }
}

/* =========================
   LEGAL — усиление + интеграция "Б" (watermark)
   Вставь в самый конец styles.css
   ========================= */

.legal-section{
  position: relative;
}

/* большая буква "Б" на всю секцию */
.legal-section::after{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  z-index: 0;

  background-image: url("assets/blackbrowser.png");
  background-repeat: no-repeat;
  background-size: min(520px, 42vw) auto; /* подстраивается */
  background-position: right 6vw top 80px;
  opacity: 0.10; /* не мешает чтению */
  filter: contrast(1.05) saturate(0.9);
}

/* чтобы карточки и заголовки были поверх watermark */
.legal-section > *{
  position: relative;
  z-index: 1;
}

.legal-grid{
  width: min(1200px, 92vw) !important;
  gap: 18px !important;
}

/* карточки — мо��нее */
.legal-card{
  padding: 26px 22px 22px !important;
  box-shadow:
    0 10px 0 rgba(0,0,0,0.18),
    0 22px 34px rgba(0,0,0,0.18) !important;
  position: relative;
  overflow: hidden;
}

/* геометрический акцент */
.legal-card::before{
  content:"";
  position:absolute;
  top: -60px;
  left: -80px;
  width: 220px;
  height: 180px;
  background: linear-gradient(135deg,
    rgba(107,15,26,0.22),
    rgba(107,15,26,0.00)
  );
  transform: rotate(-10deg);
  clip-path: polygon(0 0, 100% 0, 58% 100%, 0 100%);
  opacity: .7;
  pointer-events:none;
}

.legal-title{
  font-size: clamp(18px, 2.2vw, 30px) !important;
  letter-spacing: .12em !important;
  font-weight: 1000 !important;
  color: var(--brand-burgundy) !important;
  line-height: 1.05 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.16);
}

/* список — чуть крупнее и плотнее */
.legal-steps{
  font-size: clamp(13px, 1.0vw, 15px) !important;
  gap: 10px !important;
  line-height: 1.28 !important;
}

/* жирная линия разделителя как на скрине */
.legal-divider{
  background: rgba(0,0,0,0.70) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset !important;
}

/* на мобилке watermark "Б" переставляем вниз/в центр */
@media (max-width: 900px){
  .legal-section::after{
    background-size: min(420px, 70vw) auto;
    background-position: center bottom 40px;
    opacity: 0.08;
  }
}


/* =========================
   LEGAL — интеграция буквы "Б" как эмблемы (НЕ фон, НЕ за карточками)
   Вставь в самый конец styles.css
   ========================= */

/* если раньше делали watermark через ::after/::before — прибиваем */
.legal-section::before,
.legal-section::after{
  content: none !important;
}

/* Шапка секции: эмблема + заголовок */
.legal-head{
  width: min(1200px, 92vw);
  margin: 0 auto 26px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.legal-section-title{
  margin-bottom: 0 !important;
}

/* Эмблема "Б" как отдельная плашка */
.legal-mark{
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
  position: relative;
  overflow: hidden; /* обрезаем пустоты png контейнером */
}

/* Сам png двигаем внутри, чтобы убрать пустые поля */
.legal-mark img{
  position: absolute;
  inset: 0;
  width: 140%;
  height: 140%;
  object-fit: contain;
  transform: translate(-14%, -10%); /* подбираем чтобы "Б" оказалась по центру */
  opacity: 0.92;
  filter: grayscale(1) contrast(1.05);
}

/* Карточки: бейдж "Б" в углу (не фон, поверх карточки) */
.legal-card{
  position: relative;
  overflow: hidden;
}

.legal-card-badge{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 0; /* под стиль сайта */
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 18px rgba(0,0,0,0.14);
  overflow: hidden;
  pointer-events: none;
}

.legal-card-badge img{
  position: absolute;
  inset: 0;
  width: 150%;
  height: 150%;
  object-fit: contain;
  transform: translate(-18%, -12%);
  opacity: 0.85;
  filter: grayscale(1) contrast(1.05);
}

/* Усиливаем заголовки карточек, чтобы "кричали" */
.legal-title{
  font-size: clamp(20px, 2.2vw, 32px) !important;
  letter-spacing: .12em !important;
  font-weight: 1000 !important;
}

/* немного воздуха сверху, чтобы бейдж не конфликтовал */
.legal-card-head{
  padding-right: 56px;
}

/* адаптив */
@media (max-width: 900px){
  .legal-head{
    justify-content: flex-start;
  }
  .legal-mark{
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 560px){
  .legal-head{
    padding: 0 16px;
    gap: 12px;
  }
  .legal-mark{
    width: 52px;
    height: 52px;
  }
  .legal-card-badge{
    width: 42px;
    height: 42px;
    top: 12px;
    right: 12px;
  }
}

/* =========================
   ABOUT v2 — SVG-арт внутри карточек
   ========================= */

.about-v2-card{
  position: relative;
  overflow: hidden;
}

/* сам арт */
.about-v2-art{
  position: absolute;
  top: 14px;
  right: 14px;
  width: min(180px, 38%);
  height: auto;
  opacity: 0.10;              /* очень деликатно, как фирменный акцент */
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
  user-select: none;
}

/* контент поверх */
.about-v2-content{
  position: relative;
  z-index: 1;
  padding-right: clamp(90px, 10vw, 170px); /* чтобы текст не залезал на SVG */
}

/* на мобилке — чуть меньше, но всё равно видно */
@media (max-width: 560px){
  .about-v2-art{
    width: min(150px, 44%);
    opacity: 0.09;
  }
  .about-v2-content{
    padding-right: 120px;
  }
}

/* =========================
   LEGAL — SVG-арт внутри карточек
   ========================= */

.legal-card{
  position: relative;
  overflow: hidden;
}

/* арт внутри карточки */
.legal-art{
  position: absolute;
  top: 10px;
  right: 10px;
  width: min(220px, 42%);
  height: auto;
  opacity: 0.12;
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
  user-select: none;
}

/* чтобы заголовки/текст не конфликтовали с арт-частью */
.legal-card-head,
.legal-steps{
  position: relative;
  z-index: 1;
  padding-right: clamp(110px, 12vw, 210px);
}

/* чуть усилим заголовок (раз заказчик просил "кричали") */
.legal-title{
  font-size: clamp(20px, 2.2vw, 32px) !important;
  letter-spacing: .12em !important;
  font-weight: 1000 !important;
}

/* адаптив: на узких экранах арт меньше и уезжает чуть выше */
@media (max-width: 900px){
  .legal-art{
    width: min(200px, 55%);
    opacity: 0.10;
    top: 6px;
    right: 6px;
  }

  .legal-card-head,
  .legal-steps{
    padding-right: 0; /* на мобилке лучше убрать, там арт уйдёт в верхний угол и не мешает */
  }
}

/* на очень узких — вообще оставляем только намёк */
@media (max-width: 560px){
  .legal-art{
    width: 160px;
    opacity: 0.08;
  }
}

/* =========================
   ABOUT v2 — текст/пункты/акценты + SVG не наезжает
   ========================= */

.about-v2-card{
  position: relative;
  overflow: hidden;
}

/* SVG внутри карточек — ограничиваем и не даём им залезать */
.about-v2-art{
  position: absolute;
  top: 12px;
  right: 12px;

  width: clamp(120px, 32%, 185px);
  max-width: 185px;

  height: auto;
  opacity: 0.12;
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
  user-select: none;
}

/* БЕЗОПАСНАЯ ЗОНА под SVG — по умолчанию */
.about-v2-content{
  position: relative;
  z-index: 1;
  padding-right: clamp(120px, 14vw, 220px);
}

/* Заказчик просил: в Скорости и Опыте текст слишком узкий → расширяем колонку (уменьшаем reserve) */
.about-v2-card--speed .about-v2-content,
.about-v2-card--exp .about-v2-content{
  padding-right: clamp(72px, 8vw, 160px);
}

/* В этих же карточках чуть уменьшаем SVG, чтобы не давил */
.about-v2-card--speed .about-v2-art,
.about-v2-card--exp .about-v2-art{
  width: clamp(110px, 28%, 165px);
  max-width: 165px;
  opacity: 0.10;
}

/* Пункты в "Надежности" */
.about-v2-points{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 12px;
}

.about-v2-point{
  font-weight: 800;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.45;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.78);
  position: relative;
  padding-left: 14px;
}

/* маленький бордовый маркер как в ваших списках */
.about-v2-point::before{
  content:"";
  position:absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--brand-burgundy);
}

/* выделения (легкий бордовый, не такой "крикливый" как заголовок) */
.about-v2-accent{
  color: rgba(107,15,26,0.92);
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(0,0,0,0.10);
  white-space: nowrap;
}

.about-v2-accent-soft{
  color: rgba(107,15,26,0.85);
  font-weight: 1000;
}

/* =========================
   LEGAL — SVG фикс: не наезжает на текст
   ========================= */

.legal-card{
  position: relative;
  overflow: hidden;
}

.legal-art{
  position: absolute;
  top: 10px;
  right: 10px;

  width: clamp(150px, 38%, 240px);
  max-width: 240px;

  height: auto;
  opacity: 0.12;
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
  user-select: none;
}

/* резервируем место под SVG, чтобы текст никогда не пересекался */
.legal-card-head,
.legal-steps{
  position: relative;
  z-index: 1;
  padding-right: clamp(140px, 16vw, 260px);
}

/* если на некоторых ширинах всё равно тесно — подожмём SVG */
@media (max-width: 1100px){
  .legal-art{
    width: clamp(140px, 34%, 210px);
    max-width: 210px;
    opacity: 0.10;
  }
  .legal-card-head,
  .legal-steps{
    padding-right: clamp(120px, 14vw, 230px);
  }
}

/* на узких — убираем резерв, SVG становится меньше и не мешает */
@media (max-width: 900px){
  .legal-art{
    width: 170px;
    max-width: 170px;
    opacity: 0.08;
  }
  .legal-card-head,
  .legal-steps{
    padding-right: 0;
  }
}


/* =========================
   FIX: вернуть SVG вправо (grid-placement)
   Добавь в конец styles.css
   ========================= */

/* ABOUT: явно раскладываем элементы по колонкам */
.about-v2-card{
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  column-gap: 16px !important;
  align-items: start !important;
}

/* контент всегда слева */
.about-v2-content{
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0;
}

/* SVG всегда справа */
.about-v2-art{
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: start !important;
}

/* LEGAL: явно раскладываем элементы по колонкам */
.legal-card{
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  column-gap: 16px !important;
  align-items: start !important;
}

.legal-card-head,
.legal-steps{
  grid-column: 1 !important;
  min-width: 0;
}

.legal-art{
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important; /* чтобы мог занимать место рядом и с заголовком, и со списком */
  justify-self: end !important;
  align-self: start !important;
}

/* Мобилка: одна колонка, арт сверху справа */
@media (max-width: 900px){
  .about-v2-card,
  .legal-card{
    grid-template-columns: 1fr !important;
  }

  .about-v2-art,
  .legal-art{
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin: 0 0 10px !important;
  }

  .about-v2-content{
    grid-row: 2 !important;
  }

  .legal-card-head{
    grid-row: 2 !important;
  }
  .legal-steps{
    grid-row: 3 !important;
  }
}

/* =========================
   PATCH: About accents lighter + Legal less empty + bigger SVG
   Вставь в конец styles.css
   ========================= */

/* ---------- 1) ABOUT: акцент только цветом, без жирности ---------- */
.about-v2-accent,
.about-v2-accent-soft{
  /* мягкий бордовый (светлее, чем заголовки) */
  color: rgba(107, 15, 26, 0.58) !important;

  /* ВАЖНО: никакой жирности */
  font-weight: inherit !important;

  text-shadow: none !important;
}

/* если где-то акцент был nowrap и ломал переносы — убираем */
.about-v2-accent,
.about-v2-accent-soft{
  white-space: normal !important;
}

/* ---------- 2) LEGAL: меньше пустоты + SVG крупнее ---------- */
.legal-card{
  /* вместо 1fr auto делаем контролируемый карман под картинку */
  grid-template-columns: 1fr 210px !important;
  column-gap: 12px !important;
}

/* SVG делаем крупнее и ставим ближе к верху */
.legal-art{
  width: 210px !important;
  max-width: 210px !important;
  opacity: 0.12 !important;
  margin-top: 2px !important;
}

/* чтобы правая колонка не “съедала” много места на 1366/1440 */
@media (max-width: 1200px){
  .legal-card{
    grid-template-columns: 1fr 190px !important;
  }
  .legal-art{
    width: 190px !important;
    max-width: 190px !important;
    opacity: 0.11 !important;
  }
}

/* мобилка — как раньше: одна колонка */
@media (max-width: 900px){
  .legal-card{
    grid-template-columns: 1fr !important;
  }
  .legal-art{
    width: 180px !important;
    max-width: 180px !important;
    opacity: 0.09 !important;
    margin: 0 0 10px !important;
  }
}

/* =========================
   FINAL FIX: убираем пустое место справа
   -> SVG как декоративный absolute-слой
   -> текст широкий, reserve минимальный
   ========================= */

/* ---------- ABOUT (О БЮРО) ---------- */
.about-v2-card{
  display: block !important;      /* убираем grid */
  position: relative !important;
  overflow: hidden !important;
}

/* SVG обратно в absolute, чтобы не съедал ширину */
.about-v2-art{
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;

  width: 185px !important;
  max-width: 185px !important;
  height: auto !important;

  opacity: 0.12 !important;
  filter: grayscale(1) contrast(1.05) !important;

  pointer-events: none !important;
  user-select: none !important;
}

/* небольшая “зона безопасности” — чтобы текст не наезжал,
   но и не было огромной пустоты */
.about-v2-content{
  position: relative !important;
  z-index: 1 !important;
  padding-right: 96px !important; /* ключевой параметр */
}

/* 1-я карточка (Надежность) — SVG чуть меньше */
.about-v2-card--reliability .about-v2-art{
  width: 165px !important;
  max-width: 165px !important;
}

/* Скорость/Опыт — SVG чуть больше (как ты просил ранее),
   но уводим правее, чтобы не мешал тексту */
.about-v2-card--speed .about-v2-art,
.about-v2-card--exp .about-v2-art{
  width: 200px !important;
  max-width: 200px !important;
  right: -6px !important; /* “вылезает” за край, тексту не мешает */
  opacity: 0.11 !important;
}

/* На мобилке — уменьшаем и поднимаем */
@media (max-width: 560px){
  .about-v2-art{
    width: 150px !important;
    max-width: 150px !important;
    opacity: 0.09 !important;
    right: 6px !important;
    top: 8px !important;
  }
  .about-v2-content{
    padding-right: 66px !important;
  }
}

/* Акцент в тексте: только легкий бордовый, без жирности */
.about-v2-accent,
.about-v2-accent-soft{
  color: rgba(107, 15, 26, 0.56) !important;
  font-weight: inherit !important;
  text-shadow: none !important;
}

/* ---------- LEGAL (Юридические услуги) ---------- */
.legal-card{
  display: block !important;      /* убираем grid */
  position: relative !important;
  overflow: hidden !important;
}

/* SVG как декоративный слой справа сверху */
.legal-art{
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;

  width: 230px !important;
  max-width: 230px !important;
  height: auto !important;

  opacity: 0.10 !important;
  filter: grayscale(1) contrast(1.05) !important;

  pointer-events: none !important;
  user-select: none !important;
}

/* Небольшой reserve под SVG — чтобы не наезжало,
   но чтобы текст был широкий */
.legal-card-head,
.legal-steps{
  position: relative !important;
  z-index: 1 !important;
  padding-right: 92px !important; /* ключевой параметр */
}

/* Чуть меньше на более узких */
@media (max-width: 1200px){
  .legal-art{
    width: 210px !important;
    max-width: 210px !important;
    opacity: 0.09 !important;
  }
  .legal-card-head,
  .legal-steps{
    padding-right: 74px !important;
  }
}

/* Мобилка: можно ещё меньше */
@media (max-width: 900px){
  .legal-art{
    width: 170px !important;
    max-width: 170px !important;
    opacity: 0.08 !important;
    top: 10px !important;
    right: 10px !important;
  }
  .legal-card-head,
  .legal-steps{
    padding-right: 0 !important; /* на мобилке пусть будет на всю ширину */
  }
}

/* =========================================================
   MOBILE (<=560px): все секции листаются как "НАШИ УСЛУГИ"
   + анимации остаются (IntersectionObserver уже работает)
   + фикс заголовка "ЮРИДИЧЕСКИЕ УСЛУГИ" чтобы не обрезался
   Вставь в САМЫЙ КОНЕЦ styles.css
   ========================================================= */

@media (max-width: 560px){

  /* 0) общий фикс заголовков, чтобы не резались по ширине */
  .section-title{
    padding-inline: 10px;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  /* 3) ЮРИДИЧЕСКИЕ УСЛУГИ — чуть меньше шрифт на мобилке */
  #legal .section-title{
    font-size: clamp(26px, 8.2vw, 34px) !important;
    line-height: 1.05 !important;
    letter-spacing: .02em !important;
  }

  /* 2) О БЮРО — делаем свайп-карусель как услуги */
  .about-v2-grid{
    width: 100% !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: unset !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 85vw !important;

    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding-inline: 8px !important;
    scroll-padding-inline: 8px !important;
    scroll-snap-type: x mandatory !important;

    -webkit-overflow-scrolling: touch;
  }
  .about-v2-grid::-webkit-scrollbar{ height: 0; }

  .about-v2-card{
    scroll-snap-align: start;
  }

  /* 2) ЮР. УСЛУГИ — тоже свайп-карусель (вместо 2 колонок + разделителя) */
  .legal-grid{
    width: 100% !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: unset !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 85vw !important;

    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding-inline: 8px !important;
    scroll-padding-inline: 8px !important;
    scroll-snap-type: x mandatory !important;

    -webkit-overflow-scrolling: touch;
  }
  .legal-grid::-webkit-scrollbar{ height: 0; }

  /* разделитель в карусели не нужен */
  .legal-divider{ display: none !important; }

  .legal-card{
    scroll-snap-align: start;
  }

  /* 2) КОМАНДА — на мобилке тоже делаем свайп (по желанию заказчика “все блоки”) */
  .team-grid{
    width: 100% !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: unset !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 85vw !important;

    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding-inline: 8px !important;
    scroll-padding-inline: 8px !important;
    scroll-snap-type: x mandatory !important;

    -webkit-overflow-scrolling: touch;
  }
  .team-grid::-webkit-scrollbar{ height: 0; }

  .team-card{
    scroll-snap-align: start;
  }

  /* 1) Анимации на мобилке:
     IntersectionObserver у тебя уже добавляет/снимает классы.
     Тут просто делаем, чтобы элементы не блокировали свайп при ready-состоянии.
     (pointer-events: none мешает листанию, если пользователь начнет свайп по карточке) */

  .service-card.service-animate-ready,
  .about-v2-card.about-v2-animate-ready,
  .legal-card.legal-animate-ready,
  .team-card.team-animate-ready{
    pointer-events: auto !important; /* важно для свайпа */
  }

  /* бонус: чуть “успокаиваем” стартовый сдвиг, чтобы при появлении не дергало карусель */
  .service-card.service-animate-ready,
  .about-v2-card.about-v2-animate-ready,
  .legal-card.legal-animate-ready,
  .team-card.team-animate-ready{
    transform: translateY(60px) !important;
    opacity: 0 !important;
  }
}



/* =========================================================
   PATCH (точечно): CTA номер (mobile) + Legal spacing + Team weight
   + Contacts INN/OGRN + базовая унификация ОСНОВНОГО текста
   ВСТАВЬ В САМЫЙ КОНЕЦ styles.css
   ========================================================= */

/* ---------- 1) HERO (MOBILE): CTA для номера без изменения стиля/позиции ---------- */
@media (max-width: 560px){
  /* номер остаётся белым текстом как был; добавляем только “дышащий” эффект */
  .hero-phone-mobile.cta{
    /* никаких фонов/паддингов/размеров — не трогаем */
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;

    /* лёгкий акцент (очень мягкий) */
    text-shadow:
      0 1px 4px rgba(0,0,0,0.55),
      0 0 12px rgba(255,255,255,0.10);

    /* важно: анимацию делаем с сохранением translateX(-50%) */
    transform-origin: center;
    will-change: transform;
  }

  @keyframes heroPhoneCTA{
    0%   { transform: translateX(-50%) translateY(0) scale(1); }
    50%  { transform: translateX(-50%) translateY(0) scale(1.035); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
  }

  .hero-phone-mobile.cta{
    animation: heroPhoneCTA 2200ms ease-in-out infinite;
  }

  /* нажатие — короткое “сжатие” */
  .hero-phone-mobile.cta.cta-pressed{
    transform: translateX(-50%) translateY(0) scale(0.985) !important;
    transition: transform 90ms ease;
  }
}

/* ---------- 2) LEGAL (MOBILE): разрыв между подзаголовком и текстом + чуть увеличить текст ---------- */
@media (max-width: 560px){
  .legal-title{
    margin-bottom: 14px !important; /* разрыв как просили */
  }

  .legal-steps{
    margin-top: 4px !important;
    gap: 12px !important;
    font-size: 15px !important;  /* чуть больше */
    line-height: 1.28 !important;
    font-weight: 800 !important; /* оставляем как “основной текст” в этом блоке */
  }
}

/* ---------- 3) TEAM: основной текст списка чуть жирнее (не перебор) ---------- */
.team-list{
  font-weight: 700 !important;
}

/* (вложенный список оставляем чуть легче, чтобы иерархия читалась) */
.team-sublist li{
  font-weight: 650 !important;
}

/* ---------- 4) CONTACTS: ИНН/ОГРН меньше и менее жирные (везде) ---------- */
.brand-ids{
  font-size: 16px !important;
  font-weight: 600 !important;
  color: rgba(234,234,234,0.78) !important;
}

/* ---------- 5) Унификация “основного текста” одинаковой функции (без заголовков/подзаголовков) ---------- */
/* Основной текст = списки/абзацы внутри карточек, где смысл одинаковый */
.about-v2-point,
.about-v2-text,
.legal-steps,
.team-list,
.team-sublist li{
  font-size: 16px;          /* базовый единый размер */
  font-weight: 800;         /* единый вес основного текста (как на скринах — жирный капс) */
  line-height: 1.28;
}

/* На мобилке основной текст чуть компактнее, чтобы не “раздувать” карточки */
@media (max-width: 560px){
  .about-v2-point,
  .about-v2-text,
  .legal-steps,
  .team-list,
  .team-sublist li{
    font-size: 15px;
    line-height: 1.26;
  }
}

/* =========================
   LEGAL: разрыв после подзаголовка (между заголовком и основ��ым текстом)
   ВСТАВЬ В САМЫЙ КОНЕЦ styles.css
   ========================= */

/* базово для всех устройств */
.legal-card-head{
  margin-bottom: 12px !important;
}

/* если нужно именно “после h3”, можно так (работает вместе/вместо) */
.legal-title{
  margin-bottom: 12px !important;
}

/* на мобилке обычно чуть больше воздуха */
@media (max-width: 560px){
  .legal-card-head{
    margin-bottom: 14px !important;
  }
  .legal-title{
    margin-bottom: 14px !important;
  }
}