/* Базовые стили */
:root {
  --primary-color: #4F46E5;
  --primary-hover: #4338CA;
  --secondary-color: #111827;
  --light-bg: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 0.375rem;
  --container-width: 1280px;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
  padding-top: 90px; /* Высота шапки + немного отступа */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}

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

.btn--secondary {
  background-color: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn--secondary:hover {
  background-color: var(--gray-100);
}

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

.btn--outline:hover {
  background-color: var(--gray-100);
}

.btn--full {
  width: 100%;
}

/* Шапка */
.header {
  padding: 2rem 0;
  background-color: var(--light-bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo__link {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
  padding-top: 4px;
}

.logo__link:hover {
  opacity: 0.8;
}

.logo__img {
  height: 24px;
  width: auto;
  display: block;
  margin-top: 2px;
}

.logo__text {
  font-size: 1.75rem;
  color: #2D3748;
  font-weight: 700;
  line-height: 1;
  margin-top: 0;
}

.nav__list {
  display: flex;
  gap: 2.5rem;
}

.nav__link {
  color: #2D3748;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: #4A5568;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gray-800);
  transition: all 0.3s ease;
}

/* Секция Hero */
.hero {
  padding: 4rem 0 5rem;
  background-color: var(--light-bg);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  max-width: 800px;
  color: var(--gray-900);
  line-height: 1.2;
}

.hero__text {
  font-size: 1.25rem;
  color: var(--gray-800);
  max-width: 800px;
  line-height: 1.5;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
}

/* Секция Features */
.features {
  padding: 6rem 0;
  background-color: var(--light-bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  position: relative;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.feature-card__icon {
  background-color: var(--primary-color);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.feature-card__icon img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.feature-card__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.feature-card__text {
  font-size: 1.1rem;
  color: #8895a7;
  line-height: 1.5;
  font-style: normal;
}

/* Секция Pricing */
.pricing {
  padding: 6rem 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card--featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  transform: scale(1.05);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card__header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pricing-card__price {
  font-size: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.period {
  color: var(--gray-500);
}

.pricing-card__features {
  margin-bottom: 2rem;
}

.pricing-card__features li {
  padding: 0.5rem 0;
  color: var(--gray-700);
}

.pricing-card__features li::before {
  content: "✓";
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Секция Testimonials */
.testimonials {
  padding: 4rem 0 5rem;
  background-color: var(--light-bg);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  background-color: #f0f0f0;
  border-radius: 50%;
  margin-right: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__info {
  flex: 1;
}

.testimonial-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
}

.testimonial-card__position {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.testimonial-card__content {
  display: flex;
  flex-direction: column;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.testimonial-card__rating {
  margin-top: auto;
}

.star {
  color: #FFCB45; /* Золотой цвет для звезд */
  font-size: 1.25rem;
  letter-spacing: 0.1rem;
}

/* Секция CTA */
.cta {
  padding: 6rem 0;
}

.cta__inner {
  background-color: var(--primary-color);
  padding: 4rem;
  border-radius: var(--border-radius);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta__title {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta__text {
  font-size: 1.125rem;
  opacity: 0.9;
}

.cta__action {
  display: flex;
  gap: 1rem;
}

.cta .btn--outline {
  border-color: var(--white);
  color: var(--white);
}

.cta .btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
  background-color: #1A1A1A;
  color: #FFFFFF;
  padding: 40px 0;
}

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

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer__logo a {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

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

.footer__social-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer__social-link:hover {
  opacity: 0.8;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .footer__copyright {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .footer__top {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .footer__links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Адаптивность */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .cta__inner {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%; /* Размещаем прямо под шапкой */
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav.active {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 1rem;
  }

  .nav__item {
    width: 100%;
    text-align: center;
  }

  .nav__link {
    display: block;
    padding: 0.75rem;
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-800);
    transition: all 0.3s ease;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__text {
    margin: 0 auto 2rem;
  }

  .hero__buttons {
    justify-content: center;
  }

  .cta__inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .cta__action {
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    gap: 3rem;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer__links--inline {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__text {
    font-size: 1.125rem;
  }

  body {
    padding-top: 70px; /* Уменьшаем отступ для мобильных */
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__text {
    font-size: 1.125rem;
  }

  .hero__text br {
    display: none;
  }

  .pricing__grid, .features__grid, .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--featured {
    transform: none;
  }
}

/* Мобильное меню */
.nav.active {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--light-bg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  z-index: 100;
}

.nav.active .nav__list {
  flex-direction: column;
  gap: 1rem;
}

/* Анимация */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card, .pricing-card, .testimonial-card {
  animation: fadeIn 0.5s ease forwards;
}

.partners {
    padding: 2rem 0 3rem;
    background-color: var(--light-bg);
    width: 100%;
    overflow: hidden;
}

.partners__wrapper {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.partners__slider {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4rem;
    padding: 1rem 0;
    animation: partnerScroll 30s linear infinite;
    width: max-content;
}

.partners__item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    max-width: 150px;
}

.partners__logo {
    max-width: 100%;
    height: auto;
    opacity: 1;
    filter: grayscale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partners__logo:hover {
    transform: scale(1.05);
}

@keyframes partnerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Останавливаем анимацию при наведении */
.partners__slider:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .partners__slider {
        gap: 3rem;
    }

    .partners__item {
        min-width: 100px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .partners__slider {
        gap: 2rem;
    }

    .partners__item {
        min-width: 80px;
        max-width: 100px;
    }
}

.how-it-works {
    padding: 4rem 0 5rem;
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--gray-900);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--white);
    position: relative;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.feature-card__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.feature-card__text {
    font-size: 1.1rem;
    color: #8895a7;
    line-height: 1.5;
    font-style: normal;
}

@media (max-width: 992px) {
    .features__grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 2rem;
    }

    .feature-card {
        text-align: center;
        padding: 24px;
        margin: 0 15px;
    }

    .feature-card__title {
        font-size: 1.25rem;
    }

    .feature-card__text {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 20px 16px;
        margin: 0 12px;
    }

    .feature-card__title {
        font-size: 1.15rem;
    }

    .feature-card__text {
        font-size: 1rem;
    }
}

.demo {
    padding: 3rem 0 5rem;
    background-color: var(--light-bg);
}

.demo__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.demo__image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.08);
    background-color: white;
}

.demo__img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .demo {
        padding: 2rem 0 4rem;
    }
}

@media (max-width: 480px) {
    .demo {
        padding: 1.5rem 0 3rem;
    }

    .demo__image {
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 992px) {
    .testimonials__grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-card__text {
        font-size: 0.875rem;
    }

    .star {
        font-size: 1rem;
    }
}

.testimonial-card:hover .testimonial-card__name {
    color: var(--primary-color);
}

.testimonial-card:hover .star {
    transform: scale(1.05);
}

.demo-section {
    background-color: #F8FAFC;
    padding-top: 60px;
    padding-bottom: 60px;
}

.demo-section .container {
    padding: 0 !important;
    max-width: 100% !important;
}

.demo-section .section-header {
    margin-bottom: 1rem;
}

.demo-section .section-title {
    margin-bottom: 0.5rem;
}

.demo-section .red-line {
    max-width: 120px;
    height: 2px;
    background-color: #C41E3A;
    margin: 0.5rem auto 1.5rem;
}

.calendly-embed-container {
    height: 700px;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Убираем все возможные рамки и стили у iframe */
.calendly-embed-container iframe,
.calendly-inline-widget,
.calendly-inline-widget iframe,
iframe[src*="calendly"] {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Отключаем стилизацию от Calendly */
.calendly-spinner,
.calendly-overlay,
.calendly-close-overlay {
    display: none !important;
}

/* Удаляем все потенциальные стили от Calendly */
[class*="calendly"] {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

@media (max-width: 768px) {
    .demo-section .section-header {
        margin-bottom: 0.75rem;
    }

    .calendly-embed-container {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .demo-section .section-header {
        margin-bottom: 1rem;
    }

    .calendly-embed-container {
        height: 550px;
    }
}

.contact-info {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

.contact-info a {
    color: #007AFF;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: #6B7280;
    font-size: 14px;
}

/* Анимация для бургер-меню */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}