/* ==========================================================================
   RapidPrint Kft. – rapidprintnyomda.hu
   Színek a logóból: petrol #0E6C90, cián #00AEEF, sárga #FFF200, zöld #00A651
   Betűtípus: Archivo (helyben tárolva, külső kérés nélkül – nem kell hozzá süti)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Színek */
  --paper: #ffffff;
  --paper-tint: #f2f7f9;
  --ink: #0b2b3a;
  --ink-soft: #45606c;
  --petrol: #0e6c90;
  --petrol-dark: #0a5675;
  --cyan: #00aeef;
  --yellow: #fff200;
  --green: #00a651;
  --line: #d4e2e8;
  --field-border: #768f9c;
  --danger: #b3261e;
  --focus: #0e6c90;

  /* Méretek */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --radius-s: 6px;
  --radius-m: 12px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
}

/* ---------- Alap ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--petrol);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--petrol-dark);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  /* a leghosszabb cím („Szolgáltatásaink”) a legkeskenyebb telefonon is kiférjen */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 9.8), clamp(2rem, 1.3rem + 2.6vw, 3.25rem));
  font-weight: 780;
  font-stretch: 120%;
  line-height: 1.02;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 720;
  font-stretch: 112%;
  line-height: 1.2;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- Gombok ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn--lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.0625rem;
}

.btn--primary {
  background: var(--petrol);
  color: #fff;
}

.btn--primary:hover {
  background: var(--petrol-dark);
  color: #fff;
}

.btn--secondary {
  border-color: var(--field-border);
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--light {
  background: #fff;
  color: var(--petrol);
}

.btn--light:hover {
  background: var(--paper-tint);
  color: var(--petrol-dark);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- Fejléc ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand__name {
  font-size: 1.1875rem;
  font-weight: 760;
  font-stretch: 116%;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__suffix {
  font-weight: 420;
  color: var(--ink-soft);
}

.site-nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 560;
  font-stretch: 104%;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--petrol);
}

.header-cta {
  min-height: 44px;
  padding: 0 20px;
}

/* A menü ikonja a logó gyorsvonalait idézi */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__lines {
  display: grid;
  gap: 5px;
  width: 24px;
}

.nav-toggle__lines span {
  display: block;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: currentColor;
  transition: width 200ms var(--ease-out);
}

.nav-toggle__lines span:nth-child(1) { width: 60%; }
.nav-toggle__lines span:nth-child(2) { width: 100%; }
.nav-toggle__lines span:nth-child(3) { width: 80%; }

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span {
  width: 100%;
}

/* ---------- Nyitó rész ---------- */

.hero {
  padding-top: clamp(48px, 8vw, 112px);
  overflow: hidden;
}

/* A címsor három „nyomólemezből” áll: cián, sárga és a végleges szín.
   Betöltéskor a színek balról beúsznak, és pontos illesztésbe kerülnek. */
.headline {
  position: relative;
  margin: 0;
  /* mobilon a „sebességgel.” szó mindig kiférjen, nagy kijelzőn a második sor egyben maradjon */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 8.4), clamp(2rem, 1.1rem + 6.2vw, 4.5rem));
  font-weight: 820;
  font-stretch: 125%;
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.headline__plate {
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.headline__plate--c {
  color: var(--cyan);
}

.headline__plate--y {
  color: var(--yellow);
}

.headline__key {
  position: relative;
  display: block;
}

.hero__lead {
  max-width: 33em;
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* A logó sebességcsíkjai, a nyitó rész alján */
.speedlines {
  display: grid;
  gap: 8px;
  margin-top: clamp(64px, 9vw, 120px);
}

.speedlines__row {
  display: flex;
  gap: 14px;
  height: 9px;
}

.speedlines__bar {
  width: var(--w);
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: var(--c);
  transform-origin: left center;
}

.speedlines__row--track {
  height: 6px;
}

.speedlines__row--track .speedlines__bar {
  border-radius: 0;
}

/* ---------- Szekciók ---------- */

.section {
  padding-block: var(--section-y);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  max-width: 34em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* ---------- Szolgáltatások ---------- */

.svc-group {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 20px 48px;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.svc-group__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 10px;
}

.svc-group__title::before {
  content: "";
  width: 64px;
  height: 9px;
  border-radius: 0 999px 999px 0;
  background: var(--group);
}

.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 8px;
  padding: 12px 0;
  border-radius: var(--radius-s);
  color: inherit;
  text-decoration: none;
}

.svc::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 18px;
  height: 6px;
  margin-top: 0.6em;
  border-radius: 0 999px 999px 0;
  background: var(--group);
  transition: width 200ms var(--ease-out);
}

.svc__name {
  grid-column: 2;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1.35;
}

.svc__desc {
  grid-column: 2;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.svc:hover .svc__name,
.svc:focus-visible .svc__name {
  color: var(--petrol);
}

.svc:hover::before,
.svc:focus-visible::before {
  width: 30px;
}

/* Egyedi munkák – vágójelekkel, mint egy nyomdai ív */
.custom-job {
  --focus: #fff;
  --crop-len: 22px;
  --crop-gap: 8px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--petrol);
  color: #fff;
}

.custom-job__text {
  flex: 1 1 28rem;
}

.custom-job__title {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(1.625rem, 1.15rem + 1.8vw, 2.5rem);
  font-weight: 780;
  font-stretch: 118%;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.custom-job p {
  max-width: 38em;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
}

.crop {
  position: absolute;
  width: 0;
  height: 0;
}

.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.crop::before {
  width: var(--crop-len);
  height: 1px;
}

.crop::after {
  width: 1px;
  height: var(--crop-len);
}

.crop--tl { top: 0; left: 0; }
.crop--tl::before { top: 0; right: var(--crop-gap); }
.crop--tl::after { bottom: var(--crop-gap); left: 0; }

.crop--tr { top: 0; right: 0; }
.crop--tr::before { top: 0; left: var(--crop-gap); }
.crop--tr::after { bottom: var(--crop-gap); left: -1px; }

.crop--bl { bottom: 0; left: 0; }
.crop--bl::before { bottom: -1px; right: var(--crop-gap); }
.crop--bl::after { top: var(--crop-gap); left: 0; }

.crop--br { bottom: 0; right: 0; }
.crop--br::before { bottom: -1px; left: var(--crop-gap); }
.crop--br::after { top: var(--crop-gap); left: -1px; }

/* ---------- Rólunk ---------- */

.about {
  background: var(--paper-tint);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(40px, 7vw, 112px);
  align-items: start;
}

.about__text h2 {
  margin-bottom: 28px;
}

.about__text p {
  max-width: 34em;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.promises {
  margin: 0;
  padding: 0;
  list-style: none;
}

.promises li {
  padding-block: 22px;
  border-top: 1px solid #c3d5dc;
}

.promises li:first-child {
  padding-top: 0;
  border-top: 0;
}

.promises h3 {
  margin-bottom: 6px;
  font-size: 1.1875rem;
}

.promises p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Ajánlatkérés ---------- */

.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}

.quote__intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.quote__intro > p {
  max-width: 30em;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  color: var(--ink-soft);
}

.steps__n {
  color: var(--petrol);
  font-size: 2rem;
  font-weight: 820;
  font-stretch: 125%;
  line-height: 1;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-weight: 680;
  font-stretch: 106%;
}

.quote__alt {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.quote__alt a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Űrlap */
.form-card {
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--radius-m);
  background: var(--paper-tint);
}

.fieldset {
  min-width: 0;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
}

.fieldset legend {
  margin-bottom: 18px;
  padding: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 720;
  font-stretch: 112%;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  min-width: 0;
}

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

.field > label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 620;
}

.optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-s);
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.input::placeholder,
.textarea::placeholder {
  color: #6f8590;
  opacity: 1;
}

.select {
  padding-right: 46px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%230e6c90' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.textarea {
  min-height: 160px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--petrol);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 108, 144, 0.25);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__hint,
.field__error {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.field__hint {
  color: var(--ink-soft);
}

.field__error {
  color: var(--danger);
  font-weight: 560;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--petrol);
  cursor: pointer;
}

.check label {
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.form-status {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.9375rem;
}

.form-status.is-error {
  color: var(--danger);
  font-weight: 560;
}

.form-success {
  padding: clamp(8px, 2vw, 16px) 0;
}

.form-success:focus {
  outline: none;
}

.form-success::before {
  content: "";
  display: block;
  width: 64px;
  height: 9px;
  margin-bottom: 24px;
  border-radius: 0 999px 999px 0;
  background: var(--green);
}

.form-success h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 780;
  font-stretch: 118%;
}

.form-success p {
  max-width: 32em;
  color: var(--ink-soft);
}

.form-success strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.form-success .btn {
  margin-top: 8px;
}

/* ---------- Kapcsolat ---------- */

.contact {
  border-top: 1px solid var(--line);
}

.contact__lead {
  max-width: 34em;
  margin: 24px 0 32px;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

.contact__email {
  display: inline-block;
  padding-bottom: 6px;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 5px;
  color: var(--ink);
  font-size: clamp(1.375rem, 0.55rem + 3.6vw, 3.5rem);
  font-weight: 760;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-size 320ms var(--ease-out);
}

.contact__email:hover,
.contact__email:focus-visible {
  background-size: 100% 5px;
  color: var(--ink);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.copy-status {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- Lábléc ---------- */

.site-footer {
  --focus: #fff;
  padding-block: 44px 36px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #fff;
  text-decoration-color: var(--cyan);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 48px;
}

.site-footer__name {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 740;
  font-stretch: 114%;
}

.site-footer__brand p:last-child {
  margin: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__copy {
  width: 100%;
  margin: 12px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Aloldalak (impresszum, adatkezelés, köszönjük) ---------- */

.page {
  padding-block: clamp(48px, 8vw, 104px) var(--section-y);
}

.page__title {
  margin-bottom: 20px;
  font-size: clamp(2.125rem, 1.2rem + 3.4vw, 3.75rem);
  font-weight: 820;
  font-stretch: 122%;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.page__lead {
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

.prose {
  max-width: 44em;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 1.375rem;
  font-weight: 720;
  font-stretch: 110%;
  line-height: 1.25;
  letter-spacing: 0;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.4em;
}

.data-list {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr);
  gap: 8px 24px;
  margin: 0 0 1em;
}

.data-list dt {
  color: var(--ink-soft);
}

.data-list dd {
  margin: 0;
  font-weight: 560;
  overflow-wrap: anywhere;
}

/* A még kitöltendő adatok sárgán kiemelve, hogy ne maradjanak benne */
.kitoltendo {
  padding: 0 4px;
  border-radius: 3px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 620;
}

/* ---------- Mozgás (csak ha a látogató nem kérte a mozgás csökkentését) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .headline__plate--c {
    animation: plate-c 1100ms var(--ease-out) 120ms both;
  }

  .headline__plate--y {
    animation: plate-y 1100ms var(--ease-out) 180ms both;
  }

  .headline__key {
    animation: key-in 380ms ease-out 760ms both;
  }

  .hero .speedlines__bar {
    animation: streak 1000ms var(--ease-out) both;
    animation-delay: calc(80ms + var(--i, 0) * 70ms);
  }

  .select.is-flash {
    animation: flash 1400ms ease-out;
  }
}

@keyframes plate-c {
  0% { opacity: 0; transform: translateX(-0.8em); }
  10% { opacity: 1; }
  68% { opacity: 1; transform: translateX(0.035em); }
  86% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}

@keyframes plate-y {
  0% { opacity: 0; transform: translateX(-1.5em); }
  10% { opacity: 1; }
  68% { opacity: 1; transform: translateX(-0.03em); }
  86% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}

@keyframes key-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes streak {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes flash {
  0% { box-shadow: 0 0 0 4px rgba(255, 242, 0, 0.95); background-color: #fffbd1; }
  100% { box-shadow: 0 0 0 4px rgba(255, 242, 0, 0); background-color: #fff; }
}

/* ---------- Reszponzív ---------- */

@media (max-width: 960px) {
  .section-head,
  .svc-group,
  .about__grid,
  .quote__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-group__title {
    padding-top: 0;
  }

  .quote__intro {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    gap: 12px;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding: 4px 0 16px;
  }

  .site-nav li + li a {
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    padding: 14px 0;
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .svc-list,
  .field-grid,
  .data-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-list dd {
    margin-bottom: 8px;
  }

  .custom-job {
    --crop-len: 13px;
    --crop-gap: 4px;
  }

  .custom-job .btn {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .header-cta {
    padding: 0 16px;
  }
}

@media (min-width: 700px) {
  .headline {
    font-size: min(calc((100vw - 2 * var(--gutter)) / 11.9), 6rem);
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 10px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand__suffix {
    display: none;
  }
}

@media (max-width: 359px) {
  .brand__name {
    display: none;
  }
}
