/* ===== Vintage coffeehouse theme ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #f6efe0;
  --paper-alt: #efe5cf;
  --kraft: #d9c39a;
  --ink: #3a2a1c;
  --brown: #6b4a2f;
  --brown-deep: #4a3220;
  --rust: #b5543f;
  --rust-deep: #96422f;
  --cream: #fdf8ec;
  --muted: #8a7458;
  --card: #fdf8ec;
  --radius: 14px;
  --font: "Nunito", "Segoe UI", sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}
.container { width: min(1080px, 92%); margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; }
button:focus, a:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* Paper grain texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(107,74,47,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

.section { padding: 90px 0; position: relative; }
.section--alt { background: var(--paper-alt); }
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  text-align: center;
  margin-bottom: 14px;
  color: var(--brown-deep);
}
.section__title::before {
  content: "❦";
  display: block;
  color: var(--rust);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.section__subtitle {
  text-align: center; color: var(--muted);
  max-width: 580px; margin: 0 auto 52px; font-size: 1.05rem;
}
.section__cta { text-align: center; margin-top: 50px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 34px; border-radius: 6px; border: 2px solid var(--brown-deep);
  cursor: pointer; box-shadow: 4px 4px 0 rgba(74,50,32,0.85);
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--brown-deep);
  background: var(--cream);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 rgba(74,50,32,0.85); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(74,50,32,0.85); }
.btn--primary {
  background: var(--rust); border-color: var(--rust-deep); color: var(--cream);
  box-shadow: 4px 4px 0 var(--brown-deep);
}
.btn--primary:hover { box-shadow: 7px 7px 0 var(--brown-deep); }
.btn--ghost { background: transparent; }
.btn--tg { background: #2AABEE; border-color: #1d85bd; color: #fff; }
.btn--light { background: var(--cream); color: var(--brown-deep); border-color: var(--brown-deep); }
.btn--lg { padding: 17px 40px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 224, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--brown);
}
.header__inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.logo {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--brown-deep); text-decoration: none;
  white-space: nowrap;
}
.logo span {
  font-family: var(--font); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--rust);
  border: 1.5px dashed var(--rust);
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--brown); font-weight: 700; font-size: 0.95rem;
  transition: color 0.2s; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--rust); border-color: var(--rust); }
.header__contacts { display: flex; align-items: center; gap: 12px; }
.phone { font-weight: 800; color: var(--brown-deep); white-space: nowrap; }
.phone:hover { color: var(--rust); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--brown-deep); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(181, 84, 63, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(107, 74, 47, 0.12), transparent 50%),
    var(--paper);
  overflow: hidden;
}
/* Coffee ring stain */
.hero::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border: 14px solid rgba(107, 74, 47, 0.08);
  border-radius: 50%;
  top: 40px; right: -100px;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  border: 10px solid rgba(181, 84, 63, 0.08);
  border-radius: 50%;
  bottom: 30px; left: -60px;
  pointer-events: none;
}
/* Steam animation */
.steam {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  pointer-events: none;
}
.steam span {
  width: 10px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(to top, rgba(107,74,47,0.35), transparent);
  filter: blur(6px);
  animation: steam 3.5s ease-in-out infinite;
}
.steam span:nth-child(2) { animation-delay: 1.1s; height: 90px; }
.steam span:nth-child(3) { animation-delay: 2.2s; height: 60px; }
@keyframes steam {
  0% { transform: translateY(0) scaleY(0.6); opacity: 0; }
  30% { opacity: 0.9; }
  100% { transform: translateY(-70px) scaleY(1.3); opacity: 0; }
}
.hero__eyebrow {
  color: var(--rust);
  font-family: var(--font-head); font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  color: var(--brown-deep);
  margin-bottom: 22px;
}
.hero__title em {
  color: var(--rust);
  font-style: italic;
}
.hero__sub {
  max-width: 560px; margin: 0 auto 38px;
  color: var(--muted); font-size: 1.12rem;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.hero__chips { list-style: none; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__chips li {
  background: var(--cream);
  border: 1.5px dashed var(--kraft);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 700; font-size: 0.92rem;
  color: var(--brown);
}

/* ===== Cards ===== */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 2px solid var(--kraft);
  box-shadow: 5px 5px 0 rgba(74,50,32,0.15);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 rgba(74,50,32,0.2); }
.card__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: var(--paper-alt);
  border: 2px solid var(--kraft);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; font-size: 1.2rem; color: var(--brown-deep); }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ===== Services ===== */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; }
.tab {
  padding: 11px 24px; border-radius: 6px;
  border: 2px solid var(--brown);
  background: var(--cream);
  color: var(--brown-deep);
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
  transition: all 0.2s;
}
.tab:hover { background: var(--paper-alt); }
.tab.is-active {
  background: var(--brown-deep); color: var(--cream); border-color: var(--brown-deep);
}
.tab-panels { min-height: 280px; }
.tab-panel { display: none; }
.tab-panel.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-group {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  border: 2px solid var(--kraft);
  box-shadow: 5px 5px 0 rgba(74,50,32,0.12);
}
.service-group__title {
  font-size: 1.3rem; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--kraft);
  color: var(--brown-deep);
}
.price-list { list-style: none; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 10px 0;
  border-bottom: 1.5px dashed rgba(217,195,154,0.6);
  font-size: 0.98rem;
}
.price-list li:last-child { border-bottom: none; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--rust); white-space: nowrap; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--cream);
  box-shadow: 0 10px 28px rgba(74,50,32,0.18);
  transition: transform 0.3s;
}
.gallery img:hover { transform: rotate(-1deg) scale(1.02); }

/* ===== Masters ===== */
.master {
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 20px;
  border: 2px solid var(--kraft);
  box-shadow: 5px 5px 0 rgba(74,50,32,0.12);
  transition: transform 0.25s;
}
.master:hover { transform: translateY(-4px); }
.master__avatar {
  width: 92px; height: 92px; margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  color: var(--cream);
  background: linear-gradient(135deg, var(--brown), var(--rust));
  border: 3px solid var(--kraft);
}
.master h3 { font-size: 1.05rem; color: var(--brown-deep); }
.master__role { color: var(--rust); font-weight: 800; font-size: 0.9rem; }
.master__exp { color: var(--muted); font-size: 0.85rem; }

/* ===== Reviews ===== */
.review {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 2px solid var(--kraft);
  box-shadow: 5px 5px 0 rgba(74,50,32,0.12);
  display: flex; flex-direction: column; gap: 16px;
}
.review p { font-style: italic; color: var(--ink); }
.review footer { color: var(--rust); font-weight: 800; font-size: 0.9rem; }

/* ===== Promo ===== */
.promo {
  padding: 90px 0;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0,0,0,0.3), transparent 60%),
    linear-gradient(135deg, var(--rust-deep), var(--brown-deep));
}
.promo h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.promo p { font-size: 1.15rem; margin-bottom: 32px; opacity: 0.95; }

/* ===== Contacts ===== */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contacts__list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.contacts__list li { color: var(--muted); font-weight: 600; }
.contacts__list a { color: var(--rust); font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--rust); }
.contacts__list a:hover { color: var(--brown-deep); }
.form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 38px 34px;
  border: 2px solid var(--kraft);
  box-shadow: 6px 6px 0 rgba(74,50,32,0.15);
  display: grid; gap: 18px;
}
.form h3 { font-size: 1.6rem; color: var(--brown-deep); }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 0.92rem; }
.form input, .form select {
  font: inherit; padding: 14px 18px;
  border: 2px solid var(--kraft); border-radius: 8px;
  background: var(--cream); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form select:focus {
  outline: none; border-color: var(--rust);
  box-shadow: 3px 3px 0 rgba(181, 84, 63, 0.2);
}
.form input.is-error { border-color: #c0392b; }
.checkbox { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; color: var(--muted); font-size: 0.82rem; }
.checkbox input { width: auto; margin-top: 4px; }

/* ===== Footer ===== */
.footer {
  background: var(--brown-deep); color: var(--paper);
  padding: 48px 0; text-align: center;
}
.footer__inner { display: grid; gap: 10px; justify-items: center; }
.footer .logo { color: var(--paper); }
.footer .logo span { border-color: var(--rust); color: #e8a898; }
.footer p { font-size: 0.88rem; opacity: 0.8; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(40, 26, 16, 0.6); backdrop-filter: blur(4px); }
.modal__box {
  position: relative; width: min(440px, 100%);
  background: var(--paper); border-radius: var(--radius);
  padding: 38px 34px;
  border: 2px solid var(--brown);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
  animation: pop 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes pop { from { transform: scale(0.9) rotate(-1deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__close { position: absolute; top: 14px; right: 20px; font-size: 1.9rem; color: var(--muted); }
.modal__close:hover { color: var(--rust); }
.modal__box h3 { font-size: 1.7rem; margin-bottom: 8px; color: var(--brown-deep); }
.modal__sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.modal__box form { display: grid; gap: 16px; }
.modal__box label { display: grid; gap: 7px; font-weight: 700; font-size: 0.9rem; }
.modal__box input, .modal__box select {
  font: inherit; padding: 13px 16px;
  border: 2px solid var(--kraft); border-radius: 8px; background: #fff;
}
.modal__box input:focus, .modal__box select:focus { outline: none; border-color: var(--rust); }
.modal__success { text-align: center; padding: 20px 0 6px; }
.modal__success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem; color: #fff;
  background: linear-gradient(135deg, #7fb069, #5a8f4e);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 760px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--paper);
    padding: 20px; gap: 16px;
    border-bottom: 2px solid var(--brown);
    display: none;
  }
  .nav.is-open { display: flex; }
  .header__contacts { margin-left: auto; }
  .phone { display: none; }
  .burger { display: flex; }
  .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}
