/* 2. style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #fff;
}
html {
  scroll-behavior: smooth;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.bg-light {
  background: #f8fafc;
}
.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
  font-weight: 800;
}
.section-title span {
  color: #6366f1;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 20px;
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;

  @media (max-width: 600px) {
    font-size: 1.4rem;
  }
}
.logo:hover {
  opacity: 0.6;
}
.logo span {
  color: #6366f1;
}
.nav__list {
  display: flex;
  gap: 40px;
}
.nav__list a {
  font-weight: 600;
  transition: color 0.3s;
}
.nav__list a:hover {
  color: #6366f1;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.burger span {
  width: 30px;
  height: 3px;
  background: #1e293b;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #1e293b;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu__close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 50px;
  cursor: pointer;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}
.mobile-menu__nav a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  transition: 0.3s;
}
.mobile-menu__nav a:hover {
  color: #6366f1;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  overflow: hidden;
}
.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}
.hero__content h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero__content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #64748b;
}

/* Cards & grids */
.services__grid,
.benefits__grid,
.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.card {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.4s;
}
.card:hover {
  transform: translateY(-10px);
}
.card img {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
}

/* Process */
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}
.step__num {
  font-size: 4rem;
  font-weight: 900;
  color: #e0e7ff;
  margin-bottom: 20px;
}

/* Cases */
.case-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.case-card img {
  transition: transform 0.6s;
}
.case-card:hover img {
  transform: scale(1.05);
}
.case-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, #1e293b);
  color: #fff;
  padding: 40px 30px;
}

/* Form */
.form {
  background: #fff;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.form__grid input,
.captcha input {
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  width: 100%;
  background: #f1f5f9;
}
.captcha {
  background: #f1f5f9;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
}
.checkbox {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 20px 0;
  font-size: 0.9rem;
  white-space: wrap;
  flex-wrap: wrap;
}
.success-message {
  background: #10b981;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
}

.privacy-text {
  color: rgba(0, 0, 253, 0.984);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 80px 0 20px;
}
.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.footer__col h4 {
  margin-bottom: 20px;
  color: #fff;
}
.footer__col ul {
  gap: 12px;
  display: flex;
  flex-direction: column;
}
.footer__col a:hover {
  color: #6366f1;
}
.footer__bottom {
  border-top: 1px solid #334155;
  padding-top: 30px;
  margin-top: 50px;
  text-align: center;
}

section {
  padding: 0 40px;
  margin-bottom: 150px;
}

/* Дополнение к style.css — стили ошибок формы */
.form input:error,
.form input:invalid {
  border-color: #ef4444 !important;
}

.error {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 6px;
  display: block;
}

.checkbox {
  transition: color 0.3s;
}

/* Чтобы капча тоже красиво отображала ошибку */
.captcha {
  position: relative;
}
.captcha .error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: 0 auto;
  background: #1e293b;
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  z-index: 999;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(150%);
  transition: transform 0.5s;
}
.cookie-popup.show {
  transform: translateY(0);
}
.cookie-popup__content {
  text-align: center;
}
.cookie-popup .btn {
  margin-top: 16px;
  padding: 10px 30px;
  font-size: 0.9rem;
}

.hero__image img {
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 50px;
  }
  .hero__image {
    margin-top: 40px;
  }
  .hero__content h1 {
    font-size: 2rem;
  }
}
@media (max-width: 940px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .section-title {
    font-size: 2.2rem;
  }
  section {
    padding: 80px 0;
  }
  .form__grid {
    grid-template-columns: 1fr;
  }
}

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

.benefit-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
}
.benefit-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}
.benefit-card__icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}
.benefit-card h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.benefit-card p {
  text-align: left;
}
.step p {
  text-align: left;
}
.card p {
  margin-top: 12px;
  text-align: left;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.review-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #6366f1;
}
.review-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.review-card__header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.review-card h4 {
  margin: 0;
  font-size: 1.2rem;
}
.review-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
}
.stars {
  color: #fbbf24;
  margin-top: 16px;
  font-size: 1.3rem;
}

/* === Новый FAQ — карточки === */
.faq__grid {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.faq-card summary {
  padding: 24px 32px;
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.faq-card summary::after {
  content: "+";
  position: absolute;
  right: 32px;
  font-size: 2rem;
  transition: transform 0.3s;
}
.faq-card[open] summary::after {
  content: "−";
}
.faq-card[open] summary {
  background: #1e293b;
}
.faq-card p {
  padding: 24px 32px;
  margin: 0;
  background: #fff;
  color: #475569;
  line-height: 1.7;
}

/* Остальные стили остались прежними, только мелкие правки для адаптивности */
@media (max-width: 768px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
  .faq-card summary {
    font-size: 1.1rem;
    padding: 20px;
  }
  .faq-card p {
    padding: 20px;
  }
}
