/* --- VARIABLES --- */
:root {
  --color-bg: #f8f9fa;
  --color-text: #1f2937;
  --color-primary: #0f172a; /* Deep Navy */
  --color-accent: #38bdf8; /* Sky Blue/Cyan */
  --color-highlight: #f472b6; /* Pink/Rose for small accents */
  --color-white: #ffffff;
  --color-border: #e5e7eb;

  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --container-width: 1200px;
  --header-height: 80px;
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: transparent;
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--small {
  padding: 8px 16px;
  font-size: 14px;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.header__container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}

.header__logo-icon svg {
  color: var(--color-accent);
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.header__nav {
  display: none; /* Mobile first hidden */
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
}

.header__menu {
  display: flex;
  gap: 30px;
}

.header__link {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

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

.header__link:hover::after {
  width: 100%;
}

.header__cta {
  display: none;
}

@media (min-width: 768px) {
  .header__cta {
    display: inline-flex;
  }
}

.header__burger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-primary);
  color: #cbd5e1; /* Light gray for text on dark bg */
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 576px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer__col h3 {
  color: var(--color-white);
  font-family: var(--font-heading);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--color-white);
  display: block;
  margin-bottom: 15px;
}

.footer__desc {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer__note {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 14px;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  max-width: var(--container-width);
  margin: 60px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* --- HERO SECTION --- */
.hero {
  padding: 120px 0 80px; /* Відступ зверху враховує фіксований хедер */
  background-color: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Фоновий патерн (сітка) для технологічності */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1); /* Прозорий акцент */
  color: var(--color-accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero__badge i {
  width: 16px;
  height: 16px;
}

/* Typography */
.hero__title {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 52px;
  }
}

.text-gradient {
  background: linear-gradient(90deg, var(--color-accent), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 30px;
  max-width: 500px;
}

@media (min-width: 768px) {
  .hero__desc {
    font-size: 18px;
  }
}

.hero__desc strong {
  color: var(--color-white);
}

.hero__note {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-accent);
  opacity: 0.8;
}

/* Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.btn--outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
}

.hero__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
}

.hero__stat-label {
  font-size: 13px;
  color: #94a3b8;
}

/* Visual & Animation elements */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4/5;
  transform-style: preserve-3d; /* Для 3D ефекту */
  perspective: 1000px;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Декоративні кола ззаду */
.hero__circle {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  filter: blur(60px);
}

.hero__circle--1 {
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  top: -20px;
  right: -20px;
  opacity: 0.3;
}

.hero__circle--2 {
  width: 150px;
  height: 150px;
  background: #8b5cf6; /* Purple */
  bottom: -20px;
  left: -20px;
  opacity: 0.3;
}

/* Floating Card */
.hero__card {
  position: absolute;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero__card--float {
  bottom: 40px;
  left: -30px;
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 576px) {
  .hero__card--float {
    left: 0;
    bottom: 20px;
  }
}

.hero__card-icon {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.2); /* Green tint */
  color: #10b981;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__card-title {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.hero__card-val {
  display: block;
  font-weight: 700;
  color: var(--color-white);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}


/* --- GLOBAL SECTION STYLES --- */
.section {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.section-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    background: #E0F2FE; /* Light Blue */
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-highlight {
    color: #2563EB; /* Royal Blue */
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(56, 189, 248, 0.3); /* Cyan highlight */
    z-index: -1;
    transform: skewX(-10deg);
}

.section-desc {
    font-size: 18px;
    color: #64748B;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 42px;
    }
}

/* --- METHODOLOGY (FEATURES) --- */
.methodology {
    background-color: var(--color-white);
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background-color: #F8FAFC;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: var(--color-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(56, 189, 248, 0.5);
}

.feature-card__icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-accent);
    transition: var(--transition);
}

.feature-card:hover .feature-card__icon-box {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: rotate(5deg);
}

.feature-card__icon-box i {
    width: 28px;
    height: 28px;
}

.feature-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.feature-card__text {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
}

.feature-card__text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* --- CAREER HACKS (ZigZag Layout) --- */
.career-hacks {
    background-color: #F0F4F8; /* Light Gray-Blue background */
}

.hack-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.hack-row:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .hack-row {
        flex-direction: row;
        gap: 80px;
    }
    
    /* Reverse modifier for every second row */
    .hack-row--reverse {
        flex-direction: row-reverse;
    }
}

.hack-row__content {
    flex: 1;
}

.hack-row__visual {
    flex: 1;
    position: relative;
    width: 100%;
}

/* Image styling */
.hack-row__img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1); /* Soft shadow */
    transition: var(--transition);
    object-fit: cover;
    aspect-ratio: 16/10;
}

.hack-row__visual:hover .hack-row__img {
    transform: scale(1.02);
}

/* Typography & Elements */
.hack-row__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.hack-row__text {
    font-size: 16px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
}

.hack-row__text strong {
    color: #2563EB; /* Highlight key phrases */
    font-weight: 600;
}

.hack-row__list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hack-row__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-primary);
}

.hack-row__list i {
    color: #10B981; /* Green checkmarks */
    width: 20px;
    height: 20px;
}

.hack-row__btn {
    margin-top: 20px;
}

/* --- STORIES SECTION (Dark Theme) --- */
.stories {
    background-color: var(--color-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Background decoration line */
.stories::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.text-white-50 {
    color: rgba(255, 255, 255, 0.6);
}

.stories__header {
    margin-bottom: 50px;
    max-width: 600px;
}

/* Scroller Container */
.stories__scroller {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 30px; /* Space for scrollbar/shadow */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.stories__scroller::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Story Card */
.story-card {
    min-width: 300px;
    max-width: 350px;
    background-color: rgba(255, 255, 255, 0.05); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.story-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.story-card__top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.story-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.story-card__name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
}

.story-card__role {
    display: block;
    font-size: 12px;
    color: #94A3B8;
}

.story-card__body {
    flex-grow: 1;
    margin-bottom: 20px;
}

.story-card__body p {
    font-size: 14px;
    line-height: 1.6;
    color: #CBD5E1;
    font-style: italic;
}

.story-card__body strong {
    color: var(--color-accent);
    font-weight: 500;
}

.story-card__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.story-card__result {
    font-size: 13px;
    font-weight: 600;
    color: #10B981; /* Green success color */
    display: flex;
    align-items: center;
}

.stories__nav-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent);
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.7;
}

@media (min-width: 992px) {
    .stories__nav-hint {
        display: none; /* Hide explicit hint on desktop if obvious */
    }
}

/* --- MENTORING / FAQ --- */
.mentoring {
    background-color: var(--color-white);
}

.mentoring__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 992px) {
    .mentoring__grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: start;
    }
}

/* Left Column */
.mentoring__info {
    position: sticky;
    top: 100px; /* Sticky effect on scroll */
}

.mentoring__actions {
    margin-top: 30px;
}

.mentoring__subtext {
    font-size: 13px;
    color: #94A3B8;
    margin-top: 10px;
    padding-left: 5px;
}

/* Accordion (Details/Summary) */
.accordion-item {
    background-color: #F8FAFC;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item[open] {
    background-color: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Remove default marker */
}

/* Remove default marker for Webkit */
.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-primary);
}

.accordion-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.accordion-icon i {
    width: 18px;
    height: 18px;
}

/* Rotate icon when open */
.accordion-item[open] .accordion-icon {
    transform: rotate(45deg);
    background-color: var(--color-primary);
    color: var(--color-white);
}

.accordion-body {
    padding: 0 25px 25px;
    color: #64748B;
    font-size: 15px;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

.accordion-body strong {
    color: var(--color-text);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- CONTACT SECTION --- */
.contact {
    background-color: #0F172A; /* Dark Navy matches footer/hero */
    color: var(--color-white);
    position: relative;
}

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

@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Contact Info */
.contact__details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact__icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact__label {
    display: block;
    font-size: 12px;
    color: #94A3B8;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.contact__link, .contact__text {
    font-size: 16px;
    color: var(--color-white);
    font-weight: 500;
}

.contact__link:hover {
    color: var(--color-accent);
}

.contact__note {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-accent);
}

.contact__note i {
    width: 16px;
    height: 16px;
}

/* Contact Form */
.contact__form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.contact__form-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.captcha-group input {
    width: 100px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form-checkbox input {
    margin-top: 4px;
}

.form-checkbox label {
    font-size: 13px;
    color: #64748B;
    line-height: 1.4;
    cursor: pointer;
}

.contact__submit-btn {
    width: 100%;
    gap: 10px;
    font-size: 16px;
}

/* Success Message */
.contact__success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
    
    /* Hidden logic handled by JS (display: none via inline style or class toggle) */
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.4s ease;
}

.contact__success.active {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon i {
    width: 30px;
    height: 30px;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: -200px; /* Start hidden */
    left: 20px;
    right: 20px;
    background-color: var(--color-white);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
    z-index: 9999;
    transition: bottom 0.5s ease;
    max-width: 400px;
    border: 1px solid var(--color-border);
}

@media (min-width: 576px) {
    .cookie-popup {
        right: auto; /* Left aligned on desktop */
    }
}

.cookie-popup.show {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content p {
    font-size: 14px;
    color: var(--color-text);
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* --- POLICY PAGES STYLING --- */
.pages {
    padding: 120px 0 80px;
    background-color: var(--color-bg);
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary);
    margin: 30px 0 15px;
}

.pages p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #475569;
}

.pages ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.pages li {
    margin-bottom: 10px;
    color: #475569;
}

.pages a {
    color: var(--color-accent);
}

/* --- MOBILE MENU STYLES --- */
@media (max-width: 991px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%; /* Сховано за екраном */
        width: 100%;
        max-width: 320px; /* Ширина шторки */
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        padding: 80px 20px 20px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        display: block; /* Перебиваємо display: none з мобайл-first */
    }

    .header__nav.is-active {
        right: 0; /* Виїжджає */
    }

    .header__menu {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .header__link {
        font-size: 18px;
        display: block;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid var(--color-bg);
    }

    /* Анімація для іконки бургера при відкритті */
    .header__burger {
        position: relative;
        z-index: 1000; /* Поверх меню */
    }
}

/* Клас для body, щоб заблокувати скрол фону */
body.menu-open {
    overflow: hidden;
}