/* CVBuilder - Clean & Optimized Production CSS
   Author: Full Stack Developer / Senior SEO Specialist
   Target: Max Performance, Responsive Layout, Modern UI
*/

/* 1. RESET & BASE STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette */
  --primary: #2563eb; /* blue-600 */
  --primary-hover: #1d4ed8; /* blue-700 */
  --primary-light: #eff6ff; /* blue-50 */
  --secondary: #4f46e5; /* indigo-600 */
  --success: #10b981; /* emerald-500 */
  --success-light: #ecfdf5; /* emerald-50 */
  --indigo-light: #e0e7ff; /* indigo-100 */

  /* Neutral Colors */
  --bg-main: #f8fafc; /* slate-50 */
  --bg-white: #ffffff;
  --text-dark: #0f172a; /* slate-900 */
  --text-muted: #475569; /* slate-600 */
  --text-light: #94a3b8; /* slate-400 */
  --text-footer: #94a3b8;
  --bg-footer: #0f172a;
  --border-color: #e2e8f0; /* slate-200 */
  --border-light: #f1f5f9; /* slate-100 */
  --border-footer: #1e293b; /* slate-800 */
}

html,
body {
  height: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* 2. LAYOUT CONTAINERS */
.max-w-7xl {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .max-w-7xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .max-w-7xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.flex-grow {
  flex-grow: 1;
}

/* 3. HEADER STYLES */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-b: 1px solid var(--border-color);
}

.header-container {
  height: 4rem; /* 64px */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}

.logo-accent {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-header {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-white);
  background-color: var(--primary);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(37, 99, 235, 0.1);
}

.btn-header:hover {
  background-color: var(--primary-hover);
}

@media (min-width: 640px) {
  .btn-header {
    display: inline-flex;
  }
}

/* 4. HERO SECTION (BANNER) */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-white);
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .hero-section {
    padding: 7rem 0;
  }
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    45rem 50rem at top,
    var(--indigo-light),
    var(--bg-white)
  );
  opacity: 0.7;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 48rem; /* 768px */
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--primary-light);
  color: #1e40af; /* blue-800 */
  border: 1px solid #bfdbfe; /* blue-200 */
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #030712; /* slate-950 */
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
    line-height: 1.15;
  }
}

.title-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-main {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-white);
  background-color: var(--primary);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 10px 15px -3px rgba(37, 99, 235, 0.2),
    0 4px 6px -4px rgba(37, 99, 235, 0.2);
}

.btn-main:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow:
    0 20px 25px -5px rgba(37, 99, 235, 0.3),
    0 8px 10px -6px rgba(37, 99, 235, 0.3);
}

.btn-main:active {
  transform: translateY(0);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
}

.cta-subtext {
  font-size: 0.75rem;
  color: var(--text-light);
}

@media (min-width: 640px) {
  .cta-wrapper {
    flex-direction: row;
  }
  .btn-main {
    width: auto;
  }
  .cta-subtext {
    position: absolute;
    transform: translateY(4rem);
  }
}

/* 5. BENEFITS SECTION */
.benefits-section {
  padding: 4rem 0;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-light);
}

@media (min-width: 640px) {
  .benefits-section {
    padding: 6rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  color: var(--text-muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.benefit-card:hover {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.icon-fast {
  background-color: var(--primary-light);
  color: var(--primary);
}
.icon-easy {
  background-color: #f5f3ff;
  color: var(--secondary);
} /* indigo-50 */
.icon-free {
  background-color: var(--success-light);
  color: var(--success);
}

.benefit-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.benefit-p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--text-muted);
}

/* 6. FOOTER STYLES */
.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-footer);
  border-top: 1px solid var(--border-footer);
  font-size: 0.875rem;
}

.footer-top {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-info-block {
    grid-column: span 2;
  }
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bg-white);
  letter-spacing: -0.025em;
}

.footer-desc {
  font-size: 0.75rem;
  line-height: 1.625;
  margin-top: 1rem;
  max-width: 24rem;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc; /* slate-200 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  font-size: 0.75rem;
  color: var(--text-footer);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid var(--border-footer);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-law-text {
  color: #64748b; /* slate-500 */
}

/* 7. ANIMATIONS */
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==========================================================================
   COOKIE BANNER STYLES
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 26rem; /* 416px */
  width: calc(100% - 3rem);
  background-color: #1e293b; /* slate-850 — темний благородний фон */
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;

  /* Початковий стан для плавної анімації */
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Клас, який додається через JS */
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-text {
  font-size: 0.815rem;
  line-height: 1.5;
  color: #cbd5e1; /* розмитий білий, приємний для очей */
}

.cookie-policy-link {
  color: #60a5fa; /* приємний блакитний лінк */
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-policy-link:hover {
  color: #93c5fd;
}

.btn-cookie {
  align-self: flex-end;
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.815rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.btn-cookie:hover {
  background-color: var(--primary-hover);
}

.btn-cookie:active {
  transform: scale(0.97);
}

/* Адаптивність для мобільних телефонів */
@media (max-width: 640px) {
  .cookie-banner {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    padding: 1rem;
  }

  .cookie-content {
    flex-direction: column;
  }

  .btn-cookie {
    width: 100%; /* на мобілках кнопка на всю ширину для зручного тапу */
    text-align: center;
  }
}
/* ==========================================================================
   LEGAL PAGES STYLES (Privacy, Terms, Cookies)
   ========================================================================== */
.legal-page-content {
  padding: 4rem 0;
  background-color: var(
    --bg-main,
    #f8fafc
  ); /* світлий фон для зручного читання тексту */
  color: #334155; /* slate-700 */
}

.container-narrow {
  max-width: 48rem; /* 768px — ідеальна ширина для читання великих текстів */
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-article {
  background: #ffffff;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.legal-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.legal-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a; /* slate-900 */
  margin-bottom: 0.5rem;
}

.legal-header .subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.legal-header .meta-date {
  font-size: 0.875rem;
  color: #94a3b8;
}

.legal-intro-box {
  background-color: #f8fafc;
  border-left: 4px solid var(--primary, #3b82f6);
  padding: 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-intro-box.alert-box {
  border-left-color: #f59e0b; /* помаранчевий колір для Оферти */
  background-color: #fffbeb;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

.legal-list {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-list li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

/* Адаптивність для телефонів */
@media (max-width: 640px) {
  .legal-page-content {
    padding: 1.5rem 0;
  }
  .legal-article {
    padding: 1.5rem;
    border-radius: 0.5rem;
  }
  .legal-header h1 {
    font-size: 1.75rem;
  }
}
