/* --- GLOBAL VARS & RESET --- */
:root {
  /* Colors: Airy Pastel + Corporate */
  --primary: #2c3e50; /* Deep Navy */
  --secondary: #a8d5ba; /* Soft Mint */
  --accent: #eda389; /* Muted Coral (акцент для кнопок) */
  --bg-body: #fdfdfd;
  --bg-light: #f4f7f6;
  --text-main: #333333;
  --text-muted: #666666;
  --border: #e0e0e0;

  /* Typography */
  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Layout */
  --container-width: 1240px;
  --header-height: 80px;

  /* Effects (Clean Corporate) */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

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

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

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

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

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

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

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

/* Hover Effect: Minimalist Underline */
.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

.header__cta {
  background-color: var(--primary);
  color: #fff;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.9rem;
  /* Strict Geometry: No border-radius */
  border-radius: 0;
  border: 1px solid var(--primary);
}

.header__cta:hover {
  background-color: transparent;
  color: var(--primary);
}

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

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-light);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
}

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

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
}

.footer__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

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

.footer__list a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__list a:hover {
  color: var(--primary);
  padding-left: 5px; /* Micro-animation */
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__contacts i {
  width: 18px;
  height: 18px;
  color: var(--secondary);
}

.footer__socials {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer__socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  color: var(--primary);
  transition: var(--transition);
}

.footer__socials a:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #eaeaea;
  font-size: 0.85rem;
  color: #999;
}

/* --- MOBILE ADAPTIVE --- */
@media (max-width: 992px) {
  .header__nav {
    position: absolute;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #fff;
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease-in-out;
    border-top: 1px solid var(--border);
  }

  .header__nav.active {
    right: 0;
  }

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

  .header__burger {
    display: block;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .footer__col {
    align-items: center;
  }

  .footer__contacts li {
    justify-content: center;
  }
}

/* --- BUTTONS (Global) --- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  /* Strict Geometry */
  border-radius: 0;
}

.btn--primary {
  background-color: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

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

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Offset for fixed header */
  background: linear-gradient(135deg, #fdfdfd 0%, #f4f7f6 100%);
  overflow: hidden;
}

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

/* Content Side */
.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(168, 213, 186, 0.2); /* Transparent Mint */
  color: #2c3e50;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border-left: 3px solid var(--secondary); /* Geometric accent */
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 24px;
}

.text-highlight {
  position: relative;
  z-index: 1;
  color: var(--primary);
}

.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--secondary);
  z-index: -1;
  opacity: 0.6;
}

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

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

.hero__stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Visual Side (Strict Geometry) */
.hero__visual {
  position: relative;
  padding-left: 20px;
  padding-bottom: 20px;
}

.hero__shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70%;
  height: 70%;
  background-color: var(--secondary);
  opacity: 0.3;
  z-index: 0;
}

.hero__img-box {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  /* Geometric border effect */
  border: 1px solid var(--border);
  padding: 10px;
  background: #fff;
  transform: translate(20px, -20px); /* Asymmetric shift */
}

.hero__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* --- ANIMATION CLASSES (JS will trigger these) --- */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-img {
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 992px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__visual {
    max-width: 500px;
    margin: 0 auto;
  }
}
@media (max-width: 576px) {
  .hero {
    padding-top: 120px;
  }
  .hero__title {
    font-size: 2rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

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

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 30px;
}

/* --- ABOUT SECTION (Tech Spec Style) --- */
.about {
  background-color: #fff;
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Spec List - Geometric Lines */
.about__specs {
  border-top: 1px solid var(--border);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.spec-item:hover {
  background-color: var(--bg-light);
  padding-left: 15px; /* Micro-animation: Shift */
  padding-right: 15px;
}

.spec-label {
  font-weight: 500;
  color: var(--text-main);
}

.spec-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

/* --- SOLUTIONS SECTION (Border Grid) --- */
.solutions {
  background-color: var(--bg-light);
}

.solutions__header {
  margin-bottom: 60px;
  max-width: 600px;
}

/* The Border Grid - No Gaps, Shared Borders */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(44, 62, 80, 0.1);
  border-left: 1px solid rgba(44, 62, 80, 0.1);
}

.grid-item {
  background-color: transparent;
  padding: 40px 30px;
  border-right: 1px solid rgba(44, 62, 80, 0.1);
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  /* Strict Geometry */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Hover Effect: Background Color Sweep */
.grid-item:hover {
  background-color: #fff;
  transform: translateY(-5px); /* Lift */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  z-index: 2; /* Bring to front over borders */
  border-color: transparent;
}

.grid-item__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(168, 213, 186, 0.3); /* Transparent Mint */
  color: var(--primary);
  margin-bottom: 25px;
  /* Strict Geometry: Square icons */
  border-radius: 0;
  transition: var(--transition);
}

.grid-item:hover .grid-item__icon {
  background-color: var(--primary);
  color: var(--secondary);
  transform: scale(1.1); /* Micro-animation */
}

.grid-item__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.grid-item__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .about__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-title {
    font-size: 2rem;
  }
}

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

/* --- BLOG SECTION (List Style) --- */
.blog {
  background-color: #fff;
}

.blog__list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--primary); /* Strong geometric line */
}

.blog-item {
  border-bottom: 1px solid var(--border);
}

.blog-item__link {
  display: grid;
  grid-template-columns: 1.5fr 3fr 0.5fr;
  padding: 40px 0;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover Effect: Text Color & Arrow Movement */
.blog-item__link:hover .blog-item__title {
  color: var(--secondary);
}

.blog-item__link:hover .arrow-icon {
  transform: translateX(10px);
  color: var(--secondary);
}

.blog-item__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-item__date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-item__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--bg-light);
  padding: 4px 8px;
  align-self: flex-start;
}

.blog-item__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  transition: var(--transition);
}

.blog-item__excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 90%;
}

.blog-item__action {
  display: flex;
  justify-content: flex-end;
  font-size: 2rem;
  font-weight: 300;
  color: var(--border);
}

.arrow-icon {
  transition: var(--transition);
}

/* --- CTA SECTION (Dark Contrast) --- */
.cta {
  background-color: var(--primary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
}

.cta__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 500px;
}

.btn--white {
  background-color: #fff;
  color: var(--primary);
  border: 1px solid #fff;
}

.btn--white:hover {
  background-color: transparent;
  color: #fff;
}

/* Decorative Geometric Line */
.cta__line {
  position: absolute;
  top: 0;
  right: 10%;
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-item__link {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .blog-item__action {
    display: none; /* Hide arrow on mobile to save space */
  }

  .cta__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .cta__title {
    font-size: 2.2rem;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  background-color: #fff;
  padding-bottom: 120px;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.detail-link,
.detail-text {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
}

/* --- FORM STYLES (Strict Geometry) --- */
.contact__form-wrapper {
  background-color: var(--bg-light);
  padding: 50px;
  border: 1px solid var(--border);
  position: relative;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

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

.form-input {
  width: 100%;
  padding: 16px;
  background-color: #fff;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  border-radius: 0;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.05);
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 5px;
}

.form-group.error .form-input {
  border-color: #e74c3c;
}

.form-group.error .error-msg {
  display: block;
}

#captchaError {
  display: none;
  color: #e74c3c;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

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

.check-input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 3px;
}

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

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

.captcha-widget {
  background-color: #fff;
  border: 1px solid var(--border);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
  max-width: 300px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-input {
  width: 24px;
  height: 24px;
  accent-color: var(--secondary);
  cursor: pointer;
}

.captcha-label {
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
}

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.65rem;
}

.captcha-logo i {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
}

.btn--full {
  width: 100%;
  padding: 20px;
  font-size: 1.1rem;
  margin-top: 10px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.5s ease;
}

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

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--secondary);
  color: #fff;
  border-radius: 50%; /* Icon can be round for contrast, or square */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

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

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-success p {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .contact__layout {
    grid-template-columns: 1fr;
  }
  .contact__form-wrapper {
    padding: 30px 20px;
  }
}

/* --- COOKIE POPUP (FINAL) --- */
.cookie-popup {
  position: fixed;
  bottom: -100%; /* Початковий стан: сховано далеко внизу */
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Плавна анімація */
}

/* Цей клас додається JS-ом для показу */
.cookie-popup.active {
  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: 30px;
}

.cookie-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

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

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .cookie-popup {
    padding: 20px 0;
  }
}

.btn--small {
  padding: 10px 24px;
  font-size: 0.85rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

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

/* --- POLICY PAGES STYLES (privacy.html etc.) --- */
.pages {
  padding: 120px 0 80px; /* Відступ під хедер */
  background-color: #fff;
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 20px;
}

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

.pages p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 15px;
}

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

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

.pages a {
  color: var(--secondary); /* Green link */
  text-decoration: underline;
}

.pages a:hover {
  text-decoration: none;
  color: var(--primary);
}

/* Responsive Cookie */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
