:root {
  --bg: #000000;
  --gold: #c59d5f;
  --gold-bright: #d4af37;
  --white: #ffffff;
  --muted: #cfcfcf;
  --copy: #888888;
  --line: rgba(197, 157, 95, 0.4);
  --header-h: 88px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.eyebrow--lined {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow--lined::before,
.eyebrow--lined::after,
.eyebrow__line {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.eyebrow--lined::before {
  width: 28px;
}

.gold-rule {
  display: block;
  width: 46px;
  height: 1px;
  margin: 0 0 22px;
  background: var(--gold);
}

.gold-rule--center {
  margin: 18px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  background: var(--gold);
  color: #111;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.text-link:hover {
  color: var(--gold-bright);
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}

.badge-icon svg {
  width: 20px;
  height: 20px;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 220px;
}

.header .logo__img {
  height: 50px;
  max-width: 264px;
}

.logo__icon {
  width: 38px;
  height: 38px;
  color: var(--gold);
}

.logo__stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.logo__sub {
  margin-top: 3px;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #e8e8e8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__item {
  position: relative;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #ececec;
  padding: 8px 0;
}

.nav__link svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex-shrink: 0;
}

.nav__parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__parent::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid var(--gold);
  order: 1;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 180px;
  padding: 10px 0;
  background: #0a0a0a;
  border: 1px solid var(--line);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}

.nav__item:hover .nav__dropdown,
.nav__item.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ececec;
  white-space: nowrap;
}

.nav__dropdown a:hover {
  color: var(--gold);
  background: rgba(197, 157, 95, 0.08);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__cta {
  flex-shrink: 0;
}

.header__wa,
.nav__cta {
  display: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--gold);
  transition: 0.25s ease;
}

.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }

.menu-toggle.is-open span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 36px) 0 180px;
}

.hero__bg,
.cta__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cta__bg {
  background: url("../assets/images/cta.jpg") center / cover no-repeat;
}

.hero__overlay,
.cta__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 58%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.78) 100%);
}

.hero__content,
.cta__content {
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  margin: 0 0 10px;
  font-size: clamp(3rem, 7.4vw, 6.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.hero__subtitle {
  margin: 0 0 16px;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 400;
}

.hero__tag {
  margin: 0 0 18px;
  color: #f2f2f2;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  overflow-wrap: anywhere;
}

.hero__tag span {
  color: var(--gold);
}

.hero__features {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 2;
}

.hero__features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

.icon-wrap {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  flex-shrink: 0;
  background: rgba(197, 157, 95, 0.08);
}

.icon-wrap svg,
.feature svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.feature h3 {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.feature p {
  margin: 2px 0 0;
  color: var(--white);
  font-size: 0.78rem;
}

.section {
  padding: 92px 0;
}

.section__head {
  margin-bottom: 42px;
}

.section__head--center {
  text-align: center;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
}

.section__action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 16px;
}

.service-card img,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.service-card:hover img,
.tile:hover img {
  transform: scale(1.06);
}

.service-card__body {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 30px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9) 48%);
}

.service-card .badge-icon {
  margin-bottom: 14px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: 0.08em;
}

.service-card p {
  margin: 0 0 14px;
  max-width: 420px;
  color: #ececec;
  font-size: 0.9rem;
}

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

.tile {
  position: relative;
  min-height: 228px;
  overflow: hidden;
  border-radius: 12px;
}

.tile__label {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.tile__label svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.tile__label h3 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
}

.tile__label h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  background: var(--gold);
}

.assist {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 620px;
  background: #000;
}

.assist__media {
  overflow: hidden;
  background: #000;
}

.assist__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
  min-height: 620px;
  transform: scale(1.35);
}

.assist__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 56px;
}

.assist__content h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.2;
}

.assist__lead {
  margin: 0 0 32px;
  max-width: 460px;
  color: var(--muted);
}

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

.step__num {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.step .badge-icon {
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.why__item {
  padding: 8px 26px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.why__item:first-child {
  padding-left: 0;
}

.why__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.why__item .icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
}

.why__item svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.why__item h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
}

.why__item p {
  margin: 0;
  color: var(--white);
  font-size: 0.88rem;
}

.cta {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 88px 0;
}

.cta__bg {
  background-image: url("../assets/images/cta.jpg");
}

.cta__content {
  text-align: left;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600;
}

.cta p {
  margin: 0 0 26px;
  color: #ececec;
}

.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 34px 0 20px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.footer__contacts a,
.footer__place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e4e4e4;
  font-size: 0.8rem;
  margin: 0;
}

.footer__contacts svg,
.footer__place svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.footer__copy {
  margin: 26px 0 0;
  text-align: center;
  color: var(--copy);
  font-size: 0.74rem;
}

.wa-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
}

.wa-float svg {
  width: 32px;
  height: 32px;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 1.8s ease-out infinite;
  z-index: -1;
}

.wa-float:hover {
  transform: scale(1.06);
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

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

  .assist__media img {
    min-height: 320px;
  }

  .assist__content {
    padding: 48px 32px 64px;
  }

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

@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-h) + env(safe-area-inset-top));
  }

  .header__cta {
    display: none;
  }

  .header__wa {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    color: var(--gold);
    flex-shrink: 0;
  }

  .header__wa svg {
    width: 22px;
    height: 22px;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px calc(28px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.97);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    font-size: 0.9rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .nav__parent {
    width: 100%;
    justify-content: space-between;
    border-bottom: 0;
  }

  .nav__dropdown {
    position: static;
    left: auto;
    min-width: 0;
    padding: 0 0 10px 8px;
    background: none;
    border: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav__item.is-open .nav__dropdown {
    display: block;
    transform: none;
  }

  .nav__dropdown a {
    padding: 12px 8px;
    font-size: 0.82rem;
  }

  .nav__cta {
    display: inline-flex;
    margin-top: 22px;
    width: 100%;
  }

  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 32px) 0 36px;
  }

  .hero__bg img {
    object-position: 70% center;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.82) 100%);
  }

  .hero__content h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    letter-spacing: 0.02em;
  }

  .hero__tag {
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    max-width: 22rem;
    line-height: 1.5;
  }

  .hero__features {
    position: static;
    margin-top: 36px;
  }

  .hero__features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .feature svg {
    width: 32px;
    height: 32px;
  }

  .feature h3,
  .feature p {
    font-size: 0.7rem;
  }

  .section {
    padding: 64px 0;
  }

  .why__grid {
    grid-template-columns: 1fr 1fr;
  }

  .why__item {
    padding: 22px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .why__item:nth-child(2n) {
    border-right: 0;
  }

  .why__item:nth-child(n + 3) {
    border-bottom: 0;
  }

  .cta {
    min-height: 0;
    padding: 72px 0;
  }

  .cta h2 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }
}

@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .logo__text {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .logo__sub {
    font-size: 0.46rem;
    letter-spacing: 0.1em;
  }

  .logo__img {
    height: 32px;
    max-width: 160px;
  }

  .header .logo__img {
    height: 38px;
    max-width: 192px;
  }

  .logo__icon {
    width: 32px;
    height: 32px;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
  }

  .header .btn,
  .header__cta {
    width: auto;
  }

  .services__grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 340px;
  }

  .service-card__body {
    padding: 24px 20px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .tile {
    min-height: 200px;
  }

  .assist__content {
    padding: 40px 20px 56px;
  }

  .assist__media img {
    min-height: 260px;
  }

  .cta__content {
    text-align: center;
  }

  .cta .gold-rule,
  .cta .btn {
    margin-inline: auto;
  }

  .footer {
    padding: 28px 0 calc(18px + env(safe-area-inset-bottom));
  }

  .footer__top,
  .footer__contacts {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__contacts {
    width: 100%;
    gap: 14px;
  }

  .footer__contacts a,
  .footer__place {
    min-height: 44px;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .portfolio__grid,
  .why__grid {
    grid-template-columns: 1fr;
  }

  .why__item {
    padding: 20px 0;
    border-right: 0;
  }

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

  .why__item:last-child {
    border-bottom: 0;
  }

  .eyebrow {
    letter-spacing: 0.14em;
    font-size: 0.66rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .section__head h2 {
    font-size: 1.35rem;
  }
}
