/* ===== Основные цвета и размеры ===== */
/* Поменяйте значения здесь — и они изменятся по всему сайту */
:root {
  --bg: #fafaf9;        /* фон */
  --text: #111;         /* основной текст */
  --muted: #6b6b6b;     /* второстепенный текст */
  --line: #e5e5e3;      /* линии и рамки */
  --accent: #ff5a1f;    /* акцентный цвет */
  --radius: 14px;       /* скругление углов */
}

/* ===== Сброс стандартных стилей браузера ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* плавная прокрутка по ссылкам меню */
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* Контейнер ограничивает ширину контента и задаёт отступы по краям */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Шапка ===== */
.header {
  position: sticky;   /* прилипает к верху при прокрутке */
  top: 0;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

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

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

/* ===== Первый экран ===== */
.hero {
  padding: 120px 0 100px;
}

.hero__label {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(36px, 7vw, 72px); /* размер подстраивается под ширину экрана */
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero__text {
  max-width: 520px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ===== Кнопка ===== */
.button {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== Секции ===== */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section__title {
  font-size: 32px;
  letter-spacing: -1px;
  margin-bottom: 40px;
}

/* Сетка карточек: сама решает, сколько колонок помещается */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card__num {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

/* ===== Работы ===== */
.grid--works {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.work__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #ecebe8;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

/* Обложка кофейни: цвета и шрифт как на самом сайте */
.work__image--coffee {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2b1d14;
  color: #f6f1ea;
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 700;
}

.work:hover .work__image {
  transform: scale(1.02);
}

.work h3 {
  font-size: 18px;
}

.work p {
  color: var(--muted);
  font-size: 14px;
}

/* ===== Шаги работы ===== */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.steps li::before {
  content: "0" counter(step);
  color: var(--accent);
  font-weight: 500;
}

.steps strong {
  color: var(--text);
  font-weight: 500;
}

/* ===== Контакты ===== */
.contact {
  text-align: center;
  padding: 120px 0;
}

.contact__title {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.contact__text {
  color: var(--muted);
  margin-bottom: 36px;
}

/* ===== Подвал ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Телефоны (экран уже 640px) ===== */
@media (max-width: 640px) {
  .nav {
    display: none; /* на телефоне прячем меню, чтобы не было тесно */
  }

  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 56px 0;
  }
}
