:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #10b981;
  --text: #1f2937;
  --light: #f8fafc;
  --gray: #64748b;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  transition: all 0.3s;
}
ul {
  list-style: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.logo span {
  color: var(--secondary);
}
.nav ul {
  display: flex;
  gap: 20px;
}
.nav a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: all 0.4s;
}
.nav a:hover::after {
  width: 100%;
}
.nav a:hover {
  color: var(--primary);
}

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

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(79, 70, 229, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transform: translateX(-100%);
  transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
}
.mobile-menu nav a {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  margin: 20px 0;
  display: block;
  transition: all 0.3s;
}
.mobile-menu nav a:hover {
  transform: translateX(20px);
}

.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}
.hero-image img {
  border-radius: 20px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  @media (max-width: 1200px) {
    font-size: 44px;
  }
}
.subtitle {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 40px;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-primary,
.btn-secondary {
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.4s;
  display: inline-block;
  width: 100%;
}
.btn-primary {
  margin-top: 24px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.large {
  padding: 20px 40px;
  font-size: 18px;
}

.section {
  padding: 120px 0;
}
.bg-light {
  background: var(--light);
}
h2 {
  font-size: 46px;
  text-align: center;
  margin-bottom: 60px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}
.card {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s;
  margin-top: 20px;
  border: 1px solid black;
}
.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.card h3 {
  margin: 20px 0;
  color: var(--primary);
}

.advantages-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}
.advantage-item,
.review {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid black;
}
.step p {
  text-align: left;
}
.advantage-item img,
.review img {
  border-radius: 12px;
  margin-bottom: 24px;
}
.review p {
  font-style: italic;
  margin-bottom: 16px;
  font-size: 18px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: center;
}
.step {
  position: relative;
}
.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.cta-section {
  background: rgb(167, 122, 219);
  color: #fff;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.cta-section p {
  font-size: 20px;
  margin: 30px 0;
}
.cta-section small {
  display: block;
  margin-top: 20px;
  opacity: 0.9;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 24px;
}
.form-group input {
  width: 100%;
  padding: 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.captcha {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f1f5f9;
  padding: 18px;
  border-radius: 12px;
  flex-wrap: nowrap;
}
#captchaQuestion {
  font-weight: 600;
  font-size: 18px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
#captchaQuestion,
.captcha .captcha-label {
  white-space: nowrap;
  flex: 0 0 auto; /* занимает минимально необходимое место */
}
.text-align {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  @media (max-width: 580px) {
    white-space: wrap;
    flex-wrap: wrap;
    text-align: right;
  }
}
.text-align a {
  text-align: right;
}
.success-message {
  text-align: center;
  padding: 60px;
  background: #f0fdf4;
  border-radius: 16px;
  color: var(--secondary);
}

.footer {
  background: #111;
  color: #fff;
  padding: 100px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
}
.footer h4 {
  margin-bottom: 24px;
  color: var(--secondary);
}
.footer ul a {
  color: #94a3b8;
}
.footer ul a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid #334155;
  color: #64748b;
}

.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: calc(100% - 100px);
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.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;
  }
}

.cookie-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-15px);
  animation: none; /* убираем keyframe-анимацию полностью */
}
.cookie-content p {
  margin-bottom: 20px;
  font-size: 15px;
}
.cookie-content a {
  color: var(--primary);
}

@media (max-width: 1000px) {
  .nav,
  .burger {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero h1 {
    font-size: 44px;
  }
  h2 {
    font-size: 38px;
  }
  .section {
    padding: 80px 0;
  }
}

@media (max-width: 640px) {
  .hero-buttons {
    justify-content: center;
  }
  .hero h1 {
    font-size: 36px;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
