/* ============================================
   PSICHODRAMOSPRAKTIKAS.LT - CSS SYSTEM
   Профессиональная модульная система стилей
   ============================================ */

/* ============================================
   1. CSS ПЕРЕМЕННЫЕ
   ============================================ */
:root {
  /* Цветовая палитра — спокойная, заземлённая */
  --color-navy: #5D768B;       /* Ocean Deep Blue — основной */
  --color-navy-dark: #4A6278;  /* Тёмный Ocean — hover на кнопках */
  --color-navy-light: #8FA8B8; /* Светлый Ocean — hover outline */
  --color-teal: #8FA8B8;       /* Светлый Ocean — вторичный текст */
  --color-sky-blue: #DCDFD6;   /* Driftwood Sand — границы и акценты */
  --color-beige: #FAF9F6;      /* Feather White — основной фон */
  --color-white: #FFFFFF;
  --color-sage: #7C8C76;       /* Misty Pine — акцент (текст, иконки) */
  --color-dark-green: #5B6B59; /* Тёмный Misty Pine */
  --color-cypress: #7C8C76;    /* Misty Pine */
  --color-sandy: #DDD0C2;      /* Warm Sandy Beige (осветлённый) — тёплые акценты */

  /* Семантические цвета */
  --color-primary: var(--color-navy);
  --color-secondary: var(--color-teal);
  --color-accent: var(--color-sage);
  --color-background: var(--color-white);
  --color-background-alt: var(--color-beige);
  --color-text: var(--color-navy);
  --color-text-light: var(--color-teal);
  --color-border: var(--color-sky-blue);
  
  /* Типографика */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  
  /* Размеры шрифтов - модульная шкала */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  
  /* Отступы - модульная шкала */
  --space-xs: 0.5rem;      /* 8px */
  --space-sm: 1rem;        /* 16px */
  --space-md: 1.5rem;      /* 24px */
  --space-lg: 2rem;        /* 32px */
  --space-xl: 3rem;        /* 48px */
  --space-2xl: 4rem;       /* 64px */
  --space-3xl: 6rem;       /* 96px */
  --space-4xl: 8rem;       /* 128px */
  
  /* Ширина контейнеров */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgba(93, 118, 139, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(93, 118, 139, 0.12);
  --shadow-lg: 0 10px 15px -3px rgba(93, 118, 139, 0.12);
  --shadow-xl: 0 20px 25px -5px rgba(93, 118, 139, 0.14);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;
}

/* ============================================
   2. СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   3. МОДУЛЬНАЯ ТИПОГРАФИКА
   Независимые классы для гибкости
   ============================================ */

/* ЗАГОЛОВКИ */
.heading-hero {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.heading-1 {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.heading-2 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-navy);
}

.heading-3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-navy);
}

.heading-4 {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-navy);
}

.heading-5 {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-navy);
}

.heading-6 {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-navy);
}

/* ПОДЗАГОЛОВКИ */
.subheading-hero {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-teal);
  letter-spacing: 0.05em;
  word-spacing: 0.15em;
}

.subheading-lg {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-teal);
}

.subheading-md {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-teal);
}

.subheading-sm {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ОСНОВНОЙ ТЕКСТ */
.text-lead {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--color-navy);
}

.text-body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-navy);
}

.text-body-lg {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-navy);
}

.text-body-sm {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-navy);
}

/* ОПИСАНИЯ */
.description-card {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-teal);
}

.description-sm {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-teal);
}

/* МЕТА-ИНФОРМАЦИЯ */
.meta-text {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-teal);
  font-weight: 500;
}

.meta-date {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* УТИЛИТЫ ТИПОГРАФИКИ */
.text-center {
  text-align: center;
}

.text-light {
  color: var(--color-teal);
}

.text-white {
  color: var(--color-white);
}

.font-serif {
  font-family: var(--font-heading);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

/* ============================================
   4. LAYOUT СИСТЕМА
   ============================================ */

/* КОНТЕЙНЕРЫ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container-narrow {
  max-width: var(--container-lg);
}

.container-wide {
  max-width: var(--container-2xl);
}

.container-full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* СЕКЦИИ */
.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.section-sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-lg {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

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

.section-bg-sky {
  background-color: var(--color-sky-blue);
}

.section-bg-mist {
  background-color: var(--color-beige);
}

/* ============================================
   5. НАВИГАЦИЯ
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
    transition: filter var(--transition-base);
    /* Базовое состояние: Misty Pine #7C8C76 */
    filter: brightness(0) saturate(100%) invert(57%) sepia(12%) saturate(480%) hue-rotate(70deg) brightness(88%) contrast(88%);
}

.logo img:hover {
    /* Hover: Ocean Deep Blue #5D768B */
    filter: brightness(0) saturate(100%) invert(46%) sepia(20%) saturate(520%) hue-rotate(165deg) brightness(88%) contrast(90%);
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-navy);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-navy);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-navy);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-navy);
  transition: all var(--transition-base);
}

/* ============================================
   6. HERO СЕКЦИЯ
   ============================================ */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: calc(140px + var(--space-2xl));
    padding-bottom: var(--space-2xl);
    background-color: var(--color-beige);
}

.hero-content {
  max-width: none;
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  margin-bottom: var(--space-lg);
}

.hero-divider {
  font-size: var(--text-2xl);
  color: var(--color-teal);
  margin: 0 var(--space-sm);
}

.hero-rotating {
    display: inline;
    font-size: var(--text-5xl);
    font-family: var(--font-heading);
    font-weight: 350;
    color: var(--color-navy);
    margin-left: var(--space-sm);
    position: relative;
    min-height: 1em;
    vertical-align: baseline;
}

.rotate-text {
    position: absolute;
    left: 0;
    top: 50%;
    opacity: 0;
    transform: translateY(calc(-50% + 20px));
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    filter: blur(3px);
}

.rotate-text.active {
    opacity: 1;
    transform: translateY(-50%);
    filter: blur(0);
}

.rotate-text.exiting {
    opacity: 0;
    transform: translateY(calc(-50% - 20px));
    filter: blur(3px);
}

/* ============================================
   7. СЕКЦИЯ "О ТЕРАПЕВТЕ"
   ============================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-content {
  max-width: 600px;
}

.about-title {
  margin-bottom: var(--space-md);
}

.about-description {
  margin-bottom: var(--space-lg);
}

/* ВИДЕО КОНТЕЙНЕР */
.video-container {
  position: relative;
  width: 100%;
  background-color: var(--color-sky-blue);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* Для локального видео */
.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Для вертикального видео (Shorts/Reels) */
.video-container-9-16 {
    aspect-ratio: 9 / 16;
    max-width: 340px;
    margin: 0 auto;
}

/* ДОБАВЬ ЭТО - заполнение контейнера */
.video-container-9-16 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ДОБАВЬ ЭТО - для fullscreen режима */
.video-container-9-16 video:fullscreen {
    object-fit: contain;  /* Сохраняет пропорции в fullscreen */
    background-color: #000;  /* Черный фон по бокам */
}

/* Для разных браузеров */
.video-container-9-16 video:-webkit-full-screen {
    object-fit: contain;
    background-color: #000;
}

.video-container-9-16 video:-moz-full-screen {
    object-fit: contain;
    background-color: #000;
}

.video-container-9-16 video:-ms-fullscreen {
    object-fit: contain;
    background-color: #000;
}

/* КАСТОМНАЯ КНОПКА ВОСПРОИЗВЕДЕНИЯ */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(93, 118, 139, 0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.video-play-btn:hover {
  background: rgba(93, 118, 139, 1);
}

.video-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Нативные контролы видео — показываем на десктопе */
video::-webkit-media-controls {
  display: flex;
}

/* Для iframe (YouTube/Vimeo) */
.video-container-16-9 {
  aspect-ratio: 16 / 9;
}

.video-container-4-3 {
  aspect-ratio: 4 / 3;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Альтернатива для старых браузеров без aspect-ratio */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   8. УСЛУГИ - "Дыхание"
   ============================================ */

.services-breath {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: var(--space-2xl);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-breath {
    display: flex;
    flex-direction: column;
    padding: var(--space-2xl) var(--space-xl);
    border-right: 1px solid var(--color-border);
    transition: background-color var(--transition-base);
}

.service-breath-number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 300;
    color: var(--color-sage);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.service-breath:last-child {
    border-right: none;
}

a.service-breath {
    text-decoration: none;
    color: inherit;
}

.service-breath:hover {
    background-color: rgba(93, 118, 139, 0.07);
    border-color: rgba(93, 118, 139, 0.35);
}

.service-breath-title {
    margin-bottom: var(--space-md);
    color: var(--color-navy);
    font-size: var(--text-xl);
    min-height: 2.8em;
    font-family: var(--font-heading);
}

.service-breath-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-teal);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.service-breath-target {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--color-teal);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

/* Список аудитории на paslaugos */
.service-audience-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
}

.service-audience-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.service-audience-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--color-sage);
}

.service-audience-list--group {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

/* Список шагов / информации на paslaugos */
.service-steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
}

.service-steps-list li {
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.service-steps-list li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Визуальный разделитель перед блоком "Kam skirta / Kam tinka" на paslaugos */
.service-audience-heading {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.target-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #5D768B;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: calc(var(--space-xs) / 2);
}
    

/* Для видео-контейнера на главной — ограничение высоты (не для paslaugos) */
.about-section > div:not(.service-image-portrait) > img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
}

/* Скрыть mobile-only изображения по умолчанию (показываются только на мобиле) */
.service-image-mobile-only {
    display: none;
}

/* mobile-br — скрыть на десктопе */
.mobile-br {
    display: none;
}

/* hero-pipe — видим на десктопе, скрывается на мобиле */
.hero-pipe {
    display: inline;
}

/* Логотип: десктоп показывает полный, мобиле — только иконку */
.logo .logo-desktop { display: block; }
.logo .logo-mobile  { display: none; }

/* title-break — inline on desktop */
.title-break {
    display: inline;
}

/* title-pipe — inline on desktop */
.title-pipe {
    display: inline;
}

/* Вертикальный (портретный) контейнер для изображений услуг */
.service-image-portrait {
    width: 70%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.service-image-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: none;
}

/* ============================================
   9. БЛОГ / СТАТЬИ
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 4 / 6;
  object-fit: cover;
}

.blog-card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  margin-bottom: var(--space-sm);
}

.blog-card-title {
  margin-bottom: var(--space-sm);
}

.blog-card-description {
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

/* Страница отдельной статьи */
.article-header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.article-title {
  margin-bottom: var(--space-md);
}

.article-meta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content p:not(.share-label) {
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
}

.article-content h2 {
  font-size: var(--text-2xl);
  text-align: center;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xs);
}

.article-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

/* Изображения в статье */
.article-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-xl) auto;
  box-shadow: var(--shadow-md);
  display: block;
}

.article-image-caption {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-teal);
  font-style: italic;
}

/* Навигация статьи (не используется, сохранено для других страниц) */
.article-nav {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

/* Блок шеринга в конце статьи */
.share-block {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.share-label {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-xs);
  color: var(--color-navy);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: color var(--transition-base);
}

.share-btn:hover {
  color: var(--color-navy-dark);
}

.share-btn-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

.share-btn:hover .share-btn-label {
  color: var(--color-navy-dark);
}

/* Web Share API кнопка — только мобиль */
.share-btn-native {
  display: none;
}

@media (max-width: 768px) {
  .share-btn-native {
    display: flex;
  }
  .share-btn-whatsapp,
  .share-btn-telegram {
    display: none;
  }
}

/* Блок "Kiti tekstai" — мягкое органичное завершение статьи */
.related-articles {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-3xl);
}

.related-articles-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Пропорции карточек в блоке "Kiti tekstai" */
.related-articles .blog-card-image {
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.related-articles .blog-card-content {
  padding: var(--space-md);
}

.related-articles .blog-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.related-articles-title {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Сетка "Kiti tekstai" — 3 колонки на десктопе */
.blog-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   10. КНОПКИ
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-primary:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.btn-lg {
  padding: 13px 30px;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 7px 16px;
  font-size: var(--text-xs);
}

/* ============================================
   11. ФОРМЫ
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-navy);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-navy);
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(86, 124, 141, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-error {
  display: none;
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: #DC2626;
}

.form-input.error,
.form-textarea.error {
  border-color: #DC2626;
}

.form-input.error ~ .form-error,
.form-textarea.error ~ .form-error {
  display: block;
}

/* Honeypot для защиты от спама */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* ============================================
   12. КОНТАКТНАЯ ИНФОРМАЦИЯ
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-item-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item-value {
  font-size: var(--text-lg);
  color: var(--color-navy);
}

.contact-item-value a {
  transition: color var(--transition-base);
}

.contact-item-value a:hover {
  color: var(--color-teal);
}

/* ============================================
   13. FOOTER
   ============================================ */
.footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-xl) 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--color-white);
}

/* ============================================
   14. УТИЛИТЫ
   ============================================ */

/* Отступы */
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

/* Gap для flex/grid */
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Flex утилиты */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid утилиты */
.grid { display: grid; }

/* Видимость */
.hidden { display: none; }

/* ============================================
   15. АДАПТИВНОСТЬ
   ============================================ */

/* Tablet (до 1024px) */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3rem;        /* 48px */
    --text-5xl: 2.5rem;      /* 40px */
    --text-4xl: 2rem;        /* 32px */
    --text-3xl: 1.75rem;     /* 28px */
  }

  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

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

  .about-section {
    gap: var(--space-2xl);
  }

  .contact-grid {
    gap: var(--space-2xl);
  }

  /* Карточки услуг — уменьшаем отступы при 3 колонках */
  .service-breath {
    padding: var(--space-xl) var(--space-md);
  }
}

/* Mobile (до 768px) */
@media (max-width: 768px) {
  /* Скрываем нативные контролы — используем кастомную кнопку */
  video::-webkit-media-controls {
    display: none !important;
  }

  :root {
    --text-6xl: 2.5rem;      /* 40px */
    --text-5xl: 2rem;        /* 32px */
    --text-4xl: 1.75rem;     /* 28px */
    --text-3xl: 1.5rem;      /* 24px */
  }
  
  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
  
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .subheading-hero {
        letter-spacing: 0.01em;
        word-spacing: normal;
    }
  
  /* Навигация — мобильное меню */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-beige);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    display: none;
  }

  .mobile-menu-toggle {
    display: none;
  }

  /* Скрыть header на мобиле */
  .header {
    display: none;
  }

  /* ── HERO MOBILE REDESIGN ── */

  /* 1. Контейнер: центрирование */
  .hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-2xl);
    border-bottom: none;
  }

  /* 2. Градиентный орб в верхней части */
  .hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(
      circle,
      rgba(93, 118, 139, 0.15) 0%,
      rgba(200, 179, 155, 0.10) 50%,
      transparent 70%
    );
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
  }

  /* 2b. Градиентный оверлей снизу */
  .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.6) 70%,
      #ffffff 100%
    );
    pointer-events: none;
    z-index: 2;
  }

  /* 3. Контент над орбом и градиентом */
  .hero-content,
  .article-header {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 4. Типографика */
  .heading-hero {
    font-size: clamp(2rem, 8vw, 2.8rem);
    font-weight: 400;
    text-wrap: balance;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    letter-spacing: 0.05em;
    color: var(--color-text-light);
  }

  /* 5. Скрыть разделитель "|" на мобиле */
  .hero-pipe {
    display: none;
  }

  /* 6. Rotating text — hidden on mobile */
  .hero-rotating {
    display: none;
  }

  .rotate-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    text-align: center;
    transform: translateY(8px);
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    color: var(--color-text-light);
  }
  
  /* О терапевте */
  .about-section {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  /* Услуги */
 .services-breath {
        display: flex;
        flex-direction: column;
        background-color: #5D768B;
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .service-breath {
        border-right: none;
        display: block;
        background-color: #ffffff;
        border-radius: 0;
        padding: var(--space-lg);
        margin-bottom: 0;
        box-shadow: none;
        border-bottom: 1px solid rgba(93, 118, 139, 0.25);
    }

    .service-breath-number {
        font-size: var(--text-4xl);
    }

    .service-breath:last-child {
        border-bottom: none;
    }
    
    .service-breath-title {
        min-height: auto;
    }
  
  /* ── HERO VARIANTS ── */

  /* 1. Dark hero — index.html */
  .hero-dark {
    background-color: #5D768B;
  }
  .hero-dark .heading-hero {
    color: #ffffff;
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }
  .hero-dark .hero-subtitle,
  .hero-dark .hero-rotating,
  .hero-dark .rotate-text {
    color: rgba(255, 255, 255, 0.75);
  }
  .hero-dark::before {
    opacity: 0.2;
  }

  /* Hero logo — hidden on mobile */
  .hero-logo {
    display: none;
  }


  /* Hero subtitle — uppercase tracking on mobile */
  .hero-dark .hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: clamp(0.65rem, 3vw, 0.8rem);
    color: rgba(255, 255, 255, 0.65);
  }

  /* 2. Article hero — editorial style */
  .hero-article {
    background-color: #FAF9F6;
    min-height: 0;
    justify-content: flex-start;
    padding-top: 32px;
    padding-bottom: 24px;
    border-bottom: none;
  }
  .hero-article::before {
    display: none;
  }
  .hero-article .article-header {
    align-items: flex-start;
    text-align: left;
    border-left: 4px solid #5D768B;
    padding-left: 20px;
  }
  .hero-article .subheading-sm {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7C8C76;
    margin-bottom: 10px;
  }
  .hero-article .article-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #5D768B;
    line-height: 1.3;
    margin-bottom: 16px;
  }
  .hero-article .meta-text {
    font-size: 11px;
    color: #7C8C76;
    letter-spacing: 0.04em;
  }

  /* 3. Hide hero on paslaugos / kontaktai / tekstai */
  .hero-page {
    display: none;
  }
  .hero-page + .section {
    padding-top: var(--space-xl);
  }

  /* 4. Hide footer */
  .footer {
    display: none;
  }

  /* Блог */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Контакты */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  /* Страница статьи — мобильная адаптация */
  .text-lead {
    font-size: var(--text-lg);
  }

  .article-content p:not(.share-label) {
    margin-bottom: var(--space-md);
  }

  .article-image {
    max-width: 100%;
    margin: var(--space-lg) auto;
  }

  .article-nav {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
  }

  .blog-grid-3 {
    grid-template-columns: 1fr;
  }

  .related-articles {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-2xl);
  }

  /* Hero: rotate-text — active/exiting opacity transitions on mobile */
  .rotate-text.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  .rotate-text.exiting {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(2px);
  }
  .rotate-text:not(.active):not(.exiting) {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }

  /* Изображения услуг — портрет слишком высокий в 1-колонке */
  .service-image-portrait {
    width: 85%;
    aspect-ratio: 4 / 3;
  }

  /* Blog-grid gap в 1-колонке */
  .blog-grid {
    gap: var(--space-lg);
  }

  /* section-header margin */
  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* Email в контактах — длинная строка без переноса */
  .contact-item-value {
    font-size: var(--text-base);
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* 2A: About section на главной — видео первым на мобиле */
  .about-section-home .about-content {
    order: 2;
  }
  .about-section-home .video-container-9-16 {
    order: 1;
  }

  /* 2B: Service images — показывать mobile-only, скрывать desktop-only */
  .service-image-mobile-only {
    display: block;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
  .service-image-desktop-only {
    display: none;
  }

  /* 2C: Hero — центрировать на мобиле */
  .hero-content {
    text-align: center;
  }

  /* 2C: Service breath target label — центрировать в 1-колонке */
  .service-breath-target {
    text-align: center;
  }

  /* 2C: Blog card dates — центрировать */
  .blog-card-date {
    display: block;
    text-align: center;
  }

  /* mobile-br — visible on mobile only */
  .mobile-br {
    display: block;
  }

  /* 2: About section title/subtitle/description — center on mobile */
  .about-title {
    text-align: center;
  }
  .about-content .subheading-lg {
    text-align: center;
  }
  .about-description {
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .about-content .text-light {
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* 3: Service card content — center on mobile */
  .service-breath {
    text-align: center;
  }
  .service-breath-description {
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* Services section — dark background on mobile */
  .section-bg-mist {
    background-color: #5D768B;
  }
  .section-bg-mist .section-title {
    color: #ffffff;
  }
  .section-bg-mist .subheading-lg,
  .section-bg-mist .subheading-sm {
    color: rgba(255, 255, 255, 0.75);
  }

  /* 4a: Blog card content — dark background on mobile */
  .blog-card-content {
    text-align: center;
    background-color: #5D768B;
    padding: var(--space-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .blog-card-title,
  .blog-card-title a {
    color: #ffffff;
  }
  .blog-card-description {
    color: rgba(255, 255, 255, 0.80);
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .blog-card-date {
    color: rgba(255, 255, 255, 0.60);
  }
  .blog-card-content .btn {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: transparent;
  }
  .blog-card-content .btn:hover {
    background: #ffffff;
    color: #5D768B;
  }

  /* 4b: Blog title — pipe stays visible, second part on new line */
  .title-break {
    display: block;
  }

  /* subheading-sm — центрировать на мобиле */
  .subheading-sm,
  .about-content .subheading-sm {
    text-align: center;
  }

  /* 6: text-wrap: balance — все заголовки и короткие блоки на мобиле */
  .heading-hero, .heading-1, .heading-2, .heading-3, .heading-4, .heading-5,
  .subheading-hero, .subheading-lg, .subheading-sm,
  .section-title, .about-title,
  .service-breath-title, .service-breath-target,
  .blog-card-title, .blog-card-date,
  .related-articles-title, .article-title,
  .meta-date, .target-label, .text-lead {
    text-wrap: balance;
  }

  /* Короткие центрированные заголовки — ограничение ширины */
  .section-title,
  .about-title,
  .about-content .subheading-lg {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Small mobile (до 480px) */
@media (max-width: 480px) {
  :root {
    --text-6xl: 2rem;        /* 32px */
    --text-5xl: 1.75rem;     /* 28px */
    --text-4xl: 1.5rem;      /* 24px */
  }

  /* Кнопки в формах и центральных блоках — полная ширина */
  .form-group .btn,
  .text-center .btn,
  .about-content .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-card-image {
    aspect-ratio: 3 / 4;
  }

  /* Share-кнопки: меньший gap на маленьких экранах */
  .share-buttons {
    gap: var(--space-sm);
  }

  /* Исправляем отступы в маленьких экранах */
  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .service-breath {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* ============================================
   SERVICES NAV STRIP — mobile swipe cards
   ============================================ */

/* On mobile — service sections hidden by default, shown when .service-active added by JS */
@media (max-width: 768px) {
    .service-section-mobile {
        display: none;
    }
    .service-section-mobile.service-active {
        display: block;
    }
}

/* Hidden on desktop — overridden inside @media below */
.services-nav-strip,
.services-nav-dots {
    display: none;
}

.services-nav-strip {
    display: none;
}

@media (max-width: 768px) {
    .services-nav-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--space-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: var(--space-lg) var(--space-md);
        padding-bottom: var(--space-lg);
        margin-top: var(--space-2xl);
    }

    .services-nav-strip::-webkit-scrollbar {
        display: none;
    }

    .services-nav-card {
        flex: 0 0 85vw;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        position: relative;
        border-radius: 0;
        overflow: hidden;
        text-decoration: none;
        aspect-ratio: 2 / 3;
        display: block;
        margin-right: 12px;
    }

    .services-nav-card:last-child {
        margin-right: 0;
    }

    .services-nav-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    .services-nav-card-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: var(--space-xl) var(--space-lg);
        background: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 35%,
            rgba(20, 35, 50, 0.45) 60%,
            rgba(20, 35, 50, 0.88) 100%
        );
    }

    .services-nav-card-label {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.65);
        letter-spacing: 0.10em;
        text-transform: uppercase;
        margin-bottom: 6px;
    }

    .services-nav-card-title {
        font-size: var(--text-2xl);
        font-family: var(--font-heading);
        color: #ffffff;
        font-weight: 400;
        margin: 0 0 8px 0;
        line-height: 1.2;
    }

    .services-nav-card-desc {
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, 0.80);
        line-height: 1.5;
        margin: 0;
    }

    .services-nav-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: var(--space-sm) 0 var(--space-md);
    }

    .services-nav-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: rgba(93, 118, 139, 0.25);
        transition: all 0.3s ease;
    }

    .services-nav-dot.active {
        width: 18px;
        border-radius: 3px;
        background-color: #5D768B;
    }
}

/* ============================================
   BOTTOM NAVIGATION BAR — mobile only
   ============================================ */
.nav-bottom {
    display: none;
}

@media (max-width: 768px) {
    .nav-bottom {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: #5D768B;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        padding: 8px 0 max(8px, env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: center;
    }

    .nav-bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: rgba(255, 255, 255, 0.55);
        text-decoration: none;
        font-size: 10px;
        font-family: var(--font-primary);
        letter-spacing: 0.03em;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        transition: color 0.2s ease;
        padding: 0 8px;
    }

    .nav-bottom-item.active,
    .nav-bottom-item:hover {
        color: #ffffff;
    }

    .nav-bottom-item svg {
        width: 22px;
        height: 22px;
    }

    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom));
    }
}

/* Очень маленькие экраны (до 375px) */
@media (max-width: 375px) {
  :root {
    --text-5xl: 1.625rem;
    --text-4xl: 1.375rem;
    --text-3xl: 1.25rem;
    --text-2xl: 1.25rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(90px + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
}

/* ============================================
   16. АНИМАЦИИ
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   17. ПЕЧАТЬ
   ============================================ */
@media print {
  .header,
  .footer,
  .btn,
  .nav-menu,
  .mobile-menu-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ============================================
   18. KONTAKTAI PAGE — MOBILE
   ============================================ */

.kontaktai-profile,
.kontaktai-modal-overlay {
    display: none;
}

@media (max-width: 768px) {

    body.page-kontaktai {
        background: linear-gradient(
            to bottom,
            #5D768B 0%,
            #5D768B 120px,
            #ffffff 280px
        );
        background-color: #ffffff;
    }

    body.page-kontaktai .hero-page {
        display: none;
    }

    body.page-kontaktai .contact-grid {
        display: none;
    }

    body.page-kontaktai .section {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Profile card */
    .kontaktai-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: var(--space-3xl) var(--space-md) var(--space-2xl);
        text-align: center;
    }

    /* Avatar */
    .kontaktai-avatar {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: var(--space-lg);
        border: 2px solid #ffffff;
        box-shadow: 0 8px 24px rgba(93, 118, 139, 0.20),
                    0 0 0 2px #ffffff;
    }

    .kontaktai-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .kontaktai-name {
        font-family: var(--font-heading);
        font-size: var(--text-2xl);
        font-weight: 400;
        color: var(--color-navy);
        margin-bottom: var(--space-xs);
    }

    .kontaktai-subtitle {
        font-size: var(--text-sm);
        color: var(--color-text-light);
        letter-spacing: 0.03em;
        margin-bottom: 2px;
    }

    .kontaktai-subtitle:last-of-type {
        margin-bottom: var(--space-2xl);
    }

    /* Contact buttons row */
    .kontaktai-buttons {
        display: flex;
        gap: var(--space-xl);
        justify-content: center;
        margin-bottom: var(--space-2xl);
    }

    .kontaktai-btn-wrap {
        position: relative;
    }

    .kontaktai-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background-color: #5D768B;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(93, 118, 139, 0.25);
        transition: background-color 0.2s ease, transform 0.1s ease;
    }

    .kontaktai-btn:active {
        background-color: #4A6278;
        transform: scale(0.95);
    }

    /* Popup */
    .kontaktai-popup {
        display: none;
        position: absolute;
        bottom: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        border-radius: var(--radius-md);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        overflow: hidden;
        min-width: 160px;
        z-index: 100;
        border: 1px solid rgba(93, 118, 139, 0.10);
    }

    .kontaktai-popup.open {
        display: block;
    }

    .kontaktai-popup-item {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: var(--text-sm);
        color: var(--color-navy);
        text-decoration: none;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        font-family: var(--font-primary);
        border-bottom: 1px solid rgba(93, 118, 139, 0.08);
        transition: background-color 0.15s ease;
        box-sizing: border-box;
    }

    .kontaktai-popup-item:last-child {
        border-bottom: none;
    }

    .kontaktai-popup-item:active {
        background-color: #f0f4f7;
    }

    /* Message button */
    @keyframes kontaktai-pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(93, 118, 139, 0.35);
        }
        70% {
            box-shadow: 0 0 0 8px rgba(93, 118, 139, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(93, 118, 139, 0);
        }
    }

    .kontaktai-message-btn {
        width: auto;
        padding: 10px var(--space-xl);
        background-color: #5D768B;
        color: #ffffff;
        border: none;
        border-radius: 50px;
        font-size: var(--text-sm);
        font-family: var(--font-primary);
        cursor: pointer;
        transition: background-color 0.2s ease;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin: var(--space-lg) 0 var(--space-xl);
        animation: kontaktai-pulse 2.5s ease-out infinite;
    }

    .kontaktai-message-btn:active {
        background-color: #4A6278;
        animation: none;
    }

    /* Modal overlay */
    .kontaktai-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.50);
        z-index: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-lg);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .kontaktai-modal-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    /* Modal card */
    .kontaktai-modal {
        background: #ffffff;
        border-radius: var(--radius-md);
        padding: var(--space-xl) var(--space-lg);
        width: 100%;
        max-width: 400px;
        max-height: 85vh;
        overflow-y: auto;
        position: relative;
        box-shadow: 0 20px 60px rgba(0,0,0,0.20);
    }

    /* Close button */
    .kontaktai-modal-close {
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-text-light);
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Modal form */
    .modal-form-group {
        margin-bottom: var(--space-md);
    }

    .modal-input {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid rgba(93, 118, 139, 0.20);
        border-radius: var(--radius-sm);
        font-size: var(--text-base);
        font-family: var(--font-primary);
        color: var(--color-text);
        background: #ffffff;
        outline: none;
        transition: border-color 0.2s ease;
        box-sizing: border-box;
    }

    .modal-input:focus {
        border-color: #5D768B;
    }

    .modal-input::placeholder {
        color: rgba(93, 118, 139, 0.45);
    }

    .modal-textarea {
        resize: none;
        min-height: 80px;
    }

    .modal-select {
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
    }

    .modal-submit-btn {
        width: 100%;
        padding: var(--space-md);
        background-color: #5D768B;
        color: #ffffff;
        border: none;
        border-radius: 50px;
        font-size: var(--text-base);
        font-family: var(--font-primary);
        cursor: pointer;
        transition: background-color 0.2s ease;
        margin-top: var(--space-sm);
    }

    .modal-submit-btn:active {
        background-color: #4A6278;
    }

    .modal-form-message {
        margin-top: var(--space-md);
        padding: var(--space-md);
        border-radius: var(--radius-sm);
        font-size: var(--text-sm);
        text-align: center;
    }
}

/* ============================================
   19. TEKSTAI PAGE — MOBILE SWIPE STRIP
   ============================================ */

.tekstai-nav-strip,
.tekstai-nav-dots {
    display: none;
}

.tekstai-strip-arrow {
    display: none;
}

@media (max-width: 768px) {

    body.page-tekstai .section-header {
        display: none;
    }

    .tekstai-strip-arrow {
        display: none !important;
    }

    .tekstai-nav-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: calc(50% - 42.5vw);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: var(--space-lg) var(--space-md) var(--space-sm);
        margin-top: var(--space-2xl);
    }

    .tekstai-nav-strip::-webkit-scrollbar {
        display: none;
    }

    .tekstai-nav-card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        overflow: hidden;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        height: 65vh;
        margin-right: 12px;
    }

    .tekstai-nav-card:last-child {
        margin-right: 0;
    }

    .tekstai-nav-card img {
        width: 100%;
        flex: 3.5;
        min-height: 0;
        object-fit: cover;
        object-position: center;
        display: block;
        position: static;
    }

    .tekstai-nav-card picture {
        flex: 3.5;
        min-height: 0;
        display: block;
        overflow: hidden;
    }

    .tekstai-nav-card picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        position: static;
        flex: unset;
    }

    .tekstai-nav-card-overlay {
        position: static;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 16px;
        background: #5D768B;
        border-top: 3px solid #ffffff;
        flex: 1.5;
        overflow: hidden;
    }

    .tekstai-nav-card-meta {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.65);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 8px;
        padding-top: 0;
        border-top: none;
    }

    .tekstai-nav-card-title {
        font-size: var(--text-lg);
        font-family: var(--font-heading);
        color: #ffffff;
        font-weight: 400;
        margin: 0 0 8px 0;
        line-height: 1.3;
    }

    .tekstai-nav-card-desc {
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, 0.75);
        line-height: 1.5;
        margin: 0;
    }

    .tekstai-nav-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: var(--space-sm) 0 var(--space-md);
    }

    .tekstai-nav-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: rgba(93, 118, 139, 0.30);
        transition: all 0.3s ease;
    }

    .tekstai-nav-dot.active {
        width: 18px;
        border-radius: 3px;
        background-color: #5D768B;
    }
}

@media (min-width: 769px) {
    .hero-logo {
        display: none;
    }

    .tekstai-strip-wrap {
        position: relative;
    }

    .tekstai-strip-wrap::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 120px;
        background: linear-gradient(to right, transparent, #ffffff);
        pointer-events: none;
        z-index: 10;
    }

    .tekstai-strip-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(93, 118, 139, 0.35);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 0.5px solid rgba(255, 255, 255, 0.25);
        box-shadow: none;
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
        color: #ffffff;
        transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
    }

    .tekstai-strip-arrow:hover {
        background: rgba(93, 118, 139, 0.55);
        box-shadow: none;
    }

    .tekstai-strip-arrow--prev {
        left: var(--space-lg);
    }

    .tekstai-strip-arrow--next {
        right: var(--space-lg);
    }

    .tekstai-strip-arrow.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .tekstai-nav-strip {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 24px;
        padding: var(--space-xl) var(--space-lg) var(--space-2xl);
        max-width: var(--container-xl);
        margin: 0 auto;
        margin-top: var(--space-2xl);
    }

    .tekstai-nav-strip::-webkit-scrollbar {
        display: none;
    }

    .tekstai-nav-card {
        flex: 0 0 calc(30% - 16px);
        position: relative;
        overflow: hidden;
        text-decoration: none;
        display: block;
        aspect-ratio: 2 / 3;
        border-bottom: 4px solid #5D768B;
        transition: transform 0.25s ease;
    }

    .tekstai-nav-card:hover {
        transform: translateY(-4px);
    }

    .tekstai-nav-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    .tekstai-nav-card picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    .tekstai-nav-card picture img {
        position: static;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .tekstai-nav-card-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background: #ffffff;
        padding: 20px 24px 24px;
        height: 190px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .tekstai-nav-card-meta {
        font-size: 11px;
        color: var(--color-text-light);
        letter-spacing: 0.06em;
        text-transform: none;
        margin-bottom: 8px;
    }

    .tekstai-nav-card-title {
        font-family: var(--font-heading);
        font-size: 20px;
        font-weight: 400;
        color: var(--color-text);
        line-height: 1.3;
        margin: 0 0 10px 0;
    }

    .tekstai-nav-card-desc {
        font-size: 13px;
        color: var(--color-text-light);
        line-height: 1.6;
    }

    .tekstai-nav-dots {
        display: none;
    }

    .page-tekstai .footer {
        display: none;
    }

}

/* === EVENTS SECTION === */

.events-section {
    padding-bottom: 0;
}

.events-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.events-card {
    position: relative;
    overflow: hidden;
    border-left: 4px solid #5D768B;
    text-decoration: none;
    display: block;
    aspect-ratio: 1 / 1;
}

.events-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.events-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(93, 118, 139, 0.92) 0%,
        rgba(93, 118, 139, 0.55) 55%,
        rgba(93, 118, 139, 0.05) 100%
    );
}

.events-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.events-card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

.events-card-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.events-card-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 12px 0;
}

.events-card-btn {
    font-size: 13px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    display: inline;
    padding-bottom: 2px;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
    }

    .events-card {
        aspect-ratio: unset;
        height: 140px;
    }

    .events-card-content {
        padding: 16px;
    }

    .events-card-title {
        font-size: 20px;
    }

    .events-card-date {
        font-size: 12px;
    }
}

@keyframes events-pulse-ring {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(2.2); opacity: 0;   }
    100% { transform: scale(1);   opacity: 0;   }
}
@keyframes events-pulse-dot {
    0%, 100% { opacity: 1;   }
    50%       { opacity: 0.6; }
}

.events-pulse-wrap {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    pointer-events: none;
}
.events-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    animation: events-pulse-ring 2s ease-out infinite;
}
.events-pulse-dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #fff;
    animation: events-pulse-dot 2s ease-in-out infinite;
}

@media (min-width: 769px) {
    .events-pulse-wrap {
        display: none;
    }
    .events-card {
        transition: transform 0.25s ease;
    }
    .events-card:hover {
        transform: translateY(-4px);
    }
}

/* ============================================
   HOME TEKSTAI SECTION
   ============================================ */

.home-tekstai-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.home-tekstai-dots {
    display: none;
}

.home-tekstai-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.home-tekstai-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
}

.home-tekstai-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(93,118,139,0.97) 0%, rgba(93,118,139,0.85) 30%, rgba(93,118,139,0.0) 60%);
}

.home-tekstai-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 24px 28px;
    z-index: 1;
}

.home-tekstai-card-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #5D768B;
    z-index: 2;
}

.home-tekstai-card-time {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.home-tekstai-card-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.home-tekstai-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 769px) {
    .home-tekstai-card {
        transition: transform 0.25s ease;
        aspect-ratio: 1 / 1;
    }
    .home-tekstai-card:hover {
        transform: translateY(-4px);
    }
    .home-tekstai-card-overlay {
        display: none;
    }
    .home-tekstai-card-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px 24px 24px;
        background: #ffffff;
        z-index: 1;
    }
    .home-tekstai-card-time {
        color: var(--color-text-light);
    }
    .home-tekstai-card-title {
        font-size: 20px;
        color: var(--color-text);
    }
    .home-tekstai-card-desc {
        color: var(--color-text-light);
        line-height: 1.6;
    }
    .home-tekstai-card-bar {
        z-index: 2;
    }
}

@media (max-width: 768px) {
    .home-tekstai-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: calc(50% - 42.5vw);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        max-width: unset;
        padding: 0 calc(50% - 42.5vw);
        margin-left: calc(-1 * var(--space-sm));
        margin-right: calc(-1 * var(--space-sm));
    }

    .home-tekstai-strip::-webkit-scrollbar {
        display: none;
    }

    .home-tekstai-card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        aspect-ratio: 2 / 3;
        height: unset;
        margin-right: 12px;
        display: flex;
        flex-direction: column;
    }

    .home-tekstai-card:last-child {
        margin-right: 0;
    }

    .home-tekstai-card-overlay {
        display: none;
    }

    .home-tekstai-card-content {
        position: static;
        background: #5D768B;
        border-top: 3px solid #ffffff;
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
        z-index: 1;
        height: 30%;
        flex-shrink: 0;
        overflow: hidden;
        margin-top: auto;
    }

    .home-tekstai-card-time {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.65);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding-top: 0;
        border-top: none;
    }

    .home-tekstai-card-title {
        font-size: var(--text-lg);
        color: #ffffff;
    }

    .home-tekstai-card-desc {
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, 0.75);
        line-height: 1.5;
    }

    .home-tekstai-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: var(--space-sm) 0 var(--space-md);
    }

    .home-tekstai-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: rgba(93, 118, 139, 0.25);
        transition: all 0.3s ease;
    }

    .home-tekstai-dot.active {
        width: 18px;
        border-radius: 3px;
        background-color: #5D768B;
    }
}

/* ============================================
   KONTAKTAI — Desktop Split Layout
   ============================================ */

/* Hidden on desktop, shown only on mobile */
.kd-desktop-identity,
.kd-desktop-form-header,
.kd-compact-card {
    display: none;
}

@media (min-width: 769px) {

    /* Hide generic hero */
    body.page-kontaktai .hero-page {
        display: none;
    }

    /* Section — centered container with padding */
    body.page-kontaktai .kontaktai-split-section {
        padding: calc(89px + 48px) 0 80px;
    }

    /* Use normal container */
    body.page-kontaktai .kontaktai-split-section > .container {
        max-width: var(--container-xl);
        padding: 0 var(--space-lg);
    }

    /* Two columns: 1/3 + 2/3 */
    body.page-kontaktai .contact-grid {
        grid-template-columns: 1fr 2fr;
        gap: 40px;
        min-height: auto;
        align-items: center;
    }

    /* ── LEFT CARD ── */
    body.page-kontaktai .contact-info {
        background-color: #FAF9F6;
        padding: 48px 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    /* Hide old identity block on desktop */
    .kd-desktop-identity {
        display: none;
    }

    /* Show new compact card on desktop */
    .kd-compact-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .kd-compact-avatar {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: 16px;
        flex-shrink: 0;
    }

    .kd-compact-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .kd-compact-name {
        font-family: 'Playfair Display', serif;
        font-size: 22px;
        font-weight: 400;
        color: #5D768B;
        margin-bottom: 6px;
    }

    .kd-compact-role {
        font-family: var(--font-primary);
        font-size: 11px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #7C8C76;
        margin-bottom: 0;
    }

    .kd-compact-divider {
        width: 40px;
        height: 1px;
        background: #DCDFD6;
        margin: 20px auto;
    }

    .kd-compact-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .kd-contact-row {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--font-primary);
        font-size: 14px;
        color: #5D768B;
        text-decoration: none;
    }

    .kd-contact-row--static {
        cursor: default;
    }

    .kd-contact-row svg {
        color: #7C8C76;
        flex-shrink: 0;
    }

    .kd-contact-row:not(.kd-contact-row--static):hover {
        text-decoration: underline;
    }

    /* Hide old contact items (labels + values) on desktop */
    body.page-kontaktai .contact-info .contact-item {
        display: none;
    }

    /* Hide "Susisiekime" heading + description */
    body.page-kontaktai .contact-intro {
        display: none;
    }

    /* ── RIGHT PANEL ── */
    body.page-kontaktai .kontaktai-form-col {
        background-color: #ffffff;
        padding: 48px 48px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-self: stretch;
    }

    body.page-kontaktai #contactForm {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    body.page-kontaktai .kontaktai-form-col .form-group:last-of-type {
        margin-bottom: 16px;
    }

    /* Desktop form heading */
    .kd-desktop-form-header {
        display: block;
        margin-bottom: 8px;
    }

    .kd-form-title {
        font-family: 'Playfair Display', serif;
        font-size: 22px;
        font-weight: 400;
        color: #3D5167;
        margin-bottom: 8px;
    }

    .kd-form-subtitle {
        font-size: 14px;
        color: #7C8C76;
    }

    /* Hide mobile-only elements */
    body.page-kontaktai .contact-buttons-mobile {
        display: none;
    }

    body.page-kontaktai .form-toggle-btn {
        display: none;
    }

    /* Show form directly without toggle */
    body.page-kontaktai .contact-form-wrapper {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* Hide footer — merges visually with dark left panel */
    body.page-kontaktai .footer {
        display: none;
    }

    /* ── UNDERLINE FORM ── */

    /* Hide labels — placeholders carry the meaning */
    body.page-kontaktai .kontaktai-form-col .form-label {
        display: none;
    }

    body.page-kontaktai .kontaktai-form-col .form-group {
        margin-bottom: 20px;
    }

    /* Borderless inputs — only bottom line */
    body.page-kontaktai .kontaktai-form-col .form-input,
    body.page-kontaktai .kontaktai-form-col .form-select,
    body.page-kontaktai .kontaktai-form-col .form-textarea {
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(61, 81, 103, 0.25);
        border-radius: 0;
        padding: 8px 0;
        font-size: 14px;
        color: #3D5167;
        box-shadow: none;
        transition: border-color 0.2s ease;
    }

    body.page-kontaktai .kontaktai-form-col .form-input::placeholder,
    body.page-kontaktai .kontaktai-form-col .form-textarea::placeholder {
        color: rgba(61, 81, 103, 0.45);
    }

    /* Select arrow color fix on transparent bg */
    body.page-kontaktai .kontaktai-form-col .form-select {
        appearance: auto;
        cursor: pointer;
    }

    body.page-kontaktai .kontaktai-form-col .form-input:focus,
    body.page-kontaktai .kontaktai-form-col .form-select:focus,
    body.page-kontaktai .kontaktai-form-col .form-textarea:focus {
        outline: none;
        border-bottom-color: #5D768B;
        box-shadow: none;
    }

    body.page-kontaktai .kontaktai-form-col .form-textarea {
        resize: none;
        min-height: 70px;
    }

    body.page-kontaktai .kontaktai-form-col .form-input.error,
    body.page-kontaktai .kontaktai-form-col .form-textarea.error {
        border-bottom-color: #DC2626;
    }

    body.page-kontaktai .kontaktai-form-col #submitBtn {
        background: #FAF9F6;
        color: #5D768B;
        border: none;
        border-radius: 0;
        padding: 12px 32px;
        font-size: 11px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        width: auto;
        display: inline-block;
        transition: background 0.2s ease;
        align-self: flex-end;
        margin-top: 0;
    }

    body.page-kontaktai .kontaktai-form-col #submitBtn:hover {
        background: #DCDFD6;
        color: #5D768B;
    }
}

/* ============================================
   REGISTRATION MODAL (paslaugos.html)
   ============================================ */
/* Mobile: bottom sheet */
.reg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.reg-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.reg-modal {
    background: #FAF9F6;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 28px 24px 40px;
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.reg-modal-overlay.is-open .reg-modal {
    transform: translateY(0);
}

/* Desktop: centered modal */
@media (min-width: 769px) {
    .reg-modal-overlay {
        align-items: center;
        padding: var(--space-lg);
    }

    .reg-modal {
        border-radius: var(--radius-md);
        padding: 40px;
        max-width: 480px;
        max-height: 90vh;
        transform: translateY(16px);
    }

    .reg-modal-overlay.is-open .reg-modal {
        transform: translateY(0);
    }
}

.reg-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-navy);
    opacity: 0.5;
    padding: 4px;
    line-height: 1;
}

.reg-modal-close:hover {
    opacity: 1;
}

.reg-modal-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-navy);
    margin-bottom: var(--space-xl);
}
