@media (max-width: 650px) {
  .links a.cases-nav { display: inline-flex; }
}

.cases-page {
  color: #132949;
  background: #edf3fc;
  font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.cases-page *, .cases-page *::before, .cases-page *::after { box-sizing: border-box; }
.cases-page :focus-visible { outline: 3px solid #3798ff; outline-offset: 4px; }
.cases-page p { margin: 0; }
.cases-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.cases-header { background: #05275d; color: white; border-bottom: 1px solid #ffffff20; }
.cases-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.cases-nav-inner a { color: inherit; text-decoration: none; }
.cases-brand { font-size: 18px; line-height: 1.25; font-weight: 750; }
.cases-brand span { display: block; color: #b7cae4; font-size: 12px; font-weight: 500; }
.cases-nav-inner nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; row-gap: 7px; font-size: 14px; }
.cases-nav-inner nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.cases-contact-link { border: 1px solid #ffffff55; border-radius: 8px; padding: 6px 12px; }
.cases-hero { background: radial-gradient(ellipse at 90% 0%, #1b68cd8c, transparent 54%), #031d48; color: white; padding-block: clamp(64px, 10vw, 112px); }
.cases-hero h1 { margin: 0 0 12px; font-size: clamp(56px, 9vw, 92px); line-height: 1; letter-spacing: -.06em; }
.cases-hero p { color: #d4e4f8; font-size: clamp(17px, 2.3vw, 23px); max-width: 670px; }
.cases-jumps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cases-jumps a { color: #e4efff; border: 1px solid #8fbaf1; border-radius: 8px; padding: 8px 13px; text-decoration: none; }
.cases-jumps a:hover { background: #ffffff22; }
.cases-section { margin-block: clamp(42px, 7vw, 72px); }
.cases-section h2 { margin: 0 0 20px; font-size: clamp(28px, 4.5vw, 42px); line-height: 1.16; letter-spacing: -.04em; }
.story-grid, .project-grid { display: grid; gap: 18px; align-items: start; }
.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.story-card, .project-card { background: white; border-radius: 16px; border: 1px solid #c7daf1; box-shadow: 0 12px 30px #173f7210; }
.story-card { overflow: hidden; }
.story-lead, .project-card { padding: clamp(16px, 3vw, 26px); }
.story-card h3, .project-card h3 { margin: 6px 0 10px; line-height: 1.24; font-size: 22px; }
.case-industry { color: #265687; font-size: 14px; font-weight: 700; }
.story-card details { border-top: 1px solid #dbe6f3; }
.story-card summary { cursor: pointer; padding: 14px clamp(16px, 3vw, 26px); color: #103d80; font-weight: 700; }
.story-card summary:hover { background: #f0f6fd; }
.story-card summary:focus-visible { outline-offset: -4px; }
.story-card dl { margin: 0; padding: 0 clamp(16px, 3vw, 26px) 20px; }
.story-card dt { margin-top: 11px; font-weight: 750; }
.story-card dd { margin: 0; }
.cases-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; background: #05275d; color: white; border-radius: 16px; padding: clamp(18px, 5vw, 38px); }
.cases-contact h2 { margin: 0; }
.cases-contact a { background: white; border-radius: 8px; padding: 10px 14px; color: #05275d; font-weight: 700; text-decoration: none; }
.cases-footer { border-top: 1px solid #c7daf1; padding-block: 18px; }
.cases-footer a { color: #203d63; }
@media (max-width: 880px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .cases-wrap { width: calc(100% - 32px); }
  .cases-nav-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 12px; }
  .cases-nav-inner nav { column-gap: 12px; }
  .cases-contact-link { padding: 4px 7px; }
  .project-grid, .story-grid { grid-template-columns: minmax(0, 1fr); }
}

.business-details {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  color: #415975;
  font-size: .875rem;
  line-height: 1.55;
}
.business-details p { margin: 0; }

.business-details .footer-privacy { color: #254f81; text-decoration: underline; text-underline-offset: .18em; }

.cookie-settings {
  color: #254f81;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
}

.cookie-dialog {
  position: fixed;
  z-index: 30;
  inset: auto 0 max(.75rem, env(safe-area-inset-bottom));
  margin: 0 auto;
  box-sizing: border-box;
  width: min(59rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1rem 1.25rem;
  border: 1px solid #c7daf1;
  border-radius: .875rem;
  background: #fff;
  color: #132949;
  box-shadow: 0 14px 36px #05275d30;
  font: .9rem/1.5 "Segoe UI", system-ui, sans-serif;
}

.cookie-dialog[open] {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .85rem 1.25rem;
}
.cookie-dialog::backdrop { background: #13294955; }
.cookie-dialog h2 {
  margin: 0 0 .25rem;
  font: 700 1.125rem/1.3 "Segoe UI", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
.cookie-dialog p { margin: 0; }
.cookie-dialog a { color: #254f81; text-decoration: underline; text-underline-offset: .18em; }
.cookie-options { display: grid; grid-template-columns: repeat(3, auto); gap: .45rem; }
.cookie-options button {
  border: 1px solid #7796bd;
  border-radius: .45rem;
  min-height: 42px;
  background: #f1f6ff;
  color: #132949;
  padding: .5rem .65rem;
  font: 600 .85rem/1.25 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.cookie-options button:hover { background: #e1edff; }

@media (max-width: 680px) {
  .cookie-dialog[open] { grid-template-columns: 1fr; }
  .cookie-options { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .cookie-dialog { width: calc(100% - 1.25rem); padding: .75rem; }
  .cookie-options { grid-template-columns: repeat(2, 1fr); }
  .cookie-options button[value="all"] { grid-column: 1 / -1; }
}
