:root {
  --primary: #4361ee;
  --secondary: #7209b7;
  --accent: #f72585;
  --text: #2b2d42;
  --light: #f8f9fa;
  --dark: #212529;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  width: 100%;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
ul {
  list-style: none;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* вот и всё! */
}

/* На больших экранах убираем паддинги, чтобы было ровно по 1200px */
@media (min-width: 1240px) {
  .container,
  .header__container {
    padding: 0;
  }
}
.text-center {
  text-align: center;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}
p {
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
}
.btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(67, 97, 238, 0.4);
}
.btn--secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn--large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  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);
  box-sizing: border-box;
}
.terms {
  color: var(--primary);
  text-decoration: underline;
}
.text-wrapper h2 {
  @media (max-width: 600px) {
    font-size: 1.8rem;
  }
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}
.logo:hover {
  opacity: 0.8;
}
.logo span {
  color: var(--secondary);
}
.nav__list {
  display: flex;
  gap: 2.5rem;
}
.nav__list a {
  font-weight: 600;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: all 0.3s;
}
.nav__list a:hover::after {
  width: 100%;
}

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

.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f8f9ff, #e0e7ff);
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 {
  font-size: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.hero__subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #555;
}

.hero__image img {
  max-width: 100%;
  border-radius: 20px;
}

.about__img img {
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card img {
  border-radius: 10px;
}

.section {
  padding: 100px 0;
}
.about {
  background: #fff;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: 0.3s;
}
.card:hover {
  transition: 0.3s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
}
.step {
  text-align: center;
  position: relative;
}
.step__num {
  display: block;
  width: 70px;
  height: 70px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 70px;
  margin: 0 auto 1.5rem;
}

.reviews {
  background: #f8f9ff;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.review {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.form__group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
}
.form__group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
}
.captcha {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
#captchaQuestion {
  font-weight: 700;
  font-size: 1.2rem;
}
.form__checkbox label {
  font-size: 0.9rem;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #f5c6cb;
  margin-top: 15px;
  text-align: center;
  display: none;
}

.form__group.error input {
  border-color: #e74c3c;
  background: #ffebee;
}

.form__group.error::after {
  content: "Обязательное поле";
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

.footer {
  background: #1a1a2e;
  color: #fff;
  padding: 80px 0 40px;
}
.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}
.footer h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer a:hover {
  color: var(--accent);
}

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(150%);
  transition: all 0.5s;
}
.text-wrapper {
  background-color: #cdb2f0;
  padding: 30px;
  border-radius: 10px;
  margin-top: 16px;
}
.pages-wrap {
  max-width: 800px;
  margin: 150px auto;
}
.cookie-popup.show {
  transform: translateY(0);
}
.cookie-popup__content {
  text-align: center;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(67, 97, 238, 0.98);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 2rem;
  text-align: center;
}
.mobile-menu__list a {
  color: #fff;
  transition: all 0.3s;
}
.mobile-menu__list a:hover {
  color: var(--accent);
}

@media (max-width: 992px) {
  .hero__container,
  .about__grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.5rem;
  }
  .btn {
    padding: 12px 24px;
  }
}

.email {
  color: var(--primary);
  text-decoration: underline;
}
