:root {
  --ink: #1f1a17;
  --muted: #716a63;
  --paper: #f6f0ea;
  --cream: #fbf7f1;
  --white: #ffffff;
  --line: #e8ded3;
  --orange: #f2764f;
  --orange-dark: #df5e37;
  --black: #131211;
  --radius: 28px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(31, 26, 23, 0.05) 0.7px, transparent 0.7px);
  background-size: 12px 12px;
  opacity: 0.24;
  z-index: -1;
}

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

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

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 999px;
  background: rgba(251, 247, 241, 0.86);
  box-shadow: 0 22px 70px rgba(72, 56, 42, 0.12);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
  white-space: nowrap;
}

.brand span span {
  color: var(--orange);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--orange);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #514a45;
  font-size: 0.91rem;
}

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

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

.phone {
  font-size: 0.9rem;
  font-weight: 700;
}

.header-cta,
.button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta {
  background: var(--orange);
  color: var(--white);
  padding: 12px 18px;
  font-size: 0.88rem;
}

.button {
  min-height: 54px;
  padding: 0 26px;
}

.primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 20px 45px rgba(242, 118, 79, 0.28);
}

.secondary {
  background: #ebe5df;
  color: var(--ink);
}

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

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  font-size: 0.72rem;
  font-weight: 800;
}

.lang-toggle span {
  border-radius: 999px;
  padding: 5px 7px;
}

.lang-toggle .active {
  background: var(--black);
  color: var(--white);
}

.hero {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 52px;
  align-items: center;
  min-height: 720px;
}

.eyebrow {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.9;
  margin: 0;
}

h1 {
  font-size: clamp(4.2rem, 8vw, 7.7rem);
}

h2 {
  font-size: clamp(3rem, 5.8vw, 6rem);
}

em {
  color: var(--orange);
  font-family: var(--serif);
  font-style: italic;
}

.hero-text {
  max-width: 620px;
  margin: 28px 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.cta-row,
.trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-row {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rating strong {
  color: var(--ink);
  font-size: 1.28rem;
}

.rating {
  color: var(--orange);
}

.rating small {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-left: 4px;
}

.hero-visual {
  position: relative;
  height: min(710px, 76vh);
  min-height: 560px;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(78, 56, 38, 0.2);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.32));
}

.intervention-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  width: 205px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.intervention-card span,
.project-card span {
  color: var(--orange);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.intervention-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 94px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 46px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -26px;
}

.section-heading p:not(.eyebrow),
.method-head p:not(.eyebrow),
.portrait-copy p,
.contact-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.expertise-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 26, 23, 0.07);
  border-radius: 28px;
  min-height: 258px;
  padding: 28px;
  box-shadow: 0 16px 50px rgba(76, 57, 42, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.expertise-card div {
  display: flex;
  justify-content: space-between;
  color: var(--orange);
  font-weight: 900;
}

.expertise-card h3,
.steps h3,
.project-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.expertise-card p,
.steps p,
.project-card p {
  color: var(--muted);
  margin: 12px 0 0;
}

.method {
  background: var(--black);
  color: var(--white);
  margin: 54px 0;
  padding: 110px max(18px, calc((100vw - 1180px) / 2));
}

.method-head {
  max-width: 900px;
}

.method-head p:not(.eyebrow),
.steps p {
  color: #bfb5ad;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.steps article {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
}

.steps span {
  color: var(--orange);
  display: block;
  font-weight: 900;
  margin-bottom: 36px;
}

.portrait {
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 720px;
  margin-bottom: 36px;
}

.portrait-image {
  min-height: 640px;
}

.portrait-copy {
  align-self: center;
  padding: 70px min(7vw, 110px);
}

.portrait-copy p {
  color: #c8beb7;
  max-width: 620px;
}

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

.stats span {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.stats small {
  color: #9d928b;
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.projects-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.projects-title a {
  color: var(--orange);
  font-weight: 800;
}

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

.project-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 32px;
  background: #ddd;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.project-card div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 1;
  color: var(--white);
}

.project-card p {
  color: #e7dfd9;
}

.contact {
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 100px;
  padding: 54px;
  border-radius: 38px;
  background: #f0e8df;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
}

.contact-copy h2 {
  font-size: clamp(3.1rem, 5.2vw, 5.7rem);
}

.contact-copy ul {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 18px;
}

.contact-copy li {
  align-items: center;
  display: flex;
  gap: 14px;
  font-weight: 800;
}

.contact-copy li span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: grid;
  place-items: center;
}

.contact-form {
  background: var(--white);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 20px 70px rgba(77, 59, 44, 0.1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbf8f3;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 16px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 118, 79, 0.14);
}

.full {
  grid-column: 1 / -1;
}

.form-message {
  grid-column: 1 / -1;
  color: var(--orange-dark);
  font-weight: 800;
  margin: -4px 0 0;
}

footer {
  background: var(--black);
  color: var(--white);
  padding: 34px max(18px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

footer p,
footer nav {
  color: #a69c94;
  font-size: 0.9rem;
}

footer nav {
  display: flex;
  gap: 20px;
}

@media (max-width: 1040px) {
  .main-nav,
  .phone {
    display: none;
  }

  .hero,
  .section-heading,
  .portrait,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-cta {
    padding-inline: 13px;
  }

  .hero,
  .section,
  .contact {
    width: calc(100% - 24px);
  }

  .hero {
    margin-top: 54px;
    gap: 30px;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .button {
    width: 100%;
  }

  .hero-visual,
  .portrait-image {
    min-height: 430px;
    height: 430px;
  }

  .intervention-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .cards-grid,
  .steps,
  .stats,
  .project-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .method {
    padding-block: 78px;
  }

  .portrait-copy,
  .contact {
    padding: 28px;
  }

  .project-card {
    min-height: 420px;
  }
}
