@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Outfit:300,400,500,600,700");

:root {
  --font-family: "Outfit", sans-serif;
  --color-text: #222;
  --color-primary: #e92459;
  --color-background: #fff;
  --font-size-big: 88px;
  --font-size-medium: 64px;
  --font-size-small: 27px;
  --font-size-text: 20px;
  --font-size-base: 16px;
  --line-height-tight: 100%;
  --line-height-normal: 150%;
}

/* === Базовые стили === */
body {
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  height: 100%;
  background-color: var(--color-background);
  color: var(--color-text);
}

[class*="__container"] {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* === Hero === */
.hero__title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--font-size-big);
  line-height: var(--line-height-tight);
  color: #fff;
}

/* === Section === */
.section__title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--font-size-medium);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: 20px;
}

.section__text {
  font-family: var(--font-family);
  font-size: var(--font-size-text);
  font-weight: 300;
  line-height: var(--line-height-normal);
  color: var(--color-text);
}

/* === Card === */
.card__title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--font-size-small);
  line-height: var(--line-height-normal);
  color: var(--color-text);
}

.card__text {
  font-family: var(--font-family);
  font-size: var(--font-size-text);
  font-weight: 300;
  line-height: var(--line-height-normal);
  color: var(--color-text);
}

/* === Hero base === */
.hero {
  min-height: 940px;
  background-image: url(../assets/images/hero_bg.png);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: all 0.5s ease;
}

.hero-left,
.hero__container {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
}

.hero-left picture,
.hero-left-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-top: 20px;
}

/* === Content === */
.hero-right {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  text-align: left;
  transition: all 0.5s ease;
}

.hero__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-logo-text {
  font-weight: 700;
  font-size: 32px;
  line-height: 112%;
  color: #fff;
}

.hero__title {
  font-weight: 700;
  font-size: var(--font-size-big);
  line-height: var(--line-height-tight);
  color: #fff;
}

/* === Buttons === */
.hero_block-btn {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-btn {
  width: 281px;
  height: 72px;
  background-image: url(../assets/icons/btn-mac.svg);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  cursor: pointer;
}

.hero-compatibility {
  font-size: 16px;
  font-weight: 300;
  color: #fff;
}

/* === Features === */

.features {
  margin-top: 100px;
}
.geatures-text {
  width: 820px;
  margin: 20px 0 40px;
}

/* === Контейнер карточек === */
.features__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

/* === Карточка === */
.features__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 40px;
  padding: 0 0 0 48px;
  flex: 1 1 calc(50% - 20px);
  max-width: 630px;
  height: 420px;
  transition: transform 0.3s ease;
  flex-direction: row;
}

/* Цвета карточек */
.features__card:nth-child(1) {
  background: #fee;
}

.features__card:nth-child(2) {
  background: #eef4ff;
}

.features__card:nth-child(3) {
  background: #e8fce8;
}

.features__card:nth-child(4) {
  background: #efeeff;
}

/* Эффект при наведении */
.features__card:hover {
  transform: translateY(-5px);
}

/* Контент карточки */
.features__card-content {
  flex: 1;
  padding-right: 20px;
}

/* Картинка карточки */
.features__card-image img {
  height: auto;
  border-radius: 20px;
}

/* === Perfect Section === */
.perfect {
  margin-top: 80px;
}
/* .perfect__title {
  margin-top: 80px;
} */
.perfect__cards {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}
.perfect__card {
  border-radius: 40px;
  padding: 40px 32px;
  width: 305px;
  height: auto;
  transition: transform 0.3s ease;
}
.perfect__icon {
  width: 64px;
  height: 64px;
}

/* Цвета карточек */
.perfect__card:nth-child(1) {
  background: #fee;
}

.perfect__card:nth-child(2) {
  background: #eef4ff;
}

.perfect__card:nth-child(3) {
  background: #e8fce8;
}

.perfect__card:nth-child(4) {
  background: #efeeff;
}

.perfect__card:hover {
  transform: translateY(-5px);
}

/* === Testimonials Section === */
.testimonials {
  margin-top: 80px;
}

.testimonials__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.testimonials__card {
  border-radius: 24px;
  padding: 32px;
  background: #eef4ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.testimonials__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonials__info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonials__user-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.testimonials__card:hover .testimonials__user-img {
  transform: scale(1.1);
}

.testimonials__user-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.testimonials__user-role {
  font-size: 0.95rem;
  color: #555;
}

.testimonials__stars {
  font-size: 1.5rem;
  color: #ff8b8a;
  margin-bottom: 16px;
}

.card__text {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* === Animations === */
.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === FAQ Section (твоя версия для десктопа) === */
.questions__section {
  border-radius: 40px;
  padding: 60px;
  width: 1280px;
  height: 750px;
  margin: 80px auto;
  background: linear-gradient(
    90deg,
    rgba(255, 139, 138, 0.12) 0%,
    rgba(233, 36, 128, 0.12) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.faq__content {
  display: flex;
  gap: 40px;
  padding-bottom: 60px;
}

.questions__title {
  width: 360px;
  height: 216px;
}

/* FAQ List */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FAQ Item */
.faq__item {
  border-radius: 24px;
  padding: 32px 24px 32px 32px;
  width: 760px;
  height: 88px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, height 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.faq__item:hover {
  transform: translateY(-2px);
}

/* Question Button */
.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 20px;
  line-height: 120%;
  color: #e92459;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.faq__text {
  font-weight: 700;
  text-decoration: underline dotted 2px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}

.faq__icon {
  color: #d9d9d9;
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
  text-decoration: none;
  /* на всякий случай */
}

/* Answer Block */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq__answer p {
  margin: 15px 0 0;
  font-size: 1.125rem;
  color: #222;
  line-height: 1.5;
}

/* Active State */
.faq__item.active {
  height: auto;
  padding-bottom: 20px;
}

.faq__item.active .faq__answer {
  max-height: 300px;
  padding: 10px 0 0;
}

.faq__item.active .faq__question {
  color: #222;
  text-decoration: none;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
  text-decoration: none;
}

/* === Footer === */
.footer {
  border-radius: 40px;
  padding: 56px 30px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 80px;
  background: #f1f1f1;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 20px 40px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

/* Левая часть */
.footer__info p {
  margin: 2px 0;
  font-size: 16px;
  color: #555;
}

/* Центр */
.footer__nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #e92459;
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: #c81e4b;
}

/* Правая часть */
.footer__btn {
  border: 2px solid #000;
  border-radius: 10px;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.footer__btn-img {
  width: 160px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.footer__btn:hover {
  border-color: #e92459;
  transform: translateY(-2px);
}

.footer__btn:hover .footer__btn-img {
  transform: scale(1.05);
}
