/* ===== CSS Custom Properties ===== */
:root {
  --primary: #111111;
  --primary-light: #333333;
  --accent: #444444;
  --accent-light: #666666;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #111111;
  --text-muted: #555555;
  --text-light: #888888;
  --border: #e0e0e0;
  --white: #ffffff;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 12px rgba(0,0,0,0.1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --max-width: 1120px;
  --header-h: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; position: relative; }
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex; align-items: center;
}
.logo-img {
  height: 42px; width: auto;
  display: block;
  border-radius: 10px;
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at center, black 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at center, black 70%, transparent 100%);
}
.nav-list { display: flex; gap: 8px; list-style: none; }
.nav-list a {
  display: block; padding: 8px 16px;
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-muted); border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-list a:hover, .nav-list a.active {
  color: var(--primary); background: var(--bg-alt);
}
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--primary) url('images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 110px;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.7));
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.hero-brand {
  color: var(--white);
  font-weight: 400;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin: 20px 0 32px;
  max-width: 540px; margin-left: auto; margin-right: auto;
  font-weight: 300;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 36px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all 0.25s; text-align: center;
}
.btn-accent {
  background: var(--accent); color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: var(--white);
}

/* ===== About ===== */
.about { background: var(--white); }
.about-text {
  max-width: 780px; margin: 0 auto;
  font-size: 1.1rem; text-align: center;
  color: var(--text-muted); line-height: 1.8;
}

/* ===== Directions ===== */
.directions { background: var(--bg-alt); }
.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.direction-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.direction-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.direction-card h3 {
  font-size: 1.2rem; margin-bottom: 12px;
}
.direction-card p {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.6;
}

/* ===== CTA ===== */
.cta { background: var(--white); text-align: center; }
.cta p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  font-size: 0.95rem;
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-contacts { display: flex; gap: 24px; }
.footer-contacts a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.footer-contacts a:hover { color: var(--accent-light); }
.footer-info p { color: rgba(255,255,255,0.5); }

/* ===== Services Page ===== */
.services-hero {
  position: relative;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.7)), url('images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  overflow: hidden;
}
.services-hero h1 { color: var(--white); margin-bottom: 12px; }
.services-hero p { color: rgba(255,255,255,0.75); font-weight: 300; }
.service-section { padding: 72px 0; }
.service-section:nth-child(even) { background: var(--bg-alt); }
.service-section:nth-child(odd) { background: var(--white); }
.service-section h2 {
  font-size: 1.7rem; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.service-list { list-style: none; display: grid; gap: 10px; }
.service-list li {
  padding: 12px 0;
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.service-list li::before {
  content: '';
  position: absolute; left: 0; top: 20px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.process { background: var(--white); text-align: center; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 800px; margin: 0 auto;
}
.process-step {
  padding: 32px 20px;
}
.process-step .step-num {
  font-family: var(--font-heading);
  font-size: 2.4rem; font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Contacts Page ===== */
.contacts-hero {
  position: relative;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.7)), url('images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  overflow: hidden;
}
.contacts-hero h1 { color: var(--white); }
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 800px; margin: 0 auto;
}
.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.contact-block h3 {
  font-size: 1.3rem; margin-bottom: 16px;
}
.contact-value {
  font-size: 1.25rem; font-weight: 600;
  color: var(--primary);
  display: block; margin-bottom: 8px;
}
.contact-label {
  font-size: 0.9rem; color: var(--text-light);
}
.contact-info-section {
  background: var(--bg-alt); padding: 60px 0; text-align: center;
}
.contact-info-section .container { max-width: 600px; }
.requisites {
  margin-top: 32px;
  font-size: 0.9rem; color: var(--text-light); line-height: 1.8;
}
.contacts-cta {
  background: var(--white); padding: 60px 0; text-align: center;
}
.contacts-cta p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; }

/* ===== Reviews Page ===== */
.reviews-hero {
  position: relative;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.7)), url('images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  overflow: hidden;
}
.reviews-hero h1 { color: var(--white); }
.rating-summary {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.rating-score { text-align: center; }
.rating-number {
  font-family: var(--font-heading);
  font-size: 3.5rem; font-weight: 700;
  color: var(--primary); line-height: 1;
  display: block;
}
.rating-stars {
  display: flex; justify-content: center; gap: 4px;
  margin: 8px 0;
}
.rating-count {
  font-size: 0.95rem; color: var(--text-muted);
  display: block;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.review-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.review-name {
  font-weight: 600; color: var(--primary);
  font-size: 1rem;
}
.review-date {
  font-size: 0.85rem; color: var(--text-light);
}
.review-rating {
  display: flex; gap: 2px; margin-bottom: 10px;
}
.review-text {
  color: var(--text-muted);
  font-size: 0.95rem; line-height: 1.6;
}
.review-owner-reply {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.owner-reply-label {
  display: block; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px; font-size: 0.85rem;
}
.review-owner-reply p {
  color: var(--text-muted); line-height: 1.55;
}
.reviews-cta { background: var(--white); padding: 60px 0; text-align: center; }
.reviews-cta p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; }

/* ===== Reviews Summary on Main ===== */
.reviews-summary {
  background: var(--white); text-align: center;
}
.reviews-summary-inner {
  max-width: 600px; margin: 0 auto;
}
.reviews-summary .rating-number {
  font-size: 3rem;
}
.reviews-summary .rating-stars {
  margin: 8px auto;
}
.reviews-summary .rating-count {
  margin-bottom: 20px;
}

/* ===== Prices Table ===== */
.prices-section { background: var(--white); }
.prices-table {
  max-width: 780px; margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; gap: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.price-row:last-child { border-bottom: none; }
.price-row:nth-child(even) { background: var(--bg-alt); }
.price-service {
  font-size: 0.95rem; color: var(--text);
  flex: 1; min-width: 240px;
}
.price-value {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
  min-width: 120px;
}
.prices-note {
  text-align: center; margin-top: 24px;
  font-size: 0.9rem; color: var(--text-light);
  font-style: italic;
}

/* ===== QR Codes ===== */
.qr-subtitle {
  text-align: center; color: var(--text-muted);
  margin-top: -32px; margin-bottom: 40px;
  font-size: 0.95rem;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 700px; margin: 0 auto;
}
.qr-card {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
}
.qr-image {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: var(--radius);
  object-fit: contain;
  display: block;
}
.contact-qr {
  padding: 0;
  background: var(--white);
  overflow: hidden;
  border: none;
  border-radius: 0;
}
.contact-qr .qr-image {
  border-radius: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.qr-card h3 {
  margin-bottom: 4px;
}
.qr-handle {
  font-size: 0.95rem; color: var(--text-muted);
  margin-bottom: 16px;
}
.qr-btn {
  font-size: 0.9rem; padding: 10px 24px;
}

/* ===== Utility ===== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .directions-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-contacts { flex-direction: column; gap: 8px; }
  .site-footer .container { flex-direction: column; text-align: center; }

  .nav-list {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--primary);
    flex-direction: column; padding: 20px 24px; gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .nav-list.open { display: flex; }
  .nav-list li { list-style: none; }
  .nav-list a {
    display: block;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    text-align: center;
    transition: background 0.2s, color 0.2s;
  }
  .nav-list a:hover, .nav-list a.active {
    color: var(--white);
    background: rgba(255,255,255,0.18);
  }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--primary); border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .contacts-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .service-section .container { padding: 0 20px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}
