/* ===== Цвета кофейни: тёплые, «кофейные» ===== */
:root {
  --bg: #f6f1ea;        /* сливочный фон */
  --text: #2b1d14;      /* тёмный кофе */
  --muted: #7a6a5d;     /* светлый кофе */
  --line: #e3d8ca;      /* линии */
  --accent: #c0652f;    /* терракота */
  --dark: #2b1d14;      /* фон тёмной секции */
  --radius: 18px;
}

* {
  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;
}

/* Все заголовки — шрифтом с засечками */
h1, h2, h3, .logo {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(246, 241, 234, 0.9);
  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: 68px;
}

.logo {
  font-size: 26px;
}

.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: 96px 0;
}

/* Две колонки: текст слева, картинка справа */
.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Рисунок чашки */
.hero__art svg {
  width: 100%;
  max-width: 380px;
  display: block;
  margin: 0 auto;
}

.art__bg      { fill: #ead9c4; }
.art__cup     { fill: var(--accent); }
.art__handle  { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
.art__plate   { fill: var(--text); opacity: 0.15; }
.art__steam   {
  fill: none;
  stroke: var(--muted);
  stroke-width: 4;
  stroke-linecap: round;
  animation: steam 3s ease-in-out infinite; /* пар «дышит» */
}

@keyframes steam {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 0.8; transform: translateY(-6px); }
}

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

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

/* Вторая кнопка — только с рамкой */
.button--ghost {
  background: transparent;
  color: var(--text);
}

.button--ghost:hover {
  color: var(--bg);
}

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

.section__title {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 48px;
}

/* ===== Меню ===== */
.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}

/* Место под фото: заглушка снизу, фото поверх неё */
.menu__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #ead9c4;
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.menu__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* фото заполняет блок, не искажаясь */
}

.menu__heading {
  font-size: 22px;
  margin-bottom: 20px;
}

.menu__list {
  list-style: none;
  display: grid;
  gap: 14px;
}

/* Строка меню: название ....... цена */
.menu__list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.menu__dots {
  flex: 1;
  border-bottom: 1px dotted var(--muted);
  opacity: 0.5;
}

.menu__list li span:last-child {
  font-weight: 500;
  white-space: nowrap;
}

/* ===== Тёмная секция «О нас» ===== */
.section--dark {
  background: var(--dark);
  color: var(--bg);
  border-top: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

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

.feature h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.feature p {
  color: #c9b9a8;
}

/* ===== Как найти ===== */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.visit .section__title {
  margin-bottom: 20px;
}

.visit__address {
  font-size: 20px;
  margin-bottom: 16px;
}

.visit__phone {
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}

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

/* ===== Отзывы ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.review {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review__stars {
  color: #e0a526;
  letter-spacing: 2px;
}

.review__text {
  flex: 1; /* подписи выравниваются по низу карточек */
}

.review__author {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.reviews__link {
  color: var(--accent);
  font-weight: 500;
}

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

.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer a {
  color: var(--text);
  font-weight: 500;
}

/* ===== Телефоны ===== */
@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 56px 0;
  }

  /* Колонки становятся одна под другой */
  .hero__inner,
  .visit {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1; /* картинка над текстом */
  }

  .hero__art svg {
    max-width: 200px;
  }

  .section {
    padding: 64px 0;
  }
}

/* ===== Страница политики ===== */
.policy {
  max-width: 760px;
}

.policy h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

.policy p {
  color: var(--muted);
}
/* ===== Бронирование ===== */
.booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form {
  display: grid;
  gap: 18px;
}

.form .section__title {
  margin-bottom: 8px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.form input,
.form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.form__agree {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  color: var(--muted);
}

.form__agree input {
  margin-top: 4px;
}

.form__agree a {
  color: var(--accent);
  text-decoration: underline;
}

.form .button {
  border: none;
  cursor: pointer;
  font: inherit;
  justify-self: start;
}

.map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: var(--radius);
}

@media (max-width: 760px) {
  .booking {
    grid-template-columns: 1fr;
  }
}