:root {
  --bg: #ffffff;
  --fg: #1f2937;
  --muted: #6b7280;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --card: #ffffff;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* NAV */
.nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
}
.menu {
  display: flex;
  gap: 16px;
}
.menu a {
  padding: 8px 10px;

  margin-right: 4px;
  position: relative;
}

.menu a:not(.btn-nav)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--brand);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu a:not(.btn-nav):hover::after {
  width: 80%;
}

.menu a.active-link::after {
  width: 80%;
}

.menu a.active-link {
  color: var(--brand);
  font-weight: 500;
}

.menu a:hover {
  color: var(--brand);
}

.menu .btn-nav {
  background: var(--brand);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  transition: 0.2s;
}

.menu .btn-nav:hover {
  background: var(--brand-2);
  color: white;
}
/* Mobile menu (CSS toggle) */
#menu-toggle {
  display: none;
}
.burger {
  display: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.burger span,
.burger span:before,
.burger span:after {
  content: "";
  display: block;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: 0.3s;
  position: relative;
}
.burger span:before {
  top: -7px;
  position: relative;
}
.burger span:after {
  top: 5px;
  position: relative;
}
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    padding: 8px 0;
    border-top: 1px solid #eee;
  }
  #menu-toggle:checked ~ .menu {
    display: flex;
  }
  .burger {
    display: block;
  }
}

/* HERO */
.hero {
  background-image: url("../image/hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0 140px;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
  z-index: 2;
}
.hero-content {
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  position: relative;
  z-index: 3;
  animation: fadeInUp 1.2s ease-out;
  text-align: left;
  padding-left: 2rem;
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero::before {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
  }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.hero h1 .highlight {
  color: var(--brand);
  position: relative;
  display: inline-block;
}

@keyframes widthGrow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 5px;
  height: 100px;
  background-color: var(--brand);
  border-radius: 3px;
}

.hero .btn {
  margin: 10px 10px 10px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-content::before {
    display: none;
  }

  .hero .btn {
    margin: 10px;
  }
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Стилі для секцій */

.section {
  padding: 80px 0;
  position: relative;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 0;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 1;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  animation: fadeInUp 1.2s ease-out;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn {
  transform: translateY(0);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero h1 {
  font-size: 40px;
  margin: 0 0 16px;
  color: #fff;
}
.hero p {
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 28px;
}
.hero-banner h1 {
  font-size: 48px;
  margin: 0 0 16px;
  color: var(--bg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.hero-banner h1 .highlight {
  color: var(--brand);
  position: relative;
  display: inline-block;
}

.hero-banner h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--brand);
  border-radius: 3px;
  transform: translateY(5px);
}
.hero-banner p {
  font-size: 20px;
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--bg);
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s;
}
.btn:hover {
  background: var(--brand-2);
}

/* SECTIONS */
.section {
  padding: 64px 0;
}
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 32px;
}

/* CARDS GRID */
.grid-3 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  justify-content: space-between;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
.muted {
  color: var(--muted);
}

/* PRICING */
.pricing .price {
  font-size: 32px;
  font-weight: 800;
}
.pricing .unit {
  color: var(--muted);
  font-size: 14px;
}
.pricing .list {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}
.pricing .list li {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.pricing .card {
  transition: transform 0.25s, box-shadow 0.25s;
}
.pricing .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}
.popular {
  border: 2px solid var(--brand);
  position: relative;
}
.popular .badge {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  border-bottom-left-radius: 8px;
}

/* AVATAR */
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}
.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
}

/* FORM */
.form {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.label {
  display: block;
  font-weight: 600;
  margin: 8px 0;
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
  outline: none;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.error {
  color: #ef4444;
  font-size: 13px;
  display: none;
}

.error.visible {
  display: block;
  margin-top: 4px;
}

.input.invalid,
.select.invalid,
.textarea.invalid {
  border-color: #ef4444;
  background-color: rgba(254, 226, 226, 0.3);
}
.btn-block {
  width: 100%;
}

/* FOOTER */
.footer {
  background: #111827;
  color: #e5e7eb;
  padding: 32px 0;
}
.footer a {
  color: #c7d2fe;
}
.footer .copy {
  color: #9ca3af;
  font-size: 14px;
  margin-top: 18px;
  text-align: center;
}

/* COOKIE BANNER (CSS-only close) */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #333;
  color: #fff;
  z-index: 50;
  transform: translateY(0);
  transition: 0.3s;
}
.cookie-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.cookie a {
  color: #93c5fd;
  text-decoration: underline;
}
#cookie-close {
  display: none;
}
.cookie .actions {
  display: flex;
  gap: 8px;
}
.cookie .btn {
  border-radius: 8px;
}
#cookie-close:checked ~ .cookie {
  transform: translateY(120%);
}

/* METHODOLOGY */
.methodology-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .methodology-container {
    grid-template-columns: 1fr;
  }
}

.methodology-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.methodology-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  gap: 16px;
}

.step-number {
  background: var(--brand);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.step-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.methodology-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px;
}

.stat-card p {
  margin: 0;
  font-weight: 500;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--card);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.faq-question:hover {
  background: #f9fafb;
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
}

.faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.faq-answer {
  padding: 0 24px 20px;
  display: none;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Helpers */
.center {
  text-align: center;
}
