:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --text: #22242a;
  --muted: #707580;
  --line: #e3e6eb;
  --primary: #1b72e8;
  --primary-dark: #155fc2;
  --green: #18865a;
  --orange: #f29a22;
  --shadow: 0 14px 35px rgba(31, 37, 51, .12);
}

* {
  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.45;
}

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

img {
  display: block;
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 40px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav a,
.top-phone {
  padding: 10px 12px;
  border-radius: 8px;
  color: #3c414b;
  font-size: 15px;
}

.nav a:hover,
.top-phone:hover {
  background: #edf3fd;
  color: var(--primary-dark);
}

.top-phone {
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 23, 35, .88), rgba(16, 23, 35, .55) 46%, rgba(16, 23, 35, .08)),
    url("../img/hero.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 72px;
  color: #fff;
}

.breadcrumbs {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 58px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
}

.hero-grid,
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.hero-main {
  max-width: 720px;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .9);
}

.rating {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

.status {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(24, 134, 90, .95);
  color: #fff;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .9);
  font-size: 21px;
}

.hero-actions,
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.contact-card,
.content-panel,
.side-panel,
.lead-form,
.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-card {
  padding: 22px;
  color: var(--text);
}

.card-title {
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 20px;
}

dl {
  margin: 0;
}

dt {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
}

dd a,
.contacts-list a {
  color: var(--primary);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: -42px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.quick-item {
  min-height: 118px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.quick-item:first-child {
  border-radius: 8px 0 0 8px;
}

.quick-item:last-child {
  border-radius: 0 8px 8px 0;
}

.quick-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.quick-item span {
  color: var(--muted);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.content-panel,
.side-panel,
.lead-form {
  padding: 28px;
}

.content-panel p {
  max-width: 760px;
  color: #4d535f;
  font-size: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chips span {
  padding: 9px 12px;
  border-radius: 8px;
  background: #edf3fd;
  color: #285d9c;
  font-weight: 700;
  font-size: 14px;
}

.feature-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 24px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.section-head {
  justify-content: space-between;
  margin-bottom: 24px;
}

.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 22px;
  box-shadow: none;
}

.price-card h3 {
  margin-bottom: 10px;
}

.price-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.price-card strong {
  margin-top: auto;
  color: var(--primary);
  font-size: 22px;
}

.gallery-section h2 {
  margin-bottom: 24px;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.gallery button {
  min-height: 184px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #dfe3ea;
}

.gallery .gallery-main {
  grid-row: span 2;
  min-height: 380px;
}

.gallery img {
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.gallery button:hover img {
  transform: scale(1.03);
}

.contacts-list {
  display: grid;
  gap: 18px;
}

.contacts-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contacts-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contacts-list span,
.lead-form p,
.lead-form small {
  color: var(--muted);
}

.lead-form {
  box-shadow: none;
}

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

.lead-form label {
  display: grid;
  gap: 7px;
  color: #4d535f;
  font-weight: 700;
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cdd3dc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(27, 114, 232, .22);
  border-color: var(--primary);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 72px auto 0;
  padding: 32px 24px 42px;
  color: #4d535f;
  border-top: 1px solid var(--line);
}

.footer strong,
.footer span {
  display: block;
}

.footer-meta {
  text-align: right;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 16, 24, .88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  width: auto;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .top-phone {
    margin-left: auto;
  }

  .hero {
    min-height: 0;
  }

  .breadcrumbs {
    margin-bottom: 34px;
  }

  .hero-grid,
  .page-grid,
  .prices,
  .gallery {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 29px;
  }

  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .quick-item:first-child,
  .quick-item:last-child {
    border-radius: 0;
  }

  .gallery .gallery-main,
  .gallery button {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 18px;
  }

  .top-phone {
    width: 100%;
    padding-left: 0;
  }

  .hero-content {
    padding: 28px 16px 42px;
  }

  .breadcrumbs {
    font-size: 12px;
  }

  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 18px;
  }

  .quick-strip,
  .section {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-item {
    min-height: auto;
    padding: 18px;
  }

  .content-panel,
  .side-panel,
  .lead-form {
    padding: 20px;
  }

  .section-head {
    align-items: stretch;
  }

  .section-head .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .footer {
    display: grid;
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-meta {
    text-align: left;
  }
}
