@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/open-sans-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: "Roboto";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/roboto-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/roboto-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 {
  color-scheme: dark;
  --black: #050505;
  --black-soft: #0c0c0c;
  --white: #fff;
  --paper: #f5f3ef;
  --ink: #111;
  --muted: #888;
  --gold: #ccad81;
  --gold-light: #dfc9aa;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(0, 0, 0, 0.12);
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 300;
  line-height: 1.12;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  position: relative;
  padding: clamp(88px, 10vw, 150px) 0;
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

.brand {
  display: block;
  width: clamp(205px, 22vw, 282px);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 32%, rgba(204, 173, 129, 0.08), transparent 34%),
    var(--black);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 260px;
  background: linear-gradient(to bottom, transparent, var(--black));
  content: "";
  pointer-events: none;
}

.hero__media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: max(2vw, calc((100vw - var(--container)) / 2 - 60px));
  width: min(57vw, 710px);
  height: 100%;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: contain;
  object-position: center bottom;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: min(900px, 100svh);
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(32px, 5vw, 64px) clamp(86px, 10vw, 128px);
}

.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.hero__contacts {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding-top: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 17px;
}

.hero__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d9d9d9;
  text-decoration: none;
  transition: color 180ms ease;
}

.hero__contacts a:hover {
  color: var(--gold-light);
}

.hero__contacts img {
  width: 18px;
  height: 18px;
}

.hero__content {
  width: min(730px, 66%);
}

.hero__eyebrow {
  width: min(390px, 100%);
  margin-bottom: clamp(50px, 8vw, 98px);
  color: #a8a8a8;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.hero h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.35vw, 64px);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero h1 span,
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto clamp(58px, 7vw, 96px);
  text-align: center;
}

.section-heading__kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.confidence h2,
.founder h2,
.contact h2 {
  margin-bottom: 26px;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-heading > p:last-child {
  margin: 0 auto;
  max-width: 780px;
  color: #444;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
}

.section-heading > p strong {
  color: var(--gold);
  font-weight: 500;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.service-card {
  min-height: 375px;
  padding: clamp(30px, 4vw, 52px);
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.service-card > img,
.service-card > picture {
  width: 66px;
  height: 66px;
  margin-bottom: 30px;
}

.service-card > picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  margin-bottom: 18px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
  text-transform: uppercase;
}

.service-card p {
  margin-bottom: 14px;
  color: #4e4e4e;
}

.service-card small {
  display: block;
  color: #8c7556;
  font-size: 12px;
  line-height: 1.6;
}

.portfolio {
  background: var(--black);
}

.portfolio__grid {
  display: grid;
  grid-auto-rows: minmax(280px, 34vw);
  grid-template-columns: repeat(4, 1fr);
}

.portfolio-card,
.experts__gallery button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #111;
  color: inherit;
  cursor: zoom-in;
}

.portfolio-card--wide {
  grid-column: span 2;
}

.portfolio-card--portrait {
  grid-row: span 2;
}

.portfolio-card picture,
.portfolio-card img,
.experts__gallery picture,
.experts__gallery img {
  width: 100%;
  height: 100%;
}

.portfolio-card img,
.experts__gallery img {
  object-fit: cover;
  filter: saturate(0.9);
  transform: scale(1.002);
  transition: filter 500ms ease, transform 700ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.portfolio-card::after,
.experts__gallery button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(204, 173, 129, 0.15));
  content: "";
  opacity: 0;
  transition: opacity 350ms ease;
}

.portfolio-card:hover img,
.experts__gallery button:hover img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.portfolio-card:hover::after,
.experts__gallery button:hover::after {
  opacity: 1;
}

.network {
  background: #111;
}

.section-heading--dark {
  color: var(--white);
}

.network__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.network__grid article {
  position: relative;
  min-height: 300px;
  padding: clamp(34px, 5vw, 65px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.network__grid span {
  display: block;
  margin-bottom: 44px;
  color: var(--gold);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.network__grid h3 {
  margin-bottom: 18px;
  color: var(--gold-light);
  font-size: clamp(24px, 3vw, 36px);
}

.network__grid p {
  max-width: 470px;
  margin-bottom: 0;
  color: #c0c0c0;
}

.experts {
  padding-bottom: 0;
  background: var(--paper);
  color: var(--ink);
}

.experts__gallery {
  display: grid;
  min-height: 680px;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(280px, 1fr));
}

.experts__gallery button:first-child {
  grid-row: 1 / -1;
}

.experts__gallery button:nth-child(2) {
  grid-row: 1 / -1;
}

.experts__gallery button:nth-child(3),
.experts__gallery button:nth-child(4) {
  grid-column: 3;
}

.confidence {
  overflow: hidden;
  background: var(--black);
}

.confidence__inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(50px, 7vw, 110px);
}

.confidence__copy p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  color: #aaa;
  font-size: clamp(19px, 2vw, 26px);
}

.confidence__copy strong {
  color: var(--gold);
  font-weight: 400;
}

.confidence__image {
  position: relative;
}

.confidence__image::before {
  position: absolute;
  z-index: -1;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 173, 129, 0.18), transparent 68%);
  content: "";
}

.confidence__image img {
  width: 100%;
  height: auto;
}

.founder {
  padding-bottom: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.founder__inner {
  display: grid;
  min-height: 870px;
  align-items: end;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(36px, 7vw, 110px);
}

.founder__portrait {
  align-self: end;
}

.founder__portrait img {
  width: min(100%, 360px);
  margin: 0 auto;
  filter: contrast(1.08);
}

.founder__copy {
  align-self: center;
  max-width: 720px;
  padding-bottom: clamp(74px, 9vw, 130px);
}

.founder__quote {
  width: 56px;
  height: 56px;
  margin-bottom: 34px;
  opacity: 0.74;
}

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

.founder__copy p {
  color: #aaa;
  font-size: 17px;
}

.founder__lead {
  color: var(--gold-light) !important;
  font-size: clamp(19px, 2vw, 24px) !important;
  font-style: italic;
}

.founder__signature {
  margin-top: 32px;
  color: var(--white) !important;
  font-style: italic;
}

.contact {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.contact__background,
.contact__background img,
.contact__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact__background img {
  object-fit: cover;
}

.contact__overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.87), rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent);
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 720px;
  align-items: center;
}

.contact__card {
  width: min(670px, 100%);
  padding: clamp(38px, 7vw, 78px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 5, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

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

.contact__card > p:not(.section-heading__kicker, .contact__prompt) {
  max-width: 510px;
  color: #c4c4c4;
  font-size: 19px;
}

.contact__prompt {
  margin: 34px 0 4px;
  color: var(--gold);
}

.contact__phone {
  display: block;
  margin-bottom: 28px;
  font-family: "Roboto", sans-serif;
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 300;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover {
  background: transparent;
  color: var(--gold-light);
}

.footer {
  padding: 46px 0;
  border-top: 1px solid var(--line-dark);
  background: var(--black);
}

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

.footer__inner > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.footer__inner > div a {
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
}

.footer__inner > div a:hover {
  color: var(--gold);
}

.cookie-notice {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: flex;
  width: min(610px, calc(100% - 44px));
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  padding: 18px 20px 18px 26px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.97);
  color: #555;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0;
  font-size: 14px;
}

.cookie-notice button {
  flex: 0 0 auto;
  padding: 9px 17px;
  border: 1px solid #aaa;
  border-radius: 5px;
  background: #f5f5f5;
  color: #555;
  cursor: pointer;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 48px;
  border: 0;
  background: rgba(0, 0, 0, 0.95);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox figure {
  display: grid;
  width: min(1200px, calc(100vw - 160px));
  height: calc(100vh - 96px);
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  place-items: center;
}

.lightbox figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox figcaption {
  min-height: 24px;
  color: #ccc;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.lightbox__close {
  top: 18px;
  right: 28px;
  font-size: 46px;
  font-weight: 200;
}

.lightbox__nav {
  top: 50%;
  padding: 18px;
  transform: translateY(-50%);
  font-size: 70px;
  font-weight: 200;
}

.lightbox__nav--prev {
  left: 10px;
}

.lightbox__nav--next {
  right: 10px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(204, 173, 129, 0.16), transparent 38%),
    var(--black);
}

.error-page__card {
  width: min(680px, calc(100% - 40px));
  padding: clamp(40px, 8vw, 90px);
  border: 1px solid var(--line-dark);
  text-align: center;
}

.error-page__code {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: "Roboto", sans-serif;
  font-size: clamp(70px, 16vw, 150px);
  font-weight: 300;
  line-height: 1;
}

.error-page h1 {
  font-size: clamp(28px, 5vw, 48px);
  text-transform: uppercase;
}

.error-page p {
  margin-bottom: 32px;
  color: #aaa;
}

@media (max-width: 1024px) {
  .hero {
    min-height: 820px;
  }

  .hero__inner {
    min-height: 820px;
  }

  .hero__media {
    right: -6vw;
    width: 67vw;
  }

  .hero__content {
    width: 70%;
  }

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

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

  .experts__gallery {
    min-height: 800px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .experts__gallery button:first-child,
  .experts__gallery button:nth-child(2),
  .experts__gallery button:nth-child(3),
  .experts__gallery button:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

  .confidence__inner {
    grid-template-columns: 1fr 1.1fr;
  }

  .founder__inner {
    grid-template-columns: 0.5fr 1.5fr;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .section {
    padding-block: 82px;
  }

  .hero {
    min-height: 760px;
  }

  .hero__inner {
    min-height: 760px;
    padding-block: 26px 72px;
  }

  .hero__top {
    align-items: flex-start;
  }

  .hero__contacts {
    font-size: 14px;
  }

  .hero__contacts img {
    width: 15px;
    height: 15px;
  }

  .hero__media {
    right: -23%;
    width: 93vw;
    opacity: 0.74;
  }

  .hero__content {
    width: 88%;
  }

  .hero__eyebrow {
    margin-bottom: 42px;
  }

  .hero h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

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

  .service-card {
    min-height: 0;
  }

  .portfolio__grid {
    grid-auto-rows: minmax(300px, 75vw);
  }

  .portfolio-card--wide {
    grid-column: span 2;
  }

  .portfolio-card--portrait {
    grid-row: span 1;
  }

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

  .network__grid article {
    min-height: 0;
  }

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

  .confidence__copy {
    position: relative;
    z-index: 1;
  }

  .confidence__image {
    width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1);
  }

  .founder {
    padding-top: 82px;
  }

  .founder__inner {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .founder__portrait {
    order: 2;
  }

  .founder__portrait img {
    width: min(70%, 320px);
  }

  .founder__copy {
    padding-bottom: 24px;
  }

  .contact,
  .contact__inner {
    min-height: 680px;
  }

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

  .footer__inner > div {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 175px;
  }

  .hero__top {
    gap: 14px;
  }

  .hero__contacts {
    font-size: 12px;
  }

  .hero__contacts a:first-child img {
    display: none;
  }

  .hero__media {
    right: -50%;
    width: 135vw;
    opacity: 0.6;
  }

  .hero__content {
    width: 100%;
  }

  .hero__eyebrow {
    width: 76%;
    font-size: 14px;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h2,
  .confidence h2,
  .founder h2,
  .contact h2 {
    font-size: 37px;
  }

  .section-heading > p:last-child {
    font-size: 18px;
  }

  .portfolio__grid {
    display: block;
  }

  .portfolio-card {
    display: block;
    width: 100%;
    height: 78vw;
    min-height: 280px;
  }

  .experts__gallery {
    display: grid;
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .experts__gallery button {
    height: 92vw;
  }

  .contact__card {
    padding-inline: 28px;
  }

  .contact__phone {
    font-size: 31px;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    align-items: flex-start;
    gap: 14px;
    padding: 15px 15px 15px 18px;
  }

  .cookie-notice p {
    font-size: 12px;
  }

  .lightbox {
    padding: 46px 18px 24px;
  }

  .lightbox figure {
    width: 100%;
    height: calc(100vh - 70px);
  }

  .lightbox__nav {
    padding: 5px;
    font-size: 54px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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