:root {
  --ink: #122033;
  --muted: #5c6878;
  --line: #dce5ef;
  --soft: #f5f8fb;
  --blue: #075ea8;
  --cyan: #0a9bd6;
  --navy: #14206b;
  --white: #fff;
  --success: #0f7b54;
  --danger: #a23b3b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  clip-path: polygon(13% 0, 42% 0, 50% 32%, 58% 0, 87% 0, 87% 100%, 64% 100%, 64% 43%, 50% 63%, 36% 43%, 36% 100%, 13% 100%);
}

.brand-logo {
  width: 150px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.brand-symbol {
  width: 44px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.brand-text {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 850;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #354154;
  font-size: 14px;
}

.menu-toggle {
  display: none;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 850;
}

.hero {
  padding: 92px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(7, 94, 168, .09), transparent 42%),
    linear-gradient(0deg, #fff, #f7fbff);
}

.subhero {
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(7, 94, 168, .09), transparent 42%),
    linear-gradient(0deg, #fff, #f7fbff);
}

.subhero h1 {
  max-width: 920px;
}

.subhero-proof {
  max-width: 780px;
  margin-top: 20px;
  padding-left: 18px;
  border-left: 4px solid var(--blue);
  color: #2d3b4f;
  font-size: 18px;
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 750;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr);
  gap: 58px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
}

h1 {
  margin: 12px 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  max-width: 860px;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.18;
}

.lead {
  color: #354154;
  font-size: 20px;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.signal-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  border-radius: 8px;
  min-height: 306px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(18, 32, 51, .08);
}

.signal-panel dl {
  margin: 0;
  display: grid;
  gap: 24px;
}

.signal-panel dt {
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.signal-panel dd {
  margin: 6px 0 0;
  font-size: 19px;
  font-weight: 750;
}

section {
  padding: 76px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 34px;
}

.section-intro p,
.card p,
.training-meta,
.footer p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-cards {
  align-items: stretch;
}

.service-cards .card {
  display: flex;
  flex-direction: column;
}

.service-cards .card h3 {
  min-height: 58px;
}

.service-cards .card p {
  min-height: 96px;
}

.service-cards .card .text-link {
  margin-top: auto;
  padding-top: 14px;
}

.testimonial-carousel {
  margin-top: 18px;
  touch-action: pan-y;
}

.testimonial-window {
  overflow: hidden;
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  transition: transform .35s ease;
  will-change: transform;
}

.testimonial-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  margin-top: 0;
  font-size: 15px;
}

.testimonial-author {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
}

.testimonial-source {
  margin-top: 10px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: #b8c6d6;
  padding: 0;
  cursor: pointer;
}

.testimonial-dot.is-active {
  width: 24px;
  background: var(--blue);
}

.service-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-sections .card h2 {
  font-size: 28px;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.card.accent {
  border-top: 4px solid var(--blue);
}

.muted-band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.training-list {
  display: grid;
  gap: 16px;
}

.training {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.price {
  font-size: 28px;
  font-weight: 850;
}

.spots {
  color: var(--success);
  font-weight: 800;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 850;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.people .card {
  display: flex;
  flex-direction: column;
}

.people .card h3 {
  min-height: 54px;
}

.people .card p:first-of-type {
  min-height: 54px;
}

.people .card p:nth-of-type(2) {
  min-height: 182px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}

.people .card .text-link {
  margin-top: auto;
  padding-top: 14px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.client-strip {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.strip-heading {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.logo-grid.compact {
  grid-template-columns: repeat(5, 1fr);
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.topic-links span {
  font-weight: 850;
  color: var(--ink);
}

.topic-links a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.topic-links a:hover {
  text-decoration: underline;
}

.logo-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-marquee-track {
  width: max-content;
  display: flex;
  gap: 14px;
  animation: logoMarquee 36s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track {
  animation-play-state: paused;
}

.logo-tile {
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  color: var(--muted);
  text-decoration: none;
}

.logo-marquee .logo-tile {
  flex: 0 0 clamp(190px, 18vw, 230px);
}

a.logo-tile {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a.logo-tile:hover {
  border-color: rgba(7, 94, 168, .38);
  box-shadow: 0 12px 28px rgba(15, 29, 48, .08);
  transform: translateY(-1px);
}

.logo-tile img {
  width: auto;
  height: auto;
  max-width: 84%;
  max-height: 72px;
  object-fit: contain;
}

.case-study-band {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.case-study-grid {
  align-items: stretch;
}

.case-study-logo {
  height: 54px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.case-study-logo img {
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
}

@keyframes logoMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 7px), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    width: auto;
    flex-wrap: wrap;
    animation: none;
  }
}

.problem-cards {
  grid-template-columns: repeat(4, 1fr);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 850;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.person-photo {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 28%;
  margin-bottom: 18px;
  background: var(--soft);
}

.person-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  font-weight: 850;
  font-size: 34px;
}

.admin-preview {
  width: 160px;
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed #b8c6d6;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
}

.admin-preview img {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: contain;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.editor-toolbar button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.admin-help {
  margin: -6px 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

label {
  display: grid;
  gap: 6px;
  color: #27364a;
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(15, 29, 48, .22);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--blue);
  outline: none;
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #edf8f3;
  color: var(--success);
  font-weight: 750;
}

.error {
  background: #fff0f0;
  color: var(--danger);
}

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #0f1d30;
  color: var(--white);
}

.footer p,
.footer a {
  color: #d7e0eb;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 224, 235, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  font-size: 14px;
  font-weight: 750;
}

.social-link span:first-child {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #0a66c2;
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.social-link:hover,
.social-link:focus-visible {
  background: rgba(255, 255, 255, .12);
  outline: none;
}

.footer-rating {
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 224, 235, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.footer-rating strong {
  color: var(--white);
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 224, 235, .18);
  font-size: 14px;
}

.footer-links a {
  color: #f5f8fc;
  font-weight: 750;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cta-band p {
  color: var(--muted);
}

.lecturer-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
}

.lecturer-page-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid var(--line);
  background: var(--white);
}

.lecturer-page-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  font-size: 58px;
  font-weight: 850;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

#straipsniai .cards {
  align-items: stretch;
}

#straipsniai .card,
.article-grid .card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#straipsniai .card .eyebrow,
.article-grid .card .eyebrow {
  min-height: 22px;
}

#straipsniai .card h3,
.article-grid .card h3 {
  min-height: 86px;
  margin-bottom: 12px;
}

#straipsniai .card p,
.article-grid .card p {
  min-height: 104px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

#straipsniai .card .text-link,
.article-grid .card .text-link {
  margin-top: auto;
  padding-top: 18px;
}

.article-head {
  max-width: 940px;
}

.article-meta {
  margin-top: 22px;
  color: var(--muted);
  font-weight: 750;
}

.article-body {
  max-width: 820px;
  font-size: 19px;
}

.article-body h2 {
  margin-top: 42px;
  font-size: 34px;
}

.article-body h3 {
  margin-top: 30px;
}

.article-body p,
.article-body li {
  color: #334155;
}

.article-body ul {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.admin-shell {
  min-height: 100vh;
  background: var(--soft);
}

.admin-main {
  padding: 32px 0 72px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.admin-menu {
  align-self: start;
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.admin-menu button {
  width: 100%;
  min-height: 42px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  font-weight: 750;
  color: var(--ink);
  cursor: pointer;
}

.admin-menu button.active {
  background: var(--ink);
  color: var(--white);
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.small-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-weight: 750;
}

.small-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 880px) {
  .nav {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 8px 0;
  }

  .brand {
    min-width: 0;
  }

  .menu-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--ink);
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-icon::before {
    top: -6px;
  }

  .menu-icon::after {
    top: 6px;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
    font-size: 15px;
  }

  .topbar.menu-open .nav-links {
    display: grid;
    padding: 8px 0 10px;
  }

  .nav-links a {
    min-height: 42px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
  }

  .nav-links .nav-cta {
    grid-column: 1 / -1;
    min-height: 46px;
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
    white-space: normal;
  }

  .logo-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .logo-marquee::-webkit-scrollbar {
    display: none;
  }

  .logo-marquee-track {
    animation: none;
    padding-bottom: 2px;
  }

  .logo-marquee .logo-tile {
    flex-basis: 190px;
  }

  .brand-logo {
    width: 128px;
    height: 58px;
  }

  .brand-symbol {
    width: 36px;
    height: 44px;
  }

  .brand-text {
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #straipsniai .card h3,
  .article-grid .card h3,
  #straipsniai .card p,
  .article-grid .card p {
    min-height: 0;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .hero {
    padding: 64px 0 42px;
  }

  .hero-grid,
  .section-intro,
  .training,
  .admin-grid,
  .service-sections,
  .cta-band,
  .lecturer-profile,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cards,
  .steps,
  .people,
  .logo-grid,
  .logo-grid.compact,
  .problem-cards {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    min-height: 0;
    padding: 24px;
  }

  .testimonial-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .people .card h3,
  .people .card p:first-of-type,
  .people .card p:nth-of-type(2) {
    min-height: 0;
  }

  .people .card p:nth-of-type(2) {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .service-cards .card h3,
  .service-cards .card p {
    min-height: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 16px;
    overflow-x: auto;
  }

  .table {
    min-width: 680px;
  }

  .full {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions,
  .row-actions {
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .testimonial-card {
    min-height: 280px;
  }

  .testimonial-track {
    grid-auto-columns: 100%;
  }

  .testimonial-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-dots {
    grid-column: 1 / -1;
    order: 3;
  }

  .training {
    padding: 18px;
  }

  .card {
    padding: 20px;
  }

  .price {
    font-size: 24px;
  }

  section {
    padding: 58px 0;
  }
}
