@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --link-color: #3b82f6;
  --link-hover-color: #2563eb;
}

body.dark-mode {
  --link-color: #60a5fa;
  --link-hover-color: #93c5fd;
}

/* ==========================================================================
   FAQ SECTION LAYOUT
   ========================================================================== */
#section1 {
  padding: 120px 5%;
  background: var(--bg-main);
  overflow: visible !important;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
  position: relative;
}

/* ==========================================================================
   SIDEBAR - STICKY
   ========================================================================== */
.faq-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 20vh;
  height: fit-content;
  margin-top: 130px;
  margin-bottom: 90px;
  margin-left: 60px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  align-self: flex-start;
}

.faq-sidebar h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 67px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin: 0 0 40px 0;
  color: var(--text-primary);
}

.faq-sidebar p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 400px;
  padding-left: 32px;
  position: relative;
  margin: 0;
}

.faq-sidebar p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 50px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   ACCORDION GRID
   ========================================================================== */
.accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

/* ==========================================================================
   ACCORDION ITEM
   ========================================================================== */
.accordion-item {
  background: var(--bg-card);
  border-radius: 22px;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.accordion-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.8s;
}

.accordion-item:hover::after { left: 150%; }

.accordion-item:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
}

.accordion-item.active {
  border-color: #3b82f6;
  box-shadow: 0 25px 60px -15px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   ACCORDION HEADER
   ========================================================================== */
.accordion-header {
  width: 100%;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  color: var(--text-primary);
  background: none;
  border: none;
}

/* კითხვის ტექსტი */
.accordion-header > span:first-child {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.45;
  padding-right: 8px;
}

/* + ღილაკი */
.accordion-header > span:last-child {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-main);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accordion-item.active .accordion-header { color: #2563eb; }

.accordion-item.active .accordion-header > span:last-child {
  background: #2563eb;
  color: white;
  transform: rotate(45deg);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   ACCORDION CONTENT
   ========================================================================== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content { max-height: 2000px; }

.accordion-content p {
  padding: 0 28px 28px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.2s;
  white-space: pre-line;
}

.accordion-item.active .accordion-content p {
  opacity: 1;
  transform: translateY(0);
}

.accordion-content p a {
  color: var(--link-color, #3b82f6);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.accordion-content p a:hover {
  color: var(--link-hover-color, #2563eb);
  text-decoration: none;
}

body.dark-mode .accordion-content p a {
  color: var(--link-color, #60a5fa) !important;
}

body.dark-mode .accordion-content p a:hover {
  color: var(--link-hover-color, #93c5fd) !important;
}

/* ==========================================================================
   DARK MODE — ლურჯი კარტები
   ========================================================================== */
body.dark-mode .accordion-item {
  background: #0f2147;
  border-color: #1e3a6e;
}

body.dark-mode .accordion-item:hover {
  border-color: #2563eb;
}

body.dark-mode .accordion-item.active {
  border-color: #3b82f6;
}

body.dark-mode .accordion-header {
  color: #e2e8f0;
}

body.dark-mode .accordion-item.active .accordion-header {
  color: #60a5fa;
}

body.dark-mode .accordion-content p {
  color: #cbd5e1;
}

body.dark-mode .accordion-header > span:last-child {
  background: #1e3a6e;
  color: #60a5fa;
}

/* ==========================================================================
   DARK MODE — general
   ========================================================================== */
body.dark-mode {
  --bg: #020617;
  --bg-dark: #000000;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --white: #0F172A;
  --header-gradient: linear-gradient(to bottom, #0F172A, #020617);
  --footer-gradient: linear-gradient(to bottom, #0F172A, #020617);
  --sb-track: #020617;
  --sb-thumb: #1D4ED8;
}

body.dark-mode .noise-overlay { opacity: 0.2; }
body.dark-mode .cap-card {
  background: var(--white);
  border-color: var(--border);
}
body.dark-mode .cap-card:hover { background: #1E293B; }
body.dark-mode .partner-logo {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
body.dark-mode .nav-item { color: var(--text); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  .faq-sidebar { margin-left: 20px; }
}

@media (max-width: 1024px) {
  .accordion-grid { grid-template-columns: 1fr; }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .faq-sidebar {
    position: static;
    margin-top: 40px;
    text-align: center;
    align-items: center;
    padding-right: 0;
  }

  .faq-sidebar p {
    padding-left: 0;
    border-top: 3px solid #3b82f6;
    padding-top: 20px;
  }

  .faq-sidebar p::before { display: none; }
}

@media (max-width: 768px) {
  #section1 { padding: 44px 4%; }
  .faq-sidebar { margin: 0 0 36px 0; }
.faq-sidebar h1 {
  font-size: 48px;
  margin-bottom: 20px;
}
  .accordion-grid { gap: 10px; }
.accordion-header {
  padding: 18px 16px;
  font-size: 15px;
}
.accordion-content p {
  padding: 0 16px 18px;
  font-size: 14px;
}
  .accordion-item { border-radius: 16px; }
}

@media (max-width: 480px) {
  #section1 { padding: 36px 3.5%; }
.accordion-header {
  padding: 14px 14px;
  font-size: 14px;
  gap: 8px;
}
.accordion-header > span:last-child {
  width: 30px;
  height: 30px;
  font-size: 17px;
  border-radius: 10px;
}
.accordion-content p {
  padding: 0 14px 16px;
  font-size: 14px;
}
  .accordion-item { border-radius: 14px; }
}

@media (max-width: 360px) {
.accordion-header {
  padding: 12px 12px;
  font-size: 13px;
}
  .accordion-content p { font-size: 13px; }
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 112px 0;
}

.cta-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.cta-inner {
  background: #0F1117;
  border-radius: 28px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 230px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.cta-inner h2 {
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 400;
  margin: 8px auto 24px;
  max-width: 500px;
  line-height: 1.05;
}

.cta-inner h2 em {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.45);
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: 15px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: #1D4ED8;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
  background: #3B82F6;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.btn-cta svg {
  transition: transform 0.3s ease;
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

/* CTA - ქართული ენა */
:lang(ka) .cta-inner h2 {
  font-size: 45px;
  line-height: 1.2;
}

:lang(ka) .cta-inner h2 em {
  font-size: 38px;
}

:lang(ka) .btn-cta {
  font-size: 13px;
}

/* CTA - Responsive */
@media (max-width: 1024px) {
  .cta-inner {
    padding: 56px 40px;
  }
  .cta-inner h2 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 64px 0;
  }
  .cta-inner {
    padding: 48px 24px;
    border-radius: 20px;
  }
  .cta-inner h2 {
    font-size: 42px;
  }
  .cta-inner p {
    font-size: 14px;
  }
  .cta-bg-text {
    display: none;
  }
  :lang(ka) .cta-inner h2 {
    font-size: 31px;
  }
}

@media (max-width: 480px) {
  .cta-inner {
    padding: 40px 20px;
  }
  .cta-inner h2 {
    font-size: 35px;
  }
  .btn-cta {
    padding: 14px 22px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
  :lang(ka) .cta-inner h2 {
    font-size: 26px;
  }
  :lang(ka) .btn-cta {
    font-size: 12px;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--sb-track);
}

::-webkit-scrollbar-thumb {
  background: var(--sb-thumb);
  border-radius: 0;
  border: 2px solid var(--sb-track);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sb-hover);
}