/* ===============================  RESET & BASE  =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 18px;
  line-height: 1.58;
  color: #1a1f15;
  background: linear-gradient(135deg, #ebe8e3 0%, #e2ded5 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===============================  CSS VARIABLES  =============================== */
:root {
  --text-primary: #1a1f15;
  --text-secondary: #4f5b47;
  --accent: #0e6b4e;          /* насичений зелено-аквамарин */
  --accent-light: #1c8a66;
  --accent-hover: #0a5a40;
  --bg-start: #ebe8e3;        /* м’який холодний сірий */
  --bg-end: #e2ded5;
  --header-bg: #ffffff;
  --footer-bg: #1a1f15;
  --text-footer: #d4d0c0;
  --border: rgba(90, 107, 63, .25); /* індиго-синій */
  --shadow: rgba(90, 107, 63, .12);
  --shadow-hover: rgba(90, 107, 63, .25);
  --card-bg: #f5f7fa;         /* преміум-сірий */
  --card-hover: #ffffff;
}

/* ===============================  TYPOGRAPHY  =============================== */
/* Lora для заголовків, Inter як запасний */
h1, h2, h3 {
  font-family: 'Lora', 'Inter', sans-serif; 
}

h1 {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 24px 0;
  color: var(--text-primary);
}
h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin: 48px 0 16px 0;
  color: var(--text-primary);
}
h3 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.24;
  margin: 32px 0 12px 0;
  color: var(--text-primary);
}
p {
  font-size: clamp(17px, 2vw, 18px);
  line-height: 1.58;
  margin: 0 0 24px 0;
  color: var(--text-primary);
}
small, .caption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 107, 78, .3);
  transition: border-color .2s ease;
}
a:hover {
  border-bottom-color: var(--accent);
}

/* ===============================  HEADER  =============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--accent);
  box-shadow: none;
  padding: 12px 0;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
header.hidden {
  transform: translateY(-100%);
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.logo {
font-size: 24px;
font-weight: 600;
letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: none !important;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background .25s ease, box-shadow .25s ease;
}
.login-button:hover {
  background: rgba(14, 107, 78, .1);
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow);
}
.burger-menu {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.burger-menu:hover {
  background: rgba(14, 107, 78, .1);
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow);
}
.burger-line {
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===============================  SIDE MENU  =============================== */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1100;
  backdrop-filter: blur(4px);
}
.menu-overlay.active {
  display: block;
}
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(40px);
  box-shadow: -4px 0 24px var(--shadow);
  z-index: 1200;
  transition: right .3s cubic-bezier(.4, 0, .2, 1);
  padding: 32px;
  overflow-y: auto;
}
.side-menu.active {
  right: 0;
}
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.menu-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}
.menu-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--accent);
  cursor: pointer;
  transition: transform .3s ease;
}
.menu-close:hover {
  transform: rotate(90deg);
}
.menu-section {
  margin-bottom: 32px;
}
.menu-section h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.menu-links {
  list-style: none;
}
.menu-links li {
  margin-bottom: 8px;
}
.menu-links a {
  display: block;
  padding: 12px 16px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  border-radius: 12px;
  transition: all .25s ease;
  border-bottom: none;
}
.menu-links a:hover {
  background: rgba(14, 107, 78, .1);
  color: var(--accent);
  transform: translateX(4px);
}

/* ===============================  MAIN + HERO  =============================== */
main {
  flex: 1 0 auto;
  padding-top: 140px;
}
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  padding: 80px 16px 60px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -.2px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===============================  GRID SYSTEM  =============================== */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===============================  BUTTONS  =============================== */
.test-button,
.btn-primary,
.submit-button,
.search-button {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(14, 107, 78, .25),
              inset 0 1px 0 rgba(255, 255, 255, .15);
}
.test-button:hover,
.btn-primary:hover,
.submit-button:hover,
.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 107, 78, .35),
              inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-secondary {
  background: rgba(14, 107, 78, .08);
  color: var(--accent);
  border: 2px solid rgba(14, 107, 78, .2);
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(14, 107, 78, .15);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===============================  CARDS / LISTS  =============================== */
.feature-list,
.process-grid,
.usecases-grid,
.principles-list {
  display: grid;
  gap: 16px;
}
.feature-list li,
.process-step,
.usecase-card,
.principle-item {
  padding: 24px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all .3s ease;
}
.feature-list li:hover,
.process-step:hover,
.usecase-card:hover,
.principle-item:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--shadow-hover);
}
.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(14, 107, 78, .25);
  transition: all .3s ease;
}
.process-step:hover .step-number {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(14, 107, 78, .35);
}

/* ===============================  SECTIONS  =============================== */
.cta-section {
  margin-top: 100px;
  padding: 56px 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px var(--shadow);
}
.cta-button {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-radius: 12px;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(14, 107, 78, .3);
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 107, 78, .45);
}
.success-container,
.success-card,
.document-block,
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 8px 32px var(--shadow);
}

/* ===============================  FOOTER  =============================== */
footer {
  flex-shrink: 0;
  background: var(--footer-bg);
  color: var(--text-footer);
  padding: 48px 0;
  margin-top: 0;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  font-size: 14px;
  color: var(--text-footer);
  font-weight: 500;
}
.footer-section h3 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .95);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  transition: all .2s ease;
  border-bottom: none;
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  transition: all .3s ease;
  border: 2px solid transparent;
  fill: currentColor;
}
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.social-icon.linkedin {
  background: rgba(0, 119, 181, .15);
  color: #87ceeb;
  border-color: rgba(0, 119, 181, .3);
}
.social-icon.linkedin:hover {
  background: #0077b5;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 119, 181, .4);
}
.social-icon.facebook {
  background: rgba(24, 119, 242, .15);
  color: #87ceeb;
  border-color: rgba(24, 119, 242, .3);
}
.social-icon.facebook:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, .4);
}
.social-icon.instagram {
  background: linear-gradient(45deg, rgba(245, 96, 64, .15), rgba(252, 175, 69, .15));
  color: #e1306c;
  border-color: rgba(225, 48, 108, .3);
}
.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f56040, #fcaf45, #f77737);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(225, 48, 108, .4);
}
.social-icon.telegram {
  background: rgba(0, 136, 204, .15);
  color: #87ceeb;
  border-color: rgba(0, 136, 204, .3);
}
.social-icon.telegram:hover {
  background: #0088cc;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, .4);
}


.modal {
    position: fixed; /* Фиксируем поверх страницы */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* затемнение фона */
    display: flex;
    justify-content: center; /* центрируем контент */
    align-items: center;
    z-index: 9999; /* поверх всех элементов */

}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.login-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.login-form label {
    width: 100px; /* одинаковая ширина для выравнивания */
    font-weight: 500;
}

.login-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.modal-title {
    margin: 0 0 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.close:hover {
    color: #000;
}


/* ===============================  UNIVERSAL MOBILE FIX (FINAL: ALL IN ONE)  =============================== */
/* Цей код покриває: iPhone (всі моделі), Android, вертикальні планшети */
@media (max-width: 820px) {

  /* --- 1. БАЗА --- */
  body {
    font-size: 16px; /* Запобігає зуму сторінки на iOS */
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }

  /* --- 2. СТРУКТУРА СТОРІНКИ --- */
  main {
    padding-top: 115px !important; /* Відступ, щоб хедер не закривав контент */
  }

  /* Максимально розширюємо контент, залишаючи мінімальні бортики (12px) */
  .header-content,
  .main-content,
  .hero,
  .footer-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100%;
  }

  /* --- 3. КАРТКИ (Загальні) --- */
  /* Робимо їх широкими та прибираємо зайві внутрішні відступи */
  .success-container,
  .success-card,
  .document-block,
  .form-card,
  .cta-section,
  .feature-list li,
  .process-step {
    padding: 24px 16px !important; /* Оптимальний баланс краси та місткості */
    width: 100% !important;
    margin-top: 20px;
    box-sizing: border-box;
    border-radius: 16px;
  }

  /* --- 4. СПЕЦІАЛЬНИЙ ФІКС ДЛЯ БЛОКУ ПОШУКУ (HERO) --- */
  /* Цей блок має бути ще компактнішим, щоб влізла вся форма */
  .hero .form-card,
  .hero form {
    padding: 20px 12px !important;
    display: flex;
    flex-direction: column;
  }

  /* Поле вводу в Hero */
  .hero input[type="text"],
  .hero input[type="search"] {
    width: 100% !important;
    padding: 14px !important;
    margin-bottom: 16px; /* Відступ до чекбокса */
    height: 50px;
  }

  /* Чекбокс та згода */
  .hero label,
  .form-group label {
    display: flex !important;
    align-items: flex-start !important; /* Вирівнювання по верху */
    gap: 12px !important;
    margin: 0 !important;
    /* width: 100%; */
  }
  
  /* Сама галочка */
  .hero input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin-top: 2px !important;
  }
  
  /* Текст згоди */
  .hero label span,
  .hero label div,
  .hero .caption {
    font-size: 13px !important; /* Акуратний розмір для юридичного тексту */
    line-height: 1.4 !important;
    text-align: left;
    flex: 1; /* Займає весь доступний простір */
  }

  /* --- 5. КНОПКИ ТА ІНПУТИ (Глобально) --- */
  .test-button,
  .btn-primary,
  .submit-button,
  .cta-button,
  .search-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal; /* Дозволяє перенос слів */
    line-height: 1.25;
    height: auto;
  }

  input[type="text"],
  input[type="email"] {
    width: 100% !important;
    box-sizing: border-box;
    font-size: 16px !important;
  }

  /* --- 6. ЗАГОЛОВКИ ТА ФУТЕР --- */
  h1 {
    font-size: 28px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
  }
  h2 {
    font-size: 22px;
    margin-top: 24px;
  }
  
  footer {
    padding: 40px 0 60px;
    text-align: center;
  }
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .social-links {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
    margin-top: 44px;
  }
  h3 {
    font-size: 22px;
  }
  .header-content {
    padding: 0 32px;
  }
  .main-content {
    padding: 0 32px;
  }
  .footer-content {
    padding: 0 32px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .header-content,
  .main-content,
  .footer-content {
    padding: 0 36px;
  }
}

@media (min-width: 1281px) and (max-width: 1600px) {
  .header-content,
  .main-content,
  .footer-content {
    padding: 0 40px;
  }
}

@media (min-width: 1601px) {
  .header-content,
  .main-content,
  .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
  }
}

/* ===============================  PRINT  =============================== */
@media print {
  header, footer, .print-button, .burger-menu {
    display: none !important;
  }
  body {
    background: white;
  }
  .document-block,
  .success-card,
  .form-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .hero {
    margin-top: 0;
    padding-top: 20px;
  }
}

/* ===============================  UTILITIES  =============================== */
.cta-section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -.2px;
}
.cta-section p {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.tech-badge {
  padding: 12px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all .3s ease;
}
.tech-badge:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}
.text-content-narrow {
  max-width: 768px;
  margin: 0 auto;
}
::selection {
  background: rgba(14, 107, 78, .25);
}
/* --- MEDIUM-STYLE READING CONTAINER --- */
/* Використовуйте цей клас для Terms, Privacy, FAQ, Blog */
.container-narrow {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 16px 100px; /* 16px збоку, 100px знизу */
}

/* На мобільних зменшуємо відступи */
@media (max-width: 768px) {
  .container-narrow {
    padding: 0 20px 80px;
  }
}





/* Age Filters */
.age-filters-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    /* margin-top: 40px; */
    margin-bottom: 40px;
	position: relative;
	z-index: 99;
}

.age-filters-title {
    text-align: center;
    font-size: 1.375rem;
    color: #1a202c;
    margin-bottom: 28px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.age-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.age-filter {
    width: 120px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #0e6b4e;
    border-radius: 12px;
/*     font-size: 1.5rem; */
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.age-filter:hover {
    border-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.age-filter.active {
    background: #0e6b4e;
    color: white;
    border-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.age-filter.viewed {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #cbd5e1;
}

/* Results Content */
.results-content-container {
    margin-top: 40px;
    animation: fadeInUp 0.4s ease-out;
}

.results-content-container.show {
    display: block;
}

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

/* Profile Header */
.profile-header {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.profile-age {
    font-size: 1.1rem;
    color: #34495e;
}

.profile-age-number {
    font-weight: 600;
    color: #3498db;
    font-size: 1.2rem;
}

.profile-zodiac {
    font-size: 1.1rem;
    color: #34495e;
}

.profile-zodiac span {
    font-weight: 500;
    color: #8e44ad;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.meta-item i {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 11px;
}

.records-count {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

/* Records Section */
.records-section {
    background: white;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.section-title i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}


.records-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* Records List */
.records-list  h1{
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

.record-item {
    background: linear-gradient(135deg, #fafbfc, #f8fafc);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 28px 32px 28px 72px;
    transition: all 0.2s ease;
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: stretch;
}

.record-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0e6b4e, #0e6b4e);
    border-radius: 10px 0 0 10px;
}

.record-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.record-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 16px;
}

.record-number {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.record-text {
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
	font-family: 'Roboto', 'Open Sans', sans-serif;
font-weight: 550;
}

/* Action Buttons Container */
.action-buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 36px 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
	position: relative;
	z-index: 1000;
}

.pdf-btn {
    /* background: linear-gradient(135deg, #dc2626, #b91c1c); */
	    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
    color: white;
    padding: 16px; 
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-btn:hover {
/*     transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25); */
	    background: linear-gradient(135deg, #C2410C 0%, #EA580C 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.analysis-btn {
/*     background: linear-gradient(135deg, #7c3aed, #6d28d9); */
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analysis-btn:hover {
/*     transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25); */
	    background: linear-gradient(135deg, #065F46 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.action-btn i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
    /*     padding: 24px 16px; */
    }

    .results-title {
        font-size: 1.875rem;
    }

    .results-header,
    .search-form-container,
    .age-filters-container {
        padding: 28px 24px;
        margin-bottom: 32px;
    }

    .age-filter {
        width: 75px;
        height: 75px;
        font-size: 0.85rem;
    }

    .profile-meta {
        gap: 20px;
    }

    .record-item {
        padding: 24px 20px 24px 60px;
        min-height: auto;
    }

    .record-number {
        left: 16px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .action-buttons-container {
        flex-direction: column;
        gap: 16px;
        padding: 28px 0;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}


.results-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}





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

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Заголовок */
.results-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 36px;
    letter-spacing: -0.75px;
    line-height: 1.2;
}

/* Блок "немає результатів" */
.no-results-block {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 40px 32px;
    margin-bottom: 32px;
    position: relative;
}

/* Іконка */
.no-results-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: checkPulse 0.6s ease-out;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

@keyframes checkPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Основний текст */
.no-results-main {
    font-size: 1.125rem;
    color: #1a202c;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.5;
    padding: 0 20px;
}

/* Підказка */
.no-results-suggestion {
    font-size: 0.9375rem;
    color: #475569;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 20px 12px 44px;
    margin-top: 20px;
    position: relative;
    display: inline-block;
    font-weight: 500;
    text-align: left;
}

.no-results-suggestion::before {
    content: '💡';
    position: absolute;
    left: 16px;
    top: 12px;
    font-size: 16px;
}

/* Додаткова інформація */
.additional-info {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    position: relative;
}

.additional-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 12px 0 0 12px;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

.info-title i {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 14px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 10px 0 10px 28px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    font-weight: 500;
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-list li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 13px;
    color: #10b981;
    font-weight: bold;
    font-size: 10px;
}

/* Статистика */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #fafbfc, #f8fafc);
    border-radius: 10px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Кнопки дій */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
	margin-bottom: 40px;
	position: relative;
	z-index: 1000;

}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
		width:300px;
	justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Декоративні елементи */
.decorative-circles {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    opacity: 0.05;
}

.decorative-circles::before,
.decorative-circles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #2563eb;
}

.decorative-circles::before {
    width: 100px;
    height: 100px;
    top: 0;
    right: 0;
}

.decorative-circles::after {
    width: 60px;
    height: 60px;
    bottom: 0;
    left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .results-section {
        padding: 36px 28px;
    }

    .results-title {
        font-size: 1.875rem;
        margin-bottom: 28px;
    }

    .no-results-block {
        padding: 32px 24px;
    }

    .no-results-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 24px;
    }

    .no-results-main {
        font-size: 1rem;
        padding: 0 10px;
    }

    .no-results-suggestion {
        font-size: 0.875rem;
        padding: 10px 16px 10px 40px;
    }

    .additional-info {
        padding: 24px;
    }

    .stats-row {
        gap: 24px;
        padding: 20px;
    }

    .stat-value {
        font-size: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
	
.form-container {
    width: 100%;
	display: inline-block;
    justify-content: center;
	}
	.styled-button {
		display: inline-block; 
		width: 100%;
		}


	
	
}

@media (max-width: 480px) {
    .results-title {
        font-size: 1.625rem;
    }

    .info-list li {
        font-size: 13px;
        padding-left: 24px;
    }
}

.loading-state{
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}