/* Кофейня «Тёплый пар» — стили */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2b2320;
  --muted: #7a6f68;
  --accent: #a05a2c;
  --accent-dark: #7c4420;
  --border: #e8e0d8;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-mark { font-size: 1.4rem; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a.active, .main-nav a:hover { color: var(--accent); text-decoration: none; }
.header-contacts { display: flex; align-items: center; gap: 16px; }
.phone { font-weight: 600; color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: #f3ece4; }

/* Hero */
.hero {
  background: linear-gradient(rgba(43, 35, 32, 0.65), rgba(43, 35, 32, 0.65)),
    url("https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=1600&q=60") center/cover no-repeat;
  color: #fff;
  padding: 110px 0;
  text-align: center;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 18px; }
.hero p { max-width: 620px; margin: 0 auto 30px; font-size: 1.1rem; opacity: 0.9; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Features */
.features { padding: 70px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* Popular */
.popular { padding: 20px 0 70px; }
.popular h2 { text-align: center; margin-bottom: 36px; font-size: 2rem; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.menu-card-img { height: 180px; background-size: cover; background-position: center; }
.img-1 { background-image: url("https://images.unsplash.com/photo-1572442388796-11668a67e53d?w=800&q=60"); }
.img-2 { background-image: url("https://images.unsplash.com/photo-1511920170033-f8396924c348?w=800&q=60"); }
.img-3 { background-image: url("https://images.unsplash.com/photo-1555507036-ab1f4038808a?w=800&q=60"); }
.menu-card-body { padding: 20px; }
.menu-card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.menu-card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.menu-card-footer { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; font-size: 1.15rem; color: var(--accent-dark); }

/* CTA */
.cta { background: var(--accent-dark); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 8px; }
.cta p { opacity: 0.85; }

/* Footer */
.site-footer { background: #2b2320; color: #cfc6bf; padding: 50px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding-bottom: 36px;
}
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer a { display: block; color: #cfc6bf; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #453a33;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.85rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--accent-dark);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; }
.page-hero p { opacity: 0.85; margin-top: 8px; }

/* Menu page */
.menu-section { padding: 50px 0 20px; }
.menu-section h2 { margin-bottom: 24px; font-size: 1.6rem; }
.menu-list { display: grid; gap: 12px; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.menu-item .name { font-weight: 600; }
.menu-item .desc { color: var(--muted); font-size: 0.9rem; }
.menu-item .price { font-weight: 700; white-space: nowrap; color: var(--accent-dark); }

/* About / Contacts */
.text-section { padding: 50px 0; max-width: 760px; }
.text-section h2 { margin: 28px 0 12px; }
.text-section p { margin-bottom: 14px; color: #4a403a; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 50px 0;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h3 { margin-bottom: 10px; }

.form-section { padding: 0 0 60px; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 560px;
}
.form-card label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form-card input, .form-card textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}
.form-card input:focus, .form-card textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
.form-card .btn { margin-top: 20px; border: none; cursor: pointer; }
.form-note { color: var(--muted); font-size: 0.85rem; margin-top: 12px; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .hero h1 { font-size: 2rem; }
  .cta-inner { flex-direction: column; text-align: center; }
}
