/* OOSTAVKA · K3 + C7 · homepage only. Shared subpage styles stay unchanged. */
.k3-layout {
  --page-gutter: clamp(24px, 4.2vw, 96px);
  --section-space: clamp(64px, 6.5vw, 116px);
  --peach: #f9e2d6;
  background: var(--cream);
}
.k3-layout .site-shell { width: 100%; max-width: none; margin: 0; }
.k3-layout .k3-sr-only,
.k3-layout .feature-group .group-heading {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.k3-layout .site-header { padding: 20px var(--page-gutter); gap: 28px; }
.k3-layout .site-header .brand img { width: 166px; }
.k3-layout .site-header nav { gap: clamp(14px, 1.45vw, 28px); }
.k3-layout .site-header nav a { font-size: 13px; }

/* An open, centered introduction with a distinct gap between every level. */
.k3-layout .hero {
  position: relative; margin: 0; padding: 58px var(--page-gutter) 30px;
  border-radius: 0; background: var(--cream); text-align: center;
}
.k3-layout .hero-main { display: flex; flex-direction: column; gap: 36px; padding: 0; }
.k3-layout .hero-copy { width: 100%; }
.k3-layout .hero-badge {
  display: inline-flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 5px 12px; padding: 10px 20px; border-radius: 40px;
  background: var(--peach); color: #9d3027; font-size: 13px; line-height: 1.5;
}
.k3-layout .hero-badge strong { font-size: 11px; letter-spacing: .65px; }
.k3-layout .hero h1 {
  margin: 32px 0 0; font-size: clamp(58px, 6.2vw, 96px); line-height: 1.06;
  letter-spacing: -.055em; font-weight: 800;
}
.k3-layout .hero-tagline {
  margin-top: 18px; font-size: clamp(25px, 2.5vw, 38px);
  line-height: 1.24; letter-spacing: -.035em; font-weight: 700;
}
.k3-layout .hero-tagline em { color: var(--red); }
.k3-layout .hero-tagline > span,
.k3-layout .hero-tagline > em { display: inline-block; white-space: nowrap; }
.k3-layout .hero-intro { font-size: 17px; line-height: 1.75; margin: 26px 0 0; color: var(--muted); }
.k3-layout .hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px 26px; margin-top: 30px; }
.k3-layout .hero-actions > p { text-align: left; font-size: 12px; line-height: 1.65; color: var(--muted); }
.k3-layout .hero-actions .button,
.k3-layout .offer-action .button { min-height: 56px; padding: 16px 23px; gap: 26px; font-size: 14px; border-radius: 12px; color: var(--ink); }
.k3-layout .animation-card {
  position: relative; width: min(100%, 1000px); max-width: none; padding: 0;
  margin: 0; background: transparent; transform: none; border-radius: 0;
  box-shadow: none; overflow: visible;
}
.k3-layout .animation-window { width: 100%; margin: 0; aspect-ratio: 800 / 320; overflow: hidden; }
.k3-layout .animation-card img { width: 100%; height: 100%; object-fit: cover; transform: none; }
.k3-layout .animation-toggle {
  position: relative; min-height: 44px; font-size: 11px; padding: 9px 16px;
  margin: 12px 0 0 auto; background: transparent; border: 1px solid var(--line);
  border-radius: 28px; text-decoration: none;
}
.k3-layout .hero-down {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 20px auto 0;
  border: 1px solid var(--line); border-radius: 50%; text-decoration: none;
  background: var(--paper);
}
.k3-layout .hero-down:hover { background: var(--peach); }

/* One continuous line; nine items alternate globally across all three groups. */
.k3-layout .features {
  padding: var(--section-space) var(--page-gutter); border-top: 1px solid var(--line);
  /* Start just after the divider; a positive gap exposes the previous controls. */
  scroll-margin-top: -1px;
}
.k3-layout .features-intro { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 72px; }
.k3-layout .section-kicker { font-size: 11px; letter-spacing: 1.4px; font-weight: 700; line-height: 1.6; margin-bottom: 16px; }
.k3-layout .features-intro h2,
.k3-layout .gallery-heading h2,
.k3-layout .formal-heading h2 { font-size: clamp(32px, 3.25vw, 48px); line-height: 1.14; letter-spacing: -.045em; }
.k3-layout .features-intro em { color: var(--red); }
.k3-layout .feature-legend { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; }
.k3-layout .feature-legend li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.k3-layout .feature-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.k3-layout .feature-legend .legend-route::before { background: #e6ad53; }
.k3-layout .feature-legend .legend-memories::before { background: #86a7c0; }
.k3-layout .feature-timeline { position: relative; padding-bottom: 2px; }
.k3-layout .feature-timeline::before { content: ""; position: absolute; top: 10px; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.k3-layout .feature-group,
.k3-layout .feature-group + .feature-group { margin: 0; }
.k3-layout .feature-grid { display: block; }
.k3-layout .feature-group .feature {
  position: relative; display: flow-root; width: 50%; max-width: none;
  margin: 0; padding: 0 56px 60px 0; text-align: right;
}
.k3-layout .feature-group .feature.timeline-right { margin-left: 50%; padding: 0 0 60px 56px; text-align: left; }
.k3-layout .feature::before {
  content: ""; position: absolute; right: -13px; top: 4px; width: 26px; height: 26px;
  border: 1px solid var(--rider-color); border-radius: 50%; background: var(--cream); box-sizing: border-box;
}
.k3-layout .feature::after {
  content: ""; position: absolute; right: -7px; top: 10px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--rider-color);
}
.k3-layout .feature.timeline-right::before { right: auto; left: -13px; }
.k3-layout .feature.timeline-right::after { right: auto; left: -7px; }
.k3-layout .feature .feature-name { margin-bottom: 11px; font-size: 12px; line-height: 1.6; letter-spacing: .2px; }
.k3-layout .feature h3 { font-size: clamp(27px, 2.45vw, 38px); line-height: 1.16; letter-spacing: -.035em; margin-bottom: 16px; }
.k3-layout .feature > p:not(.feature-name) { max-width: 440px; margin-left: auto; font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.k3-layout .feature.timeline-right > p:not(.feature-name) { margin-left: 0; }
.k3-layout .feature .feature-cta {
  min-height: 48px; min-width: 150px; padding: 12px 20px; margin-top: 18px; gap: 20px;
  justify-content: space-between; color: var(--tone); background: transparent;
  border: 1px solid #c7bfb3; border-radius: 12px; font-size: 14px; font-weight: 700;
  text-decoration: none; box-shadow: none; transition: border-color .16s;
}
.k3-layout .feature .feature-cta:hover { background: transparent; border-color: #9f9587; text-decoration: none; filter: none; }
.k3-layout .feature .feature-cta:focus-visible { outline: 2px solid #625b52; outline-offset: 5px; }
.k3-layout .feature .feature-cta-arrow { transition: transform .16s; }
.k3-layout .feature .feature-cta:hover .feature-cta-arrow { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .k3-layout .feature .feature-cta,
  .k3-layout .feature .feature-cta-arrow { transition: none; }
}
.k3-layout .memories .feature:last-child { padding-bottom: 12px; }

/* Larger real screenshots retain the existing full-screen gallery. */
.k3-layout .app-gallery { padding: var(--section-space) 0; background: #efe8dd; border-top: 1px solid var(--line); }
.k3-layout .gallery-heading { padding: 0 var(--page-gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.k3-layout .gallery-heading h2 { margin-bottom: 16px; }
.k3-layout .gallery-heading > div > p:last-child { font-size: 15px; line-height: 1.7; color: var(--muted); }
.k3-layout .gallery-track { gap: 28px; padding: 8px var(--page-gutter) 12px; scroll-padding-inline: var(--page-gutter); }
.k3-layout .gallery-item { flex: 0 0 clamp(220px, 23vw, 320px); border-radius: 20px; }
.k3-layout .gallery-item img { border-radius: 20px; box-shadow: 0 8px 24px #242b2a09; }
.k3-layout .gallery-item > span { font-size: 13px; margin-top: 18px; }
.k3-layout .gallery-prev { left: max(12px, calc(var(--page-gutter) - 22px)); }
.k3-layout .gallery-next { right: max(12px, calc(var(--page-gutter) - 22px)); }

/* Pricing is a calm, edge-to-edge band rather than another boxed card. */
.k3-layout .offer {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px 64px; align-items: center;
  padding: 64px var(--page-gutter); margin: 0; background: var(--peach); border: 0;
}
.k3-layout .offer-intro { grid-row: 1 / span 2; }
.k3-layout .offer .decision { font-size: clamp(29px, 2.6vw, 40px); line-height: 1.18; letter-spacing: -.035em; margin: 0 0 24px; max-width: 500px; }
.k3-layout .trial-benefits { font-size: 14px; line-height: 1.8; max-width: 540px; color: var(--muted); }
.k3-layout .free-month { gap: 10px; }
.k3-layout .free-month > span { font-size: 24px; letter-spacing: -.5px; }
.k3-layout .free-month strong { color: var(--red); font-size: 48px; line-height: 1.15; letter-spacing: -2px; }
.k3-layout .plans { margin-top: 16px; font-size: 16px; gap: 6px 10px; }
.k3-layout .offer-action { grid-column: 2; }

.k3-layout .formal { border: 0; padding: var(--section-space) var(--page-gutter); }
.k3-layout .formal-heading { margin-bottom: 52px; }
.k3-layout .documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.k3-layout .document-group { min-width: 0; }
.k3-layout .document-group h3 { font-size: 13px; font-weight: 700; margin-bottom: 20px; color: var(--muted); }
.k3-layout .document-group > details { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.k3-layout .document-group > details:last-child { border-bottom: 1px solid var(--line); }
.k3-layout .document-group > details > summary { min-height: 74px; padding: 18px 0; gap: 20px; font-size: 15px; line-height: 1.45; }
.k3-layout .document-group > details > summary::after { color: var(--muted); font-size: 25px; }
.k3-layout .details-body { padding: 0 0 26px; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.k3-layout .details-body .document-download { display: block; margin-left: 0; }

.k3-layout .site-footer {
  display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 64px;
  background: #efe8dd; border-top: 1px solid var(--line); border-radius: 0;
  margin: 0; padding: 52px var(--page-gutter) 24px;
}
.k3-layout .footer-top { display: block; margin: 0; padding: 0; border: 0; }
.k3-layout .footer-brand { display: inline-block; padding: 8px 0; }
/* The source PNG has 139 empty pixels before the mark in a 1800px canvas. */
.k3-layout .footer-brand img { width: 174px; height: auto; mix-blend-mode: darken; transform: translateX(-7.722222%); }
.k3-layout .footer-top p { font-size: 14px; margin-top: 8px; }
.k3-layout .footer-dots { margin-top: 24px; gap: 8px; }
.k3-layout .footer-dots i { width: 10px; height: 10px; background: var(--coral); }
.k3-layout .footer-dots i:nth-child(2) { background: #e6ad53; }
.k3-layout .footer-dots i:nth-child(3) { background: #86a7c0; }
.k3-layout .footer-grid { gap: 24px; }
.k3-layout .footer-grid h2 { font-size: 13px; margin-bottom: 14px; }
.k3-layout .footer-grid a { display: flex; align-items: center; min-height: 40px; font-size: 13px; text-decoration: none; padding: 4px 0; }
.k3-layout .footer-grid a:hover { text-decoration: underline; }
.k3-layout .footer-legal { grid-column: 1 / -1; margin-top: 34px; gap: 8px 24px; }
.k3-layout .footer-legal a { display: flex; align-items: center; min-height: 40px; font-size: 12px; }
.k3-layout .footer-bottom { grid-column: 1 / -1; border-color: var(--line); margin-top: 20px; padding-top: 20px; font-size: 11px; color: var(--muted); }

@media (min-width: 1700px) {
  .k3-layout .offer { grid-template-columns: 1.3fr 1fr auto; gap: 48px; }
  .k3-layout .offer-intro { grid-row: auto; }
  .k3-layout .offer-action { grid-column: auto; }
}
@media (max-width: 1050px) {
  .k3-layout .site-header { padding: 16px var(--page-gutter); gap: 16px; }
  .k3-layout .site-header nav { gap: 0; }
  .k3-layout .site-header nav a { font-size: 15px; }
  .k3-layout .gallery-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .k3-layout .documents { gap: 36px; }
  .k3-layout .site-footer { gap: 36px; }
  .k3-layout .offer { gap: 28px 40px; }
}
@media (max-width: 760px) {
  .k3-layout .hero { padding-top: 40px; }
  .k3-layout .hero-main { gap: 26px; }
  .k3-layout .hero h1 { font-size: clamp(49px, 9vw, 65px); margin-top: 30px; }
  .k3-layout .hero-tagline { font-size: clamp(23px, 4.5vw, 29px); margin-top: 18px; }
  .k3-layout .hero-intro { margin-top: 24px; font-size: 15px; }
  .k3-layout .hero-badge { font-size: 11px; gap: 3px 9px; padding: 10px 14px; }
  .k3-layout .hero-badge strong { font-size: 10px; }
  .k3-layout .hero-actions { gap: 16px; margin-top: 26px; }
  .k3-layout .hero-actions .button { font-size: 13px; padding: 14px 19px; min-height: 54px; }
  .k3-layout .animation-toggle { margin-top: 16px; font-size: 10px; padding: 8px 12px; }
  .k3-layout .hero-down { margin-top: 16px; }
  .k3-layout .features-intro { flex-direction: column; align-items: flex-start; gap: 28px; margin-bottom: 48px; }
  .k3-layout .features-intro h2 { font-size: 34px; }
  .k3-layout .feature-timeline { padding-left: 39px; }
  .k3-layout .feature-timeline::before { left: 10px; }
  .k3-layout .feature-group .feature,
  .k3-layout .feature-group .feature.timeline-right {
    width: 100%; margin: 0; padding: 0 0 44px !important; text-align: left;
  }
  .k3-layout .feature::before,
  .k3-layout .feature.timeline-right::before { left: -42px; right: auto; }
  .k3-layout .feature::after,
  .k3-layout .feature.timeline-right::after { left: -36px; right: auto; }
  .k3-layout .feature h3 { font-size: clamp(25px, 4.7vw, 32px); }
  .k3-layout .feature > p:not(.feature-name) { font-size: 14px; max-width: none; margin-left: 0; }
  .k3-layout .memories .feature:last-child { padding-bottom: 8px !important; }
  .k3-layout .gallery-item { flex-basis: clamp(210px, 59vw, 300px); }
  .k3-layout .gallery-track { gap: 22px; }
  .k3-layout .gallery-heading { margin-bottom: 28px; }
  .k3-layout .gallery-heading h2 { font-size: 34px; }
  .k3-layout .gallery-heading > div > p:last-child { font-size: 14px; }
  .k3-layout .offer { grid-template-columns: 1fr; gap: 30px; padding: 52px var(--page-gutter); }
  .k3-layout .offer-intro { grid-row: auto; }
  .k3-layout .offer-action { grid-column: auto; }
  .k3-layout .offer .decision { font-size: 33px; max-width: 420px; margin-bottom: 20px; }
  .k3-layout .free-month > span { font-size: 21px; }
  .k3-layout .free-month strong { font-size: 44px; }
  .k3-layout .plans { font-size: 15px; gap: 5px 8px; }
  .k3-layout .formal-heading { margin-bottom: 36px; }
  .k3-layout .formal-heading h2 { font-size: 34px; max-width: 400px; }
  .k3-layout .documents { grid-template-columns: 1fr; gap: 40px; }
  .k3-layout .document-group > details > summary { min-height: 70px; font-size: 14px; }
  .k3-layout .document-group h3 { margin-bottom: 18px; }
  .k3-layout .site-footer { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .k3-layout .footer-legal { margin: 0; gap: 4px 22px; }
  .k3-layout .footer-bottom { margin: 0; }
  .k3-layout .footer-grid a { font-size: 12px; }
  .k3-layout .footer-grid h2 { font-size: 12px; }
}
@media (max-width: 420px) {
  .k3-layout { --page-gutter: 22px; }
  .k3-layout .site-header .brand img { width: 146px; }
  .k3-layout .hero-badge { flex-direction: column; padding-inline: 19px; }
  .k3-layout .hero-actions { flex-direction: column; gap: 14px; }
  .k3-layout .hero-actions > p { text-align: center; }
  .k3-layout .hero-actions > p br { display: none; }
  .k3-layout .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .k3-layout .footer-contact, .k3-layout .footer-help { display: block; }
}
@media print {
  .k3-layout .site-header, .k3-layout .site-footer, .k3-layout .hero-down,
  .k3-layout .animation-toggle { display: none; }
  .k3-layout .feature-group .feature { break-inside: avoid; }
}

/* 1.0.1: the three badge claims share one row with bullet separators. */
.k3-layout .hero-badge { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
.k3-layout .hero-badge > strong,
.k3-layout .hero-badge > span { white-space: nowrap; }
.k3-layout .hero-badge .badge-separator { font-size: 10px; }
@media (max-width: 420px) {
  .k3-layout .hero-badge { gap: 6px; padding-inline: 12px; }
}

/* Desktop only. Keep the existing mobile font sizes, spacing and animation. */
@media (min-width: 761px) {
  .k3-layout .hero {
    /* Extend only the space below the controls to the viewport edge. */
    min-height: max(0px, calc(100svh - var(--hero-offset, 85px)));
    padding: 32px var(--page-gutter) 18px;
  }
  .k3-layout .hero-main { gap: 20px; }
  .k3-layout .hero h1 { margin-top: 24px; font-size: clamp(60px, 5.6vw, 78px); }
  .k3-layout .hero-tagline { margin-top: 14px; font-size: clamp(25px, 2.2vw, 32px); }
  .k3-layout .hero-intro { font-size: 16px; line-height: 1.65; margin-top: 20px; }
  .k3-layout .hero-actions { margin-top: 24px; }
  .k3-layout .hero-actions .button { min-height: 52px; padding-block: 14px; }
  .k3-layout .animation-card {
    position: static;
    width: min(100%, 900px, var(--hero-animation-width, max(260px, calc((100svh - 570px) * 2.5))));
  }
  .k3-layout .animation-toggle { position: absolute; right: var(--page-gutter); bottom: 18px; margin: 0; }
  .k3-layout .hero-down { margin-top: 16px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .k3-layout .hero { padding-top: 22px; }
  .k3-layout .hero-main { gap: 14px; }
  .k3-layout .hero h1 { margin-top: 18px; font-size: clamp(54px, 5vw, 64px); }
  .k3-layout .hero-tagline { margin-top: 10px; font-size: 28px; }
  .k3-layout .hero-intro { margin-top: 16px; font-size: 15px; line-height: 1.55; }
  .k3-layout .hero-actions { margin-top: 18px; }
  .k3-layout .hero-actions .button { min-height: 48px; padding-block: 12px; }
}

/* 1.0.5: one control row on every screen, with the arrow exactly in the middle. */
.k3-layout .hero-controls {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center; width: 100%; min-height: 44px; margin-top: 16px; flex-shrink: 0;
}
.k3-layout .hero-controls .hero-down { grid-column: 2; grid-row: 1; margin: 0; }
.k3-layout .hero-controls .animation-toggle {
  grid-column: 3; grid-row: 1; justify-self: end; position: static; margin: 0;
  min-height: 44px; white-space: nowrap;
}
@media (max-width: 760px) {
  .k3-layout .hero {
    display: flex; flex-direction: column;
    /* Leave the separator inside the viewport, clear of the phone's bottom bar. */
    min-height: max(0px, calc(100svh - var(--hero-offset, 79px) - 20px));
    padding-top: clamp(24px, 4.3svh, 44px);
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  .k3-layout .hero-main { flex: 1; gap: clamp(16px, 3svh, 28px); width: 100%; }
  .k3-layout .hero-copy { flex-shrink: 0; }
  .k3-layout .hero h1 {
    font-size: clamp(42px, min(14vw, 6.8svh), 60px);
    margin-top: clamp(20px, 3.5svh, 32px);
  }
  .k3-layout .hero-tagline { font-size: clamp(23px, 3svh, 28px); margin-top: clamp(14px, 2.3svh, 22px); }
  .k3-layout .hero-intro { font-size: clamp(14px, 1.8svh, 16px); margin-top: clamp(18px, 3svh, 28px); }
  .k3-layout .hero-actions { margin-top: clamp(20px, 3svh, 30px); }
  .k3-layout .animation-card {
    flex-shrink: 0; align-self: center;
    width: min(calc(100% + 24px), var(--hero-animation-width, 100vw));
    max-width: calc(100vw - 20px); margin-block: auto;
  }
  .k3-layout .animation-window { aspect-ratio: 800 / 360; }
  .k3-layout .hero-controls .animation-toggle { font-size: 10px; padding: 8px 10px; }
}
@media (max-width: 360px) {
  .k3-layout .hero-badge { font-size: 10px; gap: 5px; padding-inline: 10px; }
  .k3-layout .hero-badge strong { font-size: 9px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .k3-layout .hero { padding-top: 20px; }
  .k3-layout .hero-main { gap: 16px; }
  .k3-layout .hero h1 { margin-top: 16px; }
  .k3-layout .hero-tagline { margin-top: 12px; }
  .k3-layout .hero-intro { margin-top: 16px; line-height: 1.6; }
  .k3-layout .hero-actions { margin-top: 18px; gap: 10px; }
  .k3-layout .hero-actions .button { min-height: 50px; padding-block: 12px; }
  .k3-layout .animation-window { aspect-ratio: 800 / 320; }
  .k3-layout .hero-controls { margin-top: 12px; }
}

/* Footer icons inherit the brand colours and use local inline SVG only. */
.k3-layout .footer-socials {
  display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100% + 10px);
  margin: 18px 0 0 -10px; padding: 0;
}
.k3-layout .footer-socials .social-link {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 0;
  text-decoration: none; transition: color .16s;
}
.k3-layout .footer-socials svg { display: block; width: 24px; height: 24px; }
.k3-layout .footer-socials a:hover { color: var(--coral); }
.k3-layout .footer-socials a:focus-visible { color: var(--coral); outline: 2px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .k3-layout .footer-socials .social-link { transition: none; } }
