:root {
  --bg: #ffffff;
  --surface: #f4f7f9;
  --surface-strong: #e8eef3;
  --text: #17212b;
  --muted: #627280;
  --line: #dce5ec;
  --accent: #197db7;
  --accent-dark: #0f5f8d;
  --teal: #21a7a8;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(18, 42, 58, 0.12);
  --container: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 229, 236, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 208px;
}

.brand img {
  width: 54px;
  height: 36px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.main-nav a {
  color: #344554;
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-small {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
}

.btn-ghost-dark {
  background: var(--white);
  color: var(--accent-dark);
  border-color: var(--line);
}

.btn-ghost-dark:hover {
  background: var(--surface);
  color: var(--accent-dark);
  border-color: var(--surface-strong);
}

.hero {
  position: relative;
  min-height: clamp(560px, calc(100svh - 126px), 720px);
  overflow: hidden;
  color: var(--white);
  background: #122331;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 27, 39, 0.86) 0%, rgba(11, 27, 39, 0.64) 43%, rgba(11, 27, 39, 0.16) 100%),
    linear-gradient(0deg, rgba(11, 27, 39, 0.54) 0%, rgba(11, 27, 39, 0) 38%),
    url("assets/photos/source-15.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 86px 0 46px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9de8ef;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.section {
  padding: clamp(68px, 8vw, 112px) 0;
}

.section-soft {
  background: var(--surface);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head p:not(.eyebrow),
.objects-layout > div > p,
.measure-layout p,
.lead-copy p,
.contacts-layout p {
  color: var(--muted);
  font-size: 18px;
}

.section-head-row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: 42px;
  align-items: end;
}

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

.benefit-card,
.service-card,
.process article,
.lead-form,
.region-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.benefit-card {
  min-height: 214px;
  padding: 24px;
}

.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: #e6f6f8;
  color: var(--accent-dark);
  font-weight: 800;
}

.benefit-card p,
.service-card p,
.process p,
.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(18, 42, 58, 0.06);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-strong);
}

.service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
}

.service-footer span {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.service-footer a {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.process article {
  position: relative;
  min-height: 230px;
  padding: 20px;
}

.process article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -8px;
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.process span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
}

.objects-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 54px;
  align-items: center;
}

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

.object-grid article {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 42, 58, 0.08);
}

.object-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.object-grid span {
  display: block;
  padding: 13px 14px 15px;
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery button {
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: zoom-in;
}

.gallery button:first-child,
.gallery button:nth-child(2) {
  grid-column: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.section-measure {
  background: #102637;
  color: var(--white);
}

.section-measure .eyebrow {
  color: #9de8ef;
}

.measure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.measure-layout p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 20px 22px;
  font-weight: 800;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 20px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  padding: 0 22px 22px;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: start;
}

.lead-copy img {
  width: 100%;
  margin-top: 26px;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

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

.lead-form label span {
  color: #3c4d5a;
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cfdce5;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  outline: none;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25, 125, 183, 0.15);
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status:not(:empty) {
  padding: 11px 12px;
  border-radius: var(--radius);
  background: #e8f6f4;
  color: #176c64;
  font-weight: 700;
}

.contacts {
  background: #f9fbfc;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 50px;
  align-items: stretch;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
  max-width: 640px;
}

.contact-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-list dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-list div:nth-child(3) {
  grid-column: 1 / -1;
}

.contact-list a {
  color: var(--accent-dark);
}

.region-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
    linear-gradient(135deg, #d8e8ee 0%, #f7fbfc 100%);
  box-shadow: var(--shadow);
}

.region-card span {
  color: var(--muted);
  font-weight: 800;
}

.region-card strong {
  margin: 10px 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
}

.footer {
  padding: 24px 0 86px;
  background: #102637;
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 22, 30, 0.84);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1080px, 100%);
  max-height: 86svh;
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.mobile-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 25;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 42px rgba(18, 42, 58, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-weight: 800;
}

.mobile-cta a:first-child {
  border: 1px solid var(--line);
  color: var(--accent-dark);
}

.mobile-cta a:last-child {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 1080px) {
  .header-actions .phone-link {
    display: none;
  }

  .trust-list,
  .services-grid,
  .benefits-grid,
  .object-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .process article:not(:last-child)::after {
    display: none;
  }

  .objects-layout,
  .faq-layout,
  .lead-layout,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .faq-head {
    position: static;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    inset: 69px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 14px 12px;
    border-radius: var(--radius);
    font-size: 16px;
  }

  .main-nav a:hover {
    background: var(--surface);
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: clamp(560px, calc(100svh - 100px), 680px);
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(11, 27, 39, 0.9) 0%, rgba(11, 27, 39, 0.6) 72%, rgba(11, 27, 39, 0.35) 100%),
      linear-gradient(0deg, rgba(11, 27, 39, 0.56) 0%, rgba(11, 27, 39, 0) 42%),
      url("assets/photos/source-15.jpg") center / cover no-repeat;
  }

  .hero-inner {
    padding-top: 70px;
    padding-bottom: 34px;
  }

  .trust-list {
    margin-top: 36px;
  }

  .section-head-row,
  .measure-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .contact-list div:nth-child(3) {
    grid-column: auto;
  }

  .mobile-cta {
    display: grid;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(34px, 9.5vw, 40px);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 48px;
    padding-bottom: 20px;
  }

  .hero-text {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .trust-list {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .hero-actions .btn {
    min-height: 44px;
    padding: 11px 16px;
  }

  .hero-actions,
  .contacts-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-list,
  .services-grid,
  .benefits-grid,
  .object-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .benefit-card,
  .service-body,
  .lead-form,
  .region-card {
    padding: 20px;
  }

  .service-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery button:first-child,
  .gallery button:nth-child(2) {
    grid-column: span 1;
  }

  .footer-inner {
    flex-direction: column;
  }
}
