/* ===========================================
   Osteopathy v2 & KST-1 v2
   Изолированные стили — без привязки к старым классам
   =========================================== */

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

/* =====================
   RESET global styles внутри ov2/kv2
   ===================== */
.ov2, .kv2 {
  font-family: 'Inter', sans-serif;
  color: #111827;
  line-height: 1.4;
}

.ov2 *,
.kv2 * {
  box-sizing: border-box;
}

/* Перебиваем глобальные h1-h4 */
.ov2 h1, .ov2 h2, .ov2 h3, .ov2 h4,
.kv2 h1, .kv2 h2, .kv2 h3, .kv2 h4 {
  text-transform: none !important;
  letter-spacing: normal !important;
  margin-bottom: 0;
}

.ov2 p, .kv2 p {
  margin-bottom: 0;
}

.ov2 a, .kv2 a {
  color: inherit;
  text-decoration: none;
}

.ov2 ul, .kv2 ul {
  padding-left: 20px;
  margin: 0;
}

/* ===========================================
   OV2 — Osteopathy page
   =========================================== */

.ov2 {
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 16px 40px;
}

/* Breadcrumbs */
.ov2-breadcrumbs {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 24px;
  font-weight: 500;
}

.ov2-breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
}

.ov2-breadcrumbs__sep {
  margin: 0 4px;
  color: #9ca3af;
}

/* Hero */
.ov2-hero {
  margin-bottom: 30px;
}

.ov2-hero__title {
  font-size: 26px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  margin-bottom: 18px !important;
  text-transform: uppercase !important;
}

.ov2-hero__text {
  font-size: 16px;
  line-height: 1.45;
  color: #1f2937;
  margin-bottom: 24px !important;
}

/* Buttons */
.ov2-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  padding: 15px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  cursor: pointer;
}

.ov2-btn--primary {
  background: #002a80;
  color: #fff !important;
}

.ov2-btn--primary:hover {
  background: #003bb3;
}

.ov2-btn--outline {
  border: 1px solid #002a80;
  color: #002a80 !important;
  background: #fff;
}

.ov2-btn--outline:hover {
  background: #f0f4ff;
}

.ov2-btn--small {
  width: 100%;
  background: #002a80;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

.ov2-btn--small:hover {
  background: #003bb3;
}

.ov2-btn--small.ov2-btn--outline {
  background: #fff;
  border: 1px solid #ff7a45;
  color: #ff7a45 !important;
}

.ov2-btn--small.ov2-btn--outline:hover {
  background: #fff6f0;
}

.ov2-btn--footer {
  margin-top: 10px;
}

/* Teacher */
.ov2-teacher {
  display: flex;
  gap: 14px;
  margin-bottom: 42px;
}

.ov2-teacher__img {
  width: 102px;
  height: 118px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f0f0f0;
}

.ov2-teacher__name {
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.ov2-teacher__desc {
  font-size: 14px;
  line-height: 1.45;
  color: #374151;
}

.ov2-teacher__link {
  display: block;
  margin-top: 10px;
  color: #4f82d6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.ov2-teacher__link:hover {
  text-decoration: underline;
}

/* Section title */
.ov2-section-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  margin-bottom: 18px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

/* Modules grid */
.ov2-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.ov2-module {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.ov2-module__code {
  font-size: 14px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
  text-transform: uppercase !important;
}

.ov2-module__name {
  font-size: 14px;
  color: #374151;
  margin-bottom: 14px;
}

.ov2-module__line {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 7px;
}

.ov2-module__places {
  color: #ff7a45;
  font-size: 12px;
  font-weight: 500;
  margin: 10px 0 12px;
}

.ov2-module--request {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
}

.ov2-module--request .ov2-module__code {
  color: #9ca3af;
}

/* Features */
.ov2-features {
  margin-bottom: 42px;
}

.ov2-feature {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.ov2-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d8e0ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ov2-feature__title {
  font-size: 14px;
  font-weight: 700;
}

.ov2-feature__sub {
  font-size: 13px;
  color: #374151;
  margin-top: 2px;
}

/* Program list */
.ov2-program {
  margin-bottom: 34px;
}

.ov2-program__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}

.ov2-program__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  background: #fafcff;
}

.ov2-program__item:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.ov2-program__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4f7fb;
  border: 1px solid #e3e8f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ov2-program__icon svg {
  width: 22px;
  height: 22px;
  stroke: #1e3a5f;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ov2-program__content {
  flex: 1;
}

.ov2-program__content strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.ov2-program__content span {
  font-size: 13px;
  color: #374151;
}

.ov2-program__arrow {
  color: #64748b;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.ov2-program__item:hover .ov2-program__arrow {
  transform: translateX(4px);
  color: #1e4aa0;
}

/* ===========================================
   KV2 — KST-1 page
   =========================================== */

.kv2 {
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 16px 40px;
}

/* Breadcrumbs */
.kv2-breadcrumbs {
  font-size: 13px;
  color: #7b8796;
  margin-bottom: 10px;
  font-weight: 500;
}

.kv2-breadcrumbs a {
  color: #7b8796;
  text-decoration: none;
}

.kv2-breadcrumbs__sep {
  margin: 0 4px;
  color: #a0aec0;
}

/* Title */
.kv2-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin-bottom: 18px !important;
}

/* Hero image */
.kv2-hero-image {
  width: 100%;
  height: 6px;
  border-radius: 8px;
  background: #dce4f0;
  margin-bottom: 26px;
}

.kv2-hero-image img {
  display: none;
}

/* Sections */
.kv2-section {
  margin-bottom: 26px;
}

.kv2-section__title {
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.3px !important;
}

.kv2-section__text {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

/* Check list */
.kv2-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kv2-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: #374151;
}

.kv2-check__mark {
  color: #3f6fc9;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Program module title */
.kv2-program-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 42px;
}

/* Accordion */
.kv2-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.kv2-acc__item {
  border-radius: 8px;
  overflow: hidden;
  background: #f7f9fc;
}

.kv2-acc__header {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #f7f9fc;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.kv2-acc__header:hover {
  background: #edf0f5;
}

.kv2-acc__arrow {
  font-size: 18px;
  color: #475569;
  transition: transform 0.3s;
}

.kv2-acc__item.is-open .kv2-acc__arrow {
  transform: rotate(180deg);
}

.kv2-acc__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.kv2-acc__item.is-open .kv2-acc__body {
  max-height: 600px;
}

.kv2-acc__content {
  padding: 0 16px 16px;
}

.kv2-acc__content ul {
  margin: 0;
  padding-left: 20px;
}

.kv2-acc__content li {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 6px;
}

/* Dates title */
.kv2-dates-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Date cards */
.kv2-dates {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.kv2-date__card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  padding: 14px;
}

.kv2-date__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.kv2-date__city {
  font-size: 16px;
  font-weight: 800;
  color: #1f4c99;
}

.kv2-date__arrow {
  font-size: 14px;
  color: #64748b;
}

.kv2-date__date {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}

.kv2-date__places {
  font-size: 14px;
  font-weight: 600;
  color: #ff7a45;
  margin-bottom: 16px;
}

.kv2-date__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kv2-date__price {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.kv2-btn {
  border: none;
  background: #032d82;
  color: #fff !important;
  height: 38px;
  padding: 0 18px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.kv2-btn:hover {
  background: #0044aa;
}

.kv2-btn--outline {
  width: 100%;
  height: 52px;
  background: #fff;
  border: 1px solid #1e4aa0;
  color: #1e4aa0 !important;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.kv2-btn--outline:hover {
  background: #f0f5ff;
}

.kv2-footer {
  margin-top: 70px;
}

/* ===========================================
   Zapis form
   =========================================== */

.kv2-zapis-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 30px;
}

.kv2-zapis-form input,
.kv2-zapis-form textarea {
  width: 100%;
  height: 52px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 16px;
  color: #111827;
  font-family: 'Inter', sans-serif;
}

.kv2-zapis-form textarea {
  height: 100px;
  padding: 14px;
  resize: vertical;
}

.kv2-zapis-form input::placeholder,
.kv2-zapis-form textarea::placeholder {
  color: #9ca3af;
}

.kv2-zapis-btn {
  width: 100%;
  height: 52px;
  background: #032d82;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.kv2-zapis-btn:hover {
  background: #0044aa;
}

.kv2-zapis-agree {
  text-align: center;
  font-size: 13px;
  color: #8a8f99;
  line-height: 1.45;
}

.kv2-zapis-agree a {
  color: #032d82;
  font-weight: 600;
  text-decoration: none;
}

.kv2-zapis-success {
  text-align: center;
  padding: 30px 20px;
  font-size: 16px;
  color: #059669;
  font-weight: 600;
  display: none;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 600px) {
  .ov2 {
    padding: 8px 12px 30px;
  }

  .kv2-hero-image {
    height: 130px;
  }
}

@media (max-width: 420px) {
  .ov2-breadcrumbs,
  .kv2-breadcrumbs {
    font-size: 14px;
  }

  .ov2-teacher__name {
    font-size: 17px !important;
  }

  .ov2-teacher__desc {
    font-size: 15px;
  }

  .ov2-module__line {
    font-size: 14px;
  }

  .ov2-module__places {
    font-size: 13px;
  }

  .ov2-feature__title {
    font-size: 15px;
  }

  .ov2-feature__sub {
    font-size: 14px;
  }

  .kv2-section__text,
  .kv2-check,
  .kv2-acc__content li {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .ov2 {
    padding: 20px 24px 50px;
  }

  .ov2-hero__title {
    font-size: 32px !important;
  }

  .ov2-modules {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .ov2-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ov2-feature {
    margin-bottom: 0;
  }

  .ov2-program {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ov2-program__item {
    margin-bottom: 0;
  }

  .kv2 {
    padding: 20px 24px 50px;
  }

  .kv2-dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (min-width: 1024px) {
  .ov2-hero__title {
    font-size: 38px !important;
  }

  .ov2-program {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
