/* ===================================================
   BASE
=================================================== */
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-white);
  overflow-x: hidden;
}

@supports (content-visibility: auto) {
  .services,
  .trusted,
  .portfolio,
  .process,
  .explorer,
  .about,
  .faq,
  .contact,
  .footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
}

/* ===================================================
   UTILITIES
=================================================== */
.tag-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--c-accent);
  flex-shrink: 0;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-text-secondary);
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

/* scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   NAV
=================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  z-index: 100;
  transition: background var(--t-base), backdrop-filter var(--t-base);
}
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--c-text-secondary);
  transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--c-white); }

.nav__cta {
  padding: 10px 24px;
  background: var(--c-accent);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-white);
  transition: opacity var(--t-fast);
}
.nav__cta:hover { opacity: 0.88; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  transition: transform var(--t-base), opacity var(--t-base);
}

/* Burger → X animation when menu is open */
.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile nav overlay — fade transition */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--c-bg-black);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.nav__mobile.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav__mobile a {
  font-family: var(--f-display);
  font-size: clamp(36px, 10vw, 48px);
  letter-spacing: 3px;
  color: var(--c-white);
  transition: color var(--t-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav__mobile a:hover { color: var(--c-accent); }

/* ===================================================
   HERO
=================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 640px) {
  .hero__bg {
    background: #0a0a0a;
  }
  .hero__bg picture {
    display: block;
    position: absolute;
    inset: 0;
  }
  .hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
}

.hero__tag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__tag-line {
  width: 40px;
  height: 2px;
  background: var(--c-accent);
  flex-shrink: 0;
}
.hero__tag-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--c-accent);
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(72px, 8.33vw, 120px);
  line-height: 1.0;
  letter-spacing: 2px;
  color: var(--c-white);
}

.hero__sub {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--c-text-secondary);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-white);
  align-self: flex-start;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.hero__cta:hover { opacity: 0.88; transform: translateX(4px); }

.hero__scroll {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.83);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero__scroll span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.78);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__stats {
  position: absolute;
  right: 71px;
  bottom: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stat-num {
  font-family: var(--f-display);
  font-size: 64px;
  line-height: 1;
  color: var(--c-white);
}
.hero__stat-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
}

/* ===================================================
   SERVICES SECTION
=================================================== */
.services {
  background: var(--c-bg-dark);
  padding: var(--section-gap) var(--pad-x-md);
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-top: 1px solid var(--c-border-soft);
}

.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.services__title {
  font-family: var(--f-display);
  font-size: 56px;
  letter-spacing: 3px;
  color: var(--c-white);
}
.services__sub {
  max-width: 449px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
}

.services__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.services__scroll-hint {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.46);
}

.services__divider {
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent) 0%, transparent 100%);
}

/* carousel */
.services__carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  cursor: grab;
  user-select: none;
}
.services__carousel:active { cursor: grabbing; }
.services__carousel::-webkit-scrollbar { height: 2px; }
.services__carousel::-webkit-scrollbar-track { background: var(--c-border); }
.services__carousel::-webkit-scrollbar-thumb { background: var(--c-accent); }

.service-card {
  flex-shrink: 0;
  width: 280px;
  height: 360px;
  background-color: #151518;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  gap: 12px;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  transition: transform var(--t-base);
}
.service-card:hover { transform: translateY(-4px); }

.service-card--empty {
  background: linear-gradient(145deg, #1a1a1f 0%, #0d0d10 100%);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  transition: background var(--t-base);
}
.service-card:hover .service-card__overlay {
  background: rgba(0,0,0,0.4);
}

.service-card__title,
.service-card__desc {
  position: relative;
  z-index: 1;
}
.service-card__title {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--c-white);
}
.service-card__desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-text-secondary);
}

/* ===================================================
   TRUSTED BY
=================================================== */
.trusted {
  background: var(--c-bg-section);
  padding: 72px var(--pad-x-md);
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-top: 1px solid var(--c-border-soft);
}

.trusted__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.trusted__tag {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--c-accent);
  text-align: center;
}
.trusted__title {
  font-family: var(--f-display);
  font-size: 52px;
  letter-spacing: 3px;
  color: var(--c-white);
  text-align: center;
}
.trusted__sub {
  max-width: 780px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

.trusted__logos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.trusted__div {
  height: 1px;
  background: var(--c-border);
}
.trusted__logos img {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  display: block;
}

/* ===================================================
   PORTFOLIO SECTION
=================================================== */
.portfolio {
  background: var(--c-bg-section);
  padding: 80px var(--pad-x-md);
  display: flex;
  flex-direction: column;
  gap: 48px;
  border-top: 1px solid var(--c-border-soft);
}

.portfolio__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.portfolio__title {
  font-family: var(--f-display);
  font-size: 56px;
  letter-spacing: 3px;
  color: var(--c-white);
}

.portfolio__subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 680px;
}

.portfolio__filter-note {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.35);
}

.portfolio__note {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid var(--c-border-soft);
  padding-top: 24px;
  max-width: 860px;
}

.project-card--more {
  opacity: 0.65;
}
.project-card--more:hover {
  opacity: 1;
}

/* Portfolio show/hide extra rows */
.portfolio__row.portfolio__row--extra {
  display: none;
}
.portfolio__grid--expanded .portfolio__row--extra {
  display: grid;
}

/* Плоский грид для режима фильтрации по категории */
.portfolio__filter-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.portfolio__show-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.portfolio__show-btn {
  padding: 14px 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.portfolio__show-btn:hover {
  border-color: var(--c-accent);
  background: rgba(230,57,70,0.08);
}
.portfolio__show-wrap--hidden {
  display: none;
}

.portfolio__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pf-btn {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-text-secondary);
  background: var(--c-border);
  transition: background var(--t-fast), color var(--t-fast);
}
.pf-btn:hover { background: rgba(255,255,255,0.15); color: var(--c-white); }
.pf-btn--active {
  background: var(--c-accent);
  color: var(--c-white);
}

/* grid */
.portfolio__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portfolio__row {
  display: grid;
  gap: 20px;
}
.portfolio__row--2 { grid-template-columns: 1fr 1fr; }
.portfolio__row--3 { grid-template-columns: 1fr 1fr 1fr; }

.project-card {
  height: 400px;
  background-color: #101014;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  gap: 8px;
  overflow: hidden;
  transition: transform var(--t-base);
}
.project-card:hover { transform: scale(1.01); }
.project-card.hidden { display: none; }

.project-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 55%);
  transition: background var(--t-base);
}
.project-card:hover .project-card__overlay {
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 70%);
}

.project-card__info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-card__tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--c-accent);
}
.project-card__title {
  font-family: var(--f-display);
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--c-white);
}
.project-card__desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text-secondary);
  max-width: none;
}

/* ===================================================
   CARD SLIDESHOW
=================================================== */
.project-card__slides-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.project-card__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}
.project-card__slide.active {
  opacity: 1;
}
.project-card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
  pointer-events: none;
}
.project-card__dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s, transform 0.3s;
}
.project-card__dots span.active {
  background: #fff;
  transform: scale(1.3);
}

/* ===================================================
   WORK PROCESS
=================================================== */
.process {
  background: var(--c-bg-section);
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.process__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.process__tag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.process__tag .tag-line {
  width: 40px;
  height: 2px;
  background: var(--c-accent);
}
.process__tag .tag-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--c-accent);
}
.process__title {
  font-family: var(--f-display);
  font-size: 64px;
  letter-spacing: 3px;
  color: var(--c-white);
}
.process__sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--c-text-secondary);
  text-align: center;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.process__step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 32px;
  border: 1px solid var(--c-border-soft);
}
.process__step-line {
  display: none;
}
.process__num {
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1;
  color: var(--c-accent);
}
.process__step-title {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  line-height: 1.25;
  color: var(--c-white);
}
.process__step-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-text-secondary);
}

/* ===================================================
   SERVICES EXPLORER
=================================================== */
.explorer {
  display: flex;
  height: 900px;
  background: var(--c-bg-section);
  overflow: hidden;
  border-top: 2px solid var(--c-accent);
}

.explorer__list {
  width: 516px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 60px;
  overflow-y: hidden;
}
.explorer__list::-webkit-scrollbar { display: none; }

.explorer__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  text-align: left;
  transition: opacity var(--t-fast);
}
.explorer__item:not(.explorer__item--active) {
  padding-left: 20px;
}
.explorer__item:not(.explorer__item--active):hover {
  opacity: 0.8;
}

.explorer__marker {
  width: 4px;
  height: 32px;
  background: var(--c-accent);
  flex-shrink: 0;
}
.explorer__item:not(.explorer__item--active) .explorer__marker {
  display: none;
}

.explorer__item-name {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--c-white);
  transition: color var(--t-fast);
}
.explorer__item:not(.explorer__item--active) .explorer__item-name {
  color: rgba(255,255,255,0.2);
}
.explorer__item:not(.explorer__item--active):hover .explorer__item-name {
  color: rgba(255,255,255,0.5);
}

.explorer__panel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.explorer__panel-bg {
  position: absolute;
  inset: 0;
  background-color: #12121a;
  background-size: cover;
  background-position: center;
  transition: opacity var(--t-slow);
}
.explorer__panel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 50%);
}
.explorer__panel-bg.fading { opacity: 0; }

.explorer__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explorer__panel-content {
  position: absolute;
  bottom: 0;
  left: 50px;
  right: 0;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}
.explorer__panel-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* chips inside explorer panel — white to contrast dark service images */
.explorer-chip {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--c-white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
}

.explorer__panel-desc {
  max-width: 700px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Desktop-only adjustments for explorer readability */
@media (min-width: 1025px) {
  .explorer__panel-content {
    left: 60px;
    padding-bottom: 72px;
  }

  .explorer__panel-desc {
    max-width: 860px;
    font-size: 22px;
    line-height: 1.45;
  }
}

/* ===================================================
   ABOUT
=================================================== */
.about {
  position: relative;
  min-height: 770px;
  overflow: hidden;
  background-color: #0f0f12;
  background-size: cover;
  background-position: center;
}

.about__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

.about__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  padding: 120px var(--pad-x) 80px;
}

.about__tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--c-accent);
}

.about__title {
  font-family: var(--f-display);
  font-size: 64px;
  letter-spacing: 2px;
  line-height: 1.05;
  color: var(--c-white);
}

.about__desc {
  max-width: 600px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.about__extra[hidden] { display: none; }
.about__extra { display: flex; flex-direction: column; gap: 16px; }

.about__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.about__read-more {
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.about__read-more:hover { color: var(--c-white); border-color: rgba(255,255,255,0.4); }

.about__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--c-white);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.about__btn:hover {
  border-color: var(--c-accent);
  background: rgba(230,57,70,0.1);
}
.about__btn svg { color: var(--c-accent); }

/* ===================================================
   FAQ
=================================================== */
.faq {
  background: var(--c-bg-black);
  padding: 80px;
  display: flex;
  gap: 80px;
}

.faq__items {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--c-border);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  gap: 16px;
  text-align: left;
  transition: color var(--t-fast);
}
.faq__q:hover { color: var(--c-white); }

.faq__icon {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--c-accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: inline-block;
  transform-origin: center;
}
.faq__item--open .faq__icon { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-base);
}
.faq__a--visible,
.faq__item--open .faq__a {
  max-height: 200px;
  padding-bottom: 20px;
}
.faq__a p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text-secondary);
  max-width: none;
}

.faq__right {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__tag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq__tag-line {
  width: 40px;
  height: 2px;
  background: var(--c-accent);
}
.faq__tag span:last-child {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--c-accent);
}

.faq__title {
  font-family: var(--f-display);
  font-size: 64px;
  letter-spacing: 2px;
  line-height: 0.95;
  color: var(--c-white);
}

.faq__sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 360px;
}

/* ===================================================
   CONTACT
=================================================== */
.contact {
  background: var(--c-bg-section);
  padding: 80px var(--pad-x-md);
  display: flex;
  gap: 60px;
}

.contact__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__title {
  font-family: var(--f-display);
  font-size: 56px;
  letter-spacing: 2px;
  line-height: 1.05;
  color: var(--c-white);
}

.contact__sub {
  max-width: 480px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-white);
}
.contact__icon { flex-shrink: 0; }

.contact__socials {
  display: flex;
  gap: 16px;
}
.contact__social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-secondary);
  transition: background var(--t-fast), color var(--t-fast);
}
.contact__social:hover {
  background: var(--c-accent);
  color: var(--c-white);
}

/* form */
.contact__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-white);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 400;
  transition: border-color var(--t-fast);
  outline: none;
}
.form-field input { height: 52px; }
.form-field textarea {
  height: 140px;
  padding: 16px;
  resize: none;
  line-height: 1.6;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--c-accent); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.2); }

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.consent input { display: none; }
.consent__box {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
  position: relative;
}
.consent input:checked + .consent__box {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.consent input:checked + .consent__box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.consent__text {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
}
.consent__link {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t-fast), opacity var(--t-fast);
}
.consent__link:hover {
  color: #ff4d5a;
  opacity: 0.9;
}

.submit-btn {
  width: 100%;
  padding: 18px 0;
  background: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--c-white);
  text-align: center;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }

/* ===================================================
   FOOTER
=================================================== */
.footer {
  background: var(--c-bg-black);
  padding: 72px var(--pad-x-md) 40px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  border-top: 1px solid var(--c-border-soft);
}

.footer__main {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.footer__logo img {
  width: 280px;
  height: auto;
  object-fit: contain;
}

.footer__cols {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-accent);
}
.footer__col a,
.footer__col span:not(.footer__col-title) {
  font-family: var(--f-display);
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--c-white);
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--c-accent); }
.footer__col:nth-child(2) a,
.footer__col:nth-child(2) span:not(.footer__col-title) {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--c-text-secondary);
}
.footer__col:nth-child(2) a:hover { color: var(--c-white); }

.footer__div {
  height: 1px;
  background: var(--c-border-soft);
}

.footer__bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__bot span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--c-text-secondary);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__legal-btn {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--c-text-secondary);
  transition: color var(--t-fast);
}
.footer__legal-btn:hover { color: var(--c-white); }
.footer__legal-sep {
  font-size: 12px;
  color: var(--c-text-muted);
}

/* ===================================================
   RESPONSIVE
   Breakpoints: 1100 | 900 | 768 | 640 | 480
   Spacing tokens set in tokens.css per breakpoint.
=================================================== */

/* ============= ≤1100px  Tablet Landscape ============= */
@media (max-width: 1100px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .hero__stats    { display: none; }
}

/* ============= ≤900px  Tablet Portrait ============= */
@media (max-width: 900px) {
  /* Services */
  .services__head { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Portfolio */
  .portfolio__row--3      { grid-template-columns: 1fr 1fr; }
  .portfolio__filter-results { grid-template-columns: 1fr 1fr; }

  /* Explorer */
  .explorer              { flex-direction: column-reverse; height: auto; }
  .explorer__list        { width: 100%; padding: 40px var(--pad-x); }
  .explorer__panel       { height: 440px; }
  .explorer__panel-content { left: var(--pad-x); }

  /* FAQ */
  .faq       { flex-direction: column-reverse; }
  .faq__right { width: 100%; }

  /* Contact */
  .contact { flex-direction: column; }

  /* Footer */
  .footer__main { flex-direction: column; gap: 48px; }
  .footer__cols { flex-wrap: wrap; gap: 32px; }
}

/* ============= ≤768px  Large Phone / iPad mini ============= */
@media (max-width: 768px) {
  /* NAV — show burger */
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__burger { display: flex; }

  /* Services — left padding only, carousel bleeds to edge */
  .services { padding: var(--section-gap) 0 var(--section-gap) var(--pad-x); gap: 28px; }
  .services__head,
  .services__meta { padding-right: var(--pad-x); }
  .services__divider { margin-right: var(--pad-x); }
  .services__title  { font-size: clamp(36px, 6vw, 56px); }

  /* Trusted */
  .trusted__title { font-size: clamp(28px, 5.5vw, 44px); }
  .trusted__sub   { font-size: 14px; }

  /* Portfolio */
  .portfolio__title   { font-size: clamp(36px, 6vw, 56px); }
  .project-card       { height: 320px; }
  .project-card__title { font-size: 26px; }

  /* Process */
  .process__title { font-size: clamp(36px, 6vw, 56px); }

  /* Explorer */
  .explorer__list        { padding: 32px var(--pad-x); }
  .explorer__panel       { height: 400px; }
  .explorer__item-name   { font-size: 20px; }

  /* About */
  .about__content { padding: 80px var(--pad-x) 64px; }
  .about__title   { font-size: clamp(36px, 6.5vw, 56px); }

  /* FAQ */
  .faq        { padding: var(--section-gap) var(--pad-x); gap: 40px; }
  .faq__title { font-size: clamp(44px, 8vw, 64px); }

  /* Contact */
  .contact       { padding: var(--section-gap) var(--pad-x); }
  .contact__title { font-size: clamp(28px, 5.5vw, 48px); }

  /* Footer */
  .footer { padding: 64px var(--pad-x) 48px; }
}

/* ============= ≤640px  Phone ============= */
@media (max-width: 640px) {
  /* ---- HERO ---- */
  .hero          { padding: 0 var(--pad-x) 40px; }
  .hero__content { gap: 20px; }
  .hero__title   { font-size: clamp(44px, 12.5vw, 64px); }
  .hero__sub     { font-size: 14px; letter-spacing: 0.5px; }
  .hero__cta     { padding: 16px 28px; font-size: 13px; width: 100%; justify-content: center; }
  .hero__scroll  { display: none; }
  /* Stats: стрипа снизу контента */
  .hero__stats {
    position: relative;
    right: auto;
    bottom: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .hero__stat         { flex-direction: column; gap: 2px; }
  .hero__stat-num     { font-size: 36px; }
  .hero__stat-label   { font-size: 9px; letter-spacing: 1.5px; }

  /* ---- SERVICES ---- */
  .services           { padding: var(--section-gap) 0 var(--section-gap) var(--pad-x); gap: 24px; }
  .services__head,
  .services__meta     { padding-right: var(--pad-x); }
  .services__divider  { margin-right: var(--pad-x); }
  .services__title    { font-size: 40px; }
  .service-card       { width: 280px; height: 320px; }

  /* ---- TRUSTED ---- */
  .trusted       { padding: var(--section-gap) var(--pad-x); gap: 28px; }
  .trusted__title { font-size: 26px; letter-spacing: 1px; }

  /* ---- PORTFOLIO ---- */
  .portfolio         { padding: var(--section-gap) var(--pad-x); gap: 32px; }
  .portfolio__title   { font-size: 36px; }
  .portfolio__subtitle { font-size: 14px; }
  /* Фильтры — горизонтальный скролл, не переносятся */
  .portfolio__filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 6px;
  }
  .portfolio__filters::-webkit-scrollbar { display: none; }
  .pf-btn { flex-shrink: 0; padding: 10px 16px; font-size: 11px; }
  /* Одна колонка */
  .portfolio__row--2,
  .portfolio__row--3    { grid-template-columns: 1fr; }
  .portfolio__filter-results { grid-template-columns: 1fr; }
  .project-card         { height: 280px; }
  .project-card__title  { font-size: 22px; }

  /* ---- PROCESS — горизонтальный скролл карточек ---- */
  .process       { padding: var(--section-gap) 0 var(--section-gap) var(--pad-x); gap: 40px; }
  .process__head { padding-right: var(--pad-x); align-items: flex-start; }
  .process__title { font-size: 36px; letter-spacing: 1px; }
  .process__sub   { text-align: left; }
  .process__steps {
    display: flex;
    flex-direction: row;
    grid-template-columns: unset;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 16px;
    padding-right: var(--pad-x);
  }
  .process__steps::-webkit-scrollbar { display: none; }
  .process__step {
    flex-shrink: 0;
    width: 240px;
    min-height: 240px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-accent);
    padding: 20px;
    gap: 12px;
    scroll-snap-align: start;
  }
  .process__num        { font-size: 36px; }
  .process__step-title { font-size: 15px; letter-spacing: 0; }

  /* ---- EXPLORER: картинка сверху, таб-чипы снизу ---- */
  /* column-reverse (наследуется с 900px): DOM [list, panel] → визуально [panel/top, list/bottom] */
  .explorer__panel {
    flex: none;
    height: 460px;
  }

  .explorer__panel-bg::after {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.38) 28%,
      rgba(0,0,0,0.04) 55%,
      transparent 100%
    );
  }

  .explorer__panel-content {
    left: 0;
    right: 0;
    padding: 10px var(--pad-x) 12px;
    background: rgba(4, 4, 8, 0.06);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .explorer__panel-desc { font-size: 11px; line-height: 1.35; }
  .explorer-chip        { font-size: 10px; padding: 3px 8px; }
  .explorer__panel-tags { gap: 4px; }
  /* Горизонтальная строка чипов под картинкой */
  .explorer__list {
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;   /* сбрасываем justify-content:center из базы */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 16px var(--pad-x) 16px;
    gap: 8px;
    align-items: center;
  }
  .explorer__list::-webkit-scrollbar { display: none; }
  /* Компактные чипы вместо вертикального списка */
  .explorer__item,
  .explorer__item:not(.explorer__item--active) {
    flex-shrink: 0;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    gap: 0;
    opacity: 1;
  }
  .explorer__item--active {
    background: var(--c-accent);
    border-color: var(--c-accent);
  }
  .explorer__marker { display: none; }
  .explorer__item-name { font-size: 11px; letter-spacing: 0.5px; white-space: nowrap; }
  .explorer__item:not(.explorer__item--active) .explorer__item-name { color: rgba(255,255,255,0.65); }
  .explorer__item--active .explorer__item-name { color: var(--c-white); }

  /* ---- ABOUT ---- */
  .about          { min-height: auto; }
  .about__content { padding: 80px var(--pad-x) 56px; width: 100%; }
  .about__title   { font-size: 40px; letter-spacing: 1px; }
  .about__desc    { font-size: 15px; }

  /* ---- FAQ ---- */
  .faq__title { font-size: 48px; }
  .faq__q     { font-size: 15px; padding: 18px 0; }

  /* ---- CONTACT ---- */
  .contact__title { font-size: 32px; }
  /* iOS: предотвращаем авто-зум на инпутах */
  .form-field input,
  .form-field textarea { font-size: 16px; }

  /* ---- FOOTER ---- */
  .footer { padding: var(--section-gap) var(--pad-x) 48px; gap: 40px; }
  .footer__cols { flex-direction: column; gap: 32px; }
  .footer__col a,
  .footer__col span:not(.footer__col-title) { font-size: 24px; }
  .footer__bot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__legal-sep { display: none; }
  .footer__legal-btn { letter-spacing: 1px; color: rgba(255,255,255,0.7); }
}

/* ============= ≤480px  Small Phone (iPhone SE, budget Android) ============= */
@media (max-width: 480px) {
  /* Hero */
  .hero__title   { font-size: clamp(38px, 11vw, 52px); }
  .hero__stat-num { font-size: 30px; }
  .hero__stat-label { font-size: 8px; letter-spacing: 1px; }

  /* Services */
  .services__title { font-size: 36px; }
  /* Карточка почти на весь экран — показывается 1.2 карточки */
  .service-card  { width: calc(100vw - 56px); max-width: 300px; height: 300px; }

  /* Portfolio */
  .portfolio__title { font-size: 32px; }
  .project-card     { height: 260px; }
  .project-card__title { font-size: 20px; }

  /* Process */
  .process__title { font-size: 32px; }
  .process__step  { width: 220px; min-height: 230px; }
  .process__num   { font-size: 32px; }

  /* About */
  .about__title { font-size: 36px; }
  .about__desc  { font-size: 14px; }

  /* FAQ */
  .faq__title { font-size: 44px; }
  .faq__q     { font-size: 14px; }

  /* Contact */
  .contact__title { font-size: 26px; }

  /* Footer */
  .footer__logo img { width: 200px; }
  .footer__col a,
  .footer__col span:not(.footer__col-title) { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================================
   CASE MODAL
=================================================== */
.project-card:not(.project-card--more) { cursor: pointer; }

/* outer */
.case-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: stretch;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.case-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }

/* sides */
.case-modal__side {
  flex: 0 0 140px; position: relative; overflow: hidden;
  background: none; border: none; padding: 0; cursor: pointer;
}
.case-modal__side-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(8px) brightness(0.25); transform: scale(1.12); transition: filter 0.3s;
}
.case-modal__side:hover .case-modal__side-bg { filter: blur(4px) brightness(0.45); }
.case-modal__side-arrow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 52px; font-weight: 300; color: rgba(255,255,255,0.22);
  z-index: 1; line-height: 1; transition: color 0.2s; pointer-events: none;
}
.case-modal__side:hover .case-modal__side-arrow { color: rgba(255,255,255,0.7); }

/* content column — стек: header → media → body bar */
.case-modal__content {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--c-bg-section);
  overflow: hidden;
}

/* header */
.case-modal__header {
  flex-shrink: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 20px 48px 18px;
  border-bottom: 1px solid var(--c-border-soft);
}
.case-modal__header-info { flex: 1; min-width: 0; }
.case-modal__tag {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 3px; color: var(--c-accent); margin-bottom: 5px;
}
.case-modal__title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.5vw, 40px);
  letter-spacing: 1px; line-height: 1.05; color: var(--c-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.case-modal__header-right {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}
.case-modal__year {
  font-family: var(--f-display); font-size: 40px; line-height: 1;
  letter-spacing: 2px; color: rgba(255,255,255,0.08);
}
.case-modal__close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 300; line-height: 1;
  color: rgba(255,255,255,0.4); background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; flex-shrink: 0;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.case-modal__close:hover { color: var(--c-white); border-color: rgba(255,255,255,0.4); }

/* media — занимает всё оставшееся место */
.case-modal__media-wrap {
  flex: 1; min-height: 0;
  display: flex; align-items: stretch;
  overflow: hidden; background: #08080c;
  padding: 20px 48px;
}
.case-modal__media-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.case-modal__media-video {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #000;
}

/* gallery */
.case-modal__gallery {
  position: relative; flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
}
.case-modal__gallery-slides { flex: 1; min-height: 0; overflow: hidden; }
.case-modal__gallery-track {
  display: flex; height: 100%;
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1); will-change: transform;
}
.case-modal__gallery-slide { flex: 0 0 100%; height: 100%; }
.case-modal__gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.case-modal__gallery-nav {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 0; background: #08080c;
}
.case-modal__gallery-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: none; cursor: pointer; padding: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.case-modal__gallery-dot.active { background: var(--c-accent); transform: scale(1.35); }
.case-modal__gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.18); color: var(--c-white);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: background var(--t-fast);
}
.case-modal__gallery-arrow:hover { background: rgba(0,0,0,0.85); }
.case-modal__gallery-arrow--prev { left: 12px; }
.case-modal__gallery-arrow--next { right: 12px; }

/* body — компактная нижняя полоска, одна строка */
.case-modal__body {
  flex-shrink: 0; height: 116px;
  display: flex; align-items: center; gap: 40px;
  padding: 0 48px;
  border-top: 1px solid var(--c-border-soft);
}
.case-modal__desc {
  flex: 1; min-width: 0;
  font-size: 15px; font-weight: 400; line-height: 1.55;
  color: rgba(255,255,255,0.55);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-modal__meta-grid {
  flex-shrink: 0; display: flex; gap: 36px;
}
.case-modal__meta-col { display: flex; flex-direction: column; gap: 4px; }
.case-modal__meta-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; color: rgba(255,255,255,0.3);
}
.case-modal__meta-val {
  font-size: 14px; color: rgba(255,255,255,0.75);
  white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}
.case-modal__cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 36px; background: var(--c-accent);
  font-family: var(--f-body); font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; color: var(--c-white); text-decoration: none;
  white-space: nowrap; transition: opacity var(--t-fast), transform var(--t-fast);
}
.case-modal__cta:hover { opacity: 0.88; transform: translateX(3px); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .case-modal__side { flex: 0 0 88px; }
  .case-modal__body { gap: 24px; padding: 0 32px; }
}
@media (max-width: 900px) {
  .case-modal__side { flex: 0 0 56px; }
  .case-modal__side-arrow { font-size: 32px; }
  .case-modal__header { padding: 16px 28px 14px; }
  .case-modal__year { font-size: 30px; }
  .case-modal__body { gap: 20px; padding: 0 28px; height: 104px; }
  .case-modal__meta-val { max-width: 160px; }
}
@media (max-width: 768px) {
  .case-modal__desc { display: none; }
  .case-modal__body { height: 96px; gap: 16px; }
}
@media (max-width: 640px) {
  .case-modal__side { display: none; }
  .case-modal__content { overflow-y: auto; }
  .case-modal__header { padding: 14px 20px 12px; flex-wrap: wrap; gap: 10px; }
  .case-modal__year { font-size: 26px; }
  .case-modal__title { font-size: 22px; white-space: normal; }
  .case-modal__media-wrap { flex: none; height: 52vw; min-height: 180px; }
  .case-modal__body {
    height: auto; flex-direction: column; align-items: flex-start;
    gap: 14px; padding: 18px 20px 24px;
  }
  .case-modal__desc { display: block; -webkit-line-clamp: unset; }
  .case-modal__meta-grid { flex-direction: column; gap: 12px; }
  .case-modal__meta-val { max-width: none; white-space: normal; }
  .case-modal__cta { width: 100%; }
}

/* ===================================================
   LEGAL PAGES (privacy.html, consent.html)
=================================================== */
.legal {
  min-height: 100vh;
  background: var(--c-bg);
  padding-top: 100px;
  padding-bottom: var(--section-gap);
}

.legal__container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--t-fast);
  margin-bottom: 40px;
}
.legal__back:hover { color: var(--c-accent); }
.legal__back svg { width: 16px; height: 16px; flex-shrink: 0; }

.legal__header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c-border);
}

.legal__label {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.legal__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  color: var(--c-white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.legal__date {
  font-size: 13px;
  color: var(--c-text-muted);
  letter-spacing: 0.5px;
}

.legal__body { display: flex; flex-direction: column; gap: 40px; }

.legal__section { display: flex; flex-direction: column; gap: 16px; }

.legal__section-title {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-accent);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border-soft);
}

.legal__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-secondary);
  max-width: 75ch;
}

.legal__text a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__text a:hover { opacity: 0.8; }

.legal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}

.legal__list li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-secondary);
  padding-left: 20px;
  position: relative;
  max-width: 72ch;
}

.legal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 2px;
  background: var(--c-accent);
}

.legal__operator {
  margin-top: 8px;
  padding: 24px 28px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal__operator-row {
  font-size: 14px;
  color: var(--c-text-secondary);
  line-height: 1.5;
}
.legal__operator-row strong {
  color: var(--c-white);
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal { padding-top: 80px; }
  .legal__header { margin-bottom: 40px; padding-bottom: 28px; }
  .legal__body { gap: 32px; }
  .legal__section { gap: 12px; }
  .legal__text,
  .legal__list li { font-size: 14px; }
  .legal__operator { padding: 18px 20px; }
}
