@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-text: #30343a;
  --color-muted: #50555d;
  --color-accent: #b78b55;
  --color-accent-header: #b17b42;
  --color-sand: #e9ddcc;
  --color-surface: #fcfbf8;
  --color-white: #fff;
  --color-border: #ded9d0;
  --color-nav: #1d2633;
  --font-family: "Inter", Arial, sans-serif;
  --container-width: 1200px;
  --container-gutter: 40px;
  --font-hero: 42px;
  --font-section: 14px;
  --font-panel: 15px;
  --font-body: 14.5px;
  --font-small: 12px;
  --font-caption: 11px;
  --font-micro: 10px;
  --font-button: 13px;
  --font-nav: 12px;
  --font-stat: 25px;
  --font-contact: 34px;
  --section-space: 32px;
  --panel-space: 24px;
  --content-gap: 16px;
  --radius-button: 2px;
  --radius-card: 6px;
  --transition: 180ms ease;
}


@media (min-width: 1440px) {
  :root {
    --container-width: clamp(1200px, calc(75vw + 120px), 1560px);
    --font-hero: clamp(42px, 2.9167vw, 56px);
    --font-section: clamp(14px, calc(1.25vw - 4px), 20px);
    --font-panel: clamp(15px, 1.0938vw, 21px);
    --font-body: clamp(14.5px, .9375vw, 18px);
    --font-small: clamp(12px, .8334vw, 16px);
    --font-caption: clamp(11px, .7292vw, 14px);
    --font-micro: clamp(10px, .6771vw, 13px);
    --font-button: clamp(13px, .8334vw, 16px);
    --font-nav: clamp(12px, .8334vw, 16px);
    --font-stat: clamp(25px, 1.823vw, 35px);
    --font-contact: clamp(34px, 2.2917vw, 44px);
    --section-space: clamp(32px, 2.5vw, 48px);
    --panel-space: clamp(24px, 1.6667vw, 32px);
    --content-gap: clamp(16px, 1.25vw, 24px);
  }
}

@media (max-width: 767px) {
  :root { --container-gutter: 20px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-family);
  font-size: 14px;
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.container {
  width: calc(100% - var(--container-gutter) * 2);
  max-width: var(--container-width);
  margin-inline: auto;
}

.section-title {
  font-size: var(--font-section);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.section-title_centered { text-align: center; }
.section-title_panel { font-size: var(--font-panel); }

[id] { scroll-margin-top: 20px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: var(--font-button);
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.button__arrow { font-size: 1.15em; line-height: 1; }
.button_primary { color: var(--color-white); background: var(--color-accent); border-color: var(--color-accent); }
.button_primary:hover { background: var(--color-accent-header); border-color: var(--color-accent-header); }
.button_secondary { color: var(--color-text); background: var(--color-white); border-color: var(--color-text); }
.button_secondary:hover { background: var(--color-text); color: var(--color-white); }
.button_header { min-height: 46px; padding-inline: 28px; font-size: var(--font-nav); text-transform: none; color: var(--color-white); background: var(--color-accent-header); }
.button_header:hover { background: var(--color-accent); }

.header { position: relative; z-index: 2; background: var(--color-white); }
.header__container { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: calc(100% - var(--container-gutter) * 2); max-width: calc(var(--container-width) + 112px); margin-inline: auto; padding-block: 18px; }
.header__logo { flex-shrink: 0; width: clamp(182px, 11.46vw, 220px); }
.header__logo-desktop { width: 100%; height: auto; }
.header__logo-adaptive { display: none; height: auto; }
.header__nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 32px; }
.header__nav-link { display: flex; align-items: center; min-height: 44px; font-size: var(--font-nav); font-weight: 500; line-height: 1.4; color: var(--color-nav); transition: color var(--transition); }
.header__nav-link_active, .header__nav-link:hover { color: var(--color-accent-header); }
.header__nav-link_active { font-weight: 600; }
.header__menu-toggle { display: none; font-size: 26px; font-weight: 500; line-height: 32px; }

@media (max-width: 1199px) {
  .header__container { gap: 28px; }
  .header__logo { width: 176px; margin-right: auto; }
  .header__logo-desktop { display: none; }
  .header__logo-adaptive { display: block; }
  .header__menu-toggle { display: block; }
  .header__nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 16px var(--container-gutter); background: var(--color-white); border-top: 1px solid var(--color-border); box-shadow: 0 8px 16px #30343a12; }
  .header__nav_open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .header__nav-link { font-size: 14px; }
}

@media (max-width: 767px) {
  .header__logo { width: 126px; }
  .header__contact { display: none; }
  .header__menu-toggle { padding-inline: 5px; }
}

.hero { display: grid; position: relative; background: var(--color-surface); }
.hero__image, .hero__fade, .hero__container { grid-area: 1 / 1; }
.hero__image { justify-self: end; width: 52%; height: 100%; min-height: 0; object-fit: cover; }
.hero__fade { position: relative; z-index: 1; justify-self: center; width: 24%; background: linear-gradient(90deg, var(--color-surface), transparent); pointer-events: none; }
.hero__container { position: relative; z-index: 1; display: flex; align-items: center; padding-block: clamp(64px, 5vw, 96px); }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--content-gap); width: 48%; }
.hero__eyebrow { color: var(--color-accent); font-size: var(--font-caption); font-weight: 600; line-height: 1.4; }
.hero__title { font-size: var(--font-hero); font-weight: 500; line-height: 1.22; }
.hero__description { color: var(--color-muted); font-size: var(--font-body); line-height: 1.4; }
.hero__description_mobile, .hero__projects-mobile { display: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (min-width: 768px) and (max-width: 1199px) {
  .hero__content { width: 52%; }
  .hero__title { font-size: 36px; }
  .hero__description { font-size: 13px; }
  .hero__actions { gap: 12px; }
  .hero__actions .button { padding-inline: 14px; font-size: 12px; }
}

@media (max-width: 767px) {
  .hero { display: flex; flex-direction: column; }
  .hero__image { width: 100%; height: auto; max-height: 360px; aspect-ratio: 390 / 245; }
  .hero__fade { display: none; }
  .hero__container { padding-block: 28px 40px; }
  .hero__content { width: 100%; }
  .hero__eyebrow { font-size: 10px; }
  .hero__title { font-size: 30px; }
  .hero__description { font-size: 13.5px; }
  .hero__description_desktop, .hero__projects-desktop { display: none; }
  .hero__description_mobile, .hero__projects-mobile { display: block; }
  .hero__actions { gap: 10px; }
}

@media (max-width: 374px) {
  .hero__title { font-size: 26px; }
  .hero__actions .button { padding-inline: 12px; font-size: 12px; }
}

.values { background: var(--color-white); }
.values__list { display: flex; flex-wrap: wrap; padding-block: var(--section-space); }
.values__item { display: flex; align-items: flex-start; flex: 1 1 25%; gap: 14px; min-width: 0; padding-inline: 18px; }
.values__item + .values__item { border-left: 1px solid var(--color-border); }
.values__icon { flex: 0 0 32px; display: block; }
.values__content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.values__title { font-size: var(--font-button); font-weight: 600; line-height: 1.3; }
.values__description { color: var(--color-muted); font-size: var(--font-caption); line-height: 1.4; }

@media (min-width: 768px) and (max-width: 1199px) {
  .values__list { row-gap: 24px; }
  .values__item { flex-basis: 50%; }
  .values__item:nth-child(2n + 1) { border-left: 0; }
}

@media (max-width: 767px) {
  .values__list { flex-direction: column; gap: 24px; }
  .values__item { padding: 0; }
  .values__item + .values__item { border-left: 0; }
  .values__icon { flex-basis: 30px; }
  .values__icon img { width: 30px; height: 30px; }
  .values__description { font-size: 11.5px; }
}

.services { padding-block: var(--section-space); background: var(--color-surface); }
.services__container { display: flex; flex-direction: column; gap: var(--content-gap); }
.services__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.service-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; text-align: center; }
.service-card + .service-card { border-left: 1px solid var(--color-border); }
.service-card__icon { display: block; flex-shrink: 0; width: 34px; }
.service-card__title { font-size: var(--font-button); font-weight: 500; line-height: 1.3; }
.service-card__description { color: var(--color-muted); font-size: var(--font-caption); line-height: 1.4; }

@media (min-width: 768px) and (max-width: 1199px) {
  .services__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card:nth-child(3n + 1) { border-left: 0; }
  .service-card:nth-child(n + 4) { border-top: 1px solid var(--color-border); }
}

@media (max-width: 767px) {
  .services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { padding-block: 24px; }
  .service-card:nth-child(2n + 1) { border-left: 0; }
  .service-card:nth-child(n + 3) { border-top: 1px solid var(--color-border); }
  .service-card__icon { width: 31px; }
  .service-card__icon img { width: 31px; height: 31px; }
  .service-card__title { font-size: 12px; }
  .service-card__description { display: none; }
}

.about { padding-block: var(--section-space); background: var(--color-white); }
.about__container { display: flex; align-items: stretch; }
.why-us, .process { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: var(--panel-space); background: var(--color-surface); }
.why-us { flex: 0 1 39%; }
.why-us__list { display: flex; flex-direction: column; gap: 14px; padding-left: 12px; list-style: disc; color: var(--color-muted); font-size: var(--font-small); line-height: 1.4; }
.process { flex: 1; }
.process__list { display: flex; gap: var(--content-gap); }
.process__item { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 12px; position: relative; min-width: 0; text-align: center; }
.process__item + .process__item::before { content: ""; position: absolute; right: calc(50% + 27px); top: 17px; width: calc(100% + var(--content-gap) - 54px); height: 1px; background: var(--color-sand); }
.process__number { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; background: url("../assets/icons/process-circle.svg") center / 34px 34px no-repeat; font-size: var(--font-micro); font-weight: 500; line-height: 1; }
.process__content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.process__title { font-size: var(--font-caption); font-weight: 600; line-height: 1.3; }
.process__description { color: var(--color-muted); font-size: var(--font-micro); line-height: 1.4; }
.process__note { margin-top: auto; color: var(--color-muted); font-size: var(--font-caption); line-height: 1.4; }

@media (max-width: 1023px) {
  .about__container { flex-direction: column; gap: 24px; }
}

@media (max-width: 767px) {
  .process__list { flex-direction: column; gap: 20px; }
  .process__item { flex-direction: row; text-align: left; }
  .process__item + .process__item::before { display: none; }
  .process__number { width: 30px; height: 30px; background-image: url("../assets/icons/process-circle-mobile.svg"); background-size: 30px 30px; }
  .process__title { font-size: 11.5px; }
  .process__description { font-size: 10.5px; }
}

.facts { background: var(--color-white); }
.facts__list { display: flex; flex-wrap: wrap; padding-block: var(--section-space); }
.facts__item { display: flex; flex-direction: column; align-items: center; flex: 1 1 25%; gap: 8px; padding-inline: 16px; text-align: center; }
.facts__item + .facts__item { border-left: 1px solid var(--color-border); }
.facts__value { color: var(--color-accent); font-size: var(--font-stat); font-weight: 500; line-height: 1.25; }
.facts__value_compact { font-size: calc(var(--font-stat) * .88); }
.facts__value_small { font-size: calc(var(--font-stat) * .8); }
.facts__description { color: var(--color-muted); font-size: var(--font-caption); line-height: 1.4; }

@media (max-width: 767px) {
  .facts__list { flex-direction: column; gap: 24px; }
  .facts__item { align-items: flex-start; padding: 0; text-align: left; }
  .facts__item + .facts__item { border-left: 0; }
  .facts__value { font-size: 22px; }
  .facts__description { font-size: 11.5px; }
}

.portfolio { padding-block: var(--section-space); background: var(--color-surface); }
.portfolio__container { display: flex; align-items: flex-start; gap: 28px; }
.audience, .projects { display: flex; flex-direction: column; gap: var(--content-gap); min-width: 0; }
.audience { flex: 0 1 36%; }
.projects { flex: 1; }
.audience__intro { color: var(--color-muted); font-size: var(--font-small); line-height: 1.4; }
.audience__list { display: flex; flex-direction: column; gap: 14px; }
.audience__item { display: flex; align-items: flex-start; gap: 12px; }
.audience__icon { flex-shrink: 0; }
.audience__content { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.audience__title { font-size: var(--font-caption); font-weight: 600; line-height: 1.3; }
.audience__description { color: var(--color-muted); font-size: var(--font-micro); line-height: 1.4; }
.projects__intro { color: var(--color-muted); font-size: var(--font-micro); line-height: 1.4; }
.projects__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--content-gap); }
.project-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-white); overflow: hidden; }
.project-card__image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.project-card__content { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.project-card__title { font-size: var(--font-small); font-weight: 600; line-height: 1.3; }
.project-card__description { color: var(--color-muted); font-size: var(--font-micro); line-height: 1.4; }

@media (max-width: 1199px) {
  .portfolio__container { flex-direction: column; gap: 32px; }
  .audience, .projects { width: 100%; }
  .projects__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .projects__list { grid-template-columns: 1fr; }
}

.contact { padding-block: var(--section-space); background: var(--color-white); }
.contact__container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.contact__content { display: flex; flex-direction: column; flex: 1 1 60%; gap: 12px; }
.contact__title { font-size: var(--font-contact); font-weight: 500; line-height: 1.25; }
.contact__description { color: var(--color-muted); font-size: var(--font-button); line-height: 1.4; }
.contact__details { flex-basis: 100%; color: var(--color-muted); font-size: var(--font-caption); line-height: 1.4; }

@media (max-width: 767px) {
  .contact__container { flex-direction: column; align-items: flex-start; gap: 24px; }
  .contact__title { font-size: 28px; }
}
