@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ================================
   KELTRA GLOBAL STYLE SYSTEM
   100% WIDTH VERSION
================================ */

:root {
  /* colors */
  --k-bg: #f4f3ef;
  --k-bg-soft: #ebeae6;
  --k-white: #ffffff;

  --k-black: #101010;
  --k-dark: #151515;
  --k-dark-card: #1d1d1d;

  --k-blue: #075cff;
  --k-blue-hover: #004be0;

  --k-red: #ff3b30;
  --k-orange: #f3a000;
  --k-green: #20b26b;

  --k-text: #101010;
  --k-text-soft: rgba(0,0,0,.62);
  --k-text-muted: rgba(0,0,0,.48);

  --k-text-light: #ffffff;
  --k-text-light-soft: rgba(255,255,255,.68);
  --k-text-light-muted: rgba(255,255,255,.48);

  --k-line: rgba(0,0,0,.13);
  --k-line-strong: rgba(0,0,0,.22);
  --k-line-light: rgba(255,255,255,.12);

  /* layout */
  --k-container: 100%;
  --k-container-max: none;
  --k-page-padding: 48px;
  --k-page-padding-mobile: 16px;

  --k-section-padding: 96px;
  --k-section-padding-mobile: 64px;

  /* radius */
  --k-radius: 0px;
  --k-radius-card: 0px;

  /* typography */
  --k-font: 'Inter', Arial, sans-serif;
}

/* ---------- GLOBAL RESET ---------- */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--k-bg);
  color: var(--k-text);
  font-family: var(--k-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.t-rec {
  background-color: transparent;
}

/* ---------- MAIN WRAPPERS ---------- */

.k-section {
  width: 100%;
  padding: var(--k-section-padding) 0;
  background: var(--k-bg);
  color: var(--k-text);
  font-family: var(--k-font);
  position: relative;
  overflow: hidden;
}

.k-section.dark {
  background: var(--k-black);
  color: var(--k-text-light);
}

.k-section.blue {
  background: var(--k-blue);
  color: var(--k-text-light);
}

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

.k-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--k-page-padding);
  padding-right: var(--k-page-padding);
}

/* ---------- TYPOGRAPHY ---------- */

.k-topline {
  margin: 0 0 18px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--k-text-muted);
}

.dark .k-topline,
.blue .k-topline {
  color: var(--k-text-light-muted);
}

.k-title {
  margin: 0;
  font-size: clamp(44px, 6vw, 88px);
  line-height: .88;
  font-weight: 900;
  letter-spacing: -.08em;
  text-transform: uppercase;
}

.k-title.small {
  font-size: clamp(38px, 4.8vw, 64px);
}

.k-title.medium {
  font-size: clamp(42px, 5.5vw, 76px);
}

.k-subtitle {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.k-h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.055em;
}

.k-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.48;
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--k-text-soft);
}

.dark .k-lead,
.blue .k-lead {
  color: var(--k-text-light-soft);
}

.k-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -.015em;
  color: var(--k-text-soft);
}

.dark .k-text,
.blue .k-text {
  color: var(--k-text-light-soft);
}

.k-small {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--k-text-muted);
}

.dark .k-small,
.blue .k-small {
  color: var(--k-text-light-muted);
}

.k-accent {
  color: var(--k-blue);
}

.k-red {
  color: var(--k-red);
}

.k-orange {
  color: var(--k-orange);
}

.k-white {
  color: #fff;
}

/* ---------- GRIDS ---------- */

.k-grid-2 {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.k-grid-2.equal {
  grid-template-columns: 1fr 1fr;
}

.k-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

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

.k-gap-0 {
  gap: 0;
}

.k-gap-16 {
  gap: 16px;
}

.k-gap-24 {
  gap: 24px;
}

.k-gap-32 {
  gap: 32px;
}

.k-gap-48 {
  gap: 48px;
}

.k-align-end {
  align-items: end;
}

.k-align-center {
  align-items: center;
}

/* ---------- CARDS ---------- */

.k-card {
  background: rgba(255,255,255,.64);
  border: 1px solid var(--k-line);
  min-height: 160px;
  padding: 28px;
  position: relative;
  color: var(--k-text);
}

.k-card.white {
  background: #fff;
}

.k-card.transparent {
  background: transparent;
}

.k-card.dark-card {
  background: var(--k-dark-card);
  border-color: var(--k-line-light);
  color: #fff;
}

.dark .k-card {
  background: rgba(255,255,255,.035);
  border-color: var(--k-line-light);
  color: #fff;
}

.blue .k-card {
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.32);
  color: var(--k-text);
}

.k-card-title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.045em;
}

.k-card-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--k-text-soft);
  letter-spacing: -.015em;
}

.dark .k-card-text {
  color: var(--k-text-light-soft);
}

.k-num {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(0,0,0,.07);
  margin-bottom: 36px;
}

.dark .k-num {
  color: rgba(255,255,255,.08);
}

.k-blue-dot {
  width: 8px;
  height: 8px;
  background: var(--k-blue);
  display: block;
  margin-bottom: 18px;
}

.k-divider {
  height: 1px;
  width: 100%;
  background: var(--k-line);
  margin: 18px 0;
}

.dark .k-divider {
  background: var(--k-line-light);
}

/* ---------- BUTTONS ---------- */

.k-btn,
.t-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 54px;
  padding: 0 30px;

  border: 0;
  border-radius: var(--k-radius);
  background: var(--k-black);
  color: #fff !important;

  font-family: var(--k-font);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;

  cursor: pointer;
  transition: transform .22s ease, background .22s ease, opacity .22s ease;
}

.k-btn:hover,
.t-submit:hover {
  transform: translateY(-2px);
  opacity: .94;
}

.k-btn.blue {
  background: var(--k-blue);
  color: #fff !important;
}

.k-btn.blue:hover {
  background: var(--k-blue-hover);
}

.k-btn.white {
  background: #fff;
  color: var(--k-black) !important;
}

.k-btn.outline {
  background: transparent;
  color: var(--k-black) !important;
  border: 1px solid var(--k-line-strong);
}

.dark .k-btn.outline {
  color: #fff !important;
  border-color: var(--k-line-light);
}

.k-btn.full {
  width: 100%;
}

.k-btn.large {
  min-height: 64px;
  padding: 0 38px;
  font-size: 15px;
}

/* ---------- FORMS ---------- */

.k-form {
  background: #fff;
  border: 1px solid var(--k-line);
  padding: 34px;
}

.k-input,
.k-textarea,
.k-select,
.t-input,
.t-textarea,
.t-select {
  width: 100%;
  border: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.18) !important;
  border-radius: 0 !important;
  background: transparent !important;

  padding: 16px 0 !important;

  font-family: var(--k-font) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: var(--k-text) !important;

  outline: none !important;
  box-shadow: none !important;
}

.k-textarea,
.t-textarea {
  min-height: 96px;
  resize: vertical;
}

.k-input::placeholder,
.k-textarea::placeholder,
.t-input::placeholder,
.t-textarea::placeholder {
  color: rgba(0,0,0,.48) !important;
}

.blue .k-form {
  background: #fff;
  color: var(--k-text);
}

.blue .k-input,
.blue .k-textarea {
  color: var(--k-text) !important;
  border-bottom-color: rgba(0,0,0,.18) !important;
}

/* ---------- HEADER GLOBAL ---------- */

.k-header {
  width: 100%;
  height: 76px;
  background: var(--k-bg);
  border-bottom: 1px solid var(--k-line);
  position: sticky;
  top: 0;
  z-index: 9999;
  font-family: var(--k-font);
}

.k-header__inner {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding-left: var(--k-page-padding);
  padding-right: var(--k-page-padding);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.k-header__brand {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: var(--k-black) !important;
}

.k-header__logo {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
}

.k-header__label {
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--k-text-muted);
}

.k-header__nav {
  display: flex;
  align-items: center;
  gap: 52px;
  margin-left: auto;
}

.k-header__nav a {
  color: var(--k-text-soft) !important;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .18em;
  transition: color .2s ease;
}

.k-header__nav a:hover {
  color: var(--k-blue) !important;
}

.k-header__cta {
  height: 48px;
  padding: 0 30px;
  background: var(--k-blue);
  color: #fff !important;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 16px;

  font-size: 13px;
  line-height: 1;
  letter-spacing: .12em;
  margin-left: 28px;

  transition: transform .2s ease, background .2s ease;
}

.k-header__cta:hover {
  background: var(--k-blue-hover);
  transform: translateY(-1px);
}

/* ---------- TABLE / ROWS ---------- */

.k-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--k-line);
  font-size: 13px;
  color: var(--k-text-soft);
}

.k-row strong {
  color: var(--k-blue);
  font-size: 18px;
  text-align: right;
}

/* ---------- FOOTER ---------- */

.k-footer {
  width: 100%;
  padding: 24px 0;
  background: var(--k-black);
  color: var(--k-text-light-muted);
  font-family: var(--k-font);
}

.k-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--k-page-padding);
  padding-right: var(--k-page-padding);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  font-size: 11px;
}

.k-footer a {
  color: var(--k-text-light-muted) !important;
  text-decoration: none;
}

/* ---------- UTILS ---------- */

.k-mt-16 { margin-top: 16px; }
.k-mt-24 { margin-top: 24px; }
.k-mt-32 { margin-top: 32px; }
.k-mt-42 { margin-top: 42px; }
.k-mt-52 { margin-top: 52px; }
.k-mt-64 { margin-top: 64px; }

.k-mb-16 { margin-bottom: 16px; }
.k-mb-24 { margin-bottom: 24px; }
.k-mb-32 { margin-bottom: 32px; }
.k-mb-42 { margin-bottom: 42px; }
.k-mb-52 { margin-bottom: 52px; }
.k-mb-64 { margin-bottom: 64px; }

.k-max-420 { max-width: 420px; }
.k-max-520 { max-width: 520px; }
.k-max-620 { max-width: 620px; }

.k-uppercase {
  text-transform: uppercase;
}

.k-center {
  text-align: center;
}

.k-hidden-desktop {
  display: none;
}

/* ---------- TILDA COMPATIBILITY ---------- */

.t-container,
.t-container_100,
.t-container_10,
.t-container_8 {
  max-width: none !important;
  width: 100% !important;
}

.t-btn {
  border-radius: 0 !important;
  font-family: var(--k-font) !important;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1200px) {
  :root {
    --k-page-padding: 32px;
  }

  .k-header__nav {
    gap: 34px;
  }

  .k-header__nav a {
    font-size: 12px;
    letter-spacing: .14em;
  }
}

@media (max-width: 980px) {
  :root {
    --k-page-padding: var(--k-page-padding-mobile);
    --k-section-padding: var(--k-section-padding-mobile);
  }

  .k-section {
    padding: var(--k-section-padding-mobile) 0;
  }

  .k-container,
  .k-header__inner,
  .k-footer__inner {
    width: 100%;
    max-width: none;
    padding-left: var(--k-page-padding-mobile);
    padding-right: var(--k-page-padding-mobile);
  }

  .k-grid-2,
  .k-grid-2.equal,
  .k-grid-3,
  .k-grid-4 {
    grid-template-columns: 1fr;
  }

  .k-title {
    font-size: clamp(38px, 13vw, 58px);
    letter-spacing: -.075em;
  }

  .k-title.small {
    font-size: clamp(34px, 11vw, 48px);
  }

  .k-subtitle {
    font-size: 28px;
  }

  .k-lead {
    font-size: 14px;
  }

  .k-card {
    padding: 22px;
  }

  .k-num {
    font-size: 38px;
    margin-bottom: 28px;
  }

  .k-header {
    height: 68px;
  }

  .k-header__label,
  .k-header__nav {
    display: none;
  }

  .k-header__cta {
    height: 42px;
    padding: 0 18px;
    margin-left: 0;
    font-size: 11px;
    letter-spacing: .08em;
  }

  .k-header__logo {
    font-size: 22px;
  }

  .k-form {
    padding: 24px;
  }

  .k-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .k-hidden-mobile {
    display: none;
  }

  .k-hidden-desktop {
    display: block;
  }
}

@media (max-width: 520px) {
  .k-section {
    padding: 56px 0;
  }

  .k-title {
    font-size: 38px;
  }

  .k-title.small {
    font-size: 34px;
  }

  .k-card {
    min-height: auto;
  }

  .k-btn {
    width: 100%;
  }

  .k-header__cta {
    padding: 0 14px;
  }
}

/* ================================
   FIX: FULL WIDTH FOR ALL KELTRA BLOCKS
   вставить в самый конец CSS
================================ */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.k-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.k-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
}

/* чтобы Tilda не сжимала HTML-блоки */
.t-rec,
.t396,
.t396__artboard,
.t-container,
.t-container_100,
.t-container_10,
.t-container_8,
.t-width,
.t-col {
  max-width: none !important;
}

/* если HTML вставлен внутрь стандартного контейнера Tilda */
.t123,
.t123 .t-container,
.t123 .t-width,
.t123 .t-col {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* уменьшаем вертикальные отступы, чтобы блоки не висели в воздухе */
.k-section {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

/* для мобильной версии */
@media (max-width: 980px) {
  .k-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .k-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}   

/* ================================
   KELTRA MOTION SYSTEM
   лёгкие брендовые анимации
================================ */

@keyframes kFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kFadeLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes kPulseBlue {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(7,92,255,.0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(7,92,255,.13);
  }
}

@keyframes kScanLine {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  20% {
    opacity: .8;
  }
  to {
    transform: translateY(180%);
    opacity: 0;
  }
}

@keyframes kSoftGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(7,92,255,0);
  }
  50% {
    box-shadow: 0 0 36px rgba(7,92,255,.22);
  }
}

/* Базовое появление секций */
.k-section .k-topline,
.k-section .k-title,
.k-section .k-lead,
.k-section .k-card,
.k-section .k-btn,
.k-section form {
  animation: kFadeUp .7s ease both;
}

/* Задержки */
.k-section .k-topline {
  animation-delay: .04s;
}

.k-section .k-title {
  animation-delay: .1s;
}

.k-section .k-lead {
  animation-delay: .18s;
}

.k-section .k-card:nth-child(1) { animation-delay: .12s; }
.k-section .k-card:nth-child(2) { animation-delay: .20s; }
.k-section .k-card:nth-child(3) { animation-delay: .28s; }
.k-section .k-card:nth-child(4) { animation-delay: .36s; }
.k-section .k-card:nth-child(5) { animation-delay: .44s; }
.k-section .k-card:nth-child(6) { animation-delay: .52s; }

/* Карточки */
.k-card {
  transition:
    transform .28s ease,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease;
}

.k-card:hover {
  transform: translateY(-4px);
  border-color: rgba(7,92,255,.55);
}

/* Синий маркер */
.k-blue-dot,
.k-topline::before {
  animation: kPulseBlue 2.6s ease-in-out infinite;
}

/* Кнопки */
.k-btn,
.k-header-clean__cta,
.keltra-header-basic__cta,
.keltra-footer-final a {
  transition:
    transform .22s ease,
    background .22s ease,
    color .22s ease,
    opacity .22s ease;
}

.k-btn:hover,
.k-header-clean__cta:hover,
.keltra-header-basic__cta:hover {
  transform: translateY(-2px);
}

/* Стрелка в кнопке */
.k-btn span:last-child,
.k-header-clean__cta span,
.keltra-header-basic__cta span {
  display: inline-block;
  transition: transform .22s ease;
}

.k-btn:hover span:last-child,
.k-header-clean__cta:hover span,
.keltra-header-basic__cta:hover span {
  transform: translateX(6px);
}

/* Карточка со сканирующей линией */
.k-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 36px;
  background: linear-gradient(
    to bottom,
    rgba(7,92,255,0),
    rgba(7,92,255,.08),
    rgba(7,92,255,0)
  );
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.k-card:hover::after {
  animation: kScanLine 1.4s ease;
}

/* Тёмные карточки */
.k-section.dark .k-card:hover {
  border-color: rgba(7,92,255,.75);
  background: rgba(255,255,255,.055);
}

/* Синяя карточка формата, если есть inline background */
.k-card[style*="background:#075cff"],
.k-card[style*="background: #075cff"] {
  animation: kSoftGlow 4s ease-in-out infinite;
}

/* Числа */
.k-num,
.k-row strong,
.k-orange,
.k-accent {
  transition: transform .25s ease, color .25s ease;
}

.k-card:hover .k-num,
.k-card:hover .k-row strong {
  transform: translateX(4px);
}

/* Уважение к пользователям, у кого отключены анимации */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}