:root {
  --ink: #07111f;
  --navy: #0b1b2f;
  --navy-2: #102b49;
  --blue: #0b77b7;
  --cyan: #18c7e8;
  --amber: #f5a524;
  --paper: #f5f8fb;
  --white: #ffffff;
  --text: #14283c;
  --muted: #5b6f82;
  --line: #d9e3eb;
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.12);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 790px); margin-inline: auto; }
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-soft { background: var(--paper); }
.section-dark { color: var(--white); background: var(--navy); }
.section-heading { max-width: 760px; margin-bottom: 2.2rem; }
.section-heading h2, .page-hero h1, .hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.section-dark .section-heading h2 { color: var(--white); }
.section-heading p { margin: 1rem 0 0; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-heading p { color: #b8cadd; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: rgba(7, 17, 31, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; }
.brand-text span { margin-top: 0.28rem; color: #9fb7cb; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.55rem; }
.nav a { color: #d9e8f5; font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .nav-cta { padding: 0.72rem 1rem; color: var(--ink); background: var(--amber); border-radius: 4px; }
.menu-button { display: none; margin-left: auto; color: var(--white); background: none; border: 0; cursor: pointer; }
.menu-button span { display: block; width: 26px; height: 2px; margin: 5px 0; background: currentColor; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7,17,31,0.98) 0%, rgba(7,17,31,0.9) 48%, rgba(7,17,31,0.38) 100%),
    url("/elements/img/akademia.webp") center right / cover no-repeat;
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(24,199,232,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,199,232,0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.hero-inner {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 720px) 1fr;
  padding-block: 6rem;
}
.hero h1 { color: var(--white); max-width: 760px; }
.hero .eyebrow { color: var(--cyan); }
.hero-lead { max-width: 670px; margin: 1.4rem 0 0; color: #c8d7e5; font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: var(--ink); background: var(--amber); }
.button-primary:hover { background: #ffb83f; }
.button-secondary { color: var(--white); border-color: rgba(255,255,255,0.5); background: rgba(7,17,31,0.35); }
.button-secondary:hover { border-color: var(--white); }
.button-dark { color: var(--white); background: var(--navy); }
.hero-triad { display: flex; flex-wrap: wrap; gap: 0.65rem 1.6rem; margin-top: 2.4rem; padding: 1.2rem 0 0; border-top: 1px solid rgba(255,255,255,0.18); color: #9fb7cb; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card {
  position: relative;
  min-height: 285px;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: 0 8px 28px rgba(7,17,31,0.05);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon { width: 52px; height: 52px; margin-bottom: 1.2rem; object-fit: contain; filter: invert(36%) sepia(79%) saturate(1063%) hue-rotate(162deg) brightness(88%); }
.service-card h3 { margin: 0; color: var(--ink); font-size: 1.28rem; line-height: 1.25; }
.service-card p { margin: 0.8rem 0 2.4rem; color: var(--muted); }
.card-link { position: absolute; left: 1.6rem; bottom: 1.45rem; color: var(--blue); font-weight: 800; }

.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.audience-item { padding: 1.4rem; border-left: 3px solid var(--cyan); background: rgba(255,255,255,0.06); }
.audience-item h3 { margin: 0; font-size: 1.05rem; }
.audience-item p { margin: 0.55rem 0 0; color: #b8cadd; font-size: 0.95rem; }

.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.reference-card { overflow: hidden; color: var(--text); background: var(--white); box-shadow: var(--shadow); }
.reference-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.reference-card-body { padding: 1.3rem; }
.reference-card .meta { margin: 0 0 0.45rem; color: var(--blue); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.reference-card h3 { margin: 0; color: var(--ink); font-size: 1.15rem; line-height: 1.3; }
.reference-card p { color: var(--muted); }
.reference-card a { color: var(--blue); font-weight: 800; text-decoration: none; }

.process { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.process-step { position: relative; padding: 2.2rem 1.1rem 0 0; }
.process-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 0 6px rgba(24,199,232,0.15); }
.process-step span { color: var(--blue); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; }
.process-step h3 { margin: 0.35rem 0; color: var(--ink); font-size: 1.05rem; }
.process-step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.cta-band { padding: 3rem 0; color: var(--white); background: linear-gradient(105deg, var(--navy), var(--navy-2)); }
.cta-band-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; }
.cta-band p { margin: 0.6rem 0 0; color: #b8cadd; }

.page-hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 8rem) 0; color: var(--white); background: var(--navy); }
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { max-width: 870px; color: var(--white); }
.page-hero p { max-width: 760px; margin: 1.2rem 0 0; color: #c1d2e1; font-size: 1.16rem; }
.breadcrumbs { margin: 0 0 1.6rem; color: #9fb7cb; font-size: 0.88rem; }
.breadcrumbs a { color: inherit; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose h2 { margin: 2.4rem 0 0.8rem; color: var(--ink); font-size: clamp(1.55rem, 2.7vw, 2.3rem); line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6rem 0 0.5rem; color: var(--ink); }
.prose p, .prose li { color: #40576b; }
.check-list { margin: 1.2rem 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 0.5rem 0 0.5rem 1.8rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.side-panel { position: sticky; top: 104px; padding: 1.6rem; color: var(--white); background: var(--navy); border-top: 4px solid var(--cyan); }
.side-panel h2 { margin: 0; font-size: 1.35rem; }
.side-panel p { color: #b8cadd; }
.side-panel .button { width: 100%; margin-top: 0.5rem; }
.side-panel .button-secondary { margin-top: 0.75rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; color: var(--ink); font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 1rem; color: var(--blue); font-size: 1.55rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.4rem; color: var(--muted); }

.case-media { padding: clamp(1.5rem, 4vw, 3rem) 1rem 0; background: var(--paper); }
.case-gallery { width: min(100%, var(--content)); margin-inline: auto; }
.case-photo { margin: 0; }
.case-photo img { width: 100%; height: auto; margin-inline: auto; box-shadow: var(--shadow); }
.case-photo-wide img { max-height: 720px; object-fit: cover; }
.case-photo-contained { max-width: 1082px; margin-inline: auto; }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 2rem 0; background: var(--line); border: 1px solid var(--line); }
.case-fact { padding: 1.2rem; background: var(--white); }
.case-fact span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.case-fact strong { display: block; margin-top: 0.35rem; color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.contact-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.contact-list li { margin: 0.8rem 0; }
.contact-list a { color: var(--blue); font-weight: 800; }
.form-card { padding: clamp(1.4rem, 4vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: 0.4rem; color: var(--ink); font-weight: 800; }
.field input, .field textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aebdca;
  border-radius: 3px;
}
.field textarea { min-height: 170px; resize: vertical; }
.form-note, .form-status { color: var(--muted); font-size: 0.9rem; }
.form-error { margin: 0 0 1rem; padding: 0.9rem; color: #791c1c; background: #fff1f1; border-left: 4px solid #c93636; }

.legal h2 { margin-top: 2.4rem; color: var(--ink); }
.legal h3 { margin-top: 1.6rem; color: var(--ink); }
.legal p, .legal li { color: #40576b; }

.site-footer { padding: 4rem 0 1.5rem; color: #c2d3e1; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 2.5rem; }
.footer-brand p { max-width: 430px; color: #91a9bc; }
.footer-title { margin: 0 0 0.9rem; color: var(--white); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0.55rem 0; }
.footer-links a { color: #c2d3e1; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,0.12); color: #7f98ac; font-size: 0.84rem; }
.footer-bottom button { padding: 0; color: #9fb7cb; background: none; border: 0; text-decoration: underline; cursor: pointer; }

.cookie-banner { position: fixed; right: 1rem; bottom: 1rem; z-index: 500; width: min(440px, calc(100% - 2rem)); padding: 1.25rem; color: var(--white); background: var(--navy); border: 1px solid rgba(255,255,255,0.18); box-shadow: var(--shadow); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0; font-size: 1.2rem; }
.cookie-banner p { margin: 0.55rem 0 1rem; color: #b8cadd; font-size: 0.92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.cookie-actions button { min-height: 42px; padding: 0.55rem 0.8rem; color: var(--white); background: transparent; border: 1px solid #8fa6ba; border-radius: 3px; font-weight: 800; cursor: pointer; }
.cookie-actions .accept { color: var(--ink); background: var(--amber); border-color: var(--amber); }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    margin: 0;
    padding: 1.25rem 1rem 1.6rem;
    align-items: stretch;
    flex-direction: column;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav .nav-cta { text-align: center; }
  .hero-inner { min-height: 620px; grid-template-columns: 1fr; }
  .service-grid, .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; border-top: 0; }
  .process-step { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--content)); }
  .brand-text span { display: none; }
  .hero { background-position: 68% center; }
  .hero-inner { min-height: 650px; padding-block: 4.5rem; }
  .hero::after { content: ""; position: absolute; inset: 0; background: rgba(7,17,31,0.18); pointer-events: none; }
  .hero-inner { z-index: 1; }
  .service-grid, .reference-grid, .audience-grid, .two-column, .contact-grid, .footer-grid, .case-facts { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
