/* --- Variables --- */
:root {
	--color-bg: #f8fafc; /* Дуже світлий сіро-блакитний */
	--color-text: #334155; /* Slate 700 */
	--color-text-light: #64748b; /* Slate 500 */
	--color-primary: #2563eb; /* Blue 600 - Технологія */
	--color-primary-dark: #1d4ed8;
	--color-accent: #84cc16; /* Lime 500 - Енергія/Інновація */
	--color-white: #ffffff;
	--color-footer-bg: #0f172a; /* Slate 900 */

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

	--container-width: 1200px;
	--header-height: 80px;
	--radius-md: 8px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
	--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;
}

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

/* --- Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-weight: 600;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-family: var(--font-display);
}

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

.btn--primary:hover {
	background-color: var(--color-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- Logo Styles --- */
.logo-accent-1 {
	stroke: var(--color-primary);
}
.logo-accent-2 {
	stroke: var(--color-accent);
}
.logo-accent-1-fill {
	fill: var(--color-primary);
	stroke: none;
}

/* --- Header --- */
.header {
	height: var(--header-height);
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: var(--shadow-sm);
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-footer-bg);
}

.header__nav {
	display: flex;
	align-items: center;
	gap: 40px;
}

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

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

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

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

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

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

/* --- Mobile Menu Logic --- */
@media (max-width: 991px) {
	.header__burger {
		display: block;
	}

	.header__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;
		justify-content: center;
		padding: 40px;
		transition: var(--transition);
		border-top: 1px solid #e2e8f0;
	}

	.header__nav.active {
		right: 0;
	}

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

	.header__link {
		font-size: 1.2rem;
	}
}

/* --- Footer --- */
.footer {
	background-color: var(--color-footer-bg);
	color: var(--color-white);
	padding: 60px 0 20px;
	margin-top: auto; /* Притискаємо футер до низу */
}

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

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

.footer__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-white);
	margin-bottom: 15px;
}

.footer__desc {
	color: #94a3b8;
	font-size: 0.9rem;
	max-width: 300px;
}

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

.footer__link {
	color: #cbd5e1;
	font-size: 0.95rem;
}

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

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

.footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #cbd5e1;
	font-size: 0.95rem;
}

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

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	text-align: center;
	font-size: 0.85rem;
	color: #64748b;
}

@media (max-width: 768px) {
	.footer__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* --- Hero Section --- */
.hero {
	padding: 120px 0 80px; /* Відступ зверху враховує фіксований хедер */
	min-height: 100vh;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
	overflow: hidden;
	position: relative;
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

/* Left Content */
.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: rgba(132, 204, 22, 0.1);
	color: #65a30d; /* Darker Lime */
	padding: 8px 16px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 24px;
	border: 1px solid rgba(132, 204, 22, 0.2);
}

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

.hero__title {
	font-family: var(--font-display);
	font-size: 2.5rem;
	line-height: 1.1;
	font-weight: 800;
	margin-bottom: 24px;
	color: var(--color-footer-bg);
}

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

.hero__desc {
	font-size: 1.15rem;
	color: var(--color-text-light);
	margin-bottom: 20px;
	max-width: 500px;
}

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

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

.btn--outline:hover {
	background-color: rgba(37, 99, 235, 0.05);
	transform: translateY(-2px);
}

.hero__btn i {
	margin-left: 8px;
	width: 18px;
	height: 18px;
}

.hero__stats {
	display: flex;
	gap: 40px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.hero__stat-num {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.8rem;
	color: var(--color-primary);
}

.hero__stat-label {
	font-size: 0.9rem;
	color: var(--color-text-light);
}

/* Right Visual & Animation */
.hero__visual {
	position: relative;
	height: 500px;
	width: 100%;
	background: radial-gradient(
		circle at center,
		rgba(37, 99, 235, 0.05) 0%,
		transparent 70%
	);
	border-radius: 24px;
}

.hero__animation-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: repeat(10, 1fr); /* Сітка 10x10 */
	grid-template-rows: repeat(10, 1fr);
	gap: 4px;
	padding: 20px;
}

/* Елементи, які буде генерувати JS */
.anime-dot {
	background-color: var(--color-primary);
	border-radius: 50%;
	opacity: 0.2;
	transform: scale(0);
}

.hero__card-float {
	position: absolute;
	bottom: 40px;
	left: -20px;
	background: white;
	padding: 15px 25px;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 15px;
	animation: float 6s ease-in-out infinite;
	border-left: 4px solid var(--color-accent);
}

.hero__card-icon {
	color: var(--color-accent);
	width: 24px;
	height: 24px;
}

.hero__card-float strong {
	display: block;
	font-size: 0.9rem;
	color: var(--color-footer-bg);
}

.hero__card-float span {
	font-size: 0.8rem;
	color: var(--color-text-light);
}

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

/* Mobile Adaptivity */
@media (max-width: 991px) {
	.hero {
		padding-top: 100px;
		height: auto;
		min-height: auto;
	}

	.hero__container {
		grid-template-columns: 1fr;
		gap: 40px;
		text-align: center;
	}

	.hero__badge {
		margin: 0 auto 20px;
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero__desc {
		margin: 0 auto 20px;
	}

	.hero__actions {
		justify-content: center;
		flex-direction: column;
	}

	.hero__stats {
		justify-content: center;
	}

	.hero__visual {
		height: 350px; /* Менша висота для мобільних */
		order: -1; /* Візуал зверху на мобільному */
	}

	.hero__card-float {
		left: 50%;
		transform: translateX(-50%);
		bottom: -10px;
		animation: none; /* Вимикаємо складну анімацію на мобільному для продуктивності */
	}
}


/* --- General Section Styles --- */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-footer-bg);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.section-footer {
    margin-top: 50px;
    text-align: center;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--color-white);
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

/* Ефект тонкої смужки зверху при ховері */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card__icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1); /* Primary Light */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
    transition: var(--transition);
}

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

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

.feature-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобільному */
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px;
    }
}

/* --- Section Background Alternative --- */
.section--bg {
    background-color: #eff6ff; /* Light blue tint */
}

/* --- Tabs Wrapper --- */
.tabs-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* --- Tabs Navigation (Left) --- */
.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid #e2e8f0;
    padding-right: 30px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text-light);
    transition: var(--transition);
    width: 100%;
}

.tab-btn i {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: #f1f5f9;
    color: var(--color-primary);
}

.tab-btn.active {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}

.tab-btn.active i {
    color: var(--color-primary);
}

/* --- Tabs Content (Right) --- */
.tabs-content {
    position: relative;
    min-height: 300px;
}

.tab-pane {
    display: none; /* Hidden by default */
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: grid;
}

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

.tab-pane__image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-sm);
}

.tab-pane__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tab-pane__text h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-footer-bg);
}

.tab-pane__text p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.check-list {
    margin-bottom: 25px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
}

.check-list li i {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fffbeb; /* Yellow tint */
    color: #b45309;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

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

/* --- Mobile Adaptivity --- */
@media (max-width: 991px) {
    .tabs-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .tabs-nav {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 12px;
        justify-content: center;
    }
    
    .tab-pane {
        grid-template-columns: 1fr;
    }
    
    .tab-pane__image {
        height: 200px;
        order: -1;
    }
}

@media (max-width: 480px) {
    .tabs-nav {
        grid-template-columns: 1fr; /* Stack buttons on very small screens */
    }
}

/* --- Dark CTA Section --- */
.section--dark {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
}

.text-white { color: var(--color-white); }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }

.cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn--accent {
    background-color: var(--color-accent);
    color: #fff; /* Для кращого контрасту на Lime можна брати темний колір, але білий теж ок */
    color: var(--color-footer-bg); /* Темний текст на лаймовому фоні краще читається */
}

.btn--accent:hover {
    background-color: #a3e635;
    transform: translateY(-2px);
}

.cta-divider {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.link-white {
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

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

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

.contact-desc {
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-text);
}

.contact-item p {
    color: var(--color-text-light);
}

/* --- Contact Form --- */
.contact-form-box {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.form-check label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1.4;
}

.btn--full {
    width: 100%;
    gap: 10px;
}

/* --- Success Message --- */
.success-message {
    text-align: center;
    padding: 40px 0;
    animation: slideUp 0.4s ease;
}

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

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

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

.success-message h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-footer-bg);
}

/* Mobile Adaptivity */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .contact-form-box {
        padding: 24px;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cookie-popup.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-icon {
    font-size: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.4;
}

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

.cookie-text a:hover {
    color: var(--color-primary-dark);
}

@media (max-width: 480px) {
    .cookie-popup {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 25px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Policy Pages (Text Content Styles) --- */
/* Ці стилі будуть застосовані до privacy.html, terms.html і т.д. */

.pages {
    padding: 140px 0 80px; /* Більший відступ зверху через фіксований хедер */
    min-height: 80vh;
}

.pages h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-footer-bg);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.pages h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-text);
    margin: 40px 0 20px;
}

.pages p {
    margin-bottom: 15px;
    color: var(--color-text);
    font-size: 1.05rem;
    max-width: 800px; /* Обмеження ширини для комфортного читання */
}

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

.pages li {
    list-style-type: disc;
    margin-bottom: 10px;
    color: var(--color-text);
    padding-left: 5px;
}

.pages li strong {
    color: var(--color-footer-bg);
}

.pages a {
    color: var(--color-primary);
    font-weight: 500;
}

.pages a:hover {
    text-decoration: underline;
}

/* Адаптив для текстових сторінок */
@media (max-width: 768px) {
    .pages {
        padding-top: 120px;
    }
    .pages h1 {
        font-size: 2rem;
    }
}