* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Палитра: чёрно‑золотая */
:root {
  --c-bg: #f5f2ec;         /* тёплый светлый фон */
  --c-surface: #ffffff;
  --c-text: #111111;
  --c-muted: #6f6b64;

  --c-accent: #b9995a;         /* золото */
  --c-accent-soft: #f0e5d4;    /* светлый золотистый фон */
  --c-border-soft: #d8ccba;

  --radius-card: 18px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);

  --sz-xs: .8rem;
}

body.theme-sage {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
               "Helvetica Neue", Arial, sans-serif;
}

/* Двуязычность */
body.lang-pt .lang-pt { display: inherit; }
body.lang-pt .lang-en { display: none; }
body.lang-en .lang-pt { display: none; }
body.lang-en .lang-en { display: inherit; }

/* Базовая обёртка */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245,242,236,0.92);
  border-bottom: 1px solid rgba(216,204,186,0.9);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1.5rem;
}

.brand img {
  height: 80px;          /* крупнее логотип в шапке */
  display: block;
}

/* Навигация */
.site-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: .9rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--c-text);
}

/* Переключатель языка */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--c-muted);
}
.lang-switch button.is-active {
  color: var(--c-accent);
}

/* HERO – только для главной страницы */
.hero.hero--home {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  color: #fff;
}
.hero.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      rgba(0, 0, 0, 0.80),
      rgba(0, 0, 0, 0.65),
      rgba(185, 153, 90, 0.55)   /* золотистый слой */
    ),
    url("images/hero.jpg") center/cover no-repeat;
  z-index: -2;
}
.hero.hero--home > .shell {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: var(--sz-xs);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.4rem;
}
/*
.hero-kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--c-accent);   
  border-radius: 2px;
}
.hero-kicker--white::before {
  background: #ffffff;
}
*/

.hero h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}
.hero-lead {
  color: #f6f5f1;
  max-width: 32rem;
  margin-bottom: 1.8rem;
}
.hero-services-lead {
  color: rgba(185,153,90,0.88);
  max-width: 32rem;
  margin-bottom: 1.8rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-photo {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* SECTIONS */
.section {
  padding: 3.5rem 0;
}
.section--padded {
  padding: 4rem 0 3.2rem;
}
.section--band {
  background: var(--c-accent-soft);
}
.section--muted {
  background: #f0eee8;
}
.section--contact {
  position: relative;
  background: #000000;
  color: #ffffff;
  padding: 3.5rem 0;
}
.section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      rgba(0, 0, 0, 0.96),
      rgba(0, 0, 0, 0.85),
      rgba(185,153,90,0.88)
    );
  z-index: -1;
}

/* Кнопка в форме контактов */
.section--contact .contact-form .btn {
  padding: .55rem 1.3rem;    /* меньше высота и ширина */
  font-size: .85rem;         /* чуть меньший текст */
  align-self: flex-start;    /* выравнивание по верхнему краю сетки */
}
/* Блок действий (кнопки) – отдельная строка */
.contact-form__actions {
  grid-column: 1 / -1;       /* растягиваем от первой до последней колонки */
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

/* Кнопка в форме – чуть меньше, чем hero */
.contact-form__actions .btn {
  padding: .55rem 1.3rem;
  font-size: .85rem;
}

/* Заголовки секций */
.section-head {
  max-width: 42rem;
  margin-bottom: 2.3rem;
}
.eyebrow {
  font-size: var(--sz-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--c-muted);
  margin-bottom: .4rem;
}
.section-head h2 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 0 0 .6rem;
}
.section-lead {
  color: var(--c-muted);
  margin: 0;
}

/* Гриды */
.services-grid,
.sectors-grid,
.insights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
}

.service-card,
.sector-card,
.insight-card {
  background: var(--c-surface);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.7rem 1.6rem;
  box-shadow: 0 11px 30px rgba(0,0,0,0.06);
}

.insight-card h3 {
  margin-top: 0;        /* заголовок почти у верхнего края карточки */
  margin-bottom: .55rem;
}

.service-card h3,
.sector-card h3 {
  font-size: 1.1rem;
  margin: 0 0 .6rem;
}

.service-card p,
.sector-card p,
.insight-card p {
  color: var(--c-muted);
  font-size: .94rem;
  margin: 0;
}

.service-link {
  display: inline-flex;
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--c-accent);
  text-decoration: none;
}

/* делаем карточки вертикальными flex-контейнерами */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.7rem 2.1rem;
}

/* ссылка внизу карточки */
.service-link {
  display: inline-flex;
  margin-top: auto;       /* отправляет ссылку вниз */
  font-size: .9rem;
  padding-top: 1.6rem;    /* лёгкий внутренний отступ сверху */
  color: var(--c-accent);
  text-decoration: none;
}

.sector-card {
  display: flex;
  flex-direction: column;
}
.sector-card .sector-link {
  margin-top: auto;
}

/* Split layout */
.shell--split {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.4fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.approach-text p {
  color: var(--c-muted);
}

/* Списки */
.ticks,
.bullets {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.ticks li,
.bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .6rem;
  font-size: .95rem;
  color: var(--c-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4rem;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--c-accent);
}

/* CONTACT блок */
.contact-logo {
  margin-bottom: 1.5rem;
}
.contact-logo img {
  height: 56px;
  display: block;
}

.section--contact .eyebrow,
.section--contact h2,
.section--contact p,
.section--contact .contact-list li {
  color: #f7f5f1;
}

.section--contact a {
  color: var(--c-accent);     /* EMAIL ЛИНК ЗОЛОТОЙ */
  text-decoration: none;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

/* Форма контактов */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}
.contact-form label {
  display: block;
  font-size: .86rem;
  color: #e8e5dd;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: .3rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  border: 1px solid rgba(185,153,90,0.45);
  font: inherit;
  background: rgba(10,10,10,0.7);
  color: #f7f5f1;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b5b0a5;
}

/* Consent checkboxes */
.contact-consent {
  grid-column: 1 / -1;         /* на всю ширину формы */
  font-size: .86rem;
  color: #e8e5dd;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.4;
}

.contact-consent input[type="checkbox"] {
  margin-top: .15rem;
  flex-shrink: 0;
}

.contact-consent a {
  color: var(--c-accent);
  text-decoration: underline;
}

.contact-consent--optional {
  opacity: .9;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn--primary {
  background: var(--c-accent);
  color: #fff;
}
.btn--primary:hover {
  background: #8f7745;    /* тёмное золото */
}
.btn--ghost {
  border: 1px solid rgba(185,153,90,0.45);
  color: var(--c-accent);
  background: rgba(255,255,255,0.55);
}
.btn--text {
  background: transparent;
  color: #ffffff;
}

/* Адаптив для главной */
@media (max-width: 900px) {
  .hero.hero--home {
    padding-top: 4rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0,1fr);
  }

  .site-nav {
    display: none; /* при желании позже сделать бургер */
  }

  .shell--split {
    grid-template-columns: minmax(0,1fr);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* Hero для сервисных страниц */
.hero.hero--service {
  position: relative;
  padding: 0;              /* на всю ширину */
  color: #fff;
}

/* фон для сервисов – похож на главный, но отдельный */
.hero.hero--service::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      rgba(0, 0, 0, 0.70),
      rgba(0, 0, 0, 0.55),
      rgba(185, 153, 90, 0.40)
    );
  z-index: -2;
}

.hero.hero--service > .hero-service {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
}

/* Грид сервиса: картинка слева, текст справа */
.hero-service__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 0;
  align-items: stretch;
}

/* Левая часть – фон + картинка */
.hero-service__image {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.hero-service__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Разные картинки для разных сервисов */
.hero--architecture .hero-service__image::before {
  background-image:
    linear-gradient(120deg,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.10)
    ),
    url("images/architecture-hero.jpg");
}

.hero--engineering .hero-service__image::before {
  background-image:
    linear-gradient(120deg,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.10)
    ),
    url("images/engineering-hero.jpg");
}

.hero--consulting .hero-service__image::before {
  background-image:
    linear-gradient(120deg,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.10)
    ),
    url("images/consulting-hero.jpg");
}

/* Правая часть – текст */
.hero-service__content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  justify-content: center;
  background: #ffffff;
  color: #111111;
  border-radius: 0;
  padding: 2.5rem 2.5rem;
}

/* Внутри lang-блоков – вертикальный стэк */
.hero-service__content .lang-pt,
.hero-service__content .lang-en {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Ограничим ширину текста */
.hero--service .hero-service__content h1,
.hero--service .hero-service__content .hero-lead,
.hero--service .hero-service__content .hero-services-lead {
  max-width: 24rem;
}

/* Размер шрифта в сервисах */
.hero--service h1 {
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  line-height: 1.1;
}

/* Кнопки в hero сервисов */
.hero-service__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Адаптив hero сервисов */
@media (max-width: 768px) {
  .hero-service__grid {
    grid-template-columns: minmax(0,1fr);
  }

  .hero-service__image {
    min-height: 220px;
  }

  .hero-service__content {
    margin-top: 1.5rem;
  }
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(216,204,186,0.9);
  background: #f5f2ec;
  padding: 1.5rem 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__left p {
  margin: 0;
  font-size: .86rem;
  color: var(--c-muted);
}

.site-footer__policy {
  margin-top: .3rem;
}

.site-footer__policy a {
  color: var(--c-accent);
  text-decoration: none;
  font-size: .86rem;
}

.site-footer__policy a:hover {
  text-decoration: underline;
}

/* Соцсети */
.site-footer__social {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(185,153,90,0.9);    /* золотой контур */
  background: rgba(185,153,90,0.08);         /* лёгкий золотой фон */
  text-decoration: none;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--c-accent);                     /* иконка золотая */
}

/* если захочешь небольшой текст рядом с иконкой */
.social-link span {
  display: none;                             /* sr-only будет скрыт классом ниже */
}

/* Текст только для скринридеров */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.social-link:hover {
  background: rgba(185,153,90,0.18);
}

/* Мобайл: футер в колонку */
@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}