:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --gray: #f8fafc;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.header__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
}
p {
  margin-bottom: 1rem;
}
.text-center {
  text-align: center;
}
.mb-40 {
  margin-bottom: 40px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  gap: 40px;
}
.nav__link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav__link:hover {
  color: var(--primary);
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav__link:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  width: 30px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: 0.3s;
}

.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e0e7ff 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 56px;
  margin-bottom: 24px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
}
.hero__buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero__note {
  color: var(--text-light);
  font-size: 14px;
}
.hero__image img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 44px;
  text-align: center;
  margin-bottom: 70px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.benefits {
  padding: 120px 0;
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.benefit-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}
.benefit-card p {
  text-align: left;
}
.benefit-card:hover {
  transform: translateY(-10px);
}
.benefit-card__icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.how {
  padding: 120px 0;
  background: var(--gray);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-bottom: 70px;
}
.step {
  text-align: center;
  position: relative;
}
.step__number {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  margin: 0 auto 30px;
}

.cases {
  padding: 120px 0;
}
.cases__grid {
  display: grid;
  gap: 60px;
}
.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: white;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
.case-card.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
.case-card.reverse .case-card__content {
  direction: ltr;
}
.case-card img {
  border-radius: 16px;
}

.reviews {
  padding: 120px 0;
  background: var(--gray);
}
.reviews__slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}
.review {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-style: italic;
  font-size: 18px;
}
.review__author {
  margin-top: 20px;
  font-weight: 600;
  font-style: normal;
  color: var(--primary);
}

.faq {
  padding: 120px 0;
}
.accordion__item {
  margin-bottom: 30px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}
.accordion__header {
  padding: 20px;
  background: #f9f9f9;
  cursor: pointer;
  font-weight: 600;
  position: relative;
}
.accordion__header::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 24px;
  transition: 0.3s;
}
.accordion__item.active .accordion__header::after {
  content: "−";
}
.accordion__body {
  padding: 0 20px 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s, padding 0.4s;
}
.accordion__item.active .accordion__body {
  max-height: 500px;
  padding: 20px;
}

.contact {
  padding: 120px 0;
  background: var(--gradient);
  color: white;
}

.contact .section-title {
  color: white;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  padding: 50px;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.captcha {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
}

.captcha input {
  width: 100px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: white;
  color: #1e293b;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0 10px;
}

.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #a78bfa;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox a {
  color: #c4b5fd;
  text-decoration: underline;
}

.checkbox a:hover {
  color: white;
}
.success-message {
  text-align: center;
  padding: 70px 40px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.success-message h3 {
  color: #86efac;
  font-size: 28px;
  margin-bottom: 12px;
}

.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}
.footer h4 {
  color: white;
  margin-bottom: 20px;
}
.footer ul {
  list-style: none;
}
.footer a {
  color: #94a3b8;
  text-decoration: none;
  line-height: 2;
  transition: color 0.3s;
}
.footer a:hover {
  color: white;
}
.footer__bottom {
  border-top: 1px solid #334155;
  padding-top: 30px;
  text-align: center;
}

.logo-link {
  text-decoration: none;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 50px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form button,
.contact-form .btn-primary {
  align-self: center;
  margin-top: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: (1fr, 1fr);
  gap: 20px;
}

.contact-form input,
.contact-form .captcha input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
}

.contact-form input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.3);
}

.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e293b;
  color: white;
  padding: 30px 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s;
}
.cookie-popup.active {
  transform: translateY(0);
}
.cookie-popup__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cookie-popup a {
  color: #a5b4fc;
}

.btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.8);
  opacity: 0.6;
}

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

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

.btn-large {
  font-size: 18px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 2000;
  padding: 100px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu__close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 50px;
  cursor: pointer;
  color: var(--text);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu__nav a {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s;
}
.mobile-menu.active .mobile-menu__nav a {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптив */
@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero__grid {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .hero h1 {
    font-size: 44px;
  }
  .case-card,
  .case-card.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cookie-popup__content {
    flex-direction: column;
    text-align: center;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 80px;
  }
  .section-title {
    font-size: 36px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .contact-form {
    padding: 40px 24px;
    margin: 0 16px;
  }
  .captcha {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .captcha input {
    width: 100%;
  }
  .checkbox {
    flex-wrap: wrap;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: #6366f1;
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: #6366f1;
  top: 0;
}

.text-wrapper strong {
  color: #4f46e5;
}

.text-wrapper a.email {
  color: #6366f1;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
}
