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

@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #1A1A1A;
  --surface: #2B2B2B;
  --surface-hover: #333333;
  --accent: #D32F2F;
  --accent-hover: #E53935;
  --text: #CCCCCC;
  --heading: #FFFFFF;
  --pad-inline: clamp(20px, 4vw, 64px);
  --pad-block: clamp(20px, 3.2vw, 48px);
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

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

.page {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 4.5vh, 56px);
  padding: var(--pad-block) var(--pad-inline);
}

/* Masthead */

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

.brand {
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: clamp(168px, 16vw, 236px);
  height: auto;
}

.brandcopy {
  padding-top: clamp(0px, 1vw, 12px);
  text-align: right;
}

.brandname {
  margin: 0;
  color: var(--heading);
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.brandkind {
  margin: 5px 0 0;
  color: var(--text);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.35;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
}

.headline {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.25rem, 6.4vw, 5.8rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.headline__line {
  display: block;
}

.lede {
  max-width: 38ch;
  margin: clamp(20px, 3vh, 30px) 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.55;
}

/* Contacts */

.contacts {
  position: relative;
  padding: clamp(28px, 2.8vw, 44px);
  padding-left: calc(clamp(28px, 2.8vw, 44px) + 6px);
  background: var(--surface);
}

.contacts::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent);
  transform: scaleY(1);
  transform-origin: top center;
  animation: rail 0.9s cubic-bezier(0.22, 0.75, 0.25, 1) 0.18s both;
}

.contacts__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
}

.contacts h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.status__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.address {
  margin: clamp(20px, 2.5vh, 28px) 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  font-style: normal;
  line-height: 1.5;
}

.phones {
  display: grid;
  gap: 4px;
  margin: clamp(24px, 3.5vh, 36px) 0 0;
  padding: 0;
  list-style: none;
}

.phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "num call"
    "meta call";
  align-items: center;
  column-gap: 16px;
  margin: 0 -12px;
  padding: 16px 12px;
}

.phone__num {
  grid-area: num;
  color: var(--heading);
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.phone__meta {
  grid-area: meta;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.phone__call {
  grid-area: call;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.phone__call:hover {
  background: var(--accent-hover);
}

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

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.footer p {
  margin: 0;
}

/* Entrance */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rail {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.brand,
.brandcopy,
.headline__line,
.lede,
.contacts h2,
.status,
.address,
.phone__num,
.phone__meta,
.phone__call,
.footer p {
  animation: rise 0.65s cubic-bezier(0.22, 0.75, 0.25, 1) both;
}

.brand {
  animation-delay: 0.04s;
}

.brandcopy {
  animation-delay: 0.1s;
}

.headline__line:first-child {
  animation-delay: 0.18s;
}

.headline__line:last-child {
  animation-delay: 0.26s;
}

.lede {
  animation-delay: 0.36s;
}

.contacts h2 {
  animation-delay: 0.3s;
}

.status {
  animation-delay: 0.34s;
}

.address {
  animation-delay: 0.4s;
}

.phones li:nth-child(1) .phone__num {
  animation-delay: 0.48s;
}

.phones li:nth-child(1) .phone__meta {
  animation-delay: 0.52s;
}

.phones li:nth-child(1) .phone__call {
  animation-delay: 0.56s;
}

.phones li:nth-child(2) .phone__num {
  animation-delay: 0.6s;
}

.phones li:nth-child(2) .phone__meta {
  animation-delay: 0.64s;
}

.phones li:nth-child(2) .phone__call {
  animation-delay: 0.68s;
}

.footer p:first-child {
  animation-delay: 0.62s;
}

.footer p:last-child {
  animation-delay: 0.68s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */

@media (min-width: 1001px) {
  .contacts {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .contacts {
    padding: 32px 28px;
    padding-left: 34px;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .headline {
    font-size: clamp(2.5rem, 8.6vw, 4.5rem);
  }

  .contacts {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 156px;
  }

  .brandkind {
    display: none;
  }

  .brandcopy {
    padding-top: 2px;
  }

  .headline {
    font-size: clamp(2.25rem, 10.4vw, 3rem);
  }

  .lede {
    max-width: 34ch;
  }

  .contacts {
    padding: 26px 20px;
    padding-left: 26px;
  }

  .phone {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "num"
      "meta"
      "call";
    row-gap: 10px;
    margin: 0 -6px;
    padding: 18px 6px;
  }

  .phone__call {
    justify-self: start;
    margin-top: 4px;
  }

  .footer {
    display: grid;
    gap: 4px;
  }
}
