/* ================================================================
   styles.css — Николь Шахбазян · v2
   Цвета: белый / чёрный / #e1e1e1 (серый фон) / #009966 (зелёный акцент)
   Шрифт: Carlito (аналог Calibri) — тонкий 400 и жирный 700
================================================================ */


/* ── 1. ПЕРЕМЕННЫЕ ─────────────────────────────────────────────────
   Все цвета и шрифты — здесь. Меняй только этот блок.
──────────────────────────────────────────────────────────────────── */
:root {
  /* Цвета */
  --white:       #FFFFFF;
  --black:       #111111;       /* почти чёрный — мягче чистого #000 */
  --gray:        #e1e1e1;       /* фон "серых" секций (процесс, условия) */
  --gray-mid:    #555555;       /* средний серый для обычного текста */
  --gray-light:  #999999;       /* светлый серый — подписи, метки */
  --gray-border: #d0d0d0;       /* цвет разделителей и рамок */
  --dark-bg:     #1a1a1a;       /* тёмный фон (результаты, подвал) */
  --green:       #009966;       /* акцент — зелёный блок "что важно" */
  --green-dark:  #007a52;       /* тёмнее зелёного — hover */

  /* Шрифты */
  /* Carlito — точный метрический клон Calibri от Google Fonts     */
  /* Если нужен настоящий Calibri — он есть в Windows/macOS,       */
  /* поэтому ставим его в начало списка через system-ui fallback    */
  --font: 'Carlito', Calibri, 'Gill Sans', sans-serif;

  /* Сетка */
  --container: 1100px;
  --gap: clamp(24px, 4vw, 60px);

  /* Переходы */
  --ease: 0.2s ease;
}


/* ── 2. СБРОС ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-mid);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; transition: opacity var(--ease); }
a:hover { opacity: 0.75; }
ul { list-style: none; }
strong { font-weight: 700; color: var(--black); }


/* ── 3. ТИПОГРАФИКА ────────────────────────────────────────────── */
/* Заголовки — Carlito жирный */
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;             /* ← жирный Calibri/Carlito */
  color: var(--black);
  line-height: 1.2;
}
h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); margin-bottom: 10px; }

p + p { margin-top: 14px; }

/* Надпись над заголовком — тонкий Calibri */
.eyebrow {
  display: block;
  font-weight: 400;             /* ← тонкий */
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255,255,255,0.5); }

/* Заголовок секции */
.section__title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  margin-bottom: 44px;
  font-weight: 700;
}
.section__title--light { color: var(--white); }

/* Hero — имя и "Меня зовут" одинакового веса */
.hero__title em {
  font-style: normal;
  font-weight: 400;
}

.link-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--green);
}


/* ── 4. LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.section { padding: clamp(56px, 9vw, 100px) 0; }

/* Серый фон для блока запросов */
.problems--gray { background: var(--gray); }

/* Цвета фонов остальных секций */
.hero         { background: var(--white); }
.results      { background: var(--dark-bg); }
.process      { background: var(--gray); }
.about        { background: var(--white); }
.diplomas     { background: var(--gray); }
.conditions   { background: var(--white); }
.faq          { background: var(--white); }
.form-section { background: var(--gray); }


/* ── 5. КНОПКИ ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: #333; }
.btn--full { width: 100%; text-align: center; }


/* ── 6. НАВИГАЦИЯ ──────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav__logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  text-decoration: none;
}
.nav__logo:hover { opacity: 0.7; }
.nav__links {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: center;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gray-mid);
  text-transform: uppercase;
}
.nav__cta {
  padding: 7px 18px;
  background: var(--black) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  transition: background var(--ease) !important;
}
.nav__cta:hover { background: #333 !important; opacity: 1 !important; }

/* Бургер */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px; height: 14px;
  background: none; border: none; cursor: pointer;
}
.nav__burger span {
  display: block; height: 1.5px;
  background: var(--black);
  transition: transform var(--ease), opacity var(--ease);
}
.nav__links.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 60px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 20px clamp(20px, 5vw, 48px);
  gap: 16px; align-items: flex-start;
}


/* ── 7. HERO ────────────────────────────────────────────────────── */
.hero {
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: center;
  gap: var(--gap);
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero__desc {
  font-size: 1rem;
  color: var(--gray-mid);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__photo img {
  width: 100%; height: 520px;
  object-fit: cover; object-position: top center;
}
.hero__photo--fallback {
  width: 100%; height: 520px;
  background: var(--gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light);
}
.hero__photo--fallback::after { content: 'ваша фотография'; }


/* ── 8. КАРТОЧКИ ЗАПРОСОВ ──────────────────────────────────────── */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;         /* обычный отступ между карточками */
}
.problem-card {
  background: var(--white);
  padding: clamp(22px, 3vw, 36px);
  transition: background var(--ease);
}
.problem-card:hover { background: #fafafa; }
.problem-card h3 { margin-bottom: 10px; }
.problem-card p  { font-size: 0.9rem; }


/* ── 9. РЕЗУЛЬТАТЫ ─────────────────────────────────────────────── */
.results__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.results__list li {
  padding: 20px 20px 20px 36px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  position: relative;
}
.results__list li::before {
  content: '';
  position: absolute; left: 16px; top: 28px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}


/* ── 10. ШАГИ ПРОЦЕССА ─────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
}
.step {
  background: var(--gray);   /* #e1e1e1 */
  padding: clamp(22px, 3vw, 36px);
}
.step__num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #c8c8c8;            /* чуть темнее фона — ненавязчиво */
  line-height: 1;
  margin-bottom: 16px;
}
.step__title { font-size: 1rem; margin-bottom: 8px; }
.step__text  { font-size: 0.87rem; }


/* ── 11. ОБО МНЕ ───────────────────────────────────────────────── */
.about        { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

/* Крупный заголовок "Обо мне" */
.about__heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1.15;
}

/* Подзаголовок "За что меня ценят клиенты" — жирный, между h2 и обычным текстом */
.about__subheading {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--black);
  margin-top: 24px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.about__text p { margin-bottom: 16px; font-size: 0.97rem; }

/* Фото справа */
.about__photo img {
  width: 100%; height: 520px;
  object-fit: cover; object-position: top center;
}
.about__photo--fallback {
  width: 100%; height: 520px;
  background: var(--gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light);
}
.about__photo--fallback::after { content: 'ваша фотография'; }


/* ── 11б. БЛОК "ЧТО ДЛЯ МЕНЯ ВАЖНО" — отдельная секция ────────── */
.values {
  background: var(--green);
  padding: clamp(48px, 8vw, 88px) 0;
}

.values__title {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.2;
}

.values__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.values__list li {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 400;
  color: var(--white);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}
.values__list li::before {
  content: '•';
  position: absolute; left: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}
.values__list a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ── 12. ГАЛЕРЕЯ ДИПЛОМОВ ──────────────────────────────────────── */
.gallery { position: relative; }

/* Окно просмотра — обрезает всё что вне одного слайда */
.gallery__viewport {
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

/* Полоса слайдов — JS двигает её через transform: translateX */
.gallery__track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Один слайд */
.diploma-slide {
  min-width: 100%;             /* каждый слайд = вся ширина окна */
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.diploma-slide img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;        /* диплом целиком, без обрезки */
  background: var(--white);
  padding: 20px;
}
/* Плейсхолдер если изображение не найдено */
.diploma-slide--empty {
  height: 300px;
  background: var(--gray);
  justify-content: center;
  color: var(--gray-light);
}
.diploma-slide--empty::after { content: 'фото не найдено'; }

/* Подпись под дипломом */
.diploma-slide__caption {
  padding: 14px 20px;
  font-size: 0.82rem;
  color: var(--gray-light);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  border-top: 1px solid var(--gray-border);
  width: 100%;
}

/* Кнопки ← → */
.gallery__controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.gallery__btn {
  width: 44px; height: 44px;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.gallery__btn:hover {
  background: var(--black);
  color: var(--white);
}
.gallery__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Точки-индикаторы */
.gallery__dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.gallery__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--black);
  background: transparent;
  cursor: pointer;
  transition: background var(--ease);
  padding: 0;
}
.gallery__dot.is-active { background: var(--black); }


/* ── 13. УСЛОВИЯ ───────────────────────────────────────────────── */
.conditions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
}
.condition {
  background: var(--white);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 36px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.condition__value {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}
.condition__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
}


/* ── 14. FAQ ───────────────────────────────────────────────────── */
.faq__list { max-width: 700px; }
.faq__item { border-bottom: 1px solid var(--gray-border); }
.faq__question {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  user-select: none;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--green);
  flex-shrink: 0;
  transition: transform var(--ease);
}
details[open] .faq__question::after { transform: rotate(45deg); }
.faq__answer {
  padding-bottom: 20px;
  font-size: 0.92rem; line-height: 1.75;
}
.faq__answer ul { margin-top: 8px; padding-left: 16px; }
.faq__answer ul li { list-style: disc; margin-bottom: 4px; }


/* ── 15. ФОРМА ─────────────────────────────────────────────────── */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.form-intro p { font-size: 0.95rem; margin-bottom: 10px; }
.form-contacts { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.form-contacts a { font-size: 0.9rem; color: var(--green); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__honeypot { display: none; }
.form__field { display: flex; flex-direction: column; gap: 5px; }
.form__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  font-weight: 400;
}
.form__input, .form__select, .form__textarea {
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  font-family: var(--font);
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--black);
  outline: none;
  width: 100%;
  appearance: none;
  transition: border-color var(--ease);
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--gray-light); }
.form__input:focus, .form__select:focus, .form__textarea:focus {
  border-color: var(--black);
}
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form__textarea { resize: vertical; min-height: 96px; }
.form__legal { font-size: 0.75rem; color: var(--gray-light); line-height: 1.6; }
.form__legal a { color: var(--green); }


/* ── 16. ПОДВАЛ ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark-bg);
  padding: 36px 0;
}
.footer .container {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px; text-align: center;
}
.footer__legal { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer__nav a { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer__nav a:hover { opacity: 0.75; }


/* ── 17. АНИМАЦИИ ПОЯВЛЕНИЯ ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ── 18. АДАПТИВ — ПЛАНШЕТ ≤ 900px ─────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner      { grid-template-columns: 1fr; }
  .hero__photo      { order: -1; }
  .hero__photo img  { height: 380px; }

  .steps            { grid-template-columns: repeat(2, 1fr); }

  .about__grid      { grid-template-columns: 1fr; }
  .about__photo img { height: 360px; }
  .about__photo     { order: -1; }

  .form-wrap        { grid-template-columns: 1fr; }
}


/* ── 19. АДАПТИВ — МОБИЛЬНЫЙ ≤ 640px ───────────────────────────── */
@media (max-width: 640px) {
  /* Навигация */
  .nav__links  { display: none; }
  .nav__burger { display: flex; }

  /* Hero */
  .hero { padding-top: 76px; }
  .hero__photo img { height: 280px; }

  /* Сетки → 1 колонка */
  .problems__grid  { grid-template-columns: 1fr; }
  .steps           { grid-template-columns: 1fr; }
  .conditions__grid{ grid-template-columns: 1fr; }
  .results__list   { grid-template-columns: 1fr; }
}
