/* Averin Design / design-76 — лендинг по макету Figma "Desktop new" */

:root {
  --ink: #141414;
  --paper: #ffffff;
  --mute: #6b6b6b;
  --line: #e3e2df;
  --wash: #f5f4f1;
  --brown: #2b1f18;
  --footer: #111111;
  --link: #2f5f9a;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(24px, 4vw, 56px);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  padding-inline: var(--pad);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Typography */
.h1 {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  font-size: clamp(40px, 6.5vw, 80px);
}
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  font-size: clamp(28px, 3.4vw, 46px);
}
.h2 .soft { color: #9d9d9d; font-weight: 400; }
.h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.muted { color: var(--mute); }

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.text-link:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Socials */
.socials { display: flex; gap: 10px; }
.social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.social--dark {
  border-color: rgba(20, 20, 20, 0.25);
  color: var(--ink);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 24px 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav {
  display: flex;
  gap: 26px;
  flex: 1;
}
.nav a {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a:hover { opacity: 0.75; }

.brand {
  flex: 1;
  display: flex;
  justify-content: center;
}
.brand img { height: 44px; width: auto; }

.header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.header-actions__phone {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 140px var(--pad) 90px;
  background-color: #1a1a1a;
  background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.15) 40%, rgba(10, 10, 10, 0.55) 100%),
    url("https://design-76.ru/wp-content/uploads/2026/03/gost-11-scaled.webp");
  background-size: cover;
  background-position: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 760px;
}
.hero__eyebrow { opacity: 0.85; }
.hero__text {
  max-width: 46ch;
  opacity: 0.92;
}

/* Section shells */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--wash { background: var(--wash); }

.section-head {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4.5vw, 56px);
  flex-wrap: wrap;
}
.section-head .h2 { max-width: 18ch; }
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Offer */
.offer {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
}
.offer__copy {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.offer__rule {
  width: 56px;
  height: 1px;
  background: var(--ink);
  margin: 4px 0;
}
.offer__media {
  flex: 1 1 380px;
}
.offer__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* Portfolio grid */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px var(--gap);
}
.project-card { display: flex; flex-direction: column; gap: 16px; }
.project-card__img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}
.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-card__img img { transform: scale(1.04); }
.project-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.project-card__row .h3 { margin-bottom: 4px; }
.project-card__meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.project-card__meta .muted { font-size: 13px; }

/* Audience */
.audience-media {
  position: relative;
}
.audience-media img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.audience-caption {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  max-width: 380px;
  padding: 24px;
  background: rgba(18, 18, 18, 0.8);
  color: #fff;
  font-size: 14px;
}

/* Team */
.team {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  flex-wrap: wrap;
}
.team__copy {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.team__people {
  flex: 2 1 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.person { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.person__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e9e7e2;
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.person__role { font-size: 13px; }

/* Steps */
.steps {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  flex-wrap: wrap;
}
.steps__media {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps__media img {
  width: 100%;
  object-fit: cover;
}
.steps__media img:first-child { aspect-ratio: 4 / 5; }
.steps__media img:last-child { aspect-ratio: 4 / 3; width: 85%; align-self: flex-end; }

.steps__list {
  flex: 1.4 1 460px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px 22px 46px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step--highlight {
  grid-column: 1 / -1;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.step--highlight .muted { color: rgba(255, 255, 255, 0.72); }
.step__num {
  position: absolute;
  right: 18px;
  bottom: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 46px;
  line-height: 1;
  color: rgba(20, 20, 20, 0.14);
}
.step--highlight .step__num { color: rgba(255, 255, 255, 0.2); }

/* Ask banner */
.ask {
  background: var(--ink);
  color: #fff;
  padding: clamp(48px, 6vw, 72px) 0;
}
.ask__inner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.ask__copy .h2 { color: #fff; }
.ask__copy .eyebrow {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.65);
}
.ask-form {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.ask-form .field { width: 200px; }
.ask-form .ok { flex-basis: 100%; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 0;
  outline: none;
  color: #fff;
  width: 100%;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.55); }
.field--dark input {
  border-bottom-color: rgba(20, 20, 20, 0.3);
  color: var(--ink);
}
.field--dark input::placeholder { color: #999; }

.ok {
  display: none;
  color: #78c896;
  font-size: 14px;
}
.form.is-sent .ok { display: block; }
.form.is-sent .form-fields { display: none; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.service__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service p { font-size: 14px; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.quick-links a {
  height: 56px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.quick-links a:hover { background: var(--ink); color: #fff; }

/* Contact split */
.contact-split {
  display: flex;
  flex-wrap: wrap;
}
.contact-split__media,
.contact-split__form {
  flex: 1 1 420px;
}
.contact-split__media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}
.contact-split__form {
  background: var(--brown);
  color: #fff;
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.contact-split__form .h2 { color: #fff; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .field input {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.check a { text-decoration: underline; }
.check input { margin-top: 3px; }

/* Map */
.map {
  position: relative;
  background: #eceae6;
}
.map iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}
.map__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 15, 0.92);
  color: #fff;
  padding: 18px var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.map__bar .sep { opacity: 0.4; }

/* Footer */
.footer {
  background: var(--footer);
  color: #fff;
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 0.9fr;
  gap: 32px;
  padding-bottom: 44px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer__brand img { height: 52px; width: auto; }
.footer__brand p {
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__nav a:hover { opacity: 0.75; }
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}
.footer__contacts span {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-bottom: 2px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 26px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.drawer[hidden] { display: none !important; }
.drawer.is-open { transform: none; }
.drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer__nav { display: flex; flex-direction: column; gap: 18px; }
.drawer__nav a {
  font-family: var(--serif);
  font-size: 26px;
  text-transform: uppercase;
}
body.is-locked { overflow: hidden; }

/* Lead modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  color: var(--ink);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-actions .socials { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .offer, .team, .steps { flex-direction: column; }
  .team__people { width: 100%; }
  .services, .quick-links { grid-template-columns: 1fr; }
  .contact-split__media img { min-height: 320px; }
  .ask__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .projects, .steps__list, .team__people { grid-template-columns: 1fr; }
  .step--highlight { grid-column: auto; }
  .project-card__row { flex-direction: column; gap: 8px; }
  .project-card__meta { text-align: left; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .ask-form { width: 100%; }
  .ask-form .field { width: 100%; }
}
