/* ===== NOVEX UA — Mobile-first, 375 → 768 → 1024 → 1440 ===== */

:root {
  --color-dark: #1a202c;
  --color-text: #1a1a1a;
  --color-text-muted: #333;
  --color-white: #fff;
  --color-green-light: #d8f0d0;
  --color-green-mid: #7cb87c;
  --color-green-form: #2d6b3c;
  --color-green-form-inner: #1a3e26;
  --color-input-bg: #e8f8e6;
  --color-input-border: #b0d7b0;
  --color-bg-section: #e8f4e6;
  --color-bg-about: #e6ffe6;
  --color-bg-card: #f8faf8;
  --color-blue: #0056b3;
  --color-green-primary: #28a745;
  --font: "Segoe UI", system-ui, sans-serif;
  --container: min(100% - 24px, 1200px);
  --radius: 12px;
  --radius-btn: 999px;
  --shadow-btn-hover: 0 0 20px rgba(255, 255, 255, 0.35);
  --transition-btn: 0.3s ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-reveal: 0.6s;
  --duration-hover: 0.25s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== Keyframes ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg-section);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 12px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-dark);
  white-space: nowrap;

  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition:
    box-shadow var(--transition-btn),
    transform var(--transition-btn);
}

.btn:hover {
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--header {
  padding: 10px 20px;
  font-size: 0.9375rem;
}

.btn__text-desktop {
  display: none;
}

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

.btn--green:hover {
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
}

.btn--hero {
  width: 100%;
  max-width: 335px;
  padding: 14px 28px;
  font-size: 26px;
  font-weight: 600;
}

.btn--submit,
.btn--modal {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  padding: 14px 28px;
}

/* ----- Header ----- */
.header {
  background: url(../images/header-mob.png) no-repeat center center;
  background-size: cover;
  padding: 16px 0;
  position: relative;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Мобільна кнопка МЕНЮ — пілл, світло-зелений градієнт */
.header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 40px;
  font-family: var(--font);
  font-size: 11px;

  max-width: 60px;
  font-weight: 400;
  color: #1a202c;
  background: linear-gradient(180deg, #d4eac7 0%, #e8f5e9 50%, #f1f8e9 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: none;

  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.header__menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Кнопка закрити (X) — темний круг, видно тільки при відкритому меню */
.header__close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  max-height: 40px;
  padding: 0;
  background: #1a1e27;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.header__close-btn:hover {
  background: #252b36;
  transform: scale(1.05);
}

.header__close-btn::before,
.header__close-btn::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.header__close-btn::before {
  transform: rotate(45deg);
}

.header__close-btn::after {
  transform: rotate(-45deg);
}

/* Панель мобільного меню */
.header__mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 24px 48px;
  background: linear-gradient(180deg, #e8f5e9 0%, #d4eac7 50%, #c8e6c9 100%);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.header__mobile-link {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.header__mobile-link:hover {
  color: var(--color-green-form);
  transform: translateX(4px);
}

/* Стан відкритого меню на мобільному */
body.menu-open .header__menu-btn {
  display: none;
}

body.menu-open .header__close-btn {
  display: inline-flex;
}

body.menu-open .header__close-btn {
  display: inline-flex !important;
}

body.menu-open .header__mobile-nav {
  display: flex;
}

/* При відкритому меню — blur контенту, фокус на модалці меню */
body.menu-open main,
body.menu-open .footer {
  filter: blur(6px);
  transition: filter 0.25s ease;
  pointer-events: none;
  user-select: none;
}

.header__nav {
  display: none;
}

.header__link {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-green-mid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out-expo);
}

.header__link:hover::after,
.header__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__link:hover {
  color: var(--color-green-mid);
}
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

/* Логотип на мобільному — пілл, світло-зелений градієнт */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-green-light);
  font-weight: 700;
  font-size: 1.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  padding: 4px 14px;
  height: 40px;
  max-height: 40px;
  min-width: 0;
  flex: 1;
  max-width: 117px;

  justify-content: center;
  backdrop-filter: blur(4.8px);
  background: linear-gradient(180deg, #d4eac7 0%, #e8f5e9 50%, #f1f8e9 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  border: none;
  transition:
    transform var(--duration-hover) ease,
    box-shadow var(--duration-hover) ease;
}

.header__logo.logo img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

/* CTA на мобільному — темний пілл */
.btn--header.btn--cta {
  background: #1a1e27;
  color: #fff;
  padding: 0 14px;
  height: 40px;
  max-height: 40px;
  font-size: 11px;
  font-weight: 400;
  max-width: 130px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.logo:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo img {
  transition: transform var(--duration-hover) ease;
}

.logo:hover img {
  transform: scale(1.03);
}

.logo:hover {
  transform: scale(1.02);
  box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 12px;
}

.logo img {
  transition: transform var(--duration-hover) ease;
}

.logo:hover img {
  transform: scale(1.03);
}

.logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  /* background: var(--color-green-light); */
  color: var(--color-dark);
  font-weight: 800;
  border-radius: 6px;
  font-size: 1.125rem;
}

.logo__text {
  letter-spacing: 0.02em;
}
.logo__img {
  max-width: 267px;
  max-height: 50px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Hero ----- */
.hero {
  background: url(../images/hero-mob.png) no-repeat center center;
  background-size: cover;
  padding: 32px 0 40px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.hero__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.hero__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  /* gap: 8px; */
}

.tag {
  padding: 6px 8px;
  background: #1db954;
  color: white;
  border-radius: 0 !important;

  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-btn);
  transition:
    transform var(--duration-hover) ease,
    box-shadow var(--duration-hover) ease;
}

.tag:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Hero: послідовна поява при завантаженні */
.hero__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease-out-expo) forwards;
}

.hero__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 520px;
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.15s forwards;
}

.hero__tags {
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.3s forwards;
}

.hero__tags .tag {
  opacity: 1;
  transition: transform var(--duration-hover) ease;
}

.hero__inner .btn--hero {
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.45s forwards;
}

/* ----- Sections common ----- */
.section {
  padding: 40px 0;
}

.section__title {
  margin: 0 0 24px;
  font-size: 36px;
  text-align: center;
  font-weight: 700;
  /* text-align: center; */
  color: var(--color-text);
}
#specialization .section__title::after {
  max-width: 545px;
}
#services .section__title,
#about .section__title {
  text-align: left;
}

.section__title::after {
  content: "";
  display: block;
  max-width: 401px;
  width: 100%;
  height: 5px;
  margin: 12px auto 0;
  background: #1db954;
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out-expo);
}

.section.is-inview .section__title::after {
  transform: scaleX(1);
}

.section__title--large {
  font-size: 1.25rem;
  max-width: 640px;
  margin-inline: auto;
}

.section__title--large::after {
  display: none;
}

.section__title--light {
  color: var(--color-white);
}

.section__title--light::after {
  background: var(--color-green-light);
}

.section__intro {
  margin: 0 auto 28px;
  text-align: center;
  font-weight: 600;

  font-size: 31px;
  line-height: 100%;
  color: var(--color-text-muted);
  max-width: 910px;
}

.section__intro--left {
  margin-inline: 0;
  text-align: left;
}

.section__title--left::after {
  margin-left: 0;
  margin-right: auto;
}

.section__title--right {
  text-align: right;
}

.section__title--right::after {
  margin-left: auto;
  margin-right: 0;
}

.section__title--left-light {
  text-align: left;
}

.section__title--left-light::after {
  margin-left: 0;
  margin-right: auto;
}

/* ----- About ----- */
.section--about {
  background: var(--color-bg-section);
}

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

.about__text p {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 26px;
  color: var(--color-text-muted);
}

.about__text p:last-of-type:not(.about__highlight) {
  margin-bottom: 0;
}

.about__accent {
  /* на десктопі — зелений курсив */
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  line-height: 100%;
  color: #1db954 !important;
}

.about__highlight {
  padding: 12px 16px;
  background: #1db954;

  margin-top: 8px;
  font-weight: 600;
  font-size: 26px;
  line-height: 100%;
  color: #d4eac7 !important;
}

.about__media {
  border-radius: var(--radius);
  overflow: hidden;
}

.about__media img {
  width: 100%;
  object-fit: cover;
}

/* ----- Specialization ----- */
.section--specialization {
  background: linear-gradient(
    180deg,
    var(--color-bg-section) 0%,
    var(--color-green-light) 50%,
    var(--color-bg-section) 100%
  );
}

.specialization__content {
  display: block;
}

.specialization__media {
  display: none;
}

.specialization__quote {
  margin: 24px 0 0;
  font-weight: 600;
  font-size: 30px;
  line-height: 106%;
  text-align: right;
  color: var(--color-text);
}
.specialization__quote--text {
  color: #1db954;
}

.specialization__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin-inline: auto;
}

.specialization__list li {
  display: flex;
  text-align: end;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: var(--color-text);
  padding: 12px 16px;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.specialization__list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-mid);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
}

/* ----- Services ----- */
.section--services {
  background: linear-gradient(
    180deg,
    var(--color-bg-section) 0%,
    var(--color-green-light) 30%,
    var(--color-bg-section) 100%
  );
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

.service-card {
  padding: 24px;
  background: transparent;
  border: 1px solid #1db954;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  transition:
    transform var(--duration-hover) var(--ease-out-expo),
    box-shadow var(--duration-hover) ease,
    border-color var(--duration-hover) ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(29, 185, 84, 0.2);
  border-color: var(--color-green-mid);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: #f3fbf6;
  border-radius: 8px;
  color: var(--color-dark);
  transition: transform var(--duration-hover) ease;
}

.service-card:hover .service-card__icon {
  transform: scale(1.08);
}

.service-card__icon--code {
  font-size: 1rem;
  font-weight: 700;
}

.service-card__icon--code span {
  font-family: var(--font);
}

/* ----- Contact (structure) ----- */
.contact__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.contact__info {
  order: 1;
}

.contact__form-wrap {
  order: 0;
}

/* contact__card — блідо-зелена картка з темною обводкою (скрин 1) */
.contact__card {
  padding: 24px 20px;
  background: #e8f5e9;
  border: 1px solid #2d3748;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);

  background:
    linear-gradient(171deg, rgba(201, 229, 202, 0.9) 0%, rgba(235, 246, 236, 0.9) 100%),
    radial-gradient(103.09% 74.08% at 50% 50%, #e4f8dd 0%, #c2edb4 100%), #fff;
  max-width: 433px;
  transition:
    transform var(--duration-hover) ease,
    box-shadow var(--duration-hover) ease;
}

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

.contact__card-label {
  display: block;
  font-weight: 600;
  font-size: 36px;
  color: #1a202c;
  margin: 0 0 4px;
}

.contact__link--row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1a202c;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--duration-hover) ease;
}

.contact__link--row:hover {
  color: var(--color-green-form);
  text-decoration: none;
}

.contact__link--row:hover .contact__icon {
  transform: scale(1.05);
}

.contact__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #1a202c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--duration-hover) ease;
}

.service-card__title {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 100%;
  font-weight: 500;
  color: var(--color-text);
}

.service-card__list {
  margin: 0;
  padding-left: 10px;
  font-size: 14px;
  line-height: 115%;
  color: var(--color-text-muted);
}

.service-card__list li {
  margin-bottom: 4px;
}

/* ----- Audience ----- */
.section--audience {
  background: var(--color-white);
}

.audience__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.audience__item {
  margin: 0;
  text-align: center;
}

.audience__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 8px #1cb955 solid;
  transition: transform 0.4s var(--ease-out-expo);
}

.audience__item:hover img {
  transform: scale(1.06);
}
.audience__grid .audience__item figcaption {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  padding: 9px 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 13px 0 #000;
  background: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  min-width: 200px;
  transition:
    transform var(--duration-hover) ease,
    box-shadow var(--duration-hover) ease;
}

.audience__item:hover figcaption {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 0 18px 0 rgba(0, 0, 0, 0.2);
}

.audience__item figcaption {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ----- Why ----- */
.section--why {
  background: radial-gradient(103.09% 74.08% at 50% 50%, #e4f8dd 0%, #c2edb4 100%);
  background-color: #d4eac7;
}

/* Мобільний заголовок показуємо, десктопний ховаємо */
.section__title--why-desktop {
  display: none;
}

.section__title--why-mobile {
  display: block;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 28px 20px;
  margin-top: 28px;
}

/* Мобільна сітка 2-1-2: порядок 2, 3, 1(по центру), 4, 5 */
.why__item:nth-child(1) {
  order: 3;
  grid-column: 1 / -1;
}

.why__item:nth-child(2) {
  order: 1;
}

.why__item:nth-child(3) {
  order: 2;
}

.why__item:nth-child(4) {
  order: 4;
}

.why__item:nth-child(5) {
  order: 5;
}

.why__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: var(--color-text);
  transition: transform var(--duration-hover) ease;
}

.why__item:hover {
  transform: translateY(-2px);
}

.why__item:hover .why__check {
  transform: scale(1.08);
}

.why__check {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  display: flex;
  transition: transform var(--duration-hover) ease;
  align-items: center;
  justify-content: center;
}

.why__check svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ----- Contact ----- */
.section--contact {
  background: linear-gradient(155deg, #4bad4f 0%, #378d3c 51.44%, #17282b 100%);
  padding: 48px 0;
}

#contact .section__title::after {
  max-width: 484px;
  background: #111827;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__motto {
  margin: 0 0 12px;
  font-style: italic;
  font-weight: 600;
  font-size: 36px;

  color: var(--color-white);
}

.contact__text {
  margin: 0 0 32px;

  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  font-weight: 400;
  font-size: 26px;
  color: #fff;
}

/* Форма заявки — темно-зелена картка (скрин 2) */
.contact__form-wrap {
  width: 100%;
  max-width: 440px;
  padding: 28px 24px;
  border-radius: 16px;

  margin-bottom: 24px;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  border: 2px solid #111827;

  background: linear-gradient(155deg, #4bad4f 0%, #378d3c 51.44%, #17282b 100%), #111827;
}

.contact__form-title {
  margin: 0 0 20px;
  font-weight: 600;
  font-size: 36px;

  color: white;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-form__input {
  height: 55px;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-text);
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
  border: 1px solid #d0d0d0;
  border-top-color: #f0f0f0;
  border-left-color: #eee;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form__input:hover {
  border-color: #b0b0b0;
}

.contact-form__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.contact-form__input::placeholder {
  color: #888;
  opacity: 0.9;
}

.contact-form__textarea {
  min-height: 100px;
  resize: vertical;
}

/* contact__card основні стилі визначені вище */

.contact__link {
  color: black;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.contact__link:hover {
  text-decoration: underline;
}

.contact-form__label--light {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label--light span {
  color: white;
  font-size: 26px;
  font-weight: 600;
}

.contact-form__label--light .contact-form__input {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
  background: linear-gradient(171deg, rgba(201, 229, 202, 0.9) 0%, rgba(235, 246, 236, 0.9) 100%);
  border: 1px solid #d0d0d0;
  border-top-color: #f0f0f0;
  border-left-color: #eee;
}

/* Кнопка "Відправити" — темна, по лівому краю, вузька */
.contact-form .btn--submit {
  font-weight: 600;
  font-size: 26px;
  align-self: flex-start;
  width: auto;
  min-width: 140px;
  padding: 12px 28px;

  background: linear-gradient(180deg, #1a1f2e 0%, #252b3b 100%);
  color: #fff;
  border: none;
  border-radius: 55px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
  margin-left: 0;
}

.contact-form .btn--submit:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ----- Footer ----- */
.footer {
  background: var(--color-dark);
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.logo--footer {
  background: none;
  box-shadow: none;
  border: none;
}

.logo--footer .logo__text {
  color: var(--color-white);
}

.footer__copyright {
  margin: 0;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: #fff;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer__contacts-label {
  font-size: 25px;
  color: white;
}

.footer__link {
  font-size: 20px;
  color: white;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.footer__link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* ----- Scroll reveal + stagger ----- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-reveal) var(--ease-out-expo),
    transform var(--duration-reveal) var(--ease-out-expo);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger для списків і сіток */
.specialization__list .scroll-reveal.is-visible:nth-child(1) {
  transition-delay: 0s;
}
.specialization__list .scroll-reveal.is-visible:nth-child(2) {
  transition-delay: 0.08s;
}
.specialization__list .scroll-reveal.is-visible:nth-child(3) {
  transition-delay: 0.16s;
}
.specialization__list .scroll-reveal.is-visible:nth-child(4) {
  transition-delay: 0.24s;
}

.services__grid .scroll-reveal.is-visible:nth-child(1) {
  transition-delay: 0s;
}
.services__grid .scroll-reveal.is-visible:nth-child(2) {
  transition-delay: 0.06s;
}
.services__grid .scroll-reveal.is-visible:nth-child(3) {
  transition-delay: 0.12s;
}
.services__grid .scroll-reveal.is-visible:nth-child(4) {
  transition-delay: 0.18s;
}

.audience__grid .scroll-reveal.is-visible:nth-child(1) {
  transition-delay: 0s;
}
.audience__grid .scroll-reveal.is-visible:nth-child(2) {
  transition-delay: 0.08s;
}
.audience__grid .scroll-reveal.is-visible:nth-child(3) {
  transition-delay: 0.16s;
}
.audience__grid .scroll-reveal.is-visible:nth-child(4) {
  transition-delay: 0.24s;
}

.why__grid .scroll-reveal.is-visible:nth-child(1) {
  transition-delay: 0s;
}
.why__grid .scroll-reveal.is-visible:nth-child(2) {
  transition-delay: 0.05s;
}
.why__grid .scroll-reveal.is-visible:nth-child(3) {
  transition-delay: 0.1s;
}
.why__grid .scroll-reveal.is-visible:nth-child(4) {
  transition-delay: 0.15s;
}
.why__grid .scroll-reveal.is-visible:nth-child(5) {
  transition-delay: 0.2s;
}

/* ----- Modal ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] {
  display: none;
}

.modal.is-open .modal__backdrop {
  animation: fadeIn 0.25s ease forwards;
}

.modal.is-open .modal__box {
  animation: scaleIn 0.35s var(--ease-out-expo) forwards;
}

.modal.is-closing .modal__backdrop {
  animation: fadeIn 0.2s ease reverse forwards;
}

.modal.is-closing .modal__box {
  animation: scaleIn 0.2s ease reverse forwards;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  opacity: 0;
}

.modal__box {
  position: relative;
  width: 100%;

  overflow-y: auto;
  background: url(../images/modal-bg.png);
  /* background-size: cover; */
  background-position: center;
  background-repeat: no-repeat;

  padding: 32px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.95);
  width: 100%;
  height: 100%;
  inset: 0;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  margin-top: -1px;
  background: var(--color-text);
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.modal__close:hover {
  background: var(--color-green-light);
  transform: rotate(90deg);
}

.modal__header {
  text-align: center;
  margin-bottom: 24px;
}

.modal__logo {
  margin: 0 auto 12px;
  width: 98px;
  height: 48px;
  font-size: 1.5rem;
}

.modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.modal-form {
  padding: 24px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);

  background: linear-gradient(155deg, #4bad4f 0%, #378d3c 51.44%, #17282b 100%), #111827;

  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-form__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-white);
}

.modal-form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
}

.modal-form__textarea {
  min-height: 80px;
  resize: vertical;
  max-height: 80px;
}

.btn--modal {
  margin-top: 8px;
}

/* ==================== BREAKPOINT 768px ==================== */
@media (min-width: 768px) {
  .container {
    padding-inline: 24px;
  }

  .header {
    padding: 18px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__text {
    font-size: 1rem;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    font-style: 48px;
    margin-bottom: 28px;
  }

  .section__title--large {
    font-style: 48px;
  }

  .about__content {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .about__text {
    flex: 1;
    min-width: 0;
  }

  .about__media {
    flex: 0 0 320px;
  }

  .specialization__list {
    max-width: 520px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .audience__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  /* Why: мобільна сітка 2-1-2 залишається */
  .why__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__form-wrap {
    padding: 32px 28px;
  }

  .modal__box {
    padding: 40px 32px;
    max-width: 460px;
  }

  .modal__title {
    font-size: 1.125rem;
  }
}

/* ==================== BREAKPOINT 1024px ==================== */
@media (min-width: 1024px) {
  /* Header: desktop — ховаємо мобільні кнопки меню */
  .header__menu-btn,
  .header__close-btn {
    display: none !important;
  }

  .header__mobile-nav {
    display: none !important;
  }

  .header {
    position: relative;
    background: url(../images/bccheader.png) no-repeat center center;
    background-size: cover;
  }

  .header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    pointer-events: none;
  }

  .header .logo {
    flex: none;
    max-width: 267px;
    width: 267px;
    justify-content: flex-start;
    height: 50px;
    max-height: 50px;
  }
  .header__logo.logo img {
    max-height: 100%;
  }

  .header .logo__text {
    color: var(--color-text);
  }

  .header .logo__icon {
    background: var(--color-green-mid);
    color: var(--color-white);
  }

  .header__nav {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 15px;
    backdrop-filter: blur(4.800000190734863px);
    background: linear-gradient(171deg, rgba(201, 229, 202, 0.9) 0%, rgba(235, 246, 236, 0.9) 100%);
    border: 1.5px solid #fff;
    border-radius: 25px;
    padding: 5px 20px;
    height: 50px;
    max-width: 672px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  }

  .header__link {
    white-space: nowrap;
  }

  .btn__text-mobile {
    display: none;
  }

  .btn__text-desktop {
    display: inline;
  }

  .btn--cta {
    /* background: var(--color-blue); */
    padding: 5px 20px;
    min-height: 50px;
    font-size: 14px;
    max-width: 186px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  }

  .btn--cta:hover {
    box-shadow: 0 0 20px rgba(0, 86, 179, 0.4);
  }

  /* Hero: white bg, left align */
  .hero {
    background-image: url(../images/bcchero.png);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .hero__inner {
    align-items: flex-start;
    text-align: left;
  }

  .hero__tags {
    justify-content: flex-start;
    background: #1db954;
  }

  .tag {
    /* background: var(--color-green-light); */
    color: white;
    font-weight: 700;
    font-size: 26px;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__text {
    margin-inline: 0;
  }

  .section--about {
    /* background: var(--color-bg-about); */
    background: url("../images/company.png") no-repeat center center;
  }

  .about__media {
    flex: 0 0 400px;
  }

  /* Specialization: two columns image left, text right */
  .section--specialization {
    background: var(--color-white);
  }

  .specialization__wrap {
    margin-top: 0;
  }

  .specialization__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    /* margin-top: 32px; */
  }

  .specialization__media {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .specialization__media img {
    width: 100%;
    object-fit: cover;
  }

  .specialization__body .specialization__list {
    max-width: none;
    margin-inline: 0;
  }

  .specialization__body .section__intro--left {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 31px;
    line-height: 94%;
    text-align: right;
  }

  .services__grid {
    gap: 28px;
  }

  .section--services {
    background: radial-gradient(103.09% 74.08% at 50% 50%, #e4f8dd 0%, #c2edb4 100%);
  }

  .service-card {
    padding: 28px;
  }

  /* Contact: two columns */
  .contact__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .contact__inner .section__title--left-light {
    width: 100%;
  }

  .contact__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
  }

  .contact__info {
    order: 0;
    flex: 1;
    min-width: 0;
    max-width: 630px;
  }

  .contact__form-wrap {
    order: 1;
    flex: 0 0 597px;
    margin-bottom: 0;
    max-width: 600px;
  }

  .contact__text {
    margin: 0 0 16px;
    text-align: left;
  }

  .contact__motto {
    margin: 0 0 20px;
    text-align: left;
    font-style: italic;
  }

  .contact__form-title {
    text-align: left;
  }

  /* Footer: three columns */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer__copyright {
    flex: 1;
    text-align: center;
  }

  .footer__contacts {
    align-items: flex-end;
    text-align: end;
  }
  #audience .section__title {
    text-align: center;
    &::after {
      max-width: 651px;
    }
  }
  #why .section__title {
    text-align: center;
    &::after {
      max-width: 651px;
    }
  }

  /* Why desktop: сітка 3+2 з 1024px */
  .section__title--why-desktop {
    display: block;
  }

  .section__title--why-mobile {
    display: none;
  }

  .why__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 32px 24px;
  }

  .why__item:nth-child(1) {
    order: 0;
    grid-column: 1 / 3;
  }

  .why__item:nth-child(2) {
    order: 0;
    grid-column: 3 / 5;
  }

  .why__item:nth-child(3) {
    order: 0;
    grid-column: 5 / 7;
  }

  .why__item:nth-child(4) {
    order: 0;
    grid-column: 2 / 4;
  }

  .why__item:nth-child(5) {
    order: 0;
    grid-column: 4 / 6;
  }

  .why__check {
    width: 172px;
    height: 172px;
  }

  .why__item {
    font-weight: 700;
    font-size: 26px;
    text-align: center;
  }
}

/* ==================== BREAKPOINT 1440px ==================== */
@media (min-width: 1440px) {
  :root {
    --container: 1200px;
  }

  .container {
    padding-inline: 24px;
  }

  .header__nav {
    gap: 15px;
    white-space: nowrap;
  }

  .hero__title {
    font-size: 48px;
    max-width: 900px;
    font-weight: 900;
  }

  .hero__text {
    font-size: 26px;
    font-weight: 700;
    max-width: 1004px;
  }

  .section {
    padding: 50px 0;
  }

  .section__title {
    font-size: 48px;
    margin-bottom: 32px;
  }

  .section__title--large {
    font-style: 48px;
  }

  .about__content {
    gap: 31px;
  }

  .about__media {
    flex: 0 0 580px;
  }

  .specialization__content {
    gap: 20px;
  }

  .services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .contact__content {
    gap: 56px;
  }

  .contact__form-wrap {
    max-width: 600px;
  }
}

@media only screen and (max-width: 450px) {
  .contact__link {
    font-size: 20px;
  }
  .contact__icon {
    width: 26px;
    height: 26px;
  }
  .audience__item figcaption {
    font-size: 10px !important;
    min-width: 100px !important;
  }
  .contact__form-title {
    font-size: 30px;
    color: white;
    text-align: center;
  }
  .contact-form__input {
    max-height: 45px;
  }
  .contact-form__label--light span {
    font-size: 16px;
  }
}
