/* Общие стили страниц кейсов gosymbol.ru.
   Токены и компоненты повторяют index.html — если меняете палитру там,
   поменяйте и здесь. Оболочка проще главной: без morph-анимации логотипа. */
:root {
  --ink: #042C53;
  --blue: #185FA5;
  --blue-bright: #2478C8;
  --blue-pale: #E6F1FB;
  --blue-wash: #F5F8FC;
  --gray: #5F5E5A;
  --gray-light: #888780;
  --hairline: #E9E7E0;
  --line: #D8E5F1;
  --paper: #FFFFFF;
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --display: 'Inter Tight', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--blue-wash);
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 48px; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 82px;
  padding: 0 max(32px, calc((100% - 1320px) / 2));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.brand { width: 132px; color: var(--ink); display: block; }
.brand svg { width: 100%; height: auto; display: block; }
header nav { display: flex; gap: 28px; align-items: center; }
header nav a.nav-link {
  position: relative;
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  padding: 8px 0;
  transition: color .2s;
}
header nav a.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s cubic-bezier(.16,1,.3,1);
}
header nav a.nav-link:hover,
header nav a.nav-link:focus-visible { color: var(--ink); }
header nav a.nav-link:hover::after,
header nav a.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
header nav a.nav-link.is-active {
  color: var(--ink);
}
header nav a.nav-link.is-active::after {
  transform: scaleX(1);
}
.menu-toggle,
.mobile-menu { display: none; }
.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .28s cubic-bezier(.16,1,.3,1), top .28s cubic-bezier(.16,1,.3,1);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu-toggle:focus-visible {
  outline: 3px solid #85B7EB;
  outline-offset: 3px;
}
.mobile-menu {
  position: fixed;
  z-index: 85;
  inset: 0;
  overflow-y: auto;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(230,241,251,.78), transparent 45%),
    var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity .28s ease,
    visibility .28s ease,
    transform .45s cubic-bezier(.16,1,.3,1);
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar { display: none; }
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.mobile-menu-inner {
  width: min(100% - 48px, 520px);
  margin: 0 auto;
  padding: 108px 0 40px;
}
.mobile-menu-label {
  margin-bottom: 24px;
  color: var(--blue);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mobile-menu-links {
  display: block;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-links a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: baseline;
  padding: 14px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font: 500 clamp(25px, 7vw, 34px)/1.15 var(--display);
  letter-spacing: -.025em;
  text-decoration: none;
}
.mobile-menu-links a:hover { color: var(--blue); }
.mobile-menu-links a.is-active {
  color: var(--blue);
}
.mobile-menu-links span {
  color: var(--blue);
  font: 400 10px/1 var(--mono);
  letter-spacing: .08em;
}
.mobile-menu-cta {
  width: 100%;
  margin-top: 26px;
  text-align: center;
}
.mobile-menu-note {
  margin-top: 12px;
  color: var(--gray-light);
  font: 400 10px/1.55 var(--mono);
}
body.menu-open { overflow: hidden; }
.mobile-sticky-cta { display: none; }
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:focus-visible { outline: 3px solid #85B7EB; outline-offset: 3px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { color: var(--blue); border: 1px solid #B5D4F4; }
.btn-ghost:hover { border-color: var(--blue); }
.btn-sm { font-size: 13px; padding: 9px 18px; }

/* ---------- hero ---------- */
.case-hero { background: var(--blue-wash); padding: 64px 0 0; }
.case-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--blue);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.case-context span[aria-hidden="true"] { color: #A9C6E2; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 4px;
  padding: 4px 10px;
}
.tag-live { color: #fff; background: var(--blue); }
.tag-plain { background: none; padding: 0; text-transform: none; letter-spacing: .02em; color: var(--gray-light); font-size: 12px; }
h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 22ch;
  text-wrap: balance;
}
.case-lead { max-width: 66ch; margin-top: 20px; color: var(--gray); font-size: 17px; line-height: 1.6; }
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding: 28px 0 40px;
}
.metric-value {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric-label { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* ---------- cover shot ---------- */
.cover { background: linear-gradient(var(--blue-wash) 55%, var(--paper) 55%); }
.cover-frame {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--blue-pale);
  box-shadow: 0 24px 60px rgba(4,44,83,.12);
}
.cover-frame picture { display: block; }
.cover-frame img { width: 100%; display: block; }
.cover-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.cover-note { font-family: var(--mono); font-size: 12px; color: var(--gray-light); }

/* ---------- sections ---------- */
section.block { padding: 96px 0 0; }
.sec-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sec-index::after { content: ''; height: 1px; width: 72px; background: var(--blue); }
h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.scope-item {
  background: var(--blue-wash);
  border-radius: 10px;
  padding: 30px 32px;
}
.scope-item h3 { font-family: var(--display); font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.scope-item p { font-size: 15px; color: var(--gray); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid .shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue-pale);
}
.gallery-grid img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; object-position: top; display: block; }
.gallery-grid figcaption { font-size: 13px; color: var(--gray-light); margin-top: 10px; }

/* ---------- awards ---------- */
.awards-card {
  background: var(--blue-wash);
  border-radius: 10px;
  padding: 44px 48px;
  margin-top: 40px;
}
.awards-card > p.awards-note { font-size: 15px; color: var(--gray); max-width: 62ch; margin-top: 6px; }
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-top: 36px;
}
.badge-item { text-align: center; }
.badge-item img { width: 170px; height: 170px; object-fit: contain; margin: 0 auto 18px; display: block; }
.badge-item h3 { font-family: var(--display); font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.badge-item p { font-size: 14px; color: var(--gray); margin-bottom: 12px; }
.badge-item a, .proof a, .awards-issued a { color: var(--blue); text-decoration: none; font-weight: 500; }
.badge-item a:hover, .proof a:hover, .awards-issued a:hover { text-decoration: underline; }
.awards-issued { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.awards-count { font-family: var(--display); font-size: 56px; font-weight: 500; line-height: 1; }
.awards-count small { display: block; font-size: 14px; font-family: var(--sans); font-weight: 400; color: var(--gray); margin-top: 8px; }
.awards-breakdown { flex: 1; min-width: 240px; border-left: 1px solid var(--line); padding-left: 28px; }
.awards-breakdown li { list-style: none; font-size: 15px; color: var(--gray); padding: 5px 0; }
.pending-slots { display: flex; gap: 14px; margin-top: 30px; }
.pending-slot {
  width: 74px; height: 74px;
  border: 1px dashed #A9C6E2;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 20px; color: var(--gray-light);
}

/* ---------- proof ---------- */
.proof {
  border-left: 3px solid var(--blue);
  background: var(--blue-wash);
  border-radius: 0 10px 10px 0;
  padding: 26px 30px;
  margin-top: 40px;
}
.proof p { font-size: 15px; color: var(--gray); max-width: 70ch; margin-bottom: 10px; }

/* proof with screenshot */
.proof-shot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.proof-img { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0f1216; }
.proof-img img { width: 100%; display: block; }

/* ---------- recommendation letter ---------- */
.letter {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 40px;
  background: var(--blue-wash);
  border-radius: 10px;
  padding: 36px 40px;
}
.letter-img { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: transform .2s ease; }
.letter-img:hover { transform: translateY(-2px); }
.letter-img img { width: 100%; display: block; }
.letter blockquote { margin: 0 0 16px; border-left: 3px solid var(--blue); padding-left: 20px; }
.letter blockquote p { font-family: var(--display); font-size: 18px; line-height: 1.5; color: var(--ink); margin-bottom: 14px; }
.letter blockquote p:last-child { margin-bottom: 0; }
.letter-sign { font-size: 14px; color: var(--gray); margin-bottom: 14px; }
.letter-text > a { color: var(--blue); text-decoration: none; font-weight: 500; }
.letter-text > a:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: #fff;
  padding: 96px 0;
  margin-top: 110px;
}
.cta .sec-index { color: #85B7EB; }
.cta .sec-index::after { background: #85B7EB; }
.cta h2 { color: #fff; max-width: 24ch; }
.cta p.cta-lead { color: #B5D4F4; font-size: 16px; max-width: 58ch; margin-bottom: 30px; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--blue-pale); }
.cta .btn-ghost { color: #B5D4F4; border-color: rgba(133,183,235,.45); }
.cta .btn-ghost:hover { border-color: #85B7EB; color: #fff; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-note { font-size: 13px; color: #85B7EB; margin-top: 14px; }

/* ---------- next case ---------- */
.other { padding: 56px 0 0; }
.other-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  flex-wrap: wrap;
}
.other-row a { font-size: 15px; font-weight: 500; color: var(--blue); text-decoration: none; }
.other-row a:hover { text-decoration: underline; }
.other-row .lbl { display: block; font-family: var(--mono); font-size: 11px; color: var(--gray-light); margin-bottom: 6px; font-weight: 400; }
.other-next { text-align: right; margin-left: auto; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 40px 0; margin-top: 64px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-note { font-family: var(--mono); font-size: 12px; color: var(--gray-light); }
.foot-note a { color: inherit; text-decoration: none; }
.foot-note a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- mobile ---------- */
@media (prefers-reduced-motion: reduce) {
  header nav a.nav-link::after,
  .mobile-menu,
  .menu-toggle span,
  .mobile-sticky-cta { transition: none; }
}
@media (max-width: 960px) {
  header nav a.nav-link,
  header nav > a.btn { display: none; }
  header nav { gap: 10px; }
  .menu-toggle { display: inline-block; }
  .mobile-menu { display: block; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  header { padding: 0 20px; height: 68px; }
  .brand { width: 104px; }
  .scope-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .awards-card { padding: 28px 24px; }
  .awards-breakdown { border-left: 0; padding-left: 0; }
  .proof-shot { grid-template-columns: 1fr; gap: 20px; }
  .letter { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .letter-img { max-width: 220px; }
  .letter blockquote p { font-size: 16px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .case-hero { padding-top: 40px; }
  .case-context {
    gap: 6px;
    margin-bottom: 24px;
    font-size: 10px;
  }
  .cover-frame img { aspect-ratio: 4 / 5; object-fit: cover; }
  .metrics { gap: 18px; padding-bottom: 32px; }
  section.block { padding-top: 72px; }
  .cta { padding: 72px 0; margin-top: 84px; }
  .cta-buttons .btn { width: 100%; text-align: center; }
  .cover-actions .btn { width: 100%; text-align: center; }
  .other-next { text-align: left; margin-left: 0; }
  .foot-row { align-items: flex-start; gap: 14px; }
  .foot-note { width: 100%; font-size: 10px; line-height: 1.65; }
  .mobile-sticky-cta {
    position: fixed;
    z-index: 80;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    padding: 0 20px;
    color: #fff;
    background: var(--blue);
    border-radius: 7px;
    box-shadow: 0 12px 32px rgba(4,44,83,.24);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 20px));
    transition:
      opacity .24s ease,
      visibility .24s ease,
      transform .38s cubic-bezier(.16,1,.3,1),
      background .2s;
  }
  .mobile-sticky-cta:hover { background: var(--ink); }
  .mobile-sticky-cta.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  body.menu-open .mobile-sticky-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media (max-width: 360px) {
  header { padding: 0 14px; }
  .brand { width: 96px; }
  .mobile-menu-inner { width: calc(100% - 36px); padding-top: 94px; }
  .mobile-menu-links a {
    grid-template-columns: 36px 1fr;
    font-size: 27px;
  }
}
