:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --text: #111418;
  --muted: #59616d;
  --line: #dfe4ea;
  --accent: #c90f14;
  --accent-dark: #99090d;
  --graphite: #22272e;
  --shadow: 0 12px 26px rgba(19, 25, 32, 0.1);
  --radius: 8px;
  --wide: min(1430px, calc(100vw - 60px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 26px;
  min-height: 74px;
  width: var(--wide);
  max-width: 1430px;
  margin: 0 auto;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 228, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand img {
  width: 248px;
  max-width: 28vw;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(180deg, #df151b, var(--accent-dark));
  border: 1px solid #b80c11;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(153, 9, 13, 0.26);
}

.header-phone svg,
.button svg,
.quick-info svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  width: var(--wide);
  max-width: 1430px;
  min-height: 410px;
  margin: 0 auto;
  background:
    linear-gradient(106deg, #f8fafc 0 54%, rgba(248, 250, 252, 0) 54.2%),
    linear-gradient(180deg, #eef2f6 0%, #f8fafc 72%);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(540px, calc(100vw - 60px));
  margin-left: 0;
  padding-left: 30px;
  padding: 46px 0 44px;
}

.hero h1 {
  margin: 0 0 18px;
  color: #101114;
  font-size: clamp(48px, 5vw, 70px);
  font-style: italic;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 500px;
  margin: 0;
  color: #373f49;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #df151b, var(--accent-dark));
  border-color: #b80c11;
  box-shadow: 0 16px 34px rgba(153, 9, 13, 0.28);
}

.button-secondary {
  color: var(--text);
  background: #fff;
  border-color: rgba(201, 15, 20, 0.72);
}

.quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.quick-info li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #252b33;
  font-size: 16px;
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 410px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.services,
.workshop,
.contact {
  width: var(--wide);
  margin: 0 auto;
}

.services {
  padding: 16px 0 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 150px;
  padding: 18px 14px 16px;
  background: linear-gradient(180deg, #ffffff, #f3f6f9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(20, 23, 27, 0.045);
  text-align: center;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  color: var(--accent);
}

.service-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card h3 {
  min-height: 44px;
  margin: 0;
  color: #15191f;
  font-size: 16px;
  line-height: 1.16;
}

.service-card h3::after {
  display: block;
  width: 46px;
  height: 2px;
  margin: 10px auto 0;
  background: var(--accent);
  content: "";
}

.service-card p {
  display: none;
}

.workshop {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 0;
  align-items: stretch;
  padding: 0 0 14px;
}

.workshop-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff, #f5f7f9);
  border: 1px solid var(--line);
  border-radius: var(--radius) 0 0 var(--radius);
}

.workshop-copy h2 {
  margin: 0;
  color: #15191f;
  font-size: 19px;
  line-height: 1.1;
}

.workshop-copy p {
  display: none;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: linear-gradient(180deg, #ffffff, #f5f7f9);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.proof-list div {
  min-height: 72px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.proof-list div:last-child {
  border-right: 0;
}

.proof-list strong {
  display: block;
  margin-bottom: 3px;
  color: #171b20;
  font-size: 15px;
}

.proof-list span {
  color: var(--muted);
  font-size: 12px;
}

.contact {
  display: grid;
  grid-template-columns: 0.34fr 0.22fr 0.44fr;
  gap: 0;
  padding: 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.contact-panel,
.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
  padding: 26px 44px;
  border-right: 1px solid var(--line);
}

.contact h2 {
  margin: 0;
  color: #13171c;
  font-size: 26px;
  line-height: 1.08;
}

.contact-phone {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.contact-phone.secondary {
  margin-top: 8px;
  color: var(--accent);
  font-size: clamp(25px, 2.6vw, 34px);
}

.contact-panel p {
  margin: 18px 0 8px;
  color: #2b3139;
  font-size: 16px;
  font-weight: 800;
}

.contact-panel > a:last-child {
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
}

.contact-details h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.contact-details h3::after {
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 10px;
  background: var(--accent);
  content: "";
}

.contact-details p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.map-panel {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: #eef2f5;
}

.map-panel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  width: min(245px, calc(100% - 48px));
  padding: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-card strong {
  font-size: 22px;
}

.map-card span {
  color: var(--muted);
  font-size: 14px;
}

.map-card .button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

.cms-contact-form {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 34px;
  width: var(--wide);
  margin: 14px auto 0;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cms-contact-form h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.08;
}

.cms-contact-form p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  width: var(--wide);
  max-width: 1430px;
  margin: 0 auto;
  padding: 22px 30px;
  color: #dce1e7;
  background: #1f242b;
  font-size: 14px;
  font-weight: 800;
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 20px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workshop,
  .contact {
    grid-template-columns: 1fr;
  }

  .workshop-copy,
  .proof-list,
  .contact-panel,
  .contact-details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .workshop {
    gap: 12px;
  }

  .contact {
    gap: 12px;
    background: transparent;
    border-top: 0;
  }

  .cms-contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --wide: min(100vw - 32px, 720px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding: 0 16px;
  }

  .brand img {
    width: 210px;
    max-width: 62vw;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .nav-toggle span:not(.sr-only) {
    height: 2px;
    background: var(--text);
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .site-nav a::after,
  .header-phone {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    background: linear-gradient(180deg, #f8fafc, #fff);
  }

  .hero-copy {
    width: var(--wide);
    margin: 0 auto;
    padding: 52px 0 28px;
  }

  .hero-media {
    width: var(--wide);
    min-height: 310px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-list {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .contact-details {
    min-height: auto;
    padding: 26px 24px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 16px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 50px;
  }

  .hero p {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quick-info {
    flex-direction: column;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-phone {
    font-size: 38px;
  }

  .cms-contact-form {
    padding: 24px;
  }
}
