/* =========================================================
   НАСТРОЙКИ ОФОРМЛЕНИЯ
   Здесь можно менять цвета, шрифты и ширину сайта.
   ========================================================= */
:root {
  --background: #101214;
  --surface: #191c1f;
  --surface-light: #202428;
  --text: #f5f5f5;
  --muted: #b5bbc1;
  --accent: #e33131;
  --accent-hover: #c92323;
  --border: #34393e;
  --content-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.container {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  background: #0b0d0e;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: 1px; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.header-phone { font-weight: 700; text-decoration: none; }
.header-phone:hover, .contact-card a:hover, .site-footer a:hover { color: var(--accent); }

.hero {
  padding: 100px 0 106px;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(227,49,49,.16), transparent 38%),
    linear-gradient(135deg, #171a1d 0%, #101214 68%);
  border-bottom: 1px solid var(--border);
}
.hero-content { max-width: var(--content-width); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -2px;
}
h1 span, h2 span { color: var(--accent); }
.hero-text, .section-intro, .contact-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: #565c62; background: transparent; color: var(--text); }
.button-secondary:hover { border-color: var(--accent); }

.section { padding: 82px 0 92px; }
h2 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -1px; }
.section-intro { margin-bottom: 34px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-item {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.service-number { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.service-item h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.3; }
.service-item p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.contact-section { padding: 78px 0; background: #171a1d; border-top: 1px solid var(--border); }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: start; }
.contact-text { margin-bottom: 26px; }
.contact-card { padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.contact-card h3 { margin-bottom: 22px; font-size: 22px; }
.contact-card p { margin-bottom: 8px; }
.contact-card .contact-label { margin-top: 20px; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.contact-card a { text-decoration: none; }
.map-link { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 700; }
.site-footer { padding: 22px 0; background: #0b0d0e; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.site-footer a { text-decoration: none; }

@media (max-width: 800px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 76px 0 82px; }
}
@media (max-width: 520px) {
  .container { width: min(var(--content-width), calc(100% - 28px)); }
  .header-inner { min-height: 72px; }
  .brand strong { font-size: 11px; letter-spacing: .5px; }
  .brand small { font-size: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .header-phone { font-size: 13px; white-space: nowrap; }
  .hero { padding: 62px 0 68px; }
  h1 { letter-spacing: -1px; }
  .hero-text, .section-intro, .contact-text { font-size: 15px; }
  .section { padding: 62px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { min-height: auto; padding: 20px; }
  .contact-section { padding: 62px 0; }
  .contact-card { padding: 22px; }
  .footer-inner { flex-direction: column; }
}
