/* =========================
   0. Variables & Reset
   ========================= */
:root {
	/* Palette */
	--color-bg: #f9fafb; /* Светло-серый фон блога */
	--color-white: #ffffff;
	--color-primary: #0f172a; /* Темный синий/черный - основной текст */
	--color-accent: #10b981; /* Изумрудный зеленый - рост, успех */
	--color-accent-hover: #059669;
	--color-text-muted: #64748b;
	--color-border: #e2e8f0;

	/* Typography */
	--font-main: 'Open Sans', sans-serif;
	--font-head: 'Montserrat', sans-serif;

	/* Layout */
	--container-width: 1200px;
	--header-height: 80px;
	--transition: all 0.3s ease;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: --font-main;
	background-color: var(--color-bg);
	color: var(--color-primary);
	line-height: 1.6;
	font-size: 16px;
	padding-top: var(--header-height); /* Отступ под фиксированный хедер */
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-head);
	font-weight: 700;
	margin-bottom: 1rem;
}

ul {
	list-style: none;
}

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

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

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

body.no-scroll {
	overflow: hidden;
}

/* =========================
   1. Header
   ========================= */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: var(--color-white);
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
	z-index: 1000;
	display: flex;
	align-items: center;
}

.header__container {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

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

.header__logo-text,
.footer__logo-text {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: -0.5px;
}

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

/* Desktop Nav */
.nav__list {
	display: flex;
	gap: 30px;
}

.nav__link {
	font-family: var(--font-head);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-primary);
	position: relative;
}

.nav__link:hover,
.nav__link--active {
	color: var(--color-accent);
}

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

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

/* CTA Button */
.header__cta {
	padding: 10px 24px;
	background-color: var(--color-primary);
	color: var(--color-white);
	font-weight: 600;
	border-radius: 50px;
	font-family: var(--font-head);
	border: 2px solid var(--color-primary);
}

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

/* Burger Menu */
.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
}

.burger__line {
	width: 25px;
	height: 2px;
	background-color: var(--color-primary);
	transition: var(--transition);
}

/* Responsive Header */
.mobile-only {
	display: none;
}

@media (max-width: 992px) {
	.header__cta.desktop-only {
		display: none;
	}
	.mobile-only {
		display: block;
        width: fit-content;
        margin: 0 auto;
	}

	.burger {
		display: flex;
	}

	.nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-white);
		flex-direction: column;
		align-items: center;
		justify-content: center;
		transition: var(--transition);
		border-top: 1px solid var(--color-border);
	}

	.nav--active {
		right: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 25px;
		margin-bottom: 30px;
	}

	.nav__link {
		font-size: 1.2rem;
	}

	/* Burger Animation */
	.burger--active .burger__line:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}
	.burger--active .burger__line:nth-child(2) {
		opacity: 0;
	}
	.burger--active .burger__line:nth-child(3) {
		transform: rotate(-45deg) translate(5px, -5px);
	}
}

/* =========================
   2. Footer
   ========================= */
.footer {
	background-color: #111827; /* Очень темный, почти черный */
	color: #9ca3af;
	padding-top: 60px;
	margin-top: auto;
}

.footer__container {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 40px;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-white);
	margin-bottom: 20px;
}

.footer__desc {
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 20px;
	max-width: 300px;
}

.footer__title {
	color: var(--color-white);
	font-size: 1.1rem;
	margin-bottom: 20px;
}

.footer__list li {
	margin-bottom: 12px;
}

.footer__link {
	font-size: 0.9rem;
	transition: var(--transition);
}

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

.footer__contacts li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 15px;
	font-size: 0.9rem;
}

.footer__icon {
	width: 20px;
	height: 20px;
	color: var(--color-accent);
	flex-shrink: 0;
}

.footer__bottom {
	border-top: 1px solid #374151;
	padding: 20px 0;
	text-align: center;
	font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}


/* =========================
   3. Components (Buttons & Badges)
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-head);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge--accent {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-accent-hover);
}

.badge--dark {
    background-color: #E2E8F0;
    color: var(--color-text-muted);
}

/* =========================
   4. Hero Section
   ========================= */
.hero {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    min-height: calc(100vh - var(--header-height)); /* На весь екран */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

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

.hero__badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero__info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 500;
}

.hero__info-item .text-accent {
    color: var(--color-accent);
}

/* Canvas Animation Area */
.hero__visual {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    /* Легка тінь для об'єму */
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1)); 
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__badges, .hero__actions, .hero__info {
        justify-content: center;
    }
    
    .hero__desc {
        margin: 0 auto 30px auto;
    }

    .hero__visual {
        height: 350px;
        order: -1; /* Анімація зверху на мобільному */
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* =========================
   5. General Sections & Utilities
   ========================= */
.section {
    padding: 80px 0;
}

.bg-white { background-color: var(--color-white); }
.bg-gray { background-color: #F8FAFC; }

.section__header {
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }
.mb-2 { margin-bottom: 1rem; }
.mt-4 { margin-top: 2rem; }

/* =========================
   6. Cards Grid (Strategies)
   ========================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.card__icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-accent);
}

.card__icon {
    width: 30px;
    height: 30px;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.card__desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =========================
   7. Split Layout (Trends)
   ========================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout__image {
    position: relative;
}

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

.rounded { border-radius: 16px; }
.shadow-lg { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Floating Stat Box */
.stat-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 4px solid var(--color-accent);
}

.stat-box__number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-box__text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* Animation for Stat Box */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.floating-anim {
    animation: float 4s ease-in-out infinite;
}

.section__text {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.check-list {
    margin-top: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-primary);
}

.check-list__icon {
    color: var(--color-accent);
    width: 20px;
    height: 20px;
}

/* =========================
   8. Accordion (Mentorship)
   ========================= */
.accordion__item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    background: var(--color-white);
    overflow: hidden;
    transition: var(--transition);
}

.accordion__item.active {
    border-color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.accordion__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    text-align: left;
}

.accordion__icon {
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
}

.accordion__item.active .accordion__icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion__body {
    padding: 0 20px 20px 20px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* =========================
   9. Responsive (Sections)
   ========================= */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split-layout { grid-template-columns: 1fr; }
    .split-layout__image { order: -1; margin-bottom: 30px; }
    .stat-box { right: 20px; }
}

@media (max-width: 576px) {
    .grid-3 { grid-template-columns: 1fr; }
    .section__title { font-size: 2rem; }
    .stat-box { display: none; } /* Ховаємо декор на дуже малих екранах */
}

/* =========================
   10. Contact Section
   ========================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* Form Styles */
.contact-form-box {
    background: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    position: relative;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    width: 20px;
    height: 20px;
}

.form__input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus {
    border-color: var(--color-accent);
    outline: none;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.form__checkbox input {
    margin-top: 3px;
}

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

.btn--full {
    width: 100%;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Success Message */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

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

/* =========================
   11. Cookie Popup
   ========================= */
.cookie-popup {
    position: fixed;
    bottom: -300px; /* Приховано за межами екрану */
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 20px 0;
    z-index: 2000;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

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

.cookie-content p {
    font-size: 0.9rem;
}

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

/* =========================
   12. Policy Pages Styles
   ========================= */
/* Це стилі для окремих сторінок типу privacy.html */
.pages {
    padding: 60px 0 100px;
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.pages p {
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

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

.pages li {
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

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

/* Responsive */
@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; text-align: center; }
}