:root {
  --color-primary: #145fcf;
  --color-primary-dark: #0f1c3f;
  --color-accent: #f7941d;
  --color-soft-bg: #f4f7fc;
  --color-text: #1d2a4c;
  --color-muted: #5b6784;
  --color-line: #d9e1ef;
  --white: #ffffff;
  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 40px rgba(20, 54, 116, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #fdfefe 0%, #f7faff 35%, #ffffff 100%);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--color-primary-dark);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: 0.5rem;
}

.site-header {
  background: #ffffff;
  border-bottom: none;
  position: relative;
  z-index: 10;
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand picture {
  display: block;
}

.brand-logo {
  inline-size: clamp(170px, 22vw, 250px);
  block-size: auto;
  display: block;
}

.menu-toggle {
  border: 1px solid var(--color-line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: var(--color-primary-dark);
  font-weight: 700;
}

nav {
  grid-column: 1 / -1;
  display: none;
}

nav.is-open {
  display: block;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  display: grid;
  gap: 0.8rem;
}

nav a {
  text-decoration: none;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding-inline: 1.2rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(20, 95, 207, 0.25);
}

.site-header .btn-primary {
  min-height: 44px;
  padding-inline: 1.45rem;
  border-radius: 0.8rem;
  box-shadow: 0 10px 22px rgba(20, 95, 207, 0.22);
}

.btn-secondary {
  background: var(--white);
  color: var(--color-primary);
  border-color: #b7cdf4;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--white);
  border: none;
}

.section {
  padding: 1.4rem 0;
}

.soft-bg {
  background: var(--color-soft-bg);
}

.hero-section {
  padding: 1rem 0 2.6rem;
  background: #ffffff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 1.1rem;
  align-items: stretch;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.15;
  margin: 0;
  color: var(--color-primary-dark);
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  margin-bottom: 1rem;
}

h1 span {
  color: var(--color-primary);
}

.headline-line {
  display: block;
}

.headline-line:not(:first-child) {
  color: var(--color-primary-dark);
}

h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 1.15rem;
}

h3 {
  font-size: 1.24rem;
  margin-bottom: 0.5rem;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.hero-badges li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-badges li::before {
  content: "";
  position: absolute;
  inline-size: 0.4rem;
  block-size: 0.4rem;
  border-radius: 999px;
  background: var(--color-primary);
  left: 0;
  top: 0.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-proof {
  color: var(--color-muted);
  margin-top: 1rem;
}

.hero-proof strong {
  color: var(--color-primary-dark);
}

.hero-media {
  position: relative;
  height: 320px;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
}

.hero-overlay {
  position: relative;
  width: 100%;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0 0 0.2rem;
}

.hero-overlay .brand {
  min-width: 0;
}

.hero-overlay .brand-logo {
  inline-size: clamp(112px, 35vw, 170px);
}

.hero-overlay .btn-primary {
  min-height: 42px;
  max-width: min(52vw, 220px);
  padding-inline: 0.85rem;
  border-radius: 0.8rem;
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 10px 22px rgba(20, 95, 207, 0.24);
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media picture {
  position: relative;
  z-index: 0;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.logos-section {
  border-top: none;
  border-bottom: none;
  background: #ffffff;
}

.logo-strip {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 0;
}

.logo-strip img {
  width: min(100%, 150px);
  height: auto;
  justify-self: center;
  opacity: 0.82;
  transition: transform 240ms ease, opacity 220ms ease, filter 240ms ease;
}

.logo-strip img.logo-sroubarna {
  width: min(100%, 190px);
}

.logo-strip img.logo-partner-7852607 {
  width: min(100%, 190px);
}

.logo-strip img.logo-profima {
  width: min(100%, 180px);
}

.logo-strip img.logo-greiner {
  width: min(100%, 180px);
}

.cards {
  display: grid;
  gap: 1.1rem;
}

.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(16, 48, 104, 0.06);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

#pro-koho .card:nth-child(3) img {
  object-position: center 30%;
}

#oblasti .card:nth-child(1) img {
  object-position: center 10%;
}

.card-body {
  padding: 1.1rem 1rem 1.2rem;
}

.card-body p,
.benefit-item p,
.steps p {
  margin: 0;
  color: var(--color-muted);
}

.benefits-grid {
  text-align: center;
}

.benefit-item {
  background: var(--white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.8rem;
  color: var(--color-primary);
}

svg.benefit-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  background: var(--white);
}

.step-index {
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.6rem;
  font-weight: 700;
  background: #eaf2ff;
  color: var(--color-primary);
}

.center-action {
  margin-top: 1.6rem;
  text-align: center;
}

.proof-layout {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
}

.lead-form-box {
  background: linear-gradient(160deg, #1a4fa2, #0f2f6f);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 0.85rem;
  width: 100%;
  max-width: 860px;
}

.lead-form-box h2 {
  text-align: left;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.field-grid {
  display: grid;
  gap: 0.7rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 500;
  font-size: 0.95rem;
}

input,
select,
button {
  font: inherit;
}

input,
select,
textarea {
  min-height: 45px;
  border: 1px solid #c3d2ee;
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
}

textarea {
  min-height: 120px;
  padding: 0.7rem 0.75rem;
  resize: vertical;
}

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

.cf-turnstile {
  margin-top: 0.6rem;
}

.form-note {
  margin: 0.8rem 0 0;
  color: #dbe7ff;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.2rem 0 0;
  color: #ffdd95;
  font-weight: 500;
}

.form-status:empty {
  min-height: 0;
  margin: 0;
}

.form-footer {
  margin-top: 0.9rem;
}

.form-submit {
  display: grid;
  gap: 0.2rem;
}

.form-contact-person {
  margin: 0 0 1rem;
  color: #dbe7ff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.form-contact-person a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.lead-form .btn-accent {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--white);
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  color: var(--color-primary);
  font-size: 1.25rem;
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--color-muted);
}

.cta-banner {
  background: transparent;
  color: var(--white);
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 230px;
  max-width: none;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #173f82;
}

.cta-inner h2,
.cta-inner p {
  color: var(--white);
  text-align: left;
}

.cta-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  padding: 1.25rem 1.4rem;
}

.cta-inner h2 {
  margin-bottom: 0.8rem;
}

.cta-inner p {
  margin: 0 0 1.2rem;
}

.cta-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #173f82 0%, rgba(23, 63, 130, 0.94) 20%, rgba(23, 63, 130, 0.58) 43%, rgba(23, 63, 130, 0) 68%);
  z-index: 2;
}

.cta-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.site-footer {
  background: #0d2146;
  color: #dbe7ff;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
}

:focus-visible {
  outline: 3px solid #f2ad45;
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .logo-strip {
    gap: 0.85rem;
    align-items: stretch;
  }

  .logo-strip a {
    min-height: 96px;
    display: grid;
    place-items: center;
    padding: 0.8rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 48, 104, 0.06);
  }

  .logo-strip picture {
    display: grid;
    place-items: center;
    width: 100%;
  }

  .logo-strip img,
  .logo-strip img.logo-profima,
  .logo-strip img.logo-greiner,
  .logo-strip img.logo-sroubarna,
  .logo-strip img.logo-partner-7852607 {
    width: min(100%, 150px);
    max-height: 64px;
    object-fit: contain;
    opacity: 0.95;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 2rem 0;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: none;
  }

  nav {
    display: block;
    grid-column: auto;
  }

  nav ul {
    display: flex;
    justify-content: center;
    gap: 1.3rem;
    padding: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 0;
    min-height: 500px;
  }

  .hero-copy {
    padding: 1.6rem 1.9rem 1.8rem 0;
    max-width: 620px;
    align-self: center;
  }

  h1 {
    font-size: clamp(1.65rem, 3.6vw, 3.2rem);
  }

  .headline-line {
    white-space: nowrap;
  }

  .hero-media {
    position: absolute;
    inset: 0 0 0 34%;
    height: auto;
    min-height: 500px;
  }

  .hero-media img {
    object-position: 42% center;
  }

  .hero-media::before {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 16%, rgba(255, 255, 255, 0.58) 38%, rgba(255, 255, 255, 0) 68%);
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1.1rem 1.25rem;
  }

  .hero-overlay .brand-logo {
    inline-size: clamp(130px, 18vw, 220px);
  }

  .hero-overlay .btn-primary {
    padding-inline: 1.2rem;
  }

  .logo-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .proof-layout {
    grid-template-columns: minmax(0, 860px);
    align-items: start;
  }

  .cta-inner {
    min-height: 260px;
  }

  .cta-copy {
    padding: 1.6rem 1.9rem;
    width: min(100%, 470px);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 2.4rem 0;
  }

  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2.8rem;
  }

  .hero-copy {
    padding: 2.2rem 2.2rem 2.5rem 0;
  }

  .hero-grid {
    min-height: 590px;
  }

  .hero-media {
    left: 32%;
    min-height: 590px;
  }

  .hero-media img {
    object-position: 38% center;
  }

  nav ul {
    gap: 1.8rem;
  }

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

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  @media (hover: hover) and (pointer: fine) {
    .logo-strip picture {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .logo-strip img {
      filter: saturate(0.92);
      transform: translateY(0) scale(1);
      will-change: transform;
    }

    .logo-strip picture:hover img,
    .logo-strip picture:focus-within img {
      opacity: 1;
      filter: saturate(1.08) drop-shadow(0 10px 20px rgba(17, 62, 142, 0.18));
      transform: translateY(-4px) scale(1.04);
    }
  }
}

@media (min-width: 1280px) {
  .hero-media img {
    object-position: 34% center;
  }
}
