/* ==========================================================================
   Шрифты (лежат локально в assets/fonts — сайт не зависит от внешних сервисов)
   ========================================================================== */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/source-serif-4-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Переменные
   ========================================================================== */

:root {
  --navy-900: #111c2e;
  --navy-800: #18253b;
  --navy-700: #24344f;
  --cream: #f3ecdf;
  --sand: #e3c79b;
  --bronze: #96692f;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #18212f;
  --muted: #5a6371;
  --line: #dedad1;
  --error: #b3261e;

  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', 'PT Serif', Georgia, 'Times New Roman', serif;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --header-h: 80px;
  }
}

/* ==========================================================================
   База
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--navy-900);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ==========================================================================
   Кнопки и ссылки
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn__arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--cream {
  background: var(--cream);
  color: var(--navy-900);
}

.btn--cream:hover {
  background: #fffaf0;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.btn--navy {
  background: var(--navy-800);
  color: #fff;
}

.btn--navy:hover {
  background: var(--navy-700);
}

.btn--pill {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  border-color: currentColor;
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  transition: color 0.3s var(--ease);
}

/* Подложка вынесена в псевдоэлемент, чтобы backdrop-filter не ломал
   полноэкранное мобильное меню (fixed внутри шапки). */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 244, 239, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.header.is-scrolled {
  color: var(--ink);
}

.header.is-scrolled::before {
  opacity: 1;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  line-height: 1.25;
}

.brand__name {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.brand__tag {
  display: none;
  padding-left: 18px;
  border-left: 1px solid currentColor;
  font-size: 0.8125rem;
  opacity: 0.9;
}

@media (min-width: 420px) {
  .brand__tag {
    display: block;
  }
}

@media (min-width: 720px) {
  .brand__name {
    font-size: 1.0625rem;
  }
}

/* --- Бургер --- */

.burger {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  cursor: pointer;
}

.burger__lines,
.burger__lines::before,
.burger__lines::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}

.burger__lines {
  position: relative;
}

.burger__lines::before,
.burger__lines::after {
  content: '';
  position: absolute;
  left: 0;
}

.burger__lines::before {
  transform: translateY(-7px);
}

.burger__lines::after {
  transform: translateY(7px);
}

.nav-open .burger__lines {
  background: transparent;
}

.nav-open .burger__lines::before {
  transform: rotate(45deg);
}

.nav-open .burger__lines::after {
  transform: rotate(-45deg);
}

/* --- Навигация: мобильная панель --- */

.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: calc(var(--header-h) + 20px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--navy-900);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.nav-open .nav {
  opacity: 1;
  visibility: visible;
}

.nav-open .header {
  color: #fff;
}

.nav-open .header::before {
  opacity: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.nav__chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s var(--ease);
}

.nav__item.is-open .nav__chevron {
  transform: rotate(180deg);
}

.nav__cta {
  min-height: 54px;
  background: var(--cream);
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 600;
}

.nav__cta:hover {
  background: #fffaf0;
}

/* --- Подменю «Услуги» --- */

.submenu {
  display: none;
  padding-bottom: 12px;
}

.nav__item.is-open .submenu {
  display: block;
}

.submenu__link {
  display: flex;
  gap: 14px;
  padding: 12px 0;
}

.submenu__link .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--sand);
}

.submenu__title {
  display: block;
  font-weight: 600;
}

.submenu__text {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

/* --- Навигация: десктоп --- */

@media (min-width: 1040px) {
  .burger {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    overflow: visible;
    background: none;
    color: inherit;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .nav__item {
    position: relative;
    border: 0;
  }

  .nav__link {
    width: auto;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease);
  }

  .nav__link:hover,
  .nav__item.is-open > .nav__link {
    background: rgba(255, 255, 255, 0.14);
  }

  .is-scrolled .nav__link:hover,
  .is-scrolled .nav__item.is-open > .nav__link {
    background: rgba(24, 37, 59, 0.07);
  }

  .nav__chevron {
    width: 16px;
    height: 16px;
  }

  .nav__cta {
    min-height: 46px;
    background: var(--navy-800);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
  }

  .nav__cta:hover {
    background: var(--navy-700);
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: -12px;
    display: block;
    width: 400px;
    padding: 10px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  .nav__item.is-open .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .submenu__list {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 24px 48px -16px rgba(17, 28, 46, 0.35);
  }

  .submenu__link {
    padding: 12px 14px;
    border-radius: 10px;
    transition: background-color 0.15s var(--ease);
  }

  .submenu__link:hover {
    background: var(--bg);
  }

  .submenu__link .icon {
    color: var(--bronze);
  }

  .submenu__text {
    color: var(--muted);
  }
}

@media (min-width: 1040px) and (hover: hover) {
  .nav__item--has-menu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__item--has-menu:hover .nav__chevron {
    transform: rotate(180deg);
  }
}

/* ==========================================================================
   Первый экран
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, calc(100svh - 150px), 880px);
  padding: calc(var(--header-h) + 32px) 0 56px;
  color: #fff;
  background: var(--navy-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 23, 40, 0.64) 0%, rgba(13, 23, 40, 0.46) 45%, rgba(13, 23, 40, 0.68) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.125rem, 0.9rem + 3.6vw, 4.375rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero__title span {
  display: block;
}

.hero__lead {
  max-width: 30em;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
}

.hero__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.topic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 600;
  background: rgba(13, 23, 40, 0.25);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.topic:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 34px;
}

@media (min-width: 560px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
    width: auto;
  }

  .hero__actions .btn--cream {
    min-width: 268px;
  }
}

@media (min-width: 860px) {
  .hero {
    padding-bottom: 72px;
  }

  .hero__bg {
    object-position: 50% 50%;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(13, 23, 40, 0.55) 0%, rgba(13, 23, 40, 0) 26%),
      linear-gradient(90deg, rgba(13, 23, 40, 0.8) 0%, rgba(13, 23, 40, 0.56) 34%, rgba(13, 23, 40, 0.12) 64%, rgba(13, 23, 40, 0) 82%);
  }

  /* На широких экранах — как в макете: ссылки в строку с разделителями */
  .hero__topics {
    gap: 0;
    margin-top: 36px;
  }

  .hero__topics li + li {
    margin-left: 22px;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
  }

  .topic {
    min-height: 40px;
    padding: 0 6px 0 2px;
    border: 0;
    border-radius: 8px;
    background: none;
    font-size: 1.0625rem;
  }

  .topic .icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.4;
  }

  .topic:hover {
    background: none;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
  }
}

/* ==========================================================================
   Преимущества
   ========================================================================== */

.features {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.features__list {
  display: grid;
  grid-template-columns: 1fr;
}

.feature {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 16px;
  padding: 22px 0;
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

.feature__icon {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  stroke-width: 1.4;
  color: var(--navy-800);
}

.feature__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.feature__text {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 640px) {
  .features__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature {
    display: block;
    padding: 28px 28px 30px 0;
  }

  .feature + .feature {
    border-top: 0;
  }

  .feature:nth-child(even) {
    padding-left: 28px;
    border-left: 1px solid var(--line);
  }

  .feature:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .feature__icon {
    margin: 0 0 14px;
  }
}

@media (min-width: 1040px) {
  .features__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature,
  .feature:nth-child(even) {
    margin-block: 30px;
    padding: 0 16px 0 24px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .feature:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .feature:nth-child(n + 3) {
    border-top: 0;
  }
}

/* ==========================================================================
   Секции: общее
   ========================================================================== */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  max-width: none;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section__note {
  max-width: 26em;
  color: var(--muted);
}

/* ==========================================================================
   Услуги
   ========================================================================== */

.services__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.service:hover {
  border-color: #cfc7b6;
  box-shadow: 0 24px 48px -28px rgba(17, 28, 46, 0.35);
}

.service {
  /* компенсирует сдвиг анимации появления при переходе по якорю */
  scroll-margin-top: 18px;
}

.service:target {
  border-color: var(--bronze);
}

.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--navy-800);
}

.service__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.4;
}

.service__num {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: #9a917f;
}

.service__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
  font-weight: 400;
  line-height: 1.2;
}

.service__text {
  margin: 14px 0 24px;
  color: var(--muted);
}

.service .link-arrow {
  margin-top: auto;
}

/* ==========================================================================
   Как мы работаем
   ========================================================================== */

.process {
  background: var(--navy-900);
  color: #fff;
}

.process .eyebrow {
  color: var(--sand);
}

.process__list {
  display: grid;
  gap: 32px;
}

.step {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.step__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--sand);
}

.step__title {
  margin-top: 18px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

.step__text {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 640px) {
  .process__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

@media (min-width: 1040px) {
  .process__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   О нас
   ========================================================================== */

.about {
  padding-top: 0;
}

.about__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.about__lead {
  margin-top: 24px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
}

.about__text {
  margin-top: 16px;
  color: var(--muted);
}

.about__copy .btn {
  margin-top: 32px;
}

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.person__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(227, 199, 155, 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.04em;
}

.person__name {
  margin-top: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .people {
    gap: 24px;
  }
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
  }
}

/* ==========================================================================
   Блог
   ========================================================================== */

.blog__grid {
  display: grid;
  gap: 20px;
}

.post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed #c9c2b3;
  border-radius: var(--radius);
}

.post__tag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
}

.post__title {
  margin: 14px 0 24px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

.post__soon {
  margin-top: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e9e4d8;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

@media (min-width: 760px) {
  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ==========================================================================
   Контакты и форма
   ========================================================================== */

.contacts {
  padding-top: 0;
}

.contact-card {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 40px 80px -48px rgba(17, 28, 46, 0.45);
}

.contact-card__intro {
  padding: clamp(28px, 4.5vw, 56px);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(227, 199, 155, 0.2), transparent 60%),
    var(--navy-800);
  color: #fff;
}

.contact-card__intro .eyebrow {
  color: var(--sand);
}

.contact-card__text {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-card__points {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.contact-card__points .icon {
  color: var(--sand);
}

.form {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(28px, 4.5vw, 56px);
}

.form__row {
  display: grid;
  gap: 20px;
}

.field {
  min-width: 0;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field__optional {
  font-weight: 400;
  color: var(--muted);
}

.field__control {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #cdc7ba;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field__control:hover {
  border-color: #a79f8e;
}

.field__control:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(24, 37, 59, 0.16);
}

.field__control[aria-invalid='true'] {
  border-color: var(--error);
}

textarea.field__control {
  min-height: 120px;
  resize: vertical;
}

.field__select {
  position: relative;
}

.field__select select {
  padding-right: 48px;
  cursor: pointer;
}

.field__select .icon {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

.field__error {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--error);
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.form__footer .btn {
  width: 100%;
}

.form__footer .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form__status {
  flex: 1 1 240px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.form__status:empty {
  display: none;
}

.form__status[data-state='success'] {
  color: #1d6b43;
}

.form__status[data-state='error'] {
  color: var(--error);
}

@media (min-width: 560px) {
  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__footer .btn {
    width: auto;
  }
}

@media (min-width: 960px) {
  .contact-card {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy-900);
  color: #fff;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding-block: 44px 36px;
}

.brand--footer .brand__tag {
  display: block;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 0.9375rem;
}

.footer__nav a,
.footer__bottom a {
  padding-block: 6px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s var(--ease);
}

.footer__nav a:hover,
.footer__bottom a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Появление блоков при прокрутке
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Отдельные страницы услуг */
.detail-header{background:var(--navy-900);color:#fff}.detail-header__inner{min-height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:24px}.detail-header__back{font-weight:600;font-size:.9375rem}.detail-header__back:hover{text-decoration:underline}.detail-hero{background:var(--navy-900);color:#fff;padding:clamp(72px,10vw,140px) 0}.detail-hero .eyebrow{color:var(--sand)}.detail-hero__title{font-family:var(--font-serif);font-weight:400;line-height:1.08;font-size:clamp(2.5rem,5.5vw,5rem);max-width:900px}.detail-hero__lead{max-width:700px;margin:26px 0 34px;font-size:clamp(1.1rem,2vw,1.35rem);color:rgba(255,255,255,.82)}.detail-grid{display:grid;gap:40px}.detail-copy{max-width:520px;margin-top:24px;color:var(--muted)}.detail-points{display:grid;gap:14px}.detail-point{display:flex;align-items:center;gap:24px;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.detail-point span{font-family:var(--font-serif);font-size:1.6rem;color:var(--bronze)}.detail-point h3{font-size:1.1rem;font-weight:500}.detail-cta{background:var(--cream)}.detail-cta p:not(.eyebrow){margin-top:20px}.detail-cta .btn{margin-top:28px}.detail-related__links{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.detail-related__links a{padding:14px 20px;border:1px solid var(--line);border-radius:12px;background:#fff}.detail-related__links a:hover{border-color:var(--bronze)}.service__title a:hover{text-decoration:underline;text-underline-offset:4px}@media(min-width:860px){.detail-grid{grid-template-columns:1fr 1fr;gap:80px}}

/* Blog pages */
.blog-hero{background:#111c2e;color:#fff;padding:92px 0 76px}.blog-hero .eyebrow{color:#d4c6a7}.blog-hero h1{font-family:Georgia,serif;font-size:clamp(2.5rem,5vw,4.7rem);line-height:1.12;max-width:850px;margin:18px 0}.blog-hero p{max-width:700px;line-height:1.75;color:#e0e5ec}.blog-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;list-style:none;padding:0;margin:0}.blog-tile{border:1px solid #e4e4e4;border-radius:8px;padding:32px;background:#fff;display:flex;flex-direction:column;gap:15px}.blog-tile h2{font-family:Georgia,serif;font-size:1.65rem;line-height:1.25;margin:0}.blog-tile p{line-height:1.7;margin:0}.blog-tile a,.article a,.post a{color:inherit;text-underline-offset:4px}.blog-tile .tag{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:#72644f}.article{max-width:820px;margin:auto;padding:76px 24px 100px}.article h2{font-family:Georgia,serif;font-size:1.9rem;margin:42px 0 14px}.article p,.article li{font-size:1.08rem;line-height:1.85}.article ul{padding-left:25px;list-style:disc}.article__meta{font-size:.88rem;color:#69717b}.article__notice{border-left:3px solid #a88d65;padding:14px 20px;background:#f7f5f0;margin:30px 0}.article__cta{margin-top:48px;padding:28px;background:#f4f0e8}.article__cta a{font-weight:700}.post p{line-height:1.6}.post a{text-decoration:underline;text-underline-offset:4px}@media(max-width:760px){.blog-list{grid-template-columns:1fr}.blog-hero{padding:60px 0}.article{padding:48px 20px}}

.post__title a{color:inherit;text-decoration:none}.post__title a:hover{text-decoration:underline}

/* Quiet, consistent resource links under partner portraits */
.person__socials { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 12px; }
.person__socials a, .person__socials a:visited { display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; color: #566477; font-size: .82rem; font-weight: 400; line-height: 1.5; text-decoration: none; }
.person__platform { color: #7a8492; font-size: .73rem; min-width: 62px; }
.person__resource { color: #425369; border-bottom: 1px solid #aeb9c4; transition: color .15s ease, border-color .15s ease; }
.person__socials a:hover .person__resource, .person__socials a:focus-visible .person__resource { color: #14233a; border-color: #14233a; }
.person__socials a:focus-visible { outline: 2px solid #14233a; outline-offset: 3px; }

/* Unified article call-to-action */
.article__cta .btn { display:inline-flex; align-items:center; justify-content:center; min-height:54px; padding:0 26px; margin-top:20px; border-radius:12px; background:var(--navy-800); color:#fff; font-weight:600; text-decoration:none; line-height:1.3; }
.article__cta .btn:hover { background:var(--navy-700); color:#fff; }
@media(max-width:480px){.article__cta .btn{width:100%;white-space:normal;text-align:center}}

/* Article CTA: keep button text readable despite generic article link rules. */
.article .article__cta a.btn--navy {
  color: #fff;
  text-decoration: none;
}
.article .article__cta a.btn--navy:hover {
  color: #fff;
  background: var(--navy-700);
}


/* Article typography: explicit hierarchy and readable spacing. */
.article > .article__meta { font-size: .88rem; line-height: 1.6; color: #69717b; margin-bottom: 24px; }
.article > h3 { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 600; line-height: 1.35; margin: 28px 0 12px; }
.article > p + p { margin-top: 18px; }
.article > ul { margin: 14px 0 22px; }
.article > ul li + li { margin-top: 8px; }
.article > .article__cta p { margin-top: 0; }

/* Final shared article refinements */
.article .article__cta h2 { margin: 0 0 14px; font-size: 1.9rem; line-height: 1.3; }
.article .article__cta p { margin: 0; }
.article a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.article a:not(.btn):hover { color: var(--bronze); }
@media (max-width: 760px) { .article .article__cta h2 { font-size: 1.65rem; } }

/* Real estate: compact, editorial descriptions within the existing numbered cards. */
.detail-points--realty { gap: 12px; }
.detail-points--realty .detail-point--expanded { align-items: flex-start; gap: 20px; padding: 23px 25px; }
.detail-points--realty .detail-point--expanded > span { flex: 0 0 36px; line-height: 1.25; }
.detail-points--realty .detail-point__body { min-width: 0; }
.detail-points--realty .detail-point__body h3 { line-height: 1.35; margin: 0; }
.detail-points--realty .detail-point__body p { margin: 9px 0 0; font-size: .93rem; line-height: 1.65; color: var(--muted); }
@media(max-width: 560px) { .detail-points--realty .detail-point--expanded { padding: 19px 17px; gap: 14px; } .detail-points--realty .detail-point--expanded > span { flex-basis: 30px; font-size: 1.35rem; } }

/* Immigration: passport visual with live, accessible HTML text and CTA */
.detail-hero--passport{position:relative;isolation:isolate;overflow:hidden}
.detail-hero--passport::before{content:"";position:absolute;z-index:-1;inset:0;background-image:linear-gradient(to bottom,#111c2e 0%,rgba(17,28,46,.86) 5%,rgba(17,28,46,.45) 14%,rgba(17,28,46,0) 29%),linear-gradient(90deg,#111c2e 0%,rgba(17,28,46,.99) 23%,rgba(17,28,46,.94) 38%,rgba(17,28,46,.70) 52%,rgba(17,28,46,.10) 76%,rgba(17,28,46,0) 100%),url("../assets/img/passport-brazil.webp");background-repeat:no-repeat;background-position:center,center,right center;background-size:cover,cover,92% auto;background-color:#111c2e}
.detail-hero--passport .container{position:relative;z-index:1}
.detail-hero--passport .detail-hero__title{max-width:780px}
.detail-hero--passport .detail-hero__lead{max-width:640px}
@media(max-width:850px){.detail-hero--passport::before{background-image:linear-gradient(to bottom,#111c2e 0%,rgba(17,28,46,.7) 12%,transparent 30%),linear-gradient(90deg,rgba(17,28,46,.96),rgba(17,28,46,.77)),url("../assets/img/passport-brazil.webp");background-position:center,center,right center;background-size:cover,cover,auto 100%}}
@media(max-width:600px){.detail-hero--passport::before{background-image:linear-gradient(to bottom,#111c2e 0%,rgba(17,28,46,.7) 12%,transparent 30%),linear-gradient(90deg,rgba(17,28,46,.88) 0%,rgba(17,28,46,.72) 45%,rgba(17,28,46,.35) 100%),url("../assets/img/passport-brazil.webp");background-size:cover,cover,cover;background-position:center,center,65% center}}
