/* ==========================================================================
   K8 WP Theme — основная таблица стилей
   Дизайн-токены из оригинала Tilda (ЖК «Кольская 8»)
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-Light.woff2') format('woff2'),
       url('../fonts/TildaSans-Light.woff') format('woff');
}
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-Regular.woff2') format('woff2'),
       url('../fonts/TildaSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-Medium.woff2') format('woff2'),
       url('../fonts/TildaSans-Medium.woff') format('woff');
}
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-Semibold.woff2') format('woff2'),
       url('../fonts/TildaSans-Semibold.woff') format('woff');
}
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-Bold.woff2') format('woff2'),
       url('../fonts/TildaSans-Bold.woff') format('woff');
}
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-Extrabold.woff2') format('woff2'),
       url('../fonts/TildaSans-Extrabold.woff') format('woff');
}
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-Black.woff2') format('woff2'),
       url('../fonts/TildaSans-Black.woff') format('woff');
}

/* 2. Tokens -------------------------------------------------------------- */
:root {
  --k8-black:       #000000;
  --k8-white:       #ffffff;
  --k8-gray-bg:     #efefef;
  --k8-box-bg:      #f5f5f5;
  --k8-footer-bg:   #171717;
  --k8-orange:      #f26539;
  --k8-orange-dark: #e05023;
  --k8-orange-soft: #ff8562;
  --k8-blue:        #0006bd;
  --k8-line:        #e8e8e8;
  --k8-bullet:      #c7c7c7;

  --k8-radius-sm:    5px;
  --k8-radius-pill:  50px;
  --k8-radius-tele:  20px;
  --k8-radius-tab:   3px;

  --k8-shadow:        0 0 10px rgba(0, 0, 0, .1);
  --k8-shadow-hover:  0 10px 10px rgba(0, 0, 0, .1);

  --k8-container: 1200px;
  --k8-header-h:   76px;
}

/* 3. Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--k8-header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'TildaSans', 'Arial', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--k8-black);
  background: var(--k8-white);
}

img { max-width: 100%; height: auto; }
a { color: var(--k8-orange); text-decoration: none; transition: color .2s ease-in-out; }
a:hover { color: var(--k8-orange-dark); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: 'TildaSans', 'Arial', sans-serif;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .02em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

.k8-container {
  width: 100%;
  max-width: var(--k8-container);
  margin: 0 auto;
  padding: 0 20px;
}

.k8-page { overflow: hidden; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--k8-orange);
  outline-offset: 2px;
}

/* Кнопки — t-btnflex ----------------------------------------------------- */
.k8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 44px;
  font-family: 'TildaSans', 'Arial', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  border-radius: var(--k8-radius-pill);
  transition: background-color .2s ease-in-out, color .2s ease-in-out,
              box-shadow .2s ease-in-out, opacity .2s ease-in-out, transform .2s ease-in-out;
  cursor: pointer;
  letter-spacing: .03em;
}

.k8-btn--filled {
  color: var(--k8-white);
  background: var(--k8-orange);
  border: none;
}
.k8-btn--filled:hover { background: var(--k8-orange-dark); color: var(--k8-white); }

.k8-btn--outline {
  color: var(--k8-white);
  background: transparent;
  border: 3px solid var(--k8-white);
}
.k8-btn--outline:hover { background: rgba(255, 255, 255, .12); color: var(--k8-white); }

.k8-btn--dark {
  color: var(--k8-white);
  background: var(--k8-black);
  border: 1px solid var(--k8-white);
  border-radius: var(--k8-radius-tele);
}
.k8-btn--dark:hover { background: var(--k8-footer-bg); color: var(--k8-white); }

.k8-btn--radius-5px { border-radius: var(--k8-radius-sm); }
.k8-btn--radius-50px { border-radius: var(--k8-radius-pill); }

/* ==========================================================================
   Шапка (T228)
   ========================================================================== */
.k8-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 1);
  color: var(--k8-white);
}

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

.k8-header__logo { flex: 0 0 auto; }

.k8-header__logo a {
  color: var(--k8-white);
  text-decoration: none;
}

.k8-header__logo-text {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.1;
}

.k8-header__logo img {
  max-height: 52px;
  width: auto;
}

.k8-header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.k8-header__list {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.k8-header__list a {
  color: var(--k8-white);
  font-weight: 600;
  text-decoration: none;
}
.k8-header__list a:hover,
.k8-header__list .current-menu-item a,
.k8-header__list .current_page_item a {
  color: var(--k8-orange-soft);
}

.k8-header__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.k8-header__right .k8-btn { min-height: 40px; padding: 8px 22px; font-size: 15px; }

/* Бургер */
.k8-burger {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}
.k8-burger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--k8-white);
  border-radius: 1px;
  transition: transform .25s ease-in-out, top .25s ease-in-out, opacity .25s ease-in-out;
}
.k8-burger span:nth-child(1) { top: 0; }
.k8-burger span:nth-child(2),
.k8-burger span:nth-child(3) { top: 8px; }
.k8-burger span:nth-child(4) { top: 16px; }

.k8-burger.is-open span:nth-child(1),
.k8-burger.is-open span:nth-child(4) { top: 8px; left: 50%; width: 0; }
.k8-burger.is-open span:nth-child(2) { transform: rotate(45deg); }
.k8-burger.is-open span:nth-child(3) { transform: rotate(-45deg); }

/* Мобильное меню */
.k8-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, .98);
  padding: 10px 20px 30px;
}
.k8-mobile-menu.is-open { display: block; }
.k8-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.k8-mobile-menu__list li { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.k8-mobile-menu__list a {
  display: block;
  padding: 16px 4px;
  color: var(--k8-white);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}

/* ==========================================================================
   Подвал (T457)
   ========================================================================== */
.k8-footer {
  background: var(--k8-footer-bg);
  color: var(--k8-footer-text-color, var(--k8-white));
  font-size: var(--k8-footer-text-size, 16px);
  padding-top: 60px;
  padding-bottom: 75px;
}

.k8-footer__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin: 0 0 28px;
  padding: 0;
  font-size: var(--k8-footer-menu-size, 16px);
}
.k8-footer__list a {
  color: var(--k8-footer-menu-color, var(--k8-white));
  text-decoration: none;
  font-weight: 500;
}
.k8-footer__list a:hover { color: var(--k8-footer-menu-hover, var(--k8-orange-soft)); }

.k8-footer__copyright { text-align: left; }
.k8-footer__copyright a {
  color: var(--k8-footer-link-color, var(--k8-white));
  text-decoration: var(--k8-footer-link-underline, underline);
  text-underline-offset: 4px;
}
.k8-footer__copyright a:hover {
  color: var(--k8-footer-link-hover, var(--k8-orange-soft));
  text-decoration: var(--k8-footer-link-underline-hover, underline);
}

/* Выравнивание текста подвала */
.k8-footer--text-center .k8-footer__copyright,
.k8-footer--text-center { text-align: center; }
.k8-footer--text-right .k8-footer__copyright,
.k8-footer--text-right { text-align: right; }
.k8-footer--text-left .k8-footer__copyright,
.k8-footer--text-left { text-align: left; }

/* Выравнивание нижнего меню */
.k8-footer--menu-center .k8-footer__list { justify-content: center; }
.k8-footer--menu-right .k8-footer__list { justify-content: flex-end; }
.k8-footer--menu-left .k8-footer__list { justify-content: flex-start; }

/* ==========================================================================
   Hero (T581/T396)
   ========================================================================== */
.k8-hero {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--k8-white);
  background-color: var(--k8-hero-bg-color, #000);
  overflow: hidden;
}

.k8-hero--height-fullscreen { min-height: 100vh; }
.k8-hero--height-min-80vh { min-height: 80vh; }
.k8-hero--height-auto { min-height: 560px; }

.k8-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.k8-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.k8-hero--overlay-dark50 .k8-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .3));
}
.k8-hero--overlay-dark70 .k8-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, .7));
}
.k8-hero--overlay-dark60 .k8-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .6), rgba(0, 0, 0, .6));
}

.k8-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 28px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.k8-hero--align-left .k8-hero__content { align-items: flex-start; text-align: left; }

.k8-hero__title {
  margin: 0;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
  text-align: center;
  max-width: 760px;
  text-transform: uppercase;
}
.k8-hero--align-left .k8-hero__title { text-align: left; }

.k8-hero__subtitle {
  max-width: 725px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}
.k8-hero--align-left .k8-hero__subtitle { text-align: left; }
.k8-hero__subtitle p { margin: 0 0 1em; }

.k8-hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.k8-hero--align-left .k8-hero__buttons { justify-content: flex-start; }

.k8-hero__shot {
  max-width: 220px;
  width: 100%;
  background: var(--k8-box-bg);
  border-radius: var(--k8-radius-sm);
  overflow: hidden;
}
.k8-hero__shot img { display: block; width: 100%; height: auto; }

.k8-hero__bottom {
  font-size: 20px;
  text-align: center;
  letter-spacing: .02em;
}

.k8-hero__arrow {
  animation: k8-arrow-bounce 2s infinite;
  margin-top: 8px;
}
@keyframes k8-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* ==========================================================================
   Section header
   ========================================================================== */
.k8-section-header { padding: 90px 0 40px; }
.k8-section-header--pad-none { padding: 0; }
.k8-section-header--pad-sm { padding: 45px 0 30px; }
.k8-section-header--bg-gray,
.k8-section-header--bg-box { background: var(--k8-gray-bg); }
.k8-section-header--bg-box { background: var(--k8-box-bg); }

.k8-section-header__uptitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.k8-section-header__title {
  max-width: 820px;
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 20px;
}
.k8-section-header__descr {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
}
.k8-section-header--align-center { text-align: center; }
.k8-section-header--align-center .k8-section-header__title,
.k8-section-header--align-center .k8-section-header__descr { margin-left: auto; margin-right: auto; }
.k8-section-header--align-left { text-align: left; }

/* ==========================================================================
   Cards (T650)
   ========================================================================== */
.k8-cards { padding: 90px 0 120px; }
.k8-cards--bg-gray { background: var(--k8-gray-bg); }
.k8-cards__title,
.k8-cards-icons__title,
.k8-steps__title,
.k8-slider__title {
  max-width: 820px;
  margin: 0 auto 90px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
}
.k8-cards__uptitle,
.k8-cards-icons__uptitle,
.k8-steps__uptitle,
.k8-slider__uptitle {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.k8-cards__descr {
  max-width: 560px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 20px;
  line-height: 1.6;
}

.k8-cards__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.k8-cards--cols-2 .k8-cards__grid { grid-template-columns: repeat(2, 1fr); }
.k8-cards--cols-1 .k8-cards__grid { grid-template-columns: 1fr; }

.k8-cards__card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 28px;
  background: var(--k8-white);
  border-radius: var(--k8-radius-sm);
  box-shadow: var(--k8-shadow);
  transition: box-shadow .25s ease-in-out;
}
.k8-cards__card:hover .k8-cards__card-inner { box-shadow: var(--k8-shadow-hover); }

.k8-cards__card-title {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.k8-cards__card-title a {
  color: var(--k8-black);
  text-decoration: none;
}
.k8-cards__card-title a:hover { color: var(--k8-orange); }

.k8-cards__card-descr {
  font-size: 16px;
  line-height: 1.55;
  color: #555;
}
.k8-cards__card-descr p { margin: 0 0 1em; }

.k8-cards__card-btn {
  margin-top: auto;
  padding-top: 24px;
}
.k8-cards__card-link {
  color: var(--k8-orange-soft);
  font-size: 18px;
  text-decoration: none;
}
.k8-cards__card-link:hover { color: var(--k8-orange-dark); }

/* ==========================================================================
   Cards with icons (T858)
   ========================================================================== */
.k8-cards-icons { padding: 90px 0 40px; }
.k8-cards-icons--bg-gray { background: var(--k8-gray-bg); }
.k8-cards-icons__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
.k8-cards-icons--cols-3 .k8-cards-icons__grid { grid-template-columns: repeat(3, 1fr); }

.k8-cards-icons__card-inner {
  height: 100%;
  padding: 40px 28px;
  background: var(--k8-white);
  border-radius: var(--k8-radius-sm);
  box-shadow: var(--k8-shadow);
  transition: box-shadow .25s ease-in-out;
}
.k8-cards-icons__card:hover .k8-cards-icons__card-inner { box-shadow: var(--k8-shadow-hover); }

.k8-cards-icons__icon { margin-bottom: 24px; }
.k8-cards-icons__icon img { width: 64px; height: 64px; display: block; }
.k8-cards-icons--icon-center .k8-cards-icons__icon { text-align: center; }
.k8-cards-icons--icon-center .k8-cards-icons__icon img { margin-inline: auto; }
.k8-cards-icons--icon-right .k8-cards-icons__icon { text-align: right; }
.k8-cards-icons--icon-right .k8-cards-icons__icon img { margin-left: auto; }

.k8-cards-icons__card-title {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.k8-cards-icons__card-descr { font-size: 18px; line-height: 1.55; color: #555; }
.k8-cards-icons__card-descr p { margin: 0 0 1em; }

/* Выравнивание заголовка карточки */
.k8-cards-icons--title-center .k8-cards-icons__card-title { text-align: center; }
.k8-cards-icons--title-right .k8-cards-icons__card-title { text-align: right; }
.k8-cards-icons--title-left .k8-cards-icons__card-title { text-align: left; }

/* Выравнивание описания карточки */
.k8-cards-icons--descr-center .k8-cards-icons__card-descr { text-align: center; }
.k8-cards-icons--descr-right .k8-cards-icons__card-descr { text-align: right; }
.k8-cards-icons--descr-left .k8-cards-icons__card-descr { text-align: left; }

/* ==========================================================================
   Steps (T550)
   ========================================================================== */
.k8-steps { padding: 75px 0; }
.k8-steps--bg-box { background: var(--k8-box-bg); }
.k8-steps--bg-gray { background: var(--k8-gray-bg); }
.k8-steps__descr {
  max-width: 640px;
  margin: 0 auto 60px;
  font-size: 20px;
  line-height: 1.6;
  text-align: left;
}

.k8-steps__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
}
.k8-steps__item {
  display: flex;
  gap: 24px;
  padding-bottom: 56px;
}
.k8-steps__item:last-child { padding-bottom: 0; }

.k8-steps__rail {
  flex: 0 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.k8-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--k8-orange);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: var(--k8-orange);
  background: var(--k8-white);
}
.k8-steps__line {
  flex: 1 1 auto;
  width: 2px;
  min-height: 30px;
  background: var(--k8-line);
  margin-top: 8px;
}

.k8-steps__body { flex: 1 1 auto; padding-top: 6px; }
.k8-steps__title-inline {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.k8-steps__descr-inline {
  font-size: 20px;
  line-height: 1.6;
}
.k8-steps__descr-inline p { margin: 0 0 1em; }

.k8-steps__image {
  max-width: 560px;
  margin-top: 20px;
}
.k8-steps__image img {
  display: block;
  width: 100%;
  border-radius: var(--k8-radius-sm);
  box-shadow: var(--k8-shadow);
}

/* ==========================================================================
   Slider (T670, Swiper)
   ========================================================================== */
.k8-slider-wrap { padding: 90px 0 30px; }
.k8-slider__title { margin-bottom: 40px; }

.k8-slider__stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.k8-slider__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--k8-line);
  cursor: pointer;
  transition: background-color .2s ease-in-out, opacity .2s ease-in-out;
}
.k8-slider__arrow:hover { background: #d5d5d5; }
.swiper-button-disabled.k8-slider__arrow { opacity: .35; cursor: default; }

.k8-slider .swiper-slide { height: auto; }

.k8-slider__img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  border-radius: var(--k8-radius-sm);
  overflow: hidden;
  background: var(--k8-gray-bg);
}
.k8-slider--contain .k8-slider__img img {
  max-height: 72vh;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.k8-slider--cover .k8-slider__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.k8-slider--cover .k8-slider__img {
  height: 72vh;
}
.k8-slider--cover .k8-slider__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.k8-slider__pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.k8-slider__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--k8-bullet);
  opacity: 1;
}
.k8-slider__pagination .swiper-pagination-bullet-active { background: #222; }

/* ==========================================================================
   Tabs (T395)
   ========================================================================== */
.k8-tabs { padding: 105px 0 60px; }

.k8-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.k8-tabs__tab {
  padding: 12px 26px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--k8-black);
  background: var(--k8-white);
  border: 1px solid var(--k8-black);
  border-radius: var(--k8-radius-tab);
  cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.k8-tabs__tab:hover { background: #f0f0f0; }
.k8-tabs__tab--active {
  background: var(--k8-black);
  color: var(--k8-white);
}
.k8-tabs__tab--active:hover { background: var(--k8-black); color: var(--k8-white); }

.k8-tabs__panel { display: none; }
.k8-tabs__panel--active { display: block; }
.k8-tabs__divider { text-align: center; padding: 18px 0; }
.k8-tabs__html { padding: 20px 0; }
.k8-tabs__pdf { padding: 20px 0; }
.k8-faq__pdf iframe { display: block; }

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */
.k8-accordion { padding: 30px 0 90px; }
.k8-accordion .k8-faq { max-width: 760px; margin: 0 auto; }

.k8-faq {
  border-bottom: 1px solid var(--k8-line);
}
.k8-faq__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.k8-faq__head::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  transition: transform .2s ease-in-out;
}
.k8-faq.is-open .k8-faq__head::after { transform: rotate(45deg); }
.k8-faq__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}
.k8-faq__body {
  padding: 0 4px 24px;
  max-width: 720px;
}
.k8-faq__body[hidden] { display: none; }
.k8-faq__text {
  font-size: 18px;
  line-height: 1.65;
}
.k8-faq__text p { margin: 0 0 1em; }
.k8-faq__text ul { margin: 0 0 1em; padding-left: 20px; }

/* ==========================================================================
   Text (T004) / Text-box (T220) / Impact (T021)
   ========================================================================== */
.k8-text { padding: 30px 0; }
.k8-text__inner { max-width: 820px; font-size: 20px; line-height: 1.6; }
.k8-text--narrow .k8-text__inner { max-width: 620px; }

.k8-text-box { padding: 40px 0; }
.k8-text-box__inner {
  padding: 48px 56px;
  border-radius: var(--k8-radius-sm);
  margin-inline: auto;
}
.k8-text-box--wide .k8-text-box__inner { max-width: 860px; }
.k8-text-box--narrow .k8-text-box__inner { max-width: 620px; }
.k8-text-box--full .k8-text-box__inner { max-width: none; }
.k8-text-box__inner > * { max-width: 100%; }

.k8-text-box__title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0;
}
.k8-text-box__content { font-size: 18px; line-height: 1.7; }
.k8-text-box__content p { margin: 0 0 1.1em; }
.k8-text-box__content h3 { margin-top: 1.4em; }
.k8-text-box__content a { font-weight: 600; }

/* Таблица тарифов (в T220 на /k2) */
.k8-text-box__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.k8-text-box__content th,
.k8-text-box__content td {
  border: 1px solid var(--k8-line);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.k8-text-box__content th { font-weight: 600; background: var(--k8-gray-bg); }

/* ==========================================================================
   Text columns (двухколоночный текст)
   ========================================================================== */
.k8-text-columns { padding: 40px 0; }
.k8-text-columns__inner {
  padding: 48px 56px;
  border-radius: var(--k8-radius-sm);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.k8-text-columns--ratio-60-40 .k8-text-columns__inner { grid-template-columns: 3fr 2fr; }
.k8-text-columns--ratio-40-60 .k8-text-columns__inner { grid-template-columns: 2fr 3fr; }
.k8-text-columns--ratio-70-30 .k8-text-columns__inner { grid-template-columns: 7fr 3fr; }
.k8-text-columns--ratio-30-70 .k8-text-columns__inner { grid-template-columns: 3fr 7fr; }

.k8-text-columns__title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0;
}
.k8-text-columns__content { font-size: 18px; line-height: 1.7; }
.k8-text-columns__content p { margin: 0 0 1.1em; }
.k8-text-columns__content h3 { margin-top: 1.4em; }
.k8-text-columns__content a { font-weight: 600; }

.k8-text-columns__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.k8-text-columns__content th,
.k8-text-columns__content td {
  border: 1px solid var(--k8-line);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.k8-text-columns__content th { font-weight: 600; background: var(--k8-gray-bg); }

.k8-impact {
  padding: 60px 0;
  text-align: center;
}
.k8-impact__line {
  width: 80px;
  height: 1px;
  background: currentColor;
  margin: 0 auto 26px;
  opacity: .6;
}
.k8-impact__line:last-child { margin: 26px auto 0; }
.k8-impact__text {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
  max-width: 900px;
  margin: 0 auto;
}
.k8-impact__text p { margin: 0 0 .5em; }
.k8-impact__text a {
  color: var(--k8-impact-link, inherit);
  text-decoration: var(--k8-impact-link-decoration, underline);
  text-underline-offset: 4px;
  transition: color .2s ease-in-out;
}
.k8-impact__text a:hover {
  color: var(--k8-impact-link-hover, inherit);
  opacity: 1;
}

/* ==========================================================================
   Video (T230)
   ========================================================================== */
.k8-video { padding: 90px 0; }
.k8-video__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.k8-video--has-text .k8-video__grid { grid-template-columns: 1fr 1.4fr; }
.k8-video__player { max-width: 860px; }
.k8-video--has-text .k8-video__player { max-width: none; }
.k8-video__text { font-size: 18px; line-height: 1.65; }
.k8-video__text p { margin: 0 0 1em; }
.k8-video__player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
.k8-video__caption {
  margin-top: 14px;
  font-size: 16px;
}

/* ==========================================================================
   Embed (T123)
   ========================================================================== */
.k8-embed { padding: 20px 0 40px; }
.k8-embed__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 20px;
}
.k8-embed__content { max-width: var(--k8-container); margin: 0 auto; }
.k8-embed__content iframe { max-width: 100%; }

/* Утилита для PDF-iframe на всю ширину */
.k8-embed--pdf iframe {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--k8-line);
  border-radius: var(--k8-radius-sm);
}

/* ==========================================================================
   Divider (T375)
   ========================================================================== */
.k8-divider { padding: 15px 0; }
.k8-divider__inner { text-align: center; }
.k8-divider__svg { width: 88px; height: 21px; display: inline-block; }
.k8-divider--sm .k8-divider__svg { width: 50px; }

/* ==========================================================================
   Buttons group
   ========================================================================== */
.k8-buttons { padding: 30px 0; }
.k8-buttons--align-left .k8-buttons__group { justify-content: flex-start; }
.k8-buttons__group { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ==========================================================================
   Popup (T281)
   ========================================================================== */
.k8-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease-in-out, visibility .3s ease-in-out;
}
.k8-popup.is-open { visibility: visible; opacity: 1; }
.k8-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 1);
}
.k8-popup__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  background: var(--k8-white);
  border-radius: var(--k8-radius-sm);
  overflow: hidden;
  overflow-y: auto;
  max-height: 90vh;
  transform: translateY(20px);
  transition: transform .3s ease-in-out;
}
.k8-popup.is-open .k8-popup__box { transform: translateY(0); }
.k8-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  cursor: pointer;
}
.k8-popup__img img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.k8-popup__body { padding: 32px 36px 40px; text-align: left; }
.k8-popup__title { font-size: 24px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.k8-popup__descr { font-size: 16px; line-height: 1.6; color: #555; margin-bottom: 24px; }

.k8-popup__form { display: flex; flex-direction: column; gap: 16px; }
.k8-popup__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--k8-blue);
  background: var(--k8-white);
  border: 1px solid var(--k8-blue);
  border-radius: var(--k8-radius-sm);
}
.k8-popup__form .k8-btn {
  min-height: 48px;
  font-size: 16px;
  cursor: pointer;
}
.k8-popup__note { font-size: 15px; }
.k8-popup__note.is-error { color: #c00; }
.k8-popup__note.is-success { color: #060; }
.k8-popup__hint { font-size: 13px; color: #999; margin: 0; }

/* CF7 внутри попапа */
.k8-popup .wpcf7 { margin-top: 4px; }
.k8-popup .wpcf7 input[type="email"],
.k8-popup .wpcf7 input:not([type]),
.k8-popup .wpcf7 .wpcf7-form-control-wrap input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--k8-blue);
  border: 1px solid var(--k8-blue);
  border-radius: var(--k8-radius-sm);
}
.k8-popup .wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 36px;
  font-family: inherit;
  font-size: 16px;
  color: var(--k8-white);
  background: var(--k8-blue);
  border: 0;
  border-radius: var(--k8-radius-sm);
  cursor: pointer;
}
.k8-popup .wpcf7 p { margin: 0 0 16px; }
.k8-popup .wpcf7-response-output { margin: 16px 0 0; font-size: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  :root { --k8-container: 100%; }
}

@media (max-width: 980px) {
  .k8-header__nav { display: none; }
  .k8-header__right .k8-btn { display: none; }
  .k8-burger { display: block; }
  .k8-header__inner { justify-content: space-between; }

  .k8-cards__grid { grid-template-columns: repeat(2, 1fr); }
  .k8-video__grid,
  .k8-video--has-text .k8-video__grid { grid-template-columns: 1fr; }
  .k8-hero__title { font-size: 34px; }
}

@media (max-width: 760px) {
  .k8-cards__grid { grid-template-columns: 1fr; }
  .k8-cards--cols-2 .k8-cards__grid,
  .k8-cards-icons__grid { grid-template-columns: 1fr; }
  .k8-cards-icons--cols-3 .k8-cards-icons__grid { grid-template-columns: 1fr; }

  .k8-hero__title { font-size: 26px; }
  .k8-hero__subtitle { font-size: 18px; }
  .k8-hero__bottom { font-size: 18px; }
  .k8-hero--height-fullscreen { min-height: auto; }
  .k8-hero { min-height: auto; }

  .k8-section-header { padding: 60px 0 30px; }
  .k8-section-header__title { font-size: 26px; }
  .k8-cards__title,
  .k8-cards-icons__title,
  .k8-steps__title,
  .k8-slider__title { font-size: 26px; margin-bottom: 40px; }

  .k8-steps__col { gap: 16px; }
  .k8-steps__rail { flex-basis: 44px; }
  .k8-steps__num { width: 40px; height: 40px; font-size: 16px; }
  .k8-steps__title-inline { font-size: 22px; }
  .k8-steps__descr-inline { font-size: 18px; }
  .k8-text-box__inner { padding: 30px 22px; }
  .k8-text-box__title { font-size: 22px; }

  .k8-text-columns__inner {
    grid-template-columns: 1fr !important;
    gap: 32px;
    padding: 30px 22px;
  }
  .k8-text-columns__title { font-size: 22px; }

  .k8-slider__arrow { display: none; }
  .k8-slider__pagination { margin-top: 18px; }

  .k8-faq__title { font-size: 19px; }
  .k8-popup__body { padding: 24px 20px 30px; }
}

@media (max-width: 480px) {
  .k8-hero__buttons { flex-direction: column; align-items: center; width: 100%; }
  .k8-hero__buttons .k8-btn { width: 100%; }
  .k8-hero__content { padding-top: 44px; padding-bottom: 44px; }

  .k8-impact__text { font-size: 20px; }
  .k8-text-box__content table { font-size: 13px; }
  .k8-text-box__content th,
  .k8-text-box__content td { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .k8-hero__arrow { animation: none; }
  *,
  *::before,
  *::after { transition: none !important; }
}