/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F5F7FA;
  --accent: #0096C7;
  --accent-hover: #0077A0;
  --text: #1A1A2E;
  --text-light: #4A4A5E;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --max-width: 960px;
}

html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === GLASS CARD === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* === HEADER === */
.site-header {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.site-header .logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-placeholder {
  width: 40px; height: 40px;
  background: var(--text);
  border-radius: 6px;
  flex-shrink: 0;
}
.site-header .brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.site-header .brand span { color: var(--accent); }
.site-header .main-link {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.site-header .main-link:hover { text-decoration: underline; }

/* === HERO === */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.hero .subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === SECTION === */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}
.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card .icon {
  font-size: 2rem;
  margin-bottom: 4px;
}
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}
.service-card .price {
  font-weight: 700;
  font-size: 0.938rem;
  color: var(--text);
}
.service-card p {
  font-size: 0.938rem;
  color: var(--text-light);
  flex-grow: 1;
}
.service-card .svc-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}
.service-card .svc-link:hover { text-decoration: underline; }

/* === QUARTERS === */
.quarters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.quarter-card { padding: 24px; }
.quarter-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.quarter-card p {
  font-size: 0.938rem;
  color: var(--text-light);
  margin-bottom: 4px;
}
.quarter-card .cta-mini {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.875rem;
}

/* === EMERGENCY === */
.emergency {
  text-align: center;
  padding: 48px 24px;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius);
  margin: 0 auto;
  max-width: var(--max-width);
}
.emergency h2 { color: var(--white); font-size: 1.75rem; margin-bottom: 12px; }
.emergency p { font-size: 1.125rem; margin-bottom: 24px; opacity: 0.9; }
.emergency .phone-big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}
.emergency .phone-big:hover { text-decoration: underline; }
.emergency .price-note { margin-top: 12px; font-size: 0.938rem; opacity: 0.8; }

/* === PRICE TABLE === */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  overflow-x: auto;
}
.price-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--text);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}
.price-table th:first-child { border-radius: 8px 0 0 0; }
.price-table th:last-child { border-radius: 0 8px 0 0; }
.price-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.938rem;
}
.price-table tr:nth-child(even) td { background: rgba(255,255,255,0.4); }
.price-intro {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.price-note { font-size: 0.938rem; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-size: 1.063rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  margin-left: 12px;
  transition: transform 0.2s;
}
details[open] > summary::after { content: '\2212'; }
.faq-item .faq-answer {
  padding: 0 24px 20px;
  font-size: 0.938rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === CTA FOOTER === */
.cta-footer {
  text-align: center;
  padding: 48px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.cta-footer h2 { font-size: 1.75rem; margin-bottom: 8px; }
.cta-footer .lead {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.cta-footer .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.cta-footer .contact-info a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.cta-footer .contact-info a:hover { text-decoration: underline; }
.cta-footer .address {
  font-size: 0.938rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* === FOOTER === */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1rem;
}
.site-footer .footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.site-footer .footer-links a {
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: none;
}
.site-footer .footer-links a:hover { color: var(--accent); }
.site-footer .copyright {
  font-size: 0.813rem;
  color: var(--text-light);
}

/* === BLOG ARTICLE === */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1A1A2E;
  margin-bottom: 6px;
}

.blog-date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 24px;
}

.blog-body { line-height: 1.75; }
.blog-body h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #0096C7;
}
.blog-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0096C7;
  margin: 28px 0 8px;
}
.blog-body p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #2a2a3e;
}
.blog-body ul, .blog-body ol {
  margin: 8px 0 18px 22px;
}
.blog-body li {
  margin-bottom: 12px;
  font-size: 1rem;
}

/* === BLOG CTA === */
.blog-cta {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  color: #F5F7FA;
  padding: 28px 32px;
  border-radius: 12px;
  margin: 36px 0 24px;
  text-align: center;
}
.blog-cta p {
  color: #F5F7FA;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.blog-back {
  margin-top: 32px;
  margin-bottom: 16px;
}

/* === BLOG FIGURE === */
.blog-figure {
  max-width: 960px;
  margin: 2rem auto;
  text-align: center;
  padding: 0;
}
.blog-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
}
.blog-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #6B7280;
  font-style: italic;
  line-height: 1.5;
}

/* === RED FLAGS BOX === */
.red-flags {
  background: #FFF5F5;
  border-left: 4px solid #C0392B;
  padding: 20px 24px;
  border-radius: 6px;
  margin: 18px 0;
}
.red-flags h3 {
  color: #C0392B;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.red-flags ul { margin-bottom: 0; }

/* === RESPONSIVE === */
@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quarters-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.75rem; }
  .blog-body h2 { font-size: 1.5rem; }
  .blog-body h3 { font-size: 1.2rem; }
  .blog-article { padding: 40px 24px; }
  .blog-body p { font-size: 1.12rem; }
  .blog-figure { padding: 0 1rem; }
  .blog-figure img { border-radius: 12px; }
  .site-header { padding: 16px 24px; }
}

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid .service-card:last-child { grid-column: span 1; }
  .quarters-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 3rem; }
  .hero { padding: 80px 24px 64px; }
  .section { padding: 64px 24px; }
  .blog-article { padding: 48px 32px; }
}
