:root {
  --bg: #040404;
  --bg-2: #070809;
  --bg-3: #0b0d10;
  --panel: rgba(5, 6, 8, 0.98);
  --panel-2: rgba(7, 8, 10, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --muted: #9ca3ad;
  --text: #f3f4f6;
  --gold: #a27d46;
  --gold-soft: rgba(162, 125, 70, 0.22);
  --shadow-deep: 0 26px 60px rgba(0, 0, 0, 0.34);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #050607 0%, #040404 18%, #030303 100%);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
}

a {
  color: inherit;
}

.site-container {
  max-width: 1440px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 4, 5, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 54px;
  padding: 0.65rem 0;
}

.navbar-brand {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-links {
  gap: 2.65rem;
  font-size: 0.95rem;
}

.nav-links .nav-link {
  color: rgba(243, 244, 246, 0.72);
  transition: color 180ms ease;
}

.nav-links .nav-link:hover {
  color: #fff;
}

.nav-cta {
  min-width: 128px;
  height: 42px;
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}

.hero-block {
  position: relative;
  width: 100%;
  height: 800px;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #07080a 0%, #030303 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-mask {
  position: absolute;
  inset: 0;
}

.hero-mask::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.92) 100%);
}

.hero-copy-wrap {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(84px, 7vw, 98px);
  padding-bottom: 40px;
}

.hero-copy {
  width: 460px;
}

.hero-kicker {
  margin-bottom: 18px;
  letter-spacing: 0;
  font-size: 0.84rem;
}

.section-kicker.hero-kicker-white {
  color: #fff;
}

.hero-copy h1,
.section-head h2,
.about-copy h2,
.form-aside h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(3.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-copy p {
  margin: 0 0 26px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(244, 245, 247, 0.86);
  max-width: 390px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.hero-btn {
  min-width: 166px;
  height: 50px;
  padding: 0 26px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.hero-stats-wrap {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(4, 4, 5, 0.38) 0%, rgba(3, 3, 4, 0.72) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.14);
}

.hero-stat {
  min-height: 230px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 44px 40px 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.035);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.004) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat-icon {
  width: 60px;
  flex: 0 0 60px;
  color: #fff;
  font-size: 3.2rem;
  line-height: 1;
  opacity: 0.7;
  padding-top: 0;
}

.hero-stat-value {
  font-size: 2.45rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.hero-stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(243, 244, 246, 0.62);
  line-height: 1.35;
  font-size: 0.9rem;
}

.hero-stat-word {
  display: block;
}

.section-block {
  padding: 44px 0 30px;
}

.section-dark {
  background:
    radial-gradient(circle at top, rgba(24, 30, 42, 0.12) 0%, rgba(24, 30, 42, 0) 24%),
    linear-gradient(180deg, #060708 0%, #040404 100%);
}

.section-projects {
  padding-top: 30px;
}

.section-about {
  padding-top: 30px;
  background:
    radial-gradient(circle at left center, rgba(162, 125, 70, 0.05) 0%, rgba(162, 125, 70, 0) 22%),
    linear-gradient(180deg, #050607 0%, #030303 100%);
}

.section-form {
  padding-top: 18px;
  padding-bottom: 0;
}

.section-contacts {
  padding-top: 18px;
  padding-bottom: 10px;
  background: linear-gradient(180deg, #050607 0%, #030303 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-kicker {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.9rem);
}

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

.service-card {
  min-height: 408px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #090b0d 0%, #050505 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(162, 125, 70, 0.28);
  box-shadow: var(--shadow-deep);
}

.service-image {
  position: relative;
  height: 214px;
  overflow: hidden;
}

.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0) 52%, rgba(5, 7, 10, 0.34) 100%);
}

.service-image img,
.project-tile img,
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-body {
  min-height: 194px;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.25;
}

.service-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.96rem;
}

.service-arrow {
  margin-top: auto;
  display: inline-block;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  opacity: 0.95;
  text-decoration: none;
}

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

.project-tile {
  display: block;
  aspect-ratio: 1.28 / 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
  background: #050505;
  transition: transform 220ms ease;
}

.project-tile:hover {
  transform: scale(1.03);
}

.project-tile-hidden[hidden] {
  display: none !important;
}

.project-tile-visible {
  animation: projectTileReveal 260ms ease;
}

.projects-cta {
  display: flex;
  justify-content: center;
  padding: 14px 0 0;
}

.projects-btn,
.about-btn {
  min-width: 120px;
  height: 42px;
  border-radius: 4px;
  border-color: rgba(162, 125, 70, 0.82);
  color: #ece7df;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 28px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.about-copy {
  padding-top: 10px;
}

.about-copy h2,
.form-aside h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  margin-bottom: 16px;
}

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.projects-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: rgba(243, 244, 246, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
}

.projects-back-link i {
  font-size: 1.15rem;
  line-height: 1;
}

.projects-back-link:hover {
  color: #fff;
}

.detail-panel {
  display: block;
}

.project-gallery {
  display: grid;
  gap: 12px;
}

.project-gallery-main {
  position: relative;
  min-height: 480px;
  background:
    radial-gradient(circle at top left, rgba(162, 125, 70, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(10, 11, 13, 0.96), rgba(4, 4, 5, 0.99));
}

.project-gallery-main img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}

.project-gallery-empty {
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: rgba(243, 244, 246, 0.67);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-thumb {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  background: #050505;
  aspect-ratio: 1.1 / 1;
  opacity: 0.72;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumb:hover,
.project-thumb.is-active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(162, 125, 70, 0.82);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(4, 6, 8, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gallery-nav:hover {
  background: rgba(157, 122, 67, 0.92);
  border-color: rgba(157, 122, 67, 0.92);
}

.gallery-prev {
  left: 18px;
}

.gallery-next {
  right: 18px;
}

.spec-list {
  display: grid;
  gap: 10px;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-row span {
  color: rgba(244, 245, 247, 0.66);
}

.spec-row strong {
  color: #fff;
  font-weight: 600;
  text-align: right;
  margin-left: auto;
}

.about-copy p {
  margin: 0 0 18px;
  color: rgba(244, 245, 247, 0.82);
  font-size: 1rem;
  line-height: 1.52;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(244, 245, 247, 0.92);
  font-size: 0.9rem;
  line-height: 1.3;
}

.about-points i {
  color: var(--gold);
  font-size: 1.05rem;
  margin-top: 1px;
}

.about-media {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-deep);
}

.form-panel {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #070809 0%, #040404 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.project-summary-panel {
  grid-template-columns: minmax(0, 1fr);
}

.form-aside {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 232px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
}

.form-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(4, 5, 7, 0.04) 0%, rgba(4, 5, 7, 0.1) 38%, rgba(4, 5, 7, 0.42) 62%, rgba(4, 5, 7, 0.96) 90%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.04) 0%, rgba(4, 5, 7, 0.24) 100%),
    var(--form-aside-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.32) 84%, transparent 96%);
  mask-image: linear-gradient(90deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.32) 84%, transparent 96%);
  pointer-events: none;
}

.form-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 5, 7, 0.06) 0%, rgba(4, 5, 7, 0.18) 34%, rgba(4, 5, 7, 0.52) 58%, rgba(4, 5, 7, 0.86) 100%);
  pointer-events: none;
}

.form-aside-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(100%, 420px);
  margin-top: 0;
  margin-left: auto;
  padding: 26px 26px 24px;
  background: transparent;
  backdrop-filter: none;
  border: 0;
}

.form-aside .section-kicker {
  color: rgba(243, 244, 246, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.form-aside h2 {
  font-size: clamp(2.2rem, 2.8vw, 3rem);
  line-height: 1.06;
  max-width: 380px;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.form-aside p {
  margin: 0;
  max-width: 352px;
  color: rgba(243, 244, 246, 0.8);
  line-height: 1.52;
  font-size: 0.99rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.form-body {
  padding: 20px 22px 18px;
}

.project-summary-panel .form-body {
  width: 100%;
}

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

.request-textarea {
  grid-column: 1 / -1;
  grid-row: 4;
  min-height: 120px;
}

.request-errors {
  grid-column: 1 / -1;
}

.request-error {
  display: none;
  color: #ef8f8f;
  font-size: 0.78rem;
  line-height: 1.3;
}

.request-error:not(:empty) {
  display: block;
  margin-top: 6px;
}

.request-form > input[name="name"] {
  grid-column: 1 / -1;
  grid-row: 1;
}

.request-form > input[name="email"] {
  grid-column: 1 / -1;
  grid-row: 2;
}

.request-form > input[name="phone"] {
  grid-column: 1 / -1;
  grid-row: 3;
}

.request-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
}

.agree-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(243, 244, 246, 0.68);
  font-size: 0.88rem;
}

.agree-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.request-btn {
  min-width: 160px;
  height: 42px;
  border-radius: 4px;
}

.bf-input {
  height: 52px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--text);
  box-shadow: none;
}

.bf-input:focus {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: rgba(162, 125, 70, 0.46);
  box-shadow: none;
}

.bf-input.is-invalid,
.agree-check input.is-invalid {
  border-color: rgba(239, 143, 143, 0.9);
}

.bf-input::placeholder {
  color: rgba(243, 244, 246, 0.56);
}

.request-textarea {
  height: 120px;
  min-height: 120px;
  resize: vertical;
  padding-top: 14px;
}

.request-attachment {
  grid-column: 1 / -1;
  grid-row: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -2px;
}

.attachment-trigger {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.015);
  color: rgba(243, 244, 246, 0.86);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.attachment-trigger:hover {
  color: #fff;
  border-color: rgba(162, 125, 70, 0.46);
  background: rgba(255, 255, 255, 0.03);
}

.attachment-trigger i {
  font-size: 1rem;
}

.attachment-name {
  color: rgba(243, 244, 246, 0.62);
  font-size: 0.9rem;
  line-height: 1.3;
}

.request-status {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.request-status.is-success {
  border-color: rgba(153, 212, 168, 0.42);
  background: rgba(153, 212, 168, 0.08);
  color: #d8f1de;
}

.request-status.is-error {
  border-color: rgba(239, 143, 143, 0.42);
  background: rgba(239, 143, 143, 0.08);
  color: #f6c0c0;
}

.contacts-grid-wrap {
  position: relative;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 100%);
}

.contact-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(243, 244, 246, 0.88);
}

.contact-item:last-child {
  border-right: 0;
}

.contact-item i {
  font-size: 1.1rem;
  color: #fff;
}

.btn.btn-light {
  background: #f4f4f3;
  border-color: #f4f4f3;
  color: #111317;
}

.btn.btn-light:hover,
.btn.btn-light:focus {
  background: #ffffff;
  border-color: #ffffff;
  color: #111317;
}

.btn.btn-light.btn-lg:hover,
.btn.btn-light.btn-lg:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn.btn-light.request-btn:hover,
.btn.btn-light.request-btn:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn.btn-outline-light {
  color: rgba(243, 244, 246, 0.95);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.02);
}

.btn.btn-outline-light:hover,
.btn.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
}

.hero-actions .btn.btn-light {
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn.btn-outline-light {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 52px;
  margin-top: 36px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(243, 244, 246, 0.1);
  border-radius: 18px;
  color: rgba(243, 244, 246, 0.8);
  font-size: 0.88rem;
}

.error-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(162, 125, 70, 0.24) 0%, rgba(162, 125, 70, 0) 24%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #050607 0%, #030303 100%);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  position: relative;
  overflow: hidden;
}

.error-page::before,
.error-page::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.error-page::before {
  width: 440px;
  height: 440px;
  left: -120px;
  top: -160px;
  background: rgba(162, 125, 70, 0.12);
}

.error-page::after {
  width: 380px;
  height: 380px;
  right: -110px;
  bottom: -140px;
  background: rgba(255, 255, 255, 0.05);
}

.error-shell {
  width: min(100%, 820px);
  position: relative;
  z-index: 1;
}

.error-card {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 8, 10, 0.86);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.error-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(162, 125, 70, 0.14) 0%, rgba(162, 125, 70, 0) 42%);
  pointer-events: none;
}

.error-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(162, 125, 70, 0.34);
  background: rgba(162, 125, 70, 0.08);
  color: #f2e5cf;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-code {
  position: relative;
  margin-bottom: 10px;
  font-size: clamp(4rem, 12vw, 8.2rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: var(--gold);
}

.error-title {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.error-text {
  position: relative;
  margin: 0;
  max-width: 640px;
  color: rgba(243, 244, 246, 0.76);
  font-size: 1.03rem;
  line-height: 1.65;
}

.error-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.error-note {
  position: relative;
  margin-top: 18px;
  color: rgba(243, 244, 246, 0.58);
  font-size: 0.88rem;
}

@keyframes projectTileReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-grid,
  .form-panel {
    grid-template-columns: 1fr;
  }

  .form-aside {
    min-height: 240px;
  }

  .form-aside-copy {
    width: min(100%, 400px);
    margin: 0 0 0 auto;
    padding: 24px 22px 22px;
  }

  .hero-block {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 800px;
  }

  .hero-image {
    width: 100%;
    opacity: 0.92;
    object-position: 72% center;
  }

  .hero-copy {
    width: min(100%, 430px);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat {
    min-height: 170px;
    gap: 22px;
    padding: 30px 28px 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .hero-stat:nth-child(2n) {
    border-right: 0;
  }

  .hero-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .hero-stat-icon {
    width: 50px;
    flex-basis: 50px;
    font-size: 2.4rem;
  }

  .hero-stat-value {
    margin-bottom: 10px;
    font-size: 2rem;
  }

  .hero-stat-text {
    font-size: 0.86rem;
  }

  .project-gallery-main,
  .project-gallery-main img,
  .project-gallery-empty {
    min-height: 400px;
  }
}

@media (max-width: 767.98px) {
  .hero-block {
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .hero-copy-wrap {
    flex: 0 0 auto;
    padding-top: 72px;
    padding-bottom: 28px;
  }

  .hero-image {
    object-position: 78% center;
  }

  .hero-copy h1 {
    font-size: 2.9rem;
  }

  .form-aside {
    min-height: 220px;
  }

  .form-aside-copy {
    width: min(100%, 100%);
    padding: 20px 18px 18px;
  }

  .form-aside h2 {
    font-size: 1.95rem;
    margin-bottom: 18px;
  }

  .form-aside p {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats,
  .services-grid,
  .projects-grid,
  .about-points,
  .contacts-grid,
  .request-form {
    grid-template-columns: 1fr;
  }

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

  .hero-stat {
    min-height: 0;
    gap: 18px;
    padding: 22px 18px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
  }

  .hero-stat-icon {
    width: 42px;
    flex-basis: 42px;
    font-size: 2.1rem;
  }

  .hero-stat:last-child {
    border-bottom: 0;
  }

  .hero-stat-value {
    margin-bottom: 6px;
    font-size: 1.7rem;
  }

  .hero-stat-text {
    gap: 1px;
    font-size: 0.82rem;
  }

  .contact-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .contact-item:last-child {
    border-bottom: 0;
  }

  .request-textarea,
  .request-form > input[name="name"],
  .request-form > input[name="email"],
  .request-form > input[name="phone"] {
    grid-column: auto;
    grid-row: auto;
  }

  .request-footer,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-gallery-main,
  .project-gallery-main img,
  .project-gallery-empty {
    min-height: 280px;
  }

  .gallery-nav {
    width: 38px;
    height: 38px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .spec-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .spec-row strong {
    margin-left: 0;
    text-align: left;
  }

  .error-page {
    padding: 16px;
  }

  .error-card {
    border-radius: 22px;
    padding: 22px 18px;
  }

  .error-actions .btn {
    width: 100%;
  }

}
