﻿@import url("https://fonts.cdnfonts.com/css/lack");

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #000000;
  --accent: #345b3c;
  --shadow: 0 0 6px rgba(52, 91, 60, 0.5);
  --font-ui: "Lack", "Segoe UI", Arial, sans-serif;
  --font-serif: "Garamond", "Times New Roman", serif;
  --font-num: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 500;
}

.site-header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 20;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.header-container {
  min-height: 80px;
  padding: 20px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 207px;
  height: auto;
  max-height: 40px;
  display: block;
}

.menu-panel {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(24px, 4vw, 74px);
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 40px);
  min-width: 0;
}

.nav a {
  color: #000;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  line-height: 26px;
}

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

.header-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-shrink: 0;
}

.phone {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 500;
  line-height: 26px;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.telegram {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.telegram img {
  width: 35px;
  height: 35px;
  display: block;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(52, 91, 60, 0.25);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span + span {
  margin-top: 6px;
}

.site-header.menu-open .burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.section {
  padding: 40px 0;
}

.hero-section {
  padding: 18px;
}

.hero-container {
  padding: 0;
}

.hero-card {
  min-height: 716px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-title {
  margin: 0;
  max-width: 1000px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-subtitle {
  margin: 0;
  max-width: 632px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hero-btn {
  min-height: 50px;
  padding: 13px 32px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-btn img {
  width: 24px;
  height: 24px;
  display: block;
  transition: filter 0.2s ease;
}

.hero-btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

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

.hero-btn:hover img {
  filter: brightness(0) saturate(100%);
}

.hero-btn:active,
.hero-btn.is-active {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.hero-btn:active img,
.hero-btn.is-active img {
  filter: brightness(0) saturate(100%);
}

.about-section {
  background: #fff;
  padding: 80px 50px;
}

.about-container {
  min-height: 578px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.2vw, 28px);
}

@media (min-width: 1920px) {
  .about-container {
    justify-content: flex-start;
    gap: 100px;
  }
}

@media (min-width: 2560px) {
  .about-section {
    padding-left: 90px;
    padding-right: 90px;
  }

  .about-container {
    gap: 150px;
  }

  .about-copy {
    width: 920px;
  }

  .about-media {
    width: 660px;
  }
}

.about-copy {
  width: min(829px, 100%);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-title {
  margin: 0;
  color: #000;
  font-family: var(--font-ui);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 650;
  line-height: 1.02;
}

.about-title span {
  color: var(--accent);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-text p {
  margin: 0;
  color: #1b1b1b;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 550;
  line-height: 1.3;
}

.about-media {
  position: relative;
  width: min(569px, 100%);
  aspect-ratio: 569 / 418;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f4f4f4;
  display: block;
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-logo-fallback {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(430px, 82%);
  height: auto;
  display: none;
}

.about-media.is-fallback .about-video {
  display: none;
}

.about-media.is-fallback .about-logo-fallback {
  display: block;
}

.projects-section {
  padding: 80px 10px;
  background: #fff;
}

.projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.projects-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.projects-title {
  margin: 0;
  color: #000;
  font-family: var(--font-ui);
  font-size: clamp(42px, 4.2vw, 64px);
  font-weight: 650;
  line-height: 1.15;
}

.projects-title span {
  color: var(--accent);
}

.projects-subtitle {
  margin: 0;
  color: #222;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 550;
  line-height: 1.3;
}

.projects-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 560px));
  justify-content: center;
  gap: 22px;
}

.projects-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  order: 4;
}

.projects-toggle {
  min-height: 58px;
  padding: 15px 32px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  background: #fff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.projects-toggle:hover,
.projects-toggle:focus-visible {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.projects-more {
  width: 100%;
  order: 3;
}

.projects-more[hidden] {
  display: none;
}

.project-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 520 / 312;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  cursor: pointer;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.55) 100%);
  transition: background 0.25s ease;
}

.project-card-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 24px 20px;
  transition: transform 0.25s ease;
}

.project-card-content h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: clamp(24px, 1.8vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

.project-card-content p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-num);
  font-size: clamp(24px, 1.8vw, 32px);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.2;
}


.project-card-more {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.project-card:hover .project-card-overlay,
.project-card:focus-visible .project-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.project-card:hover .project-card-content,
.project-card:focus-visible .project-card-content {
  transform: translateY(-3px);
}

.project-card:hover .project-card-more,
.project-card:focus-visible .project-card-more {
  opacity: 1;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.18);
}

.project-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.services-section {
  padding: 80px 0;
  background: #fff;
}

.services-container {
  width: min(1452px, calc(100% - 60px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.services-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.services-title {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 650;
  line-height: 1.15;
}

.services-subtitle {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 550;
  line-height: 1.28;
}

.services-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card img {
  width: 100%;
  aspect-ratio: 708 / 477;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.service-card-title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(34px, 2.1vw, 40px);
  font-weight: 650;
  line-height: 1.1;
  color: #000;
}

.service-card-title span {
  color: var(--accent);
}

.service-card p {
  margin: 0;
  color: #222;
  font-family: var(--font-serif);
  font-size: clamp(21px, 1.5vw, 24px);
  font-weight: 550;
  line-height: 1.24;
  max-width: 692px;
}

.service-card-wide {
  grid-column: 1 / -1;
  width: auto;
  max-width: none;
  justify-self: stretch;
}

.service-card-wide img {
  height: 477px;
  aspect-ratio: auto;
  border: 2px solid #000;
}

.service-card-wide p {
  max-width: 760px;
}

.specialists-section {
  padding: 60px 0 80px;
  background: #fff;
}

.specialists-container {
  width: min(1410px, calc(100% - 20px));
  margin: 0 auto;
}

.specialists-desktop {
  width: 100%;
}

.specialists-desktop img {
  width: 100%;
  height: auto;
  display: block;
}

.specialists-head {
  display: flex;
  max-width: 1085px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.specialists-title {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 650;
  line-height: 1.15;
}

.specialists-subtitle {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 550;
  line-height: 1.25;
}

.specialists-layout {
  display: none;
  margin-top: 34px;
  position: relative;
  min-height: 840px;
}

.specialists-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
}

.specialists-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.specialists-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 215px;
  height: 213px;
  transform: translate(-50%, -50%);
}

.specialists-house {
  width: 100%;
  height: 100%;
  display: block;
}

.sparkle {
  position: absolute;
  color: #1d735b;
  font-size: 18px;
  text-shadow: none;
  animation: sparklePulse 2.4s ease-in-out infinite;
}

.sp1 { left: 18%; top: 24%; animation-delay: 0s; }
.sp2 { left: 75%; top: 20%; animation-delay: 0.2s; }
.sp3 { left: 8%; top: 45%; animation-delay: 0.4s; }
.sp4 { right: 8%; top: 44%; animation-delay: 0.6s; }
.sp5 { left: 18%; bottom: 21%; animation-delay: 0.8s; }
.sp6 { right: 17%; bottom: 22%; animation-delay: 1s; }
.sp7 { left: 45%; top: 14%; animation-delay: 1.2s; }
.sp8 { left: 48%; bottom: 11%; animation-delay: 1.4s; }

@keyframes sparklePulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1); }
}

.spec-item {
  position: absolute;
  width: 330px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.spec-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-badge span {
  width: 4px;
  height: 64px;
  border-radius: 999px;
  background: #1d735b;
  flex-shrink: 0;
  display: none;
}

.spec-badge img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.spec-copy h3 {
  margin: 0;
  color: #111;
  font-family: var(--font-ui);
  font-size: 46px;
  font-weight: 650;
  line-height: 1.1;
}

.spec-copy p {
  margin: 8px 0 0;
  color: #222;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.spec-top { left: 50%; top: 8px; transform: translateX(-50%); width: 420px; }
.spec-top-left { left: 20px; top: 160px; }
.spec-left { left: 20px; top: 350px; }
.spec-bottom-left { left: 20px; bottom: 120px; }
.spec-bottom { left: 50%; bottom: 0; transform: translateX(-50%); width: 420px; }
.spec-bottom-right { right: 20px; bottom: 120px; }
.spec-right { right: 20px; top: 350px; }
.spec-top-right { right: 20px; top: 160px; }

.realized-section {
  padding: 80px 10px;
  background: #fff;
}

.realized-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.realized-head {
  width: min(849px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.realized-title {
  margin: 0;
  color: #000;
  font-family: var(--font-ui);
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 650;
  line-height: 1.15;
}

.realized-title span {
  color: var(--accent);
}

.realized-subtitle {
  margin: 0;
  color: #1d1d1d;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 550;
  line-height: 1.28;
}

.realized-slider-wrap {
  width: min(1514px, 100%);
  position: relative;
}

.realized-slider-nav {
  position: absolute;
  top: 50%;
  left: -150px;
  right: -150px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.realized-arrow {
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  pointer-events: auto;
  position: relative;
}

.realized-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-top: 1.5px solid #000;
  border-right: 1.5px solid #000;
}

.realized-arrow.prev::before {
  transform: translate(-45%, -50%) rotate(-135deg);
}

.realized-arrow.next::before {
  transform: translate(-55%, -50%) rotate(45deg);
}

.realized-arrow:hover,
.realized-arrow:focus-visible {
  opacity: 0.65;
}

.realized-slider {
  width: min(1514px, 100%);
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}

.realized-slider::-webkit-scrollbar {
  display: none;
}

.realized-slide {
  flex: 0 0 min(663px, calc((100% - 30px) / 2));
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
}

.realized-slider.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.realized-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.realized-quote {
  margin: 0;
  width: min(1023px, 100%);
  text-align: center;
  color: #111;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 550;
  line-height: 1.28;
}

.realized-more {
  min-height: 58px;
  padding: 15px 32px;
  border-radius: 20px;
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.realized-more img {
  width: 16px;
  height: 16px;
  display: block;
  transition: filter 0.2s ease;
}

.realized-more:hover,
.realized-more:focus-visible,
.realized-more:active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.realized-more:hover img,
.realized-more:focus-visible img,
.realized-more:active img {
  filter: brightness(0) invert(1);
}

.advantages-section {
  padding: 80px 24px;
  background: #fff;
}

.advantages-container {
  width: min(1650px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.advantages-head {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.advantages-title {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1.15;
}

.advantages-subtitle {
  margin: 0;
  color: #000;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.advantages-list {
  width: min(1600px, 100%);
  display: flex;
  flex-direction: column;
}

.advantage-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(170px, 224px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 100px);
  padding: 26px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.advantage-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.advantage-item.is-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 224px);
}

.advantage-item.is-reverse .advantage-icon {
  order: 2;
  justify-self: end;
}

.advantage-item.is-reverse .advantage-copy {
  order: 1;
}

.advantage-icon {
  width: min(100%, 224px);
  justify-self: start;
}

.advantage-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.advantage-copy {
  max-width: 946px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advantage-copy h3 {
  margin: 0;
  color: #000;
  font-family: var(--font-ui);
  font-size: clamp(34px, 3.1vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.advantage-copy p {
  margin: 0;
  color: #000;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.05vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.cta-section {
  padding: 80px 12px;
  background: #fff;
}

.cta-container {
  width: min(1760px, calc(100% - 24px));
}

.cta-card {
  min-height: 648px;
  padding: 60px clamp(28px, 7vw, 159px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.78) 100%),
    url("../images/hero/fbbg.jpg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.cta-title {
  margin: 0;
  color: #fff;
  text-align: center;
  font-family: var(--font-ui);
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.3;
}

.cta-subtitle {
  width: min(1075px, 100%);
  margin: 0;
  color: #fff;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.3;
}

.cta-form {
  width: min(492px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.cta-field {
  width: 100%;
  min-height: 51px;
  padding: 12px 25px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-field-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.cta-field-icon.is-phone {
  width: 20px;
  height: 20px;
}

.cta-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  outline: none;
}

.cta-field input[type="tel"] {
  font-family: var(--font-num);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0.01em;
}

.cta-field:focus-within {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.cta-field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-submit {
  min-height: 51px;
  padding: 10px 32px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-submit img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transform: translateY(4px);
  transition: filter 0.2s ease;
}

.cta-submit:hover,
.cta-submit:focus-visible,
.cta-submit:active {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.cta-submit:hover img,
.cta-submit:focus-visible img,
.cta-submit:active img {
  filter: brightness(0) saturate(100%) invert(31%) sepia(14%) saturate(1060%) hue-rotate(83deg) brightness(93%) contrast(90%);
}

.cta-note {
  margin: 0;
  width: min(860px, 100%);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.cta-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #d8dfdb;
  background: #fff;
}

.footer-container {
  padding: 18px 30px 22px;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(210px, 1fr) minmax(210px, 1fr) minmax(260px, 1.2fr);
  align-items: center;
  gap: 28px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo img {
  width: 244px;
  height: auto;
  display: block;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col p {
  margin: 0;
}

.footer-label {
  color: #000;
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.footer-value,
.footer-contacts a {
  color: var(--accent);
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.footer-contacts a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit-wrap {
  border-top: 0;
}

.footer-credit {
  margin: 0;
  padding: 12px 30px 18px;
  text-align: right;
  color: #1e1e1e;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.footer-credit a {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  transition: transform 0.25s ease;
}

.footer-credit a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0.3);
  transform-origin: left center;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  transform: translateY(-1px);
}

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

@media (max-width: 1360px) {
  .header-container {
    padding: 18px 28px;
  }

  .nav a,
  .phone {
    font-size: 16px;
    line-height: 24px;
  }

  .about-section {
    padding: 64px 28px;
  }

  .projects-section {
    padding: 64px 10px;
  }

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

  .services-section {
    padding: 64px 0;
  }

  .services-container {
    width: min(1452px, calc(100% - 28px));
  }

  .services-grid {
    gap: 20px;
  }

  .realized-section {
    padding: 64px 10px;
  }

  .realized-container {
    gap: 36px;
  }

  .realized-slider {
    gap: 16px;
  }

  .realized-slider-nav {
    left: -66px;
    right: -66px;
  }

  .advantages-section {
    padding: 72px 20px;
  }

  .advantage-item {
    gap: 42px;
  }

  .advantage-copy h3 {
    font-size: clamp(30px, 3vw, 42px);
  }

  .advantage-copy p {
    font-size: clamp(21px, 2vw, 30px);
  }

  .cta-section {
    padding: 68px 10px;
  }

  .cta-card {
    min-height: 560px;
    padding: 48px clamp(22px, 4.6vw, 80px);
  }

  .cta-subtitle {
    font-size: clamp(22px, 2.2vw, 32px);
  }

  .cta-field input,
  .cta-submit {
    font-size: 22px;
  }

  .footer-container {
    padding: 18px 20px 22px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    align-items: start;
    row-gap: 20px;
  }

  .footer-label,
  .footer-value,
  .footer-contacts a {
    font-size: clamp(20px, 2vw, 24px);
  }

  .footer-credit {
    padding-left: 20px;
    padding-right: 20px;
  }

  .specialists-layout {
    display: none;
    min-height: 980px;
  }

  .specialists-center {
    width: 560px;
    height: 560px;
  }

  .spec-item {
    width: 270px;
  }

  .spec-copy h3 {
    font-size: 28px;
  }

  .spec-copy p {
    font-size: 18px;
  }
}

@media (max-width: 1024px) {
  .header-container {
    min-height: 72px;
    padding: 16px 20px;
  }

  .logo img {
    width: 180px;
    max-height: 36px;
  }

  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 10px 20px;
  }

  .nav a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(52, 91, 60, 0.18);
  }

  .header-contacts {
    width: 100%;
    justify-content: space-between;
    padding: 14px 20px 16px;
  }

  .site-header.menu-open .menu-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-section {
    padding: 16px;
  }

  .hero-card {
    min-height: 560px;
  }

  .hero-content {
    padding: 24px;
    gap: 28px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .about-section {
    padding: 48px 20px;
  }

  .about-container {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    min-height: 0;
  }

  .about-copy {
    max-width: none;
    gap: 24px;
  }

  .about-title {
    max-width: 780px;
  }

  .projects-section {
    padding: 52px 10px;
  }

  .projects-container {
    gap: 32px;
  }

  .projects-subtitle {
    max-width: 840px;
  }

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

  .services-section {
    padding: 52px 0;
  }

  .services-container {
    width: calc(100% - 20px);
    gap: 32px;
  }

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

  .service-card-wide {
    grid-column: auto;
  }

  .service-card-wide img {
    height: auto;
    aspect-ratio: 708 / 477;
  }

  .service-card p,
  .service-card-wide p {
    max-width: none;
  }

  .specialists-layout {
    display: none;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .specialists-center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 520px;
    height: 520px;
    margin: 0 auto 8px;
    grid-column: 1 / -1;
  }

  .spec-item {
    position: relative;
    width: 100%;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }

  .realized-section {
    padding: 52px 10px;
  }

  .realized-container {
    gap: 28px;
  }

  .realized-slider {
    gap: 14px;
  }

  .advantages-section {
    padding: 60px 16px;
  }

  .advantages-container {
    gap: 36px;
  }

  .advantage-item,
  .advantage-item.is-reverse {
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    gap: 22px;
    padding: 22px 0;
  }

  .advantage-item.is-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 170px);
  }

  .advantage-item.is-reverse .advantage-icon {
    justify-self: end;
  }

  .advantage-icon {
    width: 170px;
    justify-self: start;
  }

  .advantage-copy {
    max-width: none;
  }

  .advantage-copy h3 {
    font-size: clamp(30px, 3.5vw, 40px);
  }

  .advantage-copy p {
    font-size: clamp(20px, 2.4vw, 28px);
  }

  .cta-section {
    padding: 56px 10px;
  }

  .cta-card {
    min-height: 520px;
    padding: 38px 22px;
    gap: 24px;
  }

  .cta-title {
    font-size: clamp(34px, 5.4vw, 44px);
  }

  .cta-subtitle {
    font-size: clamp(20px, 3vw, 28px);
  }

  .cta-form {
    gap: 16px;
  }

  .cta-field input,
  .cta-submit {
    font-size: 20px;
  }

}

@media (max-width: 840px) {
  .header-container {
    padding: 14px 14px;
  }

  .logo img {
    width: 148px;
    max-height: 30px;
  }

  .nav a,
  .phone {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-section {
    padding: 12px;
  }

  .hero-card {
    min-height: 500px;
    border-radius: 14px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.72) 100%);
  }

  .hero-content {
    padding: 16px;
    gap: 20px;
  }

  .hero-title,
  .hero-subtitle {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  }

  .hero-subtitle {
    letter-spacing: 0.04em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-section {
    padding: 36px 14px 44px;
  }

  .about-title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .about-text p {
    font-size: clamp(20px, 6.8vw, 30px);
    line-height: 1.26;
  }

  .about-media {
    border-radius: 14px;
  }

  .projects-section {
    padding: 40px 8px 48px;
  }

  .projects-container {
    gap: 24px;
  }

  .projects-title {
    font-size: clamp(34px, 11.2vw, 46px);
    text-align: left;
    width: 100%;
  }

  .projects-subtitle {
    font-size: clamp(20px, 7.4vw, 28px);
    line-height: 1.25;
    text-align: left;
    width: 100%;
  }

  .projects-head {
    align-items: flex-start;
    text-align: left;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .projects-toggle {
    width: 100%;
    border-radius: 14px;
    font-size: 16px;
    min-height: 46px;
    padding: 13px 16px;
    letter-spacing: 0.04em;
  }

  .project-card {
    min-height: 228px;
    aspect-ratio: auto;
    max-width: none;
    border-radius: 14px;
  }

  .project-card-content {
    padding: 18px 18px 16px;
  }

  .project-card-content h3,
  .project-card-content p {
    font-size: clamp(24px, 8.2vw, 30px);
  }

  .services-section {
    padding: 40px 0 48px;
  }

  .services-container {
    width: calc(100% - 16px);
    gap: 22px;
  }

  .services-head {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .services-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .services-subtitle {
    font-size: clamp(20px, 7.2vw, 28px);
    line-height: 1.25;
  }

  .service-card img {
    border-radius: 14px;
  }

  .service-card-title {
    font-size: clamp(28px, 9.2vw, 38px);
  }

  .service-card p {
    font-size: clamp(18px, 6.2vw, 26px);
  }

  .realized-section {
    padding: 40px 8px 52px;
  }

  .realized-head {
    align-items: flex-start;
    text-align: left;
  }

  .realized-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .realized-subtitle {
    font-size: clamp(20px, 7.2vw, 28px);
    line-height: 1.25;
  }

  .realized-slider {
    width: 100%;
    gap: 10px;
  }

  .realized-slider-nav {
    left: -6px;
    right: -6px;
  }

  .realized-arrow {
    width: 42px;
    height: 42px;
  }

  .realized-arrow::before {
    width: 16px;
    height: 16px;
    border-top-width: 1.2px;
    border-right-width: 1.2px;
  }

  .realized-slide {
    flex-basis: clamp(220px, 86vw, 360px);
    border-radius: 14px;
  }

  .realized-quote {
    text-align: left;
    font-size: clamp(20px, 6.2vw, 28px);
  }

  .realized-more {
    width: 100%;
    border-radius: 14px;
    justify-content: center;
    font-size: 16px;
    padding: 13px 16px;
  }

  .advantages-section {
    padding: 42px 14px 54px;
  }

  .advantages-container {
    gap: 24px;
  }

  .advantages-head {
    align-items: flex-start;
    text-align: left;
  }

  .advantages-title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .advantages-subtitle {
    font-size: clamp(20px, 7.2vw, 28px);
    line-height: 1.25;
  }

  .advantages-list {
    width: 100%;
  }

  .advantage-item,
  .advantage-item.is-reverse {
    grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .advantage-item.is-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 128px);
  }

  .advantage-item.is-reverse .advantage-icon {
    justify-self: end;
  }

  .advantage-icon {
    width: clamp(96px, 28vw, 128px);
  }

  .advantage-copy h3 {
    font-size: clamp(36px, 8.4vw, 44px);
    line-height: 1.08;
  }

  .advantage-copy p {
    font-size: clamp(22px, 5.8vw, 30px);
    line-height: 1.22;
  }

  .cta-section {
    padding: 42px 12px 54px;
  }

  .cta-card {
    min-height: 0;
    padding: 34px 14px;
    gap: 18px;
    border-radius: 14px;
  }

  .cta-title {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.12;
  }

  .cta-subtitle {
    font-size: clamp(19px, 6.1vw, 26px);
    line-height: 1.22;
  }

  .cta-form {
    width: 100%;
    gap: 12px;
  }

  .cta-field {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .cta-field input {
    font-size: clamp(18px, 5.4vw, 22px);
  }

  .cta-submit {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    font-size: clamp(18px, 5.4vw, 22px);
  }

  .cta-note {
    font-size: 13px;
    line-height: 1.35;
  }

  .site-footer {
    margin-top: 18px;
    padding-top: 20px;
  }

  .footer-container {
    padding: 12px 14px 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-logo img {
    width: 212px;
  }

  .footer-col {
    gap: 4px;
  }

  .footer-label,
  .footer-value,
  .footer-contacts a {
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.14;
  }

  .footer-credit {
    font-size: 12px;
    padding: 10px 14px 16px;
  }

  .specialists-section {
    padding: 40px 0 52px;
  }

  .specialists-container {
    width: calc(100% - 16px);
  }

  .specialists-head {
    display: flex;
    align-items: flex-start;
    text-align: left;
  }

  .specialists-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .specialists-subtitle {
    font-size: clamp(20px, 7.2vw, 28px);
    line-height: 1.25;
  }

  .specialists-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .specialists-desktop {
    display: none;
  }

  .specialists-center {
    height: auto;
    max-width: 320px;
  }

  .specialists-ring {
    display: none;
  }

  .specialists-core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 82%;
    height: auto;
    aspect-ratio: 300 / 298;
    margin: 0 auto;
  }

  .sparkle {
    font-size: 16px;
  }

  .spec-item {
    gap: 6px;
  }

  .spec-badge span {
    display: block;
    height: 52px;
    width: 3px;
  }

  .spec-badge img {
    width: 36px;
    height: 36px;
  }

  .spec-copy h3 {
    font-size: clamp(24px, 7.4vw, 30px);
  }

  .spec-copy p {
    font-size: clamp(16px, 5.1vw, 22px);
    line-height: 1.24;
    margin-top: 4px;
  }

  .project-card-more {
    opacity: 1;
    transform: translateY(0);
    top: auto;
    right: 12px;
    bottom: 12px;
    font-size: 10px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.18);
    white-space: nowrap;
  }

}

@media (max-width: 560px) {
  .advantage-item,
  .advantage-item.is-reverse {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .advantage-icon,
  .advantage-item.is-reverse .advantage-icon {
    justify-self: start;
    width: 104px;
  }

  .footer-logo img {
    width: 196px;
  }

  .footer-label,
  .footer-value,
  .footer-contacts a {
    font-size: clamp(18px, 5.6vw, 22px);
  }
}

@media (min-width: 1920px) {
  .projects-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .projects-grid {
    gap: 26px;
  }

  .services-grid {
    gap: 36px;
  }

  .advantages-section {
    padding-left: 30px;
    padding-right: 30px;
  }

  .advantage-item {
    gap: 100px;
    padding: 30px 0;
  }

  .cta-section {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 2560px) {
  .projects-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .projects-grid {
    gap: 32px;
  }

  .services-section {
    padding-left: 0;
    padding-right: 0;
  }

  .services-container {
    width: min(1650px, calc(100% - 80px));
  }

  .services-grid {
    gap: 40px;
  }

  .services-title {
    font-size: 68px;
  }

  .service-card-title {
    font-size: 42px;
  }

  .advantages-container {
    width: min(1760px, 100%);
  }

  .advantages-title {
    font-size: 70px;
  }

  .advantages-subtitle {
    font-size: 34px;
  }

  .advantage-copy h3 {
    font-size: 52px;
  }

  .advantage-copy p {
    font-size: 34px;
    line-height: 1.3;
  }

  .cta-container {
    width: min(1660px, 100%);
  }

  .cta-card {
    min-height: 700px;
    padding-left: 190px;
    padding-right: 190px;
  }

  .cta-title {
    font-size: 54px;
  }

  .cta-subtitle {
    font-size: 38px;
  }

  .cta-form {
    width: 560px;
  }

  .cta-field input,
  .cta-submit {
    font-size: 26px;
  }
}

