/* ============================================================
   IRABAKU.RU — DESIGN SYSTEM
   Ирина Бакурова · Digital-маркетолог
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500&family=Montserrat:wght@500;700;800;900&display=swap');

/* ── ПЕРЕМЕННЫЕ ─────────────────────────────────────────── */
:root {
  /* Цвета */
  --bg:        #F5F3EE;
  --surface:   #EDEAE3;
  --border:    #D8D4CB;
  --text:      #0F1939;
  --text-2:    #5A5650;
  --text-3:    #A8A49C;
  --accent:    #3B55FF;
  --accent-2:  #516AC8;
  --accent-bg: #E6EAFF;
  --dark:      #0F1939;

  /* Типографика */
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Onest', sans-serif;

  /* Отступы */
  --gap:    8px;
  --pad-s:  24px 16px;
  --pad-m:  40px 24px;
  --pad-l:  56px 40px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── УТИЛИТЫ ────────────────────────────────────────────── */
.label {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.label-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.label-dot::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 36px;
}
.tag {
  display: inline-block;
  font-size: 10px;
  color: var(--accent);
  border: 0.5px solid rgba(59,85,255,0.35);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}
.tag--filled { background: var(--accent-bg); border-color: transparent; }
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  padding: 13px 24px;
  min-height: 44px;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn--primary { color: #fff; background: var(--accent); }
.btn--ghost { color: var(--accent); border: 0.5px solid var(--accent); }

/* ── НАВИГАЦИЯ ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 12px;
  color: var(--text-2);
  transition: color .2s;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a.active { color: var(--accent); }
.nav__cta {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  padding: 8px 18px;
  transition: opacity .2s;
}
.nav__cta:hover { opacity: .85; }

/* Гамбургер */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.nav__mobile {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}
.nav__mobile a {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}
.nav__mobile.open { display: flex; }

/* ── ГЕРОЙ ──────────────────────────────────────────────── */
.hero {
  padding: 64px 40px 56px;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  right: -60px; top: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,85,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero__eyebrow-text {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero__h1 {
  font-family: var(--font-head);
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -3px;
  color: var(--text);
  margin-bottom: 40px;
}
.hero__h1 em {
  color: var(--accent);
  font-style: normal;
  display: block;
}
.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}
.hero__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.hero__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ── ФОТО-ПОЛОСА ────────────────────────────────────────── */
.photo-band {
  height: 220px;
  overflow: hidden;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  background: #BF4510;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  mix-blend-mode: luminosity;
  opacity: .85;
}
.photo-band__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(transparent 40%, rgba(15,25,57,0.5));
}
.photo-band__name {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: .85;
}

/* ── СТАТИСТИКА ─────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 0.5px solid var(--border);
}
.stat {
  padding: 24px 20px;
  border-right: 0.5px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}
.stat__num em { color: var(--accent); font-style: normal; }
.stat__label {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 5px;
  line-height: 1.4;
}

/* ── БЕГУЩАЯ СТРОКА ─────────────────────────────────────── */
.ticker {
  background: var(--dark);
  border-bottom: 0.5px solid var(--border);
  padding: 11px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__inner {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker__inner span {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(245,243,238,0.65);
  padding: 0 20px;
}
.ticker__inner span.dot {
  color: var(--accent);
  opacity: 1;
  padding: 0 8px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── СЕКЦИИ ─────────────────────────────────────────────── */
.section {
  padding: 56px 40px;
  border-bottom: 0.5px solid var(--border);
}

/* ── КЕЙСЫ ──────────────────────────────────────────────── */
.case {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 0.5px solid var(--border);
  transition: background .2s;
}
.case:last-child { border-bottom: none; }
.case__idx {
  font-family: var(--font-head);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.case__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 4px;
}
.case__client {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.case__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 14px;
}
.case__tags { display: flex; gap: 5px; flex-wrap: wrap; }
.case__right { text-align: right; }
.case__metric {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}
.case__metric-label {
  font-size: 9px;
  color: var(--accent-2);
  margin-top: 4px;
  line-height: 1.4;
}
.case__link {
  font-size: 11px;
  color: var(--accent);
  margin-top: 12px;
  display: block;
  transition: letter-spacing .2s;
}
.case__link:hover { letter-spacing: 0.5px; }

/* ── BENTO НАВЫКИ ───────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.bento-card {
  border-radius: 10px;
  padding: 22px;
}
.bento-card--light  { background: var(--surface); border: 0.5px solid var(--border); }
.bento-card--dark   { background: var(--dark); }
.bento-card--navy   { background: var(--accent); }
.bento-card--blue   { background: var(--accent-bg); border: 0.5px solid #C8D4FF; }
.bento-card--span2  { grid-column: span 2; }
.bento-card--span3  { grid-column: span 3; }

.bento-card__label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bento-card__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}
.bento-card__desc { font-size: 11px; line-height: 1.6; }
.bento-card__metric {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-top: 10px;
  line-height: 1;
}

/* ── ИНСТРУМЕНТЫ ────────────────────────────────────────── */
.tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tool-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  transition: border-color .2s;
}
.tool-pill:hover { border-color: var(--accent); }
.tool-icon {
  width: 16px; height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.tool-name { font-size: 10px; color: var(--text); white-space: nowrap; }

/* ── КОНТАКТЫ ───────────────────────────────────────────── */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contacts__a { padding: 48px 40px; }
.contacts__b { padding: 48px 40px; background: var(--dark); }
.contacts__title {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.contacts__sub { font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.contacts__link { font-size: 13px; display: block; margin-bottom: 10px; transition: opacity .2s; }
.contacts__link:hover { opacity: .7; }

/* ── ФУТЕР ──────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
}
.footer__copy { font-size: 11px; color: var(--text-3); }
.footer__top { font-size: 11px; color: var(--accent); }

/* ── АДАПТИВ ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .nav { padding: 0 16px; }
  .nav__links { display: none; }
  .nav__cta.desktop { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: var(--pad-s); }
  .hero__blob { width: 200px; height: 200px; right: -20px; top: -20px; }
  .hero__h1 { font-size: 44px; letter-spacing: -2px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 20px; }
  .hero__right { align-items: flex-start; }
  .hero__tags { justify-content: flex-start; }

  .photo-band { height: 160px; }
  .photo-band__overlay { padding: 14px 16px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; }
  .stat__num { font-size: 24px; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 0.5px solid var(--border); border-top: 0.5px solid var(--border); }
  .stat:nth-child(4) { border-top: 0.5px solid var(--border); border-right: none; }

  .section { padding: var(--pad-s); }
  .section-title { font-size: 28px; letter-spacing: -0.5px; margin-bottom: 24px; }

  .case { grid-template-columns: 1fr; }
  .case__right { display: flex; align-items: center; gap: 16px; justify-content: flex-start; }
  .case__metric { font-size: 32px; }
  .case__link { margin-top: 0; }

  .bento { grid-template-columns: 1fr; }
  .bento-card--span2,
  .bento-card--span3 { grid-column: span 1; }

  .contacts { grid-template-columns: 1fr; }
  .contacts__a, .contacts__b { padding: 32px 16px; }

  .footer { padding: 14px 16px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__h1 { font-size: 60px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card--span2 { grid-column: span 2; }
  .bento-card--span3 { grid-column: span 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ── АНИМАЦИИ ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .case { transition: background .15s; }
  .case:hover { background: var(--surface); }
}
