/* ===== VARIABLES ===== */
:root {
  --primary: #2d2d2d;
  --primary-soft: #3d3d3d;
  --accent: #2d7dd2;
  --accent-soft: #e8f1fb;
  --bg: #ffffff;
  --bg-alt: #f7f6f4;
  --bg-warm: #f0eeeb;
  --text: #2d2d2d;
  --text-light: #918d89;
  --text-white: #ffffff;
  --border: #eae9e4;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-btn: 30px;
  --transition: 0.2s ease-in-out;
  --container: 1100px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* ===== UTILITIES ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section__title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  text-align: center;
}
.btn--primary {
  background: var(--primary);
  color: var(--text-white);
}
.btn--primary:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}
.btn--full { width: 100%; }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__logo-img { width: 36px; height: 36px; }
.header__logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}
.header__link:hover { color: var(--text); }
.header__btn-sm {
  padding: 10px 28px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.header__btn-sm:hover {
  background: var(--primary-soft);
}
.header__burger { display: none; flex-direction: column; gap: 5px; }
.header__burger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  padding: 150px 0 100px;
  background: var(--primary);
  color: var(--text-white);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 125, 210, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero__content { flex: 1; }
.hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.75;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero .btn--primary {
  background: var(--text-white);
  color: var(--primary);
}
.hero .btn--primary:hover {
  background: var(--bg-alt);
}
.hero__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.2));
}

/* ===== STATS ===== */
.stats {
  padding: 56px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stats__item {
  text-align: center;
  padding: 0 48px;
}
.stats__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stats__plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stats__label {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 6px;
}
.stats__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== PARTNERS ===== */
.partners {
  padding: 40px 0;
  background: var(--primary);
  overflow: hidden;
}
.partners__title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.partners__track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.partners__slide {
  display: flex;
  gap: 48px;
  animation: scroll-partners 25s linear infinite;
  width: max-content;
}
.partners__item {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  flex-shrink: 0;
  transition: var(--transition);
}
.partners__item:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
}

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

/* ===== PAINS ===== */
.pains {
  padding: 100px 0 60px;
  background: var(--bg);
  overflow: hidden;
}
.pains__fan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.pain-card {
  background: var(--bg-alt);
  padding: 20px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  cursor: default;
  position: relative;
}
.pain-card:hover {
  transform: rotate(0deg) scale(1.05) !important;
  box-shadow: var(--shadow-hover);
  z-index: 10;
}
.pain-card--1 { transform: rotate(-6deg) translateY(8px); }
.pain-card--2 { transform: rotate(4deg) translateY(-6px); }
.pain-card--3 { transform: rotate(-3deg) translateY(12px); }
.pain-card--4 { transform: rotate(5deg) translateY(-4px); }
.pain-card--5 { transform: rotate(-4deg) translateY(6px); }
.pain-card--6 { transform: rotate(3deg) translateY(-10px); }

/* Transition element */
.pains__transition {
  text-align: center;
  margin-top: 48px;
}
.pains__cta {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.pains__arrow {
  width: 32px;
  height: 32px;
  color: var(--accent);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--bg-alt);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 18px;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.service-card__text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== COMPARISON ===== */
.comparison {
  padding: 100px 0;
  background: var(--bg);
}
.comparison__table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.comparison__column {
  padding: 40px 32px;
  border-radius: var(--radius);
}
.comparison__column--them {
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.comparison__column--us {
  background: var(--primary);
  color: var(--text-white);
}
.comparison__heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}
.comparison__list { display: flex; flex-direction: column; gap: 18px; }
.comparison__item {
  font-size: 0.95rem;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}
.comparison__item::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}
.comparison__item--bad::before { content: "\2717"; color: #c0392b; }
.comparison__item--good::before { content: "\2713"; color: #7dffb3; }

/* ===== HOW WE WORK ===== */
.how {
  padding: 100px 0;
  background: var(--bg-alt);
}
.how__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.how__timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.how__step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.how__number {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}
.how__step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
.how__step-text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ===== GUARANTEES ===== */
.guarantees {
  padding: 100px 0;
  background: var(--bg);
}
.guarantees__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guarantees__card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.guarantees__card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.guarantees__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 18px;
  padding: 16px;
}
.guarantees__icon svg { width: 100%; height: 100%; }
.guarantees__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.guarantees__text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--bg-alt);
}
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq__item.active { border-color: var(--primary); }
.faq__question {
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  transition: var(--transition);
  color: var(--text-light);
}
.faq__item.active .faq__question::after {
  transform: rotate(45deg);
  color: var(--primary);
}
.faq__question:hover { background: var(--bg-alt); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq__item.active .faq__answer {
  max-height: 200px;
}
.faq__answer p {
  padding: 0 28px 22px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--bg);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.contact__banner {
  width: 100%;
  overflow: hidden;
  margin-bottom: -1px;
}
.contact__banner-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.contact__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.contact__subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}
.contact__benefits { display: flex; flex-direction: column; gap: 14px; }
.contact__benefits li {
  font-size: 0.95rem;
  padding-left: 28px;
  position: relative;
  color: var(--text);
}
.contact__benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: 700;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-alt);
  padding: 40px;
  border-radius: var(--radius);
}
.contact__input {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  color: var(--text);
  background: var(--bg);
}
.contact__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.06);
}
.contact__select { appearance: none; cursor: pointer; }
.contact__privacy {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
}

/* ===== FORM SUCCESS ===== */
.contact__success {
  text-align: center;
  padding: 40px 20px;
}
.contact__success h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.contact__success p {
  color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0;
  background: var(--primary);
  color: var(--text-white);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__logo { width: 32px; height: 32px; }
.footer__name { font-weight: 700; font-size: 1rem; }
.footer__city { opacity: 0.5; font-size: 0.85rem; margin-left: 8px; }
.footer__links { display: flex; gap: 28px; }
.footer__links a {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: var(--transition);
}
.footer__links a:hover { opacity: 1; }
.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.4;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  background: var(--primary);
  color: var(--text-white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  animation: nudge 6s ease-in-out 3s infinite;
  opacity: 0;
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-cta:hover {
  background: var(--primary-soft);
  transform: scale(1.1);
}
.floating-cta svg {
  width: 24px;
  height: 24px;
}

@keyframes nudge {
  0%, 88%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(-12deg); }
  92% { transform: rotate(10deg); }
  94% { transform: rotate(-8deg); }
  96% { transform: rotate(4deg); }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .header__nav.open { display: flex; }
  .header__burger { display: flex; }

  .hero { padding: 120px 0 72px; }
  .hero__inner { flex-direction: column; text-align: center; gap: 36px; }
  .hero__title { font-size: 2.1rem; }
  .hero__subtitle { font-size: 1rem; margin: 0 auto 32px; }
  .hero__image { flex: 0 0 auto; }
  .hero__image img { width: 100%; max-width: 320px; }
  .contact__banner-img { height: 200px; }

  .section__title { font-size: 1.65rem; margin-bottom: 36px; }

  .stats__grid {
    flex-wrap: wrap;
    gap: 24px;
  }
  .stats__item { padding: 0 24px; }
  .stats__number { font-size: 2.2rem; }
  .stats__divider { display: none; }

  .partners__slide { gap: 24px; }
  .partners__item { font-size: 0.85rem; padding: 8px 18px; }

  .pains__fan {
    max-width: 100%;
    gap: 12px;
  }
  .pain-card {
    padding: 16px 20px;
    font-size: 0.88rem;
  }
  .services__grid { grid-template-columns: 1fr; }

  .comparison__table { grid-template-columns: 1fr; }

  .how__timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .how__timeline::before { display: none; }

  .guarantees__grid { grid-template-columns: 1fr; }

  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .contact__form { padding: 28px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; }
  .footer__city { margin-left: 0; }
  .footer__links { flex-wrap: wrap; justify-content: center; }

  .floating-cta {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .floating-cta svg {
    width: 22px;
    height: 22px;
  }

  .pains, .services, .comparison, .how, .why, .faq, .contact {
    padding: 72px 0;
  }
}
