:root {
  --primary: #a8edea;
  --secondary: #fed6e3;
  --accent: #78a1bb;
  --dark: #2d3436;
  --light: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  --border-radius: 40px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header__container {
  background: var(--glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}

.logo__img {
  width: 40px;
  height: 40px;
  transition: var(--transition);
}

.logo__text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo:hover .logo__img {
  transform: rotate(15deg) scale(1.1);
}

.nav__list {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

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

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

.btn {
  background: var(--dark);
  color: var(--light);
  padding: 12px 28px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--dark);
  display: inline-block;
}

.btn:hover {
  background: transparent;
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* --- FOOTER --- */
.footer {
  background: var(--light);
  padding: 100px 0 40px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  margin-top: 100px;
}

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

.footer__title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--accent);
}

.footer__description {
  margin-top: 20px;
  opacity: 0.8;
  max-width: 250px;
}

.footer__menu,
.footer__contacts {
  list-style: none;
}

.footer__menu li,
.footer__contacts li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__menu a {
  text-decoration: none;
  color: var(--dark);
  opacity: 0.7;
  transition: var(--transition);
}

.footer__menu a:hover {
  opacity: 1;
  padding-left: 5px;
}

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

.footer__bottom {
  padding-top: 30px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- MOBILE --- */
@media (max-width: 992px) {
  .header__nav,
  .header__cta {
    display: none;
  }
  .header__burger {
    display: block;
  }
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* --- HERO SECTION --- */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

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

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--light);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--accent);
}

.hero__title {
  font-size: clamp(3.5rem, 8vw, 5.5rem); /* Громадная типографика */
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.text-gradient {
  background: linear-gradient(90deg, #78a1bb, #fed6e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  font-size: 1.2rem;
  max-width: 500px;
  margin-bottom: 40px;
  opacity: 0.8;
}

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

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

/* Визуальные эффекты (Glassmorphism + Floating) */
.hero__visual {
  position: relative;
  height: 500px;
}

.hero__image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius);
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glass-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.glass-shape--1 {
  width: 200px;
  height: 200px;
  top: -50px;
  right: -30px;
  background: linear-gradient(
    135deg,
    rgba(168, 237, 234, 0.4),
    rgba(254, 214, 227, 0.4)
  );
}

.glass-shape--2 {
  width: 150px;
  height: 150px;
  bottom: 20px;
  left: -40px;
}

.glass-shape--3 {
  width: 80px;
  height: 80px;
  top: 40%;
  right: 20%;
  background: var(--accent);
  opacity: 0.2;
}

/* Адаптивность Hero */
@media (max-width: 992px) {
  .hero {
    padding-top: 140px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__description {
    margin: 0 auto 40px;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__visual {
    height: 400px;
    margin-top: 50px;
  }
}

/* --- INSIGHTS SECTION --- */
.insights {
  padding: 100px 0;
  position: relative;
}

.insights__header {
  margin-bottom: 80px;
}

.insights__title {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 20px;
}

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

.insights__subtitle {
  max-width: 600px;
  font-size: 1.1rem;
  opacity: 0.7;
}

.insights__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

/* Стили карточек */
.insights__item {
  background: var(--light);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.insights__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.insights__image-box {
  position: relative;
  overflow: hidden;
}

.insights__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.insights__item:hover .insights__img {
  transform: scale(1.05);
}

.insights__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.insights__content {
  padding: 35px;
  flex-grow: 1;
}

.insights__date {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 15px;
  font-weight: 600;
}

.insights__post-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.insights__excerpt {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 25px;
}

.insights__link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.insights__link i {
  width: 18px;
}

.insights__link:hover {
  gap: 15px;
  color: var(--accent);
}

/* Асимметрия сетки */
.insights__item--large {
  grid-column: span 7;
}

.insights__item--medium {
  grid-column: span 5;
  margin-top: 50px; /* Сдвиг вниз */
}

.insights__item--small {
  grid-column: 8 / span 5;
  margin-top: -100px; /* Наслаивание */
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--dark);
}

.insights__content--glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Адаптивность */
@media (max-width: 992px) {
  .insights__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .insights__item {
    margin-top: 0 !important;
  }
  .insights__title {
    font-size: 3rem;
  }
}

/* --- STRATEGY SECTION --- */
.strategy {
  padding: 120px 0;
  background: radial-gradient(
    circle at 10% 20%,
    rgba(168, 237, 234, 0.15) 0%,
    rgba(254, 214, 227, 0.15) 100%
  );
  position: relative;
}

.strategy__content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.strategy__title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 30px;
}

.strategy__text {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 40px;
  line-height: 1.8;
}

.strategy__steps {
  display: grid;
  gap: 25px;
}

.strategy__step-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 40px;
  border-radius: var(--border-radius);
  position: relative;
  transition: var(--transition);
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.02),
    -10px -10px 30px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.strategy__step-card:hover {
  transform: translateX(15px) scale(1.02);
  background: white;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.05);
}

.strategy__number {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 8rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  opacity: 0.05;
  z-index: 0;
  transition: var(--transition);
}

.strategy__step-card:hover .strategy__number {
  opacity: 0.1;
  right: 30px;
}

.strategy__step-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.strategy__step-desc {
  font-size: 1rem;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

/* Адаптивність */
@media (max-width: 992px) {
  .strategy__content-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .strategy__info {
    text-align: center;
  }
  .strategy__title {
    font-size: 2.8rem;
  }
}

/* --- BURGER ANIMATION --- */
.header__burger span,
.header__burger::before,
.header__burger::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--dark);
  position: absolute;
  transition: var(--transition);
}

.header__burger::before {
  top: 0;
}
.header__burger span {
  top: 9px;
}
.header__burger::after {
  top: 18px;
}

/* Состояние при открытии */
.header__burger--active::before {
  top: 9px;
  transform: rotate(45deg);
}
.header__burger--active span {
  opacity: 0;
  transform: translateX(-10px);
}
.header__burger--active::after {
  top: 9px;
  transform: rotate(-45deg);
}

/* --- MOBILE NAVIGATION --- */
@media (max-width: 992px) {
  .header__nav {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%; /* Скрыто за экраном */
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: -1;
    transition: var(--transition);
    justify-content: center;
    align-items: center;
  }

  .header__nav--active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .nav__link {
    font-size: 1.5rem;
    font-weight: 700;
  }

  body.no-scroll {
    overflow: hidden;
  }
}

/* --- CASES SECTION --- */
.cases {
  padding: 100px 0;
}

.cases__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 70px;
  gap: 40px;
}

.cases__title {
  font-size: 4rem;
  max-width: 500px;
  line-height: 1;
}

.cases__meta {
  max-width: 400px;
  opacity: 0.7;
  border-left: 3px solid var(--primary);
  padding-left: 25px;
}

.cases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.case-card {
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-15px);
}

.case-card--offset {
  margin-top: 80px;
}

.case-card__image {
  position: relative;
  border-radius: calc(var(--border-radius) - 10px);
  overflow: hidden;
  height: 300px;
  margin-bottom: 30px;
}

.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--dark);
  color: white;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.case-card__title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.case-card__result {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 15px;
}

.case-card__desc {
  opacity: 0.7;
  margin-bottom: 25px;
}

.case-card__btn {
  display: inline-block;
  color: var(--dark);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 2px solid var(--primary);
  transition: var(--transition);
}

.case-card__btn:hover {
  letter-spacing: 1px;
  border-color: var(--secondary);
}

@media (max-width: 992px) {
  .cases__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .cases__grid {
    grid-template-columns: 1fr;
  }
  .case-card--offset {
    margin-top: 0;
  }
  .cases__title {
    font-size: 3rem;
  }
}

/* --- EXPERIENCE (ACCORDION) --- */
.experience {
  padding: 100px 0;
}
.experience__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.experience__title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 30px;
}
.experience__text {
  opacity: 0.7;
  margin-bottom: 30px;
}
.experience__badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.badge {
  background: var(--light);
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.accordion__item {
  background: var(--light);
  border-radius: 25px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion__header {
  width: 100%;
  padding: 25px 35px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
  color: var(--dark);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  padding: 0 35px;
  opacity: 0;
}

.accordion__item--active .accordion__content {
  max-height: 200px;
  padding-bottom: 25px;
  opacity: 0.8;
}

.accordion__item--active .accordion__header i {
  transform: rotate(45deg);
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
}
.contact__card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 60px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

.contact__title {
  font-size: 3rem;
  margin-bottom: 20px;
}
.contact__subtitle {
  opacity: 0.7;
  font-size: 1.1rem;
}

.form {
  display: grid;
  gap: 20px;
}
.form__input {
  width: 100%;
  padding: 20px 30px;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Captcha & Checkbox Styles */
.form__captcha,
.form__consent {
  margin-top: 10px;
}
.captcha__label,
.consent__label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.8;
}

.captcha__custom {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}

.captcha__checkbox:checked + .captcha__custom {
  background: var(--accent);
}

.captcha__checkbox:checked + .captcha__custom::after {
  content: "✓";
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

/* Добавляем индикацию фокуса для доступности (опционально, но профессионально) */
.captcha__checkbox:focus + .captcha__custom,
.consent__checkbox:focus + .consent__custom {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(120, 161, 187, 0.3);
}
.form__status {
  margin-top: 20px;
  display: none; /* Hidden by default */
}

.status-success {
  background: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .experience__grid,
  .contact__card {
    grid-template-columns: 1fr;
  }
  .contact__card {
    padding: 40px;
  }
  .experience__title,
  .contact__title {
    font-size: 2.5rem;
  }
}

/* --- Исправление видимости чекбоксов --- */
.captcha__custom,
.consent__custom {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  background: white;
}

.captcha__checkbox:checked + .captcha__custom,
.consent__checkbox:checked + .consent__custom {
  background: var(--accent);
  border-color: var(--accent);
}

.captcha__checkbox:checked + .captcha__custom::after,
.consent__checkbox:checked + .consent__custom::after {
  content: "✓";
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
}

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: -100px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 25px;
  border-radius: 30px;
  z-index: 9999;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cookie-popup--active {
  bottom: 20px;
}

.cookie-popup__content {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.cookie-popup__btn {
  padding: 10px 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* --- Стилізація сторінок політик (privacy.html тощо) --- */
.pages {
  padding: 150px 0 100px;
  min-height: 80vh;
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
}
.pages h2 {
  font-size: 1.8rem;
  margin: 30px 0 20px;
}
.pages p {
  margin-bottom: 15px;
  opacity: 0.8;
}
.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}
.pages li {
  margin-bottom: 10px;
  opacity: 0.8;
}
.pages strong {
  color: var(--dark);
}
.pages a {
  color: var(--accent);
  font-weight: 600;
}

/* --- Стили для сообщения об успехе --- */
.contact__form-wrapper {
  position: relative;
  min-height: 400px; /* Фиксируем минимальную высоту, чтобы контент не прыгал */
}

.status-success {
  background: #ffffff;
  border: 2px solid #e8f5e9;
  padding: 40px;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.5s ease forwards;
}

.status-success__text h3 {
  color: #2d3436;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.status-success__text p {
  color: #636e72;
  font-size: 1rem;
}

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