:root {
  --bg: #f7f4ee;
  --bg-soft: #efe7da;
  --panel: #ffffff;
  --panel-2: #f3eadc;
  --text: #17242d;
  --muted: #6d7a83;
  --line: rgba(23, 36, 45, .12);
  --gold: #b88942;
  --gold-dark: #8c632d;
  --gold-soft: rgba(184, 137, 66, .13);
  --blue: #15384a;
  --blue-soft: rgba(21, 56, 74, .08);
  --shadow: 0 24px 70px rgba(42, 36, 28, .13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(184, 137, 66, .14), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(21, 56, 74, .1), transparent 32rem),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 52%, #f2eadf 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

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

img {
  object-fit: cover;
}

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

.topbar {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 36, 45, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(42, 36, 28, .12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(184, 137, 66, .25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
}

.lang-switch button {
  min-width: 36px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.lang-switch button.active {
  background: var(--blue);
  color: #fff;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(184, 137, 66, .34);
  border-radius: 999px;
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 130px 0 70px;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 244, 238, .96) 0%, rgba(247, 244, 238, .82) 42%, rgba(247, 244, 238, .18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(247, 244, 238, .05) 44%),
    var(--hero-image) center/cover no-repeat;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(184, 137, 66, .28);
  border-radius: 999px;
  color: var(--gold-dark);
  background: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(42, 36, 28, .08);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 26px 0 18px;
  font-size: clamp(44px, 8vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--blue);
}

.hero-text {
  max-width: 650px;
  margin: 0 0 30px;
  color: #43545e;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 750;
  transition: .25s ease;
}

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

.btn.secondary {
  background: rgba(255, 255, 255, .75);
  color: var(--blue);
  backdrop-filter: blur(10px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(42, 36, 28, .14);
}

.stats {
  position: relative;
  z-index: 3;
  margin-top: -36px;
}

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

.stat-card,
.card,
.project-card,
.info-card,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 24px;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 62px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--blue);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
}

.section-text {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.split.reverse {
  grid-template-columns: 1.1fr .9fr;
}

.image-frame {
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, .74);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.image-frame img,
.image-frame video {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

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

.card,
.feature-card {
  padding: 24px;
}

.card-media {
  height: 210px;
  margin: -12px -12px 20px;
  overflow: hidden;
  border-radius: 18px;
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3,
.feature-card h3,
.project-card h3,
.info-card h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.18;
}

.card p,
.feature-card p,
.project-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold-dark);
  font-weight: 800;
}

.statement {
  padding: 74px 0;
  background: var(--blue);
  color: #fff;
}

.statement .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.statement h2 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1;
  color: #fff;
}

.statement p {
  margin: 16px 0 0;
  max-width: 740px;
  color: rgba(255, 255, 255, .76);
  line-height: 1.7;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.gallery-item.large {
  grid-column: span 2;
  min-height: 430px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img,
.project-card:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: auto 14px 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
  color: var(--blue);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 260px;
  transition: transform .35s ease;
}

.project-content {
  padding: 24px;
}

.project-meta {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: 130px 0 74px;
  overflow: hidden;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 13px;
}

.content-rich {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.content-rich h2 {
  margin: 32px 0 12px;
  color: var(--blue);
  font-size: clamp(26px, 3vw, 28px);
  line-height: 1.12;
}

.content-rich p {
  margin: 0 0 16px;
}

.content-rich strong {
  color: var(--text);
}

.service-list {
  display: grid;
  gap: 72px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.service-row:nth-child(even) .service-media {
  order: 2;
}

.service-media {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.service-media img,
.service-media video {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.55;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
}

.info-card {
  padding: 28px;
}

.contact-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-item:first-of-type {
  border-top: 0;
}

.contact-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-dark);
  font-weight: 850;
}

.contact-item p {
  margin: 0;
}

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

.form-status {
  display: none;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  color: var(--blue);
  font-weight: 700;
  line-height: 1.45;
}

.form-status.show {
  display: block;
}

.form-status.error {
  border-color: rgba(140, 42, 42, .24);
  background: rgba(140, 42, 42, .08);
  color: #7b2424;
}

.form-status.success {
  border-color: rgba(21, 56, 74, .22);
  background: var(--blue-soft);
  color: var(--blue);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--blue);
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  padding: 14px 15px;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.socials a {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 13px;
}

.footer {
  padding: 64px 0 28px;
  background: #102f3f;
  color: rgba(255, 255, 255, .78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.footer h3 {
  margin: 0 0 16px;
  color: #fff;
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 850;
  letter-spacing: .08em;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(12, 23, 29, .82);
}

.modal.show {
  display: flex;
}

.modal img,
.modal video {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.modal-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 28px;
}

@media (max-width: 1024px) {
  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .split,
  .split.reverse,
  .service-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-row:nth-child(even) .service-media {
    order: 0;
  }

  .cards-grid,
  .feature-grid,
  .gallery-grid,
  .projects-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .topbar {
    top: 10px;
    border-radius: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 13px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 4px 4px;
  }

  .topbar.open .nav {
    display: flex;
  }

  .nav a {
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(21, 56, 74, .05);
  }

  .lang-switch {
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }

  .hero,
  .page-hero {
    min-height: 760px;
    padding: 118px 0 54px;
  }

  .hero::before,
  .page-hero::before {
    background:
      linear-gradient(90deg, rgba(247, 244, 238, .95) 0%, rgba(247, 244, 238, .82) 62%, rgba(247, 244, 238, .45) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(247, 244, 238, .05) 44%),
      var(--hero-image) center/cover no-repeat;
  }

  h1 {
    font-size: clamp(38px, 13vw, 62px);
  }

  .section {
    padding: 62px 0;
  }

  .section-head,
  .statement .container,
  .footer-bottom {
    display: block;
  }

  .cards-grid,
  .feature-grid,
  .gallery-grid,
  .projects-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: auto;
    min-height: 280px;
  }

  .image-frame img,
  .image-frame video,
  .service-media img,
  .service-media video {
    height: 320px;
  }
}
