:root {
  --bg: #0d0d0d;
  --bg-elevated: #141414;
  --ink: #f3f1ec;
  --ink-soft: rgba(243, 241, 236, 0.72);
  --muted: rgba(243, 241, 236, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.55) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }

.container { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; }
.container-wide { width: min(1440px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-title { font-size: clamp(1.7rem, 3.8vw, 2.6rem); max-width: 18ch; color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.55rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  border-radius: 999px;
  min-width: 13rem;
}
.btn-ghost:hover { background: #fff; color: #0d0d0d; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: #0d0d0d;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nav {
  display: flex;
  gap: 1.4rem;
  grid-column: 1;
  grid-row: 1;
}
.nav a { color: rgba(255,255,255,0.88); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: #fff; }
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  grid-column: 2;
  grid-row: 1;
}
.logo__mark {
  width: 1.35rem;
  height: 1.35rem;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  grid-column: 3;
  grid-row: 1;
}
.header__phone {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
}
.socials { display: flex; align-items: center; gap: 0.45rem; }
.social {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.social svg { width: 1rem; height: 1rem; }
.social svg.social__max { width: 1.15rem; height: 1.15rem; }
.social:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.btn-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: #6c5ce7;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn-write:hover { background: #5a4bd6; }
.burger { display: none; width: 2.5rem; height: 2.5rem; border: 0; background: transparent; padding: 0; cursor: pointer; }
.burger span { display: block; width: 1.35rem; height: 1.5px; margin: 0.35rem auto; background: #fff; transition: transform 0.3s var(--ease); }
.header.is-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.header.is-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero__media, .hero__overlay { position: absolute; inset: 0; }
.hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  /* на всю ширину, без обрезки и растягивания по высоте */
  object-fit: unset;
}
.hero__overlay { background: var(--hero-overlay); }
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0 4rem;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.8vw, 3.4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: 1rem;
}
.hero__title {
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  max-width: 28ch;
  opacity: 0.92;
}
.hero__sub {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.services-strip {
  background: #000;
  min-height: 234px;
  display: flex;
  align-items: center;
}
.services-strip__inner {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  column-gap: 1.5rem;
}
.services-strip__item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.services-strip__icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  object-fit: contain;
  display: block;
}
.services-strip__text {
  font-family: Montserrat, Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
  color: #fff;
}

.projects { padding-top: 0.75rem; padding-bottom: 0; background: #0d0d0d; }
.projects__ig {
  padding: 2.5rem 0 3rem;
}
.projects__ig .project__ig { margin-top: 0; }
.projects__list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0 0.5rem;
}
.project-card { display: block; }
.project-card__media {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 4 / 3;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 3.2rem 1.1rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
}
.project-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: #fff;
}
.project-card__info { color: rgba(255,255,255,0.72); font-size: 0.92rem; }

.about { background: #0d0d0d; }
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.about__media {
  background: #1a1a1a;
  overflow: hidden;
}
.about__media img {
  width: 100%;
  height: auto;
  display: block;
}
.about__placeholder {
  aspect-ratio: 4 / 5;
  background: #1a1a1a;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--line);
}
.about__placeholder-name { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 0.35rem; }
.about__placeholder-role { color: var(--ink-soft); margin-bottom: 1rem; }
.about__placeholder-hint { font-size: 0.85rem; color: var(--muted); }
.about__text { margin-top: 1.3rem; color: var(--ink-soft); max-width: 42rem; }

.services { background: #101010; }
.section-title--services {
  max-width: none;
  font-size: clamp(1.05rem, 2.4vw, 1.85rem);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .section-title--services {
    white-space: normal;
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  }
}
.accordion__item { border-top: 1px solid var(--line); }
.accordion__item:last-child { border-bottom: 1px solid var(--line); }
.accordion__item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.3rem 0;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__num { font-family: var(--font-display); color: var(--muted); font-size: 0.95rem; }
.accordion__title { font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.15rem); }
.accordion__icon { width: 1.1rem; height: 1.1rem; position: relative; }
.accordion__icon::before, .accordion__icon::after {
  content: '';
  position: absolute;
  background: #fff;
  transition: transform 0.3s var(--ease);
}
.accordion__icon::before { inset: 50% 0 auto; height: 1.5px; transform: translateY(-50%); }
.accordion__icon::after { inset: 0 auto 0 50%; width: 1.5px; transform: translateX(-50%); }
.accordion__item[open] .accordion__icon::after { transform: translateX(-50%) scaleY(0); }
.accordion__body { padding: 0 0 1.4rem 3.1rem; }
.accordion__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.accordion__body li { position: relative; padding-left: 1rem; color: var(--ink-soft); }
.accordion__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.35rem;
  height: 0.35rem;
  background: #6c5ce7;
}

.project__top {
  --project-pad: 2.5rem;
  --project-pad-bottom: 4rem;
  padding: calc(var(--header-h) + var(--project-pad)) 0 0;
}
.project__lead {
  height: var(--project-pad);
  display: flex;
  align-items: center;
}
.back { color: var(--muted); }
.back:hover { color: #fff; }
.project__intro {
  display: grid;
  grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.35fr);
  gap: 1.5rem 3rem;
  align-items: start;
  padding-bottom: var(--project-pad-bottom);
}
.project__top h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.project__meta { margin-top: 0.7rem; color: var(--muted); }
.project__text {
  padding: 0;
  color: var(--ink-soft);
  max-width: none;
}
.project__text > p { margin: 0; }
.project__ig {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.25rem;
  text-align: center;
}
.project__ig p {
  margin: 0;
  flex: 0 1 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.project__ig-btn {
  gap: 0.55rem;
  min-width: 0;
  min-height: 2.6rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}
.project__ig-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.project__gallery {
  display: grid;
  gap: 0.5rem;
  padding: 0 0.5rem 4rem;
}
.gallery-wide,
.gallery-portrait {
  margin: 0;
  background: #1a1a1a;
}
.gallery-wide img,
.gallery-portrait img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  align-items: stretch;
}
.gallery-row:not(.gallery-row--single) .gallery-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.gallery-row:not(.gallery-row--single) .gallery-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-row--single {
  grid-template-columns: 1fr;
}

@media (max-width: 800px) {
  .project__intro { grid-template-columns: 1fr; gap: 1.1rem; }
}

.footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 0 6.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2rem;
  align-items: center;
}
.logo--footer { justify-content: flex-start; }
.footer__copy { margin-top: 0.9rem; color: var(--muted); font-size: 0.88rem; }
.footer__legal { margin-top: 0.85rem; }
.footer__legal a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer__legal a:hover { color: #fff; }
.footer__contacts { display: grid; gap: 0.7rem; }
.footer__contacts a:hover { color: #fff; }
.socials--footer { margin-top: 0.4rem; }
.mobile-cta { display: none; }

.legal__inner { max-width: 46rem; }
.section-title--legal { max-width: none; margin-bottom: 1.25rem; }
.legal__lead { color: var(--ink-soft); margin-bottom: 0.75rem; }
.legal__meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 2rem 0 0.85rem;
  color: #fff;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { margin: 0.6rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.legal a { text-decoration: underline; text-underline-offset: 0.18em; }
.legal a:hover { color: #fff; }
.legal__back { margin-top: 2.5rem; }

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 80;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.cookie-banner__text {
  flex: 1 1 18rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cookie-banner__text a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cookie-banner__btn {
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #6c5ce7;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.cookie-banner__btn:hover { background: #5a4bd6; }
.cookie-banner__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
}
.cookie-banner__btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

.nav-mobile-only { display: none; }

@media (max-width: 960px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; }
  .header.is-open .nav-mobile-only { display: block; }
  .header__inner { grid-template-columns: 1fr auto; }
  .logo { grid-column: 1; justify-content: flex-start; }
  .header__actions { grid-column: 2; }
  .header .btn-write { display: none; }
  .btn-write { min-height: 2.25rem; padding: 0.4rem 0.85rem; font-size: 0.8rem; }
  .hero {
    min-height: 100svh;
    height: 100svh;
  }
  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .header.is-open .nav {
    display: flex;
    position: absolute;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    gap: 0;
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 1.25rem 1.2rem;
  }
  .header.is-open .nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.1rem;
  }
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media, .about__placeholder { max-width: 26rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 7.5rem; }
  .cookie-banner { bottom: 3.35rem; }
  .mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-cta a {
    text-align: center;
    padding: 0.95rem 0.5rem;
    color: #fff;
    font-weight: 600;
  }
  .mobile-cta .is-accent { background: #fff; color: #0a0a0a; }
}

@media (max-width: 800px) {
  .projects__list { grid-template-columns: 1fr; }
  .container, .container-wide { width: min(100% - 1.5rem, 1100px); }
  .gallery-row { grid-template-columns: 1fr; }
  .hero__actions .btn-ghost { min-width: 0; flex: 1 1 auto; }
  .accordion__item summary { grid-template-columns: auto 1fr; }
  .accordion__icon { grid-column: 2; justify-self: end; }
  .accordion__body { padding-left: 0; }
  .services-strip { min-height: 234px; }
  .services-strip__inner { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
}

@media (max-width: 480px) {
  .services-strip { min-height: 394px; }
  .services-strip__inner { grid-template-columns: 1fr; justify-items: start; width: min(320px, calc(100% - 2rem)); }
  .services-strip__text { font-size: 12px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-row--single { grid-template-columns: 1fr; }
}
