:root {
  --bg-main: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-soft: #F3EDE6;
  --text-main: #1E1C1A;
  --text-muted: #66605A;
  --accent: #B48A78;
  --accent-dark: #966D5C;
  --border: #E6DFD6;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 12px 32px rgba(30, 28, 26, 0.05);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; transition: 0.25s ease; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
section { padding: 84px 0; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; }
h2 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 16px; }
.section-sub { color: var(--text-muted); max-width: 620px; margin-bottom: 44px; font-size: 16px; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(180, 138, 120, 0.3);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-main);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* Шапка */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); }
.brand-name { font-family: var(--font-serif); font-size: 21px; font-weight: 600; display: block; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--text-muted); }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 600; font-size: 14px; }
.burger { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text-main); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--bg-main);
  z-index: 995;
  padding: 30px 24px;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  font-weight: 600;
}
.mobile-menu.open { display: flex; }

/* Первый экран */
.hero { padding: 48px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.badge-yandex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.badge-yandex span { color: #E5A93B; }
h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; }
.hero-desc { font-size: 17px; color: var(--text-muted); margin-bottom: 30px; max-width: 540px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.hero-meta strong { color: var(--text-main); display: block; font-size: 15px; }
.hero-visual { position: relative; }
.hero-img {
  width: 100%;
  height: 540px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(30, 28, 26, 0.12);
}
.hero-float {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 260px;
}
.hero-float strong { font-size: 14px; display: block; margin-bottom: 4px; }
.hero-float p { font-size: 12px; color: var(--text-muted); }

/* Преимущества */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 23px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* Прайс-лист */
.price-section { background: var(--bg-soft); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab-btn {
  padding: 11px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active { background: var(--text-main); color: #FFFFFF; border-color: var(--text-main); }
.price-list { display: none; flex-direction: column; gap: 14px; }
.price-list.active { display: flex; }
.price-item {
  background: var(--bg-card);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.price-info h4 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.price-info p { font-size: 14px; color: var(--text-muted); max-width: 660px; }
.price-time { display: inline-block; font-size: 12px; color: var(--accent-dark); font-weight: 600; margin-top: 6px; }
.price-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.price-val { font-size: 20px; font-weight: 700; white-space: nowrap; }

/* Портфолио */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
}
.work-card img { width: 100%; height: 100%; transition: transform 0.4s ease; }
.work-card:hover img { transform: scale(1.05); }
.work-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(30, 28, 26, 0.78));
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
}

/* О мастере и атмосфера */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.master-img { width: 100%; height: 480px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-text p { margin-bottom: 16px; color: var(--text-muted); font-size: 15px; }
.studio-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.studio-card { border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); }
.studio-card img { width: 100%; height: 270px; }
.studio-card div { padding: 14px 16px; font-size: 14px; font-weight: 600; }

/* Отзывы и Карта */
.reviews-section { background: var(--bg-soft); }
.reviews-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.yandex-widget-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 540px;
}
.review-cards { display: flex; flex-direction: column; gap: 14px; }
.rev-card {
  background: var(--bg-card);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.rev-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.rev-stars { color: #E5A93B; letter-spacing: 2px; }
.rev-card p { font-size: 14px; color: var(--text-muted); }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: stretch; }
.contact-box {
  background: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-row { margin-bottom: 18px; }
.contact-row span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.contact-row strong, .contact-row a { font-size: 17px; font-weight: 600; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.soc-pill {
  padding: 10px 16px;
  border-radius: 50px;
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 600;
}
.soc-pill:hover { background: var(--accent); color: #FFFFFF; }
.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 400px;
}

/* Подвал */
footer {
  background: var(--text-main);
  color: #D6CFC7;
  padding: 44px 0 32px;
  font-size: 13px;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-legal { margin-top: 20px; font-size: 12px; color: #9E968E; line-height: 1.5; }
.footer-legal a { text-decoration: underline; }
/* Адаптив под смартфоны */
@media (max-width: 960px) {
.nav-links, .nav-phone { display: none; }
.burger { display: block; }
.hero-grid, .about-grid, .reviews-layout, .contacts-grid { grid-template-columns: 1fr; }
.features-grid, .studio-gallery { grid-template-columns: 1fr; }
.portfolio-grid { grid-template-columns: repeat(2, 1fr); }
.hero-img { height: 420px; }
.hero-float { left: 12px; bottom: 12px; }
}
@media (max-width: 600px) {
section { padding: 56px 0; }
.price-item { flex-direction: column; align-items: flex-start; }
.price-right { width: 100%; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; }
}
.footer-legal a { text-decoration: underline; }

/* Адаптив под смартфоны */
@media (max-width: 960px) {
  .nav-links, .nav-phone { display: none; }
  .burger { display: block; }
  .hero-grid, .about-grid, .reviews-layout, .contacts-grid { grid-template-columns: 1fr; }
  .features-grid, .studio-gallery { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-img { height: 420px; }
  .hero-float { left: 12px; bottom: 12px; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .price-item { flex-direction: column; align-items: flex-start; }
  .price-right { width: 100%; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; }
}
