/* index2 — альтернативная главная */
:root {
  --accent: #c84a5a;
  --accent-hover: #a83d4b;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --bg-soft: #f4f4f4;
  --white: #fff;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container-narrow {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

[id] {
  scroll-margin-top: 96px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-soft);
  border-bottom: 1px solid #e5e5e5;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
}

.brand-logo-link {
  grid-column: 1;
  grid-row: 1;
  line-height: 0;
  justify-self: start;
}

.brand-logo-full {
  height: clamp(40px, 8vw, 52px);
  width: auto;
  max-width: min(280px, 72vw);
  object-fit: contain;
  object-position: left center;
}

.header-cta {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  justify-self: end;
}

/* Узкая шапка: телефон под логотипом, по правому краю */
@media (max-width: 576px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
  }

  .brand-logo-link {
    grid-column: 1;
    grid-row: 1;
  }

  .header-cta {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    justify-content: flex-start;
    width: auto;
  }
}

.header-phone {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding: 0.45rem 0.15rem;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.header-phone:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-phone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.link-underline {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
  transition: color 0.2s, border-color 0.2s;
}

.link-underline:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-hover);
}

.intro-block {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}

.intro-block h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.intro-block p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.95rem;
}

.services-section {
  padding: 0 0 3.5rem;
}

.services-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.service-tile {
  position: relative;
  min-height: 220px;
  border-radius: 2px;
  overflow: hidden;
  background: #ccc center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
  transition: opacity 0.3s;
}

.service-tile:hover::before {
  opacity: 0.92;
}

.service-tile-inner {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.service-tile-inner h3 {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.service-tile-inner .tile-sub {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.95;
  max-width: 280px;
  margin-inline: auto;
}

.service-tile-inner .tile-more {
  margin-top: 0.85rem;
}

.service-tile-inner .link-underline {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.service-tile-inner .link-underline:hover {
  border-bottom-color: var(--white);
}

.tile-lg {
  min-height: 280px;
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .tile-lg {
    grid-column: span 3;
    min-height: 340px;
  }

  .tile-sm {
    grid-column: span 2;
    min-height: 260px;
  }
}

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid #e5e5e5;
  padding: 2.75rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
    gap: 1.5rem;
  }
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: #444;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-contacts p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #444;
}

.footer-contacts .phones a {
  display: block;
  margin-top: 0.25rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
  font-size: 1.15rem;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-meta {
  font-size: 0.8rem;
  color: #555;
}

.footer-meta a:hover {
  color: var(--accent);
}
