/* === FONTS === */
@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 250 1000;
  src: url('https://static.tildacdn.com/fonts/tildasans/TildaSans-VF.woff2') format('woff2-variations'),
       url('https://static.tildacdn.com/fonts/tildasans/TildaSans-VF.woff') format('woff-variations');
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'TildaSans', sans-serif; color: #333333; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 90px 0; }
.section--gray { background: #eeeeee; }
.section__title { font-size: 36px; font-weight: 600; color: #333; text-align: center; margin-bottom: 60px; }
.section__subtitle { font-size: 20px; font-weight: 300; color: #333; text-align: center; max-width: 700px; margin: 0 auto 60px; }

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 70px;
  background: rgba(0,0,0,0.70);
  display: flex; align-items: center;
}
.nav__container { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0 40px; }
.nav__list { display: flex; gap: 0; }
.nav__item a {
  display: block; padding: 0 15px;
  font-size: 18px; font-weight: 600; color: #fff;
  transition: color 0.3s;
  position: relative;
}
.nav__item a::after {
  content: '';
  position: absolute; left: 15px; right: 15px; bottom: -4px;
  height: 1px; background: #00d9bf;
  opacity: 0; transition: opacity 0.3s;
}
.nav__item a:hover::after,
.nav__item a.active::after { opacity: 1; }
.nav__item a:hover { color: #00d9bf; }

/* Burger */
.nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(0,0,0,0.95); z-index: 9998; padding: 20px 0;
}
.nav__mobile.open { display: block; }
.nav__mobile a { display: block; padding: 14px 40px; font-size: 18px; font-weight: 600; color: #fff; }
.nav__mobile a:hover { color: #66efdf; }

/* === COOKIE BANNER === */
.cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9997;
  background: #fff; border-top: 1px solid #ddd;
  padding: 14px 40px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  font-size: 13px; color: #333;
  transform: translateY(0); transition: transform 0.3s;
}
.cookie.hidden { transform: translateY(100%); }
.cookie a { color: #001036; font-weight: 600; text-decoration: underline; }
.cookie__btn {
  padding: 8px 24px; border-radius: 30px;
  background: #001036; color: #fff;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.cookie__close {
  margin-left: 8px; cursor: pointer; flex-shrink: 0;
  color: #888; font-size: 18px; line-height: 1;
}

/* === HERO === */
.hero {
  height: 90vh; position: relative;
  background-image: url('../images/tild6263-3334-4330-b635-333739353465__nasa-q1p7bh3shj8-uns.jpg');
  background-size: cover; background-position: center; background-attachment: scroll;
  display: flex; align-items: center; justify-content: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
}
.hero__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; color: #fff;
  max-width: 800px; padding: 0 40px;
}
.hero__logo { width: 120px; height: 120px; margin: 0 auto 20px; display: block; }
.hero__title { font-size: 72px; font-weight: 700; margin-bottom: 24px; }
.hero__desc { font-size: 22px; font-weight: 300; line-height: 1.5; margin-bottom: 40px; }
.hero__btn {
  display: inline-block; padding: 14px 40px;
  background: #66efdf; color: #000;
  border-radius: 10px; font-size: 16px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}
.hero__btn:hover { background: #4dd8c8; transform: translateY(-1px); }

/* === ABOUT === */
.about { padding: 90px 0; text-align: center; }
.about__title { font-size: 42px; font-weight: 600; margin-bottom: 20px; }
.about__desc { font-size: 20px; font-weight: 300; color: #333; max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* === HOW IT WORKS === */
.steps { padding: 90px 0; background: #eeeeee; }
.steps__title { font-size: 36px; font-weight: 600; text-align: center; margin-bottom: 90px; }
.steps__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.step { text-align: center; position: relative; }
.step__icon {
  width: 90px; height: 90px; margin: 0 auto 24px;
  background-size: 60%; background-repeat: no-repeat; background-position: center;
}
.step__dots {
  display: none;
  justify-content: center; gap: 6px; margin-bottom: 20px;
}
.step__dot { width: 6px; height: 6px; border-radius: 50%; background: #a7a7a7; }
.step__text { font-size: 18px; font-weight: 300; line-height: 1.6; color: #333; }
.steps__connectors { display: flex; align-items: center; justify-content: center; gap: 0; }

/* === IMPRESSIVE RESULTS === */
.results {
  display: grid; grid-template-columns: 7fr 5fr;
  min-height: 50vh;
}
.results__text {
  display: flex; align-items: center;
  padding: 60px 80px 60px 0;
  padding-left: calc((100vw - 1200px) / 2 + 40px);
}
.results__title { font-size: 36px; font-weight: 600; line-height: 1.3; max-width: 460px; }
.results__image {
  background-image: url('../images/tild6132-3366-4333-a531-303137336236__untitled-12.png');
  background-size: cover; background-position: top center;
  min-height: 50vh;
}

/* === BENEFITS === */
.benefits { padding: 135px 0; background: #eeeeee; }
.benefits__title { font-size: 36px; font-weight: 600; text-align: center; margin-bottom: 90px; }
.benefits__list { max-width: 900px; margin: 0 auto; }
.benefit { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 60px; }
.benefit:last-child { margin-bottom: 0; }
.benefit__icon {
  width: 60px; height: 60px; flex-shrink: 0;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.benefit__title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.benefit__desc { font-size: 20px; font-weight: 300; color: #555; line-height: 1.5; }

/* === ASSESSMENT FACTORS === */
.factors { padding: 150px 0; }
.factors__title { font-size: 36px; font-weight: 600; text-align: center; margin-bottom: 30px; }
.factors__subtitle { font-size: 20px; font-weight: 300; text-align: center; max-width: 700px; margin: 0 auto 80px; line-height: 1.5; }
.factors__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; max-width: 900px; margin: 0 auto; }
.factor { display: flex; gap: 16px; align-items: flex-start; }
.factor__icon {
  width: 30px; height: 30px; flex-shrink: 0;
  background-image: url('../images/lib__icons__bullets__check5.svg');
  background-size: contain; background-repeat: no-repeat;
}
.factor__title { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.factor__desc { font-size: 16px; font-weight: 300; color: #555; line-height: 1.5; }

/* === WHAT WE EVALUATE (CARDS) === */
.categories { padding: 90px 0; }
.categories__title { font-size: 36px; font-weight: 600; text-align: center; margin-bottom: 40px; }
.categories__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 20px;
}
.cat-card {
  position: relative; overflow: hidden; border-radius: 4px; cursor: default;
  background-size: cover; background-position: center;
}
.cat-card__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-card__img { transform: scale(1.06); }
.cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(0,0,0,0.90));
}
.cat-card__title {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  font-size: 18px; font-weight: 600; color: #fff; z-index: 1;
}

/* Grid positioning */
.cat-card--phones { grid-column: 1; grid-row: 1 / 3; }
.cat-card--tablets { grid-column: 2; grid-row: 1; }
.cat-card--laptops { grid-column: 2; grid-row: 2; }
.cat-card--estate { grid-column: 3; grid-row: 1; }
.cat-card--tools { grid-column: 3; grid-row: 2; }
/* Меховые изделия - extra card below as full width row if needed */

/* === AND EVEN MORE === */
.more { padding: 30px 0 90px; }
.more__title { font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.more__desc { font-size: 18px; font-weight: 300; color: #555; line-height: 1.6; max-width: 600px; }

/* === IMPLEMENTATION === */
.impl { padding: 90px 0; }
.impl__container { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: center; }
.impl__img { max-width: 250px; margin: 0 auto; }
.impl__title { font-size: 42px; font-weight: 700; margin-bottom: 24px; line-height: 1.2; }
.impl__desc { font-size: 20px; font-weight: 300; color: #333; margin-bottom: 20px; line-height: 1.5; }
.impl__list { margin-top: 16px; }
.impl__list li {
  font-size: 20px; font-weight: 300; color: #333;
  padding: 6px 0 6px 20px;
  position: relative; line-height: 1.5;
}
.impl__list li::before {
  content: '•'; position: absolute; left: 0; color: #001036;
}

/* === FOR WHOM === */
.clients { padding: 120px 0; background: #eeeeee; }
.clients__title { font-size: 36px; font-weight: 600; text-align: center; margin-bottom: 20px; }
.clients__subtitle { font-size: 22px; font-weight: 300; text-align: center; max-width: 600px; margin: 0 auto 90px; line-height: 1.5; }
.clients__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.client-card {
  border-radius: 8px; overflow: hidden;
  display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr auto;
  min-height: 200px; position: relative; background: #fff;
}
.client-card__image {
  height: 160px;
  background-size: cover; background-position: center;
}
.client-card__content { padding: 20px; }
.client-card__title { font-size: 20px; font-weight: 600; color: #34313f; margin-bottom: 8px; }
.client-card__desc { font-size: 14px; color: #8e8e8e; line-height: 1.4; }

/* === TESTIMONIALS === */
.testimonials { padding: 90px 0 150px; }
.testimonials__title { font-size: 36px; font-weight: 600; text-align: center; margin-bottom: 90px; }
.testimonials__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; }
.testimonial { border-top: 1px solid #d1d1d1; padding-top: 24px; }
.testimonial__text { font-size: 16px; font-weight: 300; color: #333; line-height: 1.7; }

/* === FAQ === */
.faq { padding: 30px 0 90px; background: #eeeeee; }
.faq__title { font-size: 36px; font-weight: 600; text-align: center; margin-top: 75px; margin-bottom: 40px; }
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item { border-top: 1px solid #e0e0e0; }
.faq__item:last-child { border-bottom: 1px solid #e0e0e0; }
.faq__btn {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; gap: 20px;
  font-size: 20px; font-weight: 500; color: #333;
  cursor: pointer;
}
.faq__btn:hover { color: #001036; }
.faq__icon { width: 24px; height: 24px; flex-shrink: 0; position: relative; }
.faq__icon::before,
.faq__icon::after {
  content: ''; position: absolute;
  background: #222; transition: transform 0.3s, opacity 0.3s;
}
.faq__icon::before { width: 22px; height: 1px; top: 50%; left: 1px; transform: translateY(-50%); }
.faq__icon::after { width: 1px; height: 22px; left: 50%; top: 1px; transform: translateX(-50%); }
.faq__item.open .faq__icon::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq__content { display: none; padding: 0 0 20px; }
.faq__item.open .faq__content { display: block; }
.faq__content p { font-size: 16px; font-weight: 300; color: #555; line-height: 1.7; }

/* === PRICING === */
.pricing { padding: 120px 0; }
.pricing__title { font-size: 36px; font-weight: 600; text-align: center; margin-bottom: 30px; }
.pricing__text { max-width: 760px; margin: 0 auto 60px; font-size: 16px; font-weight: 300; color: #333; line-height: 1.7; text-align: center; }
.pricing__subtitle { font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 60px; }
.pricing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; max-width: 900px; margin: 0 auto; }
.pricing__item { display: flex; gap: 16px; align-items: flex-start; }
.pricing__check {
  width: 30px; height: 30px; flex-shrink: 0;
  background-image: url('../images/lib__icons__bullets__check2.svg');
  background-size: contain; background-repeat: no-repeat;
}
.pricing__label { font-size: 18px; font-weight: 400; color: #333; padding-top: 4px; line-height: 1.4; }

/* === ONBOARDING === */
.onboarding { padding: 150px 0; background: #eeeeee; }
.onboarding__title { font-size: 42px; font-weight: 600; text-align: center; margin-bottom: 90px; line-height: 1.3; max-width: 800px; margin-left: auto; margin-right: auto; }
.onboarding__list { max-width: 900px; margin: 0 auto; }
.onboarding__item { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 50px; }
.onboarding__item:last-child { margin-bottom: 0; }
.onboarding__circle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #66efdf;
  background: #eeeeee; color: #333;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
  flex-shrink: 0; margin-top: 4px;
}
.onboarding__step-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.onboarding__step-desc { font-size: 20px; font-weight: 300; color: #555; line-height: 1.6; }

/* === CONTACT FORM === */
.contact { padding: 0; overflow: hidden; min-height: 30vh; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 30vh; }
.contact__image {
  background-image: url('../images/tild3836-6233-4432-b162-333438636166__tyler-franta-iusj25i.jpg');
  background-size: cover; background-position: center;
  min-height: 500px;
}
.contact__form-side {
  padding: 60px 60px 60px 60px; display: flex; flex-direction: column; justify-content: center;
}
.contact__title { font-size: 26px; font-weight: 600; color: #001036; margin-bottom: 30px; line-height: 1.3; }
.form__field { margin-bottom: 16px; }
.form__field input, .form__field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid #b3b3b3; border-radius: 4px;
  font-family: 'TildaSans', sans-serif; font-size: 16px; font-weight: 300;
  color: #333; background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form__field input::placeholder, .form__field textarea::placeholder { color: rgba(0,0,0,0.5); }
.form__field input:focus, .form__field textarea:focus { border-color: #001036; }
.form__field input.error, .form__field textarea.error { border-color: #e53935; }
.form__field textarea { height: 100px; resize: vertical; }
.form__submit {
  width: 100%; padding: 16px;
  background: #66efdf; color: #333; border-radius: 20px;
  font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; transition: background 0.2s;
  margin-top: 6px;
}
.form__submit:hover { background: #4dd8c8; }
.form__legal { margin-top: 14px; font-size: 12px; color: #555; line-height: 1.5; }
.form__legal a { color: #001036; font-weight: 600; }
.form__success { display: none; font-size: 18px; font-weight: 500; color: #001036; padding: 20px 0; }
.form__error-msg { display: none; font-size: 14px; color: #e53935; margin-top: 8px; }

/* === DOCUMENTS === */
.documents { padding: 105px 0 90px; background: #eeeeee; }
.documents__title { font-size: 36px; font-weight: 600; text-align: center; margin-bottom: 80px; }
.documents__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.doc-card {
  background: #fff; border-radius: 5px; padding: 28px 24px 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow 0.2s;
}
.doc-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.doc-card__title { font-size: 18px; font-weight: 500; color: #333; line-height: 1.4; margin-bottom: 20px; }
.doc-card__title a { color: #333; }
.doc-card__title a:hover { color: #001036; }
.doc-card__link { font-size: 14px; font-weight: 400; color: #ff8562; }

/* === FOOTER === */
.footer { padding: 60px 0 75px; background: #001036; color: #fff; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; }
.footer__company { font-size: 14px; font-weight: 300; line-height: 1.8; }
.footer__company a { color: #fff; text-decoration: underline; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 14px; font-weight: 300; color: #fff; white-space: nowrap; }
.footer__links a:hover { text-decoration: underline; }
.footer__credits { font-size: 14px; color: #fff; margin-top: 20px; }
.footer__credits a { color: #fff; text-decoration: underline; }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 20px; right: 20px; z-index: 9990;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.90); border: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: #001036; }
.back-to-top:hover svg path { stroke: #fff; }
.back-to-top svg { display: block; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .nav__list { display: none; }
  .nav__burger { display: flex; }
  .nav__container { justify-content: flex-end; }

  .hero__logo { width: 90px; height: 90px; }
  .hero__title { font-size: 48px; }
  .hero__desc { font-size: 18px; }

  .about__title { font-size: 32px; }
  .section__title { font-size: 28px; }

  .steps__grid { grid-template-columns: 1fr; gap: 30px; }
  .step__dots { display: flex; }

  .results { grid-template-columns: 1fr; }
  .results__text { padding: 60px 24px; }
  .results__image { min-height: 300px; }

  .benefits__list { max-width: 100%; }

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

  .categories__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .cat-card--phones { grid-column: 1 / 3; grid-row: 1; }
  .cat-card--tablets { grid-column: 1; grid-row: 2; }
  .cat-card--laptops { grid-column: 2; grid-row: 2; }
  .cat-card--estate { grid-column: 1; grid-row: 3; }
  .cat-card--tools { grid-column: 2; grid-row: 3; }

  .impl__container { grid-template-columns: 1fr; }
  .impl__img { max-width: 180px; }

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

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

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

  .contact__inner { grid-template-columns: 1fr; }
  .contact__image { display: none; }
  .contact__form-side { padding: 40px 24px; }

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

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

@media (max-width: 640px) {
  .hero__logo { width: 72px; height: 72px; }
  .hero__title { font-size: 36px; }
  .clients__grid { grid-template-columns: 1fr; }
  .categories__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }
  .cat-card--phones { grid-column: 1; grid-row: 1; }
  .cat-card--tablets { grid-column: 1; grid-row: 2; }
  .cat-card--laptops { grid-column: 1; grid-row: 3; }
  .cat-card--estate { grid-column: 1; grid-row: 4; }
  .cat-card--tools { grid-column: 1; grid-row: 5; }
  .onboarding__title { font-size: 30px; }
}
