:root {
  --bg: #07090a;
  --bg-soft: #0d1113;
  --panel: rgba(18, 24, 27, 0.82);
  --panel-strong: #12181b;
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(88, 232, 223, 0.36);
  --text: #eef6f6;
  --muted: #a9b7b8;
  --muted-2: #7f8f90;
  --accent: #48e0d2;
  --accent-strong: #18c5ba;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(72, 224, 210, 0.13), transparent 28%),
    radial-gradient(circle at 78% 4%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(135deg, #060708 0%, #0b1012 48%, #060708 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.34;
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 10, 0.78);
  backdrop-filter: blur(20px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 64px;
  filter: drop-shadow(0 0 18px rgba(72, 224, 210, 0.16));
}

.brand-mark img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand-name {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-cta {
  border-color: var(--line-bright);
  color: var(--accent);
  font-size: 14px;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button-primary:hover {
  box-shadow: 0 0 0 1px rgba(72, 224, 210, 0.35), 0 18px 52px rgba(72, 224, 210, 0.3);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  position: relative;
  padding: 96px 0;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 9, 10, 0.96) 0%, rgba(7, 9, 10, 0.82) 38%, rgba(7, 9, 10, 0.42) 72%, rgba(7, 9, 10, 0.76) 100%),
    linear-gradient(180deg, rgba(7, 9, 10, 0.44), rgba(7, 9, 10, 0.9)),
    url("assets/hero-architecture.png") center right / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 40% 46%, #000 0%, transparent 68%);
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero-content {
  max-width: 820px;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.22;
}

.hero-lead,
.section-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero-lead {
  max-width: 720px;
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #061011;
  box-shadow: 0 12px 34px rgba(72, 224, 210, 0.2);
}

.button-secondary {
  border-color: var(--line-bright);
  background: rgba(72, 224, 210, 0.06);
  color: var(--accent);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.app-card,
.request-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 24, 27, 0.88), rgba(10, 14, 16, 0.72));
  box-shadow: var(--shadow);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.project-grid {
  display: grid;
  gap: 18px;
}

.wide-container {
  width: min(1320px, calc(100% - 40px));
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
}

.project-card p,
.app-card p,
.contact-list,
.site-footer p {
  color: var(--muted);
}

.izhs {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 40%),
    rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.izhs-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  gap: 52px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  position: relative;
  padding: 22px 22px 22px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.steps span {
  position: absolute;
  left: 22px;
  top: 27px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(72, 224, 210, 0.34);
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

.project-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 24, 27, 0.9), rgba(9, 13, 15, 0.84));
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.project-visual {
  position: relative;
  height: clamp(360px, 34vw, 460px);
  overflow: hidden;
  transition: transform 0.7s ease;
}

.project-card:hover .project-visual {
  transform: scale(1.035);
}

.project-caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 820px;
  padding: 26px 28px 30px;
  text-align: left;
}

.project-caption span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-caption h3 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(22px, 2.1vw, 30px);
}

.project-caption p {
  max-width: 820px;
  margin-bottom: 0;
  line-height: 1.68;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  height: 100%;
  margin: 0;
}

.single-project-image {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(160deg, #151b1d, #07090a 68%);
}

.single-project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 7, 0.04), rgba(4, 6, 7, 0.14));
  pointer-events: none;
}

.single-project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.project-card-house .single-project-image img {
  object-fit: cover;
  object-position: center 58%;
}

.single-project-image span {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.46);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.before-after div {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(72, 224, 210, 0.1), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    linear-gradient(160deg, #181f22, #080b0c 62%);
  background-position: center;
  background-size: cover;
}

.before-after div::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 7, 0.08), rgba(4, 6, 7, 0.18)),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.05), transparent 35%);
  pointer-events: none;
}

.before-after div:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(72, 224, 210, 0.18), transparent 45%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
    linear-gradient(160deg, #1b2527, #0a0e0f 65%);
  background-position: center;
  background-size: cover;
}

.before-after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-card:nth-child(2) .before-after img {
  object-position: center 42%;
}

.before-after span {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.app-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(72, 224, 210, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(18, 24, 27, 0.92), rgba(10, 14, 16, 0.78));
}

.app-card h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.app-card p {
  max-width: 760px;
  margin-bottom: 0;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  width: 180px;
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
}

.app-store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: 52px;
}

.contact-intro {
  max-width: 520px;
  margin: -4px 0 0;
  color: rgba(169, 183, 184, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.contact-list div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.contact-list dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
}

.contact-list a {
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

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

.request-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

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

.request-form span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--accent);
  background: rgba(72, 224, 210, 0.07);
}

.request-form .is-invalid {
  border-color: rgba(255, 103, 103, 0.86);
  background: rgba(255, 103, 103, 0.07);
}

.request-form .field-error {
  min-height: 16px;
  margin: -2px 0 0;
  color: #ff8f8f;
  font-size: 12px;
  font-weight: 700;
}

.request-form select option {
  color: #111;
}

.request-form textarea {
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050606;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0;
}

.footer-inner > div:last-child {
  max-width: 560px;
  text-align: right;
}

.site-footer strong {
  font-size: 20px;
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .header-cta {
    display: none;
  }

  .izhs-inner,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .project-visual {
    height: 380px;
  }
}

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

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

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 58px;
    height: 48px;
  }

  .brand-mark img {
    width: 50px;
    height: 50px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 74px;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 14, 16, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

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

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-lead,
  .section-text {
    font-size: 17px;
  }

  .hero-lead,
  .project-caption p,
  .app-card div > p:not(.eyebrow) {
    font-size: 0;
  }

  .hero-lead::after,
  .project-caption p::after,
  .app-card div > p:not(.eyebrow)::after {
    display: block;
    font-size: 17px;
    line-height: inherit;
  }

  .hero-lead::after {
    content: "Строительство домов ИЖС и ремонт коммерческих помещений. Работаем с частными и государственными заказчиками, включая объекты по 44-ФЗ и 223-ФЗ.";
  }

  .project-card:nth-child(1) .project-caption p::after {
    content: "Строительство и полная подготовка жилого дома: фундамент, коробка, инженерные коммуникации, отопление и внутренняя отделка под ключ.";
  }

  .project-card:nth-child(2) .project-caption p::after {
    content: "Переоборудовали старое помещение под IT-аудиторию: новая электропроводка, рабочие точки, освещение и система хранения для VR-оборудования.";
  }

  .project-card:nth-child(3) .project-caption p::after {
    content: "Полный капитальный ремонт санузлов: коммуникации, сантехника, плитка, перегородки, двери и потолок Грильято.";
  }

  .project-card:nth-child(4) .project-caption p::after {
    content: "Демонтировали старое основание пола, выполнили новую стяжку и сделали стену с грифельным покрытием, которую можно использовать как учебную доску.";
  }

  .app-card .eyebrow {
    display: none;
  }

  .app-card div > p:not(.eyebrow)::after {
    content: "Собственное iOS-приложение для контроля строительных объектов, расходов и материалов.";
  }

  .hero-actions,
  .app-card {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .project-grid {
    gap: 18px;
  }

  .project-visual {
    height: auto;
  }

  .project-caption {
    padding: 18px 20px 20px;
  }

  .project-caption h3 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .project-caption p {
    line-height: 1.58;
  }

  .before-after {
    grid-template-columns: 1fr;
    height: auto;
  }

  .before-after div {
    min-height: 180px;
  }

  .single-project-image {
    min-height: 210px;
  }

  .app-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .app-card {
    gap: 20px;
  }

  .app-store-badge {
    align-self: center;
    width: 210px;
  }

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

  .footer-inner > div:last-child {
    max-width: none;
    text-align: left;
  }
}

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

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .request-form,
  .app-card {
    padding: 18px;
  }

  .before-after div {
    min-height: 160px;
  }

  .single-project-image {
    min-height: 190px;
  }

  .app-store-badge {
    width: 190px;
  }

  .contact-list dd {
    font-size: 17px;
  }
}
