@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica-cyrillic.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  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 {
  --night: #0b2263;
  --deep: #07163f;
  --paper: #f0f4fb;
  --ink: #0c1c44;
  --ink-soft: #4a587c;
  --rule: #d3dcec;
  --lamp: #ffc477;
  --white: #fff;
  --gutter: clamp(16px, 4vw, 64px);
  --font: "Geologica", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font: 400 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Hero: photo, then the word, then the house and pines in front of it. */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  container-type: size;
  --word-base: 50.5%;
}

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, calc(100cqh * 2400 / 1343));
  aspect-ratio: 2400 / 1343;
  transform: translate(-50%, -50%);
}
.stage__layer { position: absolute; inset: 0; width: 100%; height: 100%; }

.word-wrap {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% - var(--word-base));
  display: flex;
  justify-content: center;
}
.word {
  font-size: min(29.5cqw, 54cqh);
  font-weight: 800;
  line-height: .71;
  letter-spacing: -.035em;
  white-space: nowrap;
  animation: rise 1.7s cubic-bezier(.16, 1, .3, 1) .15s both;
}
/* No opacity here on purpose: the word must stay visible even if animation is delayed. */
@keyframes rise {
  from { transform: translateY(36%); }
  to { transform: none; }
}

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px var(--gutter);
  font-size: 15px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 36px; }
.nav__links a, .nav__phone { opacity: .86; transition: opacity .2s; }
.nav__links a:hover, .nav__phone:hover { opacity: 1; }
.nav__phone { justify-self: end; white-space: nowrap; font-weight: 500; }

.hero__bottom {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding: 120px var(--gutter) clamp(22px, 4cqh, 40px);
  background: linear-gradient(to top, rgb(7 22 63 / .82), rgb(7 22 63 / 0));
}
.hero__lead { max-width: 25em; font-size: 17px; line-height: 1.4; }

.pill {
  display: inline-block;
  padding: 15px 38px;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  background: rgb(7 22 63 / .22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .25s, color .25s, border-color .25s;
}
.pill:hover { background: var(--lamp); border-color: var(--lamp); color: var(--deep); }

/* Services */
.services { background: var(--deep); color: var(--white); padding: clamp(72px, 10vw, 140px) var(--gutter); }
.services__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.services__head h2 {
  font-size: clamp(44px, 7.4vw, 112px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.services__head p { max-width: 26em; font-size: 19px; line-height: 1.45; color: #cdd7ee; }

.panels { display: flex; gap: 10px; height: clamp(460px, 68vh, 720px); }
.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--night);
  transition: flex-grow .6s cubic-bezier(.22, 1, .36, 1);
}
.panel.is-open { flex-grow: 2.6; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(to top, rgb(7 22 63 / .92) 15%, rgb(7 22 63 / .55) 55%, rgb(7 22 63 / 0));
  pointer-events: none;
}
.panel__toggle {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 2.4vw, 36px);
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.panel__toggle:focus-visible { outline-offset: -6px; }
.panel.is-open .panel__toggle { padding-bottom: calc(clamp(20px, 2.4vw, 36px) + 88px); }
.panel h3 { font-size: clamp(28px, 3.2vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.panel__text {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 2.4vw, 36px);
  bottom: clamp(20px, 2.4vw, 36px);
  width: min(30em, calc(100% - 48px));
  font-size: 18px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.panel.is-open .panel__text { opacity: 1; visibility: visible; transition: opacity .4s .2s; }

/* Reach */
.objects { background: var(--paper); padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(72px, 9vw, 130px); }
.reach { font-weight: 800; }
.reach__num {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: .02em .05em 0 0;
  font-size: min(35.5vw, 68vh);
  line-height: .8;
  letter-spacing: -.055em;
  background: var(--ink) url("img/garden.webp") 50% var(--shift, 45%) / cover no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.reach__text {
  display: block;
  max-width: 17em;
  margin-top: clamp(28px, 4vw, 56px);
  font-size: clamp(32px, 4.6vw, 78px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.towns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 32px);
  margin-top: clamp(56px, 7vw, 104px);
}
.towns li {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: clamp(22px, 2.5vw, 40px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* Floating call button */
.float {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--lamp);
  color: var(--deep);
  font: 700 17px/1.2 var(--font);
  white-space: nowrap;
  box-shadow: 0 10px 30px rgb(7 22 63 / .35);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s;
}
.float:hover { background: #ffd59b; }
.float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
.float__short { display: none; }

/* How we start */
.steps { background: var(--deep); color: var(--white); padding: clamp(72px, 10vw, 140px) var(--gutter); }
.steps h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.028em;
}
.steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(16px, 2vw, 32px);
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps__list li { padding-top: 18px; border-top: 2px solid var(--white); counter-increment: step; }
.steps__list li::before {
  content: counter(step);
  display: block;
  margin-bottom: clamp(24px, 4vw, 56px);
  font-size: clamp(56px, 6.4vw, 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.steps__list h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -.015em; }
.steps__list p { margin-top: 8px; max-width: 18em; color: #cdd7ee; }

/* Contacts */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px clamp(40px, 7vw, 120px);
  align-items: start;
  background: var(--night);
  color: var(--white);
  padding: clamp(80px, 11vw, 160px) var(--gutter);
}
.contacts h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.028em;
}
.contacts__call > p { margin-top: 18px; max-width: 24em; font-size: 19px; line-height: 1.4; color: #cdd7ee; }
.contacts__phone {
  display: block;
  width: fit-content;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(28px, 3.9vw, 72px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  white-space: nowrap;
  transition: color .25s;
}
.contacts__phone:hover { color: var(--lamp); }
.contacts__ways { padding-top: 10px; }
.contacts__ways .contacts__phone { margin-top: 0; }
.contacts__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(24px, 3vw, 48px);
  margin: clamp(36px, 4vw, 56px) 0 0;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / .22);
}
.contacts__info dt { font-size: 15px; color: #9fb0d8; }
.contacts__info dd { margin: 6px 0 0; font-size: 18px; line-height: 1.4; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.messengers a {
  padding: 10px 22px;
  border: 1.5px solid rgb(255 255 255 / .5);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.messengers a:hover { background: var(--white); border-color: var(--white); color: var(--deep); }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(24px, 4vw, 56px);
  padding: 24px var(--gutter) 28px;
  background: var(--night);
  border-top: 1px solid rgb(255 255 255 / .16);
  color: #b9c6e6;
  font-size: 15px;
}

/* Tall screens crop the house to its centre, so the word moves up to stay readable. */
@media (max-aspect-ratio: 1/1) {
  .hero { --word-base: 40.5%; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav { grid-template-columns: 1fr auto; padding-top: 20px; }
  .nav__links { display: none; }
  .hero__bottom { grid-template-columns: 1fr; justify-items: start; gap: 16px; padding-top: 140px; }
  .pill { justify-self: stretch; text-align: center; }

  .services__head { grid-template-columns: 1fr; }
  .panels { flex-direction: column; height: auto; gap: 12px; }
  .panel, .panel.is-open { flex: none; height: 74vw; min-height: 300px; }
  .panel__toggle { pointer-events: none; padding-bottom: calc(20px + 80px); }
  .panel.is-open .panel__toggle { padding-bottom: calc(20px + 80px); }
  .panel__text { opacity: 1; visibility: visible; font-size: 16px; }

  .reach__num { font-size: 50vw; }
  .towns { grid-template-columns: 1fr; margin-top: 48px; }
  .towns li { padding: 14px 0; border-top-width: 1px; border-color: var(--rule); }
  .towns li:first-child { border-top: 2px solid var(--ink); }

  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: 1fr; }
  .contacts__phone { font-size: 8.6vw; }
  .contacts__info { grid-template-columns: 1fr; }
  .float__short { display: inline; }
  .float__long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .word { animation: none; }
  .panel, .panel.is-open .panel__text, .float { transition: none; }
}
