/* ===== Переменные ===== */
:root {
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ebe4;
  --color-text: #3d3632;
  --color-text-light: #6b5f57;
  --color-accent: #7a9e7e;
  --color-accent-dark: #5c7e60;
  --color-warm: #c4a882;
  --color-white: #ffffff;
  --color-telegram: #2AABEE;
  --color-telegram-dark: #229ED9;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --max-width: 1080px;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(61, 54, 50, 0.08);
}

/* ===== Сброс ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Контейнер ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Навигация ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 54, 50, 0.06);
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.95rem;
  color: var(--color-text-light);
  transition: color 0.2s;
  position: relative;
}

.nav__link:hover {
  color: var(--color-accent-dark);
}

.nav__link--cta {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
}

.nav__link--cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(122, 158, 126, 0.35);
}

.btn--telegram {
  background: var(--color-telegram);
  color: var(--color-white);
  font-size: 1.1rem;
  padding: 18px 40px;
}

.btn--telegram:hover {
  background: var(--color-telegram-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.35);
}

.btn__icon {
  flex-shrink: 0;
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(170deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero__inner {
  max-width: 680px;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero__text {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ===== Секции ===== */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--cta {
  background: linear-gradient(170deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 96px 0;
}

.section--cta .section__title {
  color: var(--color-white);
}

.section--cta .section__desc {
  color: rgba(255, 255, 255, 0.88);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section__desc {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ===== Обо мне ===== */
.about__text {
  max-width: 680px;
  margin: 40px auto 0;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.about__text strong {
  color: var(--color-text);
}

/* ===== Карточки (Метод) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(61, 54, 50, 0.12);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card__text {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Услуги ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service {
  padding: 32px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-accent);
  transition: transform 0.25s;
}

.service:hover {
  transform: translateY(-3px);
}

.service h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Шаги ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.step {
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step__text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ===== FAQ ===== */
.faq {
  max-width: 680px;
  margin: 48px auto 0;
}

.faq__item {
  border-bottom: 1px solid rgba(61, 54, 50, 0.1);
}

.faq__question {
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__answer {
  padding: 0 0 24px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Контакт ===== */
.contact__inner {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Подвал ===== */
.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  border-top: 1px solid rgba(61, 54, 50, 0.08);
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 32px 32px;
    gap: 24px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 99;
  }

  .nav__list--open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
    z-index: 101;
  }

  .nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 130px 0 64px;
    min-height: auto;
  }

  .hero__title {
    font-size: 2rem;
  }

  .section {
    padding: 64px 0;
  }

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

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

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== Анимации при скролле ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}
