/* ==========================================================================
   Media Impact — landing page styles
   build: 2026-08-31-hero-fix-v2
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-cyrillic-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-cyrillic-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-cyrillic-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --c-bg: #ffffff;
  --c-bg-tint: #f6f8ff;
  --c-bg-muted: #f9fafb;
  --c-bg-lav: #e7e9ff;
  --c-dark: #17171a;
  --c-dark-2: #1c1e24;
  --c-dark-3: #222328;
  --c-dark-border: #2a2b30;
  --c-text: #17171a;
  --c-text-2: #111827;
  --c-text-3: #374151;
  --c-muted: #8b8d92;
  --c-border: #e2e5f0;
  --c-border-2: #e5e7eb;
  --c-blue: #2e3aff;
  --c-blue-2: #2563eb;
  --c-green: #3ac17a;
  --c-red: #e15241;
  --c-white: #ffffff;

  --container-w: 1440px;
  --pad-x: clamp(20px, 5.5vw, 80px);
  --pad-y: clamp(48px, 9vw, 96px);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 30px;

  --shadow-card: 0 12px 12px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-blue);
  color: var(--c-white);
}
.btn--primary:hover { opacity: .9; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--block { width: 100%; padding: 16px 32px; font-size: 16px; }
.header__cta { padding: 12px 24px; font-size: 14px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.eyebrow--accent2 { color: var(--c-blue-2); }
.eyebrow--light { color: #e7e9ff; font-size: 12px; }
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: #e7e9ff; flex-shrink: 0;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
#top,
#agency,
#media,
#creative,
#cases,
#contacts,
#tender {
  scroll-margin-top: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__full {
  height: 32px;
  width: auto;
  display: block;
}
.logo__mark {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo__mark img {
  width: 100%;
  height: 100%;
}
.logo__text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.logo__text--light { color: var(--c-white); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
}
.nav-menu a:hover { color: var(--c-blue); }

.burger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--c-text);
}
.burger .icon-close { display: none; }
.burger.is-open .icon-menu { display: none; }
.burger.is-open .icon-close { display: block; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-white);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  font-size: 22px;
  font-weight: 700;
}
.mobile-nav__cta { margin-top: 16px; font-size: 16px; padding: 14px 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--c-dark);
  color: var(--c-white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(0px, calc((100vw - var(--container-w)) / 2));
  width: min(52vw, 748px);
}
.hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__inner {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: min(620px, calc(48vw - 64px));
}
.hero__title {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--c-muted);
  max-width: 520px;
}
.hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  max-width: min(620px, calc(48vw - 64px));
}
.metric { flex: 1 0 160px; }
.metric__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--c-blue);
}
.metric__label {
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* ---------- Section generic ---------- */
.section {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
  background: var(--c-bg);
}
.section--tint { background: var(--c-bg-tint); }
.section--muted { background: var(--c-bg-muted); }
.section--dark { background: var(--c-dark); color: var(--c-white); }
.section--cases { background: var(--c-bg-lav); overflow: hidden; }

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}
.section-header h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.section-header h2.on-dark { color: var(--c-white); }
.section-header__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-header__note {
  font-weight: 600;
  font-size: 16px;
  color: var(--c-muted);
  max-width: 460px;
}
.section-header__note--light { color: #e7e9ff; }

.lead {
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--c-text);
  margin-bottom: 56px;
  max-width: 1100px;
}

/* ---------- Agency ---------- */
.agency-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
.values h3, .facts h3 {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 32px;
}
.values__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.value-card {
  display: flex;
  gap: 20px;
}
.value-card__stripe {
  width: 4px;
  min-height: 56px;
  border-radius: 2px;
  background: var(--c-blue);
  flex-shrink: 0;
}
.value-card__title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.value-card__desc {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.5;
}

.facts__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fact-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.fact-card__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  color: var(--c-blue);
  margin-bottom: 8px;
}
.fact-card__value--dim { opacity: .7; }
.fact-card__label {
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Media / services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-card__index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-blue);
}
.icon-circle {
  width: 40px; height: 40px;
  border-radius: 20px;
  background: var(--c-bg-lav);
  color: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-card h3 {
  font-weight: 800;
  font-size: 28px;
  color: var(--c-text-2);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-3);
}

/* ---------- Creative ---------- */
.creative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.creative-card {
  background: var(--c-white);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.creative-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-blue-2);
}
.creative-card__head h3 {
  font-weight: 800;
  font-size: 28px;
  color: var(--c-text-2);
}
.creative-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-3);
}
.creative-card__visual {
  height: 160px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.creative-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Cases carousel ---------- */
.section--cases .section-header { margin-bottom: 40px; }
.cases-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cases-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cases-carousel::-webkit-scrollbar { display: none; }

.case-card {
  scroll-snap-align: start;
  flex: 0 0 min(620px, 88vw);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.case-card__num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 36px;
  color: var(--c-muted);
}
.tag-pill {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--c-blue);
}
.case-card__brand {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 12px;
}
.case-card__task {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}
.case-card__mix-label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 8px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: var(--c-bg-lav);
  color: var(--c-blue);
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12px;
}
.case-card__stats {
  border-top: 1px solid var(--c-border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-blue);
  width: 90px;
  flex-shrink: 0;
}
.stat__value--pos { color: var(--c-green); }
.stat__value--neg { color: var(--c-red); }
.stat__label {
  font-size: 13px;
  color: var(--c-muted);
}

.carousel-btn {
  position: relative;
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease;
}
.carousel-btn:hover { background: var(--c-bg-lav); }
.carousel-btn--prev { margin-right: 16px; }
.carousel-btn--next { margin-left: 16px; }

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 580px;
  gap: 64px;
  align-items: start;
}
.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contacts-block__label {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 16px;
}
.contacts-block__address {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 16px;
  max-width: 460px;
}
.contacts-block__phone {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  color: var(--c-blue);
}
.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 0;
}
.contact-list .dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--c-blue);
  flex-shrink: 0;
  margin-top: 8px;
}
.contact-list__name {
  font-size: 15px;
  width: 180px;
  flex-shrink: 0;
  padding-top: 2px;
}
.contact-list a {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--c-blue);
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-top: 2px;
}

.map-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  background: var(--c-dark);
  overflow: hidden;
}
.map-card__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}
.map-card__tooltip {
  position: absolute;
  left: 24px; top: 24px;
  background: var(--c-dark-2);
  border: 1px solid var(--c-dark-border);
  border-radius: 12px;
  padding: 16px;
  max-width: 240px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.map-card__tooltip-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--c-white);
  margin-bottom: 4px;
}
.map-card__tooltip-sub {
  font-size: 12px;
  color: var(--c-muted);
}

/* ---------- Tender ---------- */
.tender-grid {
  display: grid;
  grid-template-columns: 1fr 580px;
  gap: 80px;
  align-items: start;
}
.tender-info__title {
  font-weight: 700;
  font-size: 22px;
  color: var(--c-white);
  margin-bottom: 24px;
}
.tender-info__text {
  font-size: 15px;
  line-height: 1.6;
  color: #e7e9ff;
  margin-bottom: 24px;
}
.tender-info__contact {
  border-top: 1px solid var(--c-dark-border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tender-info__contact-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #e7e9ff;
}
.tender-info__contact-name {
  font-size: 15px;
  color: var(--c-white);
}
.tender-info__contact a {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-blue);
}

.tender-form {
  background: var(--c-dark);
  border: 1px solid var(--c-dark-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #e7e9ff;
}
.form-field input,
.form-field textarea {
  background: var(--c-dark-3);
  border: 1px solid var(--c-dark-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #e7e9ff;
  font-family: var(--font-sans);
  font-size: 15px;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #6b6d76; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
}
.form-success {
  color: var(--c-green);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--c-blue);
}
.form-consent label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
}
.form-consent a {
  color: #e7e9ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent a:hover { color: var(--c-white); }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-dark);
  color: var(--c-white);
  border-top: 1px solid var(--c-dark-3);
  padding-top: 80px;
  padding-bottom: 48px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 300px;
}
.footer__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #e7e9ff;
}
.social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform .15s ease;
}
.social-link:hover { transform: scale(1.08); }
.social-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-link__label { display: none; }
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 140px;
}
.footer__col-title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--c-blue);
}
.footer__col a {
  font-weight: 600;
  font-size: 14px;
}
.footer__col a:hover { color: var(--c-blue); }
.footer__text {
  font-size: 15px;
}
.footer__mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--c-dark-3);
  padding-top: 32px;
  font-size: 13px;
  color: #e7e9ff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .agency-grid { grid-template-columns: 1fr; }
  .facts { max-width: 520px; }
  .services-grid { grid-template-columns: 1fr; }
  .creative-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .map-card { height: 320px; }
  .tender-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Below 1400px there just isn't reliably enough room beside the hero
   photo for the text to sit at a readable width without the two
   competing — so below that width the photo drops out of the side
   position entirely and becomes a full-width banner above the text.
   Aspect-ratio (not a fixed height) keeps it scaling smoothly with
   viewport width, the same way the headline scales via clamp(). No
   proportional math needed: the two elements are simply never next
   to each other below this width, so they can't overlap. */
@media (max-width: 1399px) {
  .hero__bg {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 1496 / 620;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .hero__content,
  .hero__metrics {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .nav-menu { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; }
  .carousel-btn { display: none; }
  .case-card { flex-basis: 90vw; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .tender-form { padding: 24px; }
  .service-card, .creative-card { padding: 28px; }
  .section-header__row { flex-direction: column; align-items: flex-start; }
  .value-card__stripe { min-height: 40px; }

  /* ---- Mobile hero, matching the Figma mobile prototype exactly:
     no photo at all — just the text block and a stacked metrics row. ---- */
  .hero__bg { display: none; }
  .hero__inner { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .hero__content { gap: 24px; }
  .hero .eyebrow { font-size: 10px; }
  .hero__title { font-size: 36px; }
  .hero__actions .btn { padding: 14px 28px; font-size: 15px; }
  .hero__metrics {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 24px;
    border-top: 1px solid var(--c-dark-border);
    padding-top: 24px;
  }
  .metric { flex: none; width: 100%; }
  .metric__value { font-size: 32px; }

  /* ---- Cases: vertical stack of full-width cards instead of the
     horizontal scroll-carousel, matching the mobile prototype. ---- */
  .cases-carousel {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .case-card { flex-basis: auto; width: 100%; padding: 24px; gap: 20px; }

  /* ---- Contacts: narrower label column so email addresses don't
     overflow the card on narrow screens (matches Figma's 130px). ---- */
  .contact-list__name { width: 130px; }
  .map-card { height: 220px; }

  /* ---- Footer: brand + each menu column stacked full-width,
     one below another, instead of wrapping side-by-side. ---- */
  .footer__top { flex-direction: column; gap: 40px; align-items: stretch; }
  .footer__brand { max-width: 100%; }
  .footer__col { min-width: 0; width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Telegram becomes a labelled pill button on mobile, matching Figma. */
  .social-link {
    width: auto;
    height: auto;
    border-radius: var(--radius-pill);
    background: var(--c-blue);
    padding: 8px 16px;
    align-items: center;
    gap: 8px;
  }
  .social-link img { width: 16px; height: 16px; border-radius: 0; }
  .social-link__label { display: inline; font-weight: 700; font-size: 13px; color: var(--c-white); }
}

/* ---------- Legal page (Privacy Policy) ---------- */
.legal-hero {
  padding-top: clamp(56px, 10vw, 96px);
  padding-bottom: 40px;
  background: var(--c-bg-tint);
}
.legal-hero__title {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 16px;
  max-width: 760px;
}
.legal-hero__meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--c-muted);
}
.legal-body {
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(56px, 9vw, 96px);
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc a {
  font-size: 14px;
  color: var(--c-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}
.legal-toc a:hover { color: var(--c-text); background: var(--c-bg-muted); }
.legal-content { max-width: 760px; }
.legal-content section { margin-bottom: 40px; }
.legal-content section:last-child { margin-bottom: 0; }
.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-3);
  margin-bottom: 12px;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 12px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-3);
}
.legal-content strong { color: var(--c-text); font-weight: 700; }
.legal-requisites {
  background: var(--c-bg-muted);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-md);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.legal-requisites__item dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  margin-bottom: 4px;
}
.legal-requisites__item dd {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--c-text);
}
.legal-requisites__item--full { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .legal-requisites { grid-template-columns: 1fr; }
}
