html {
  font-size: 16px;
}

body {
  margin: 0;
}

.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.25);
}

/* ——— Home / Телосложение ——— */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template: 1fr / 1fr;
  align-items: end;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
  color: #f5f0e8;
  background: #101010;
}

.home-hero-media,
.home-hero-shade,
.home-hero-top,
.home-hero-copy {
  grid-area: 1 / 1;
}

.home-hero-media,
.home-hero-shade {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  z-index: 0;
}

.home-hero-media {
  overflow: hidden;
}

.home-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: home-hero-ken 18s ease-out forwards;
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.35) 0%, rgba(12, 12, 12, 0.22) 35%, rgba(12, 12, 12, 0.82) 100%),
    linear-gradient(90deg, rgba(12, 12, 12, 0.58) 0%, rgba(12, 12, 12, 0.18) 55%, rgba(12, 12, 12, 0.4) 100%);
  pointer-events: none;
}

.home-hero-top {
  position: relative;
  z-index: 2;
  align-self: start;
  justify-self: end;
  padding: clamp(1rem, 3vw, 1.75rem);
  margin: 0;
}

.home-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 240, 232, 0.28);
  background: rgba(18, 18, 18, 0.45);
  color: rgba(245, 240, 232, 0.88);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.home-theme-btn:hover {
  border-color: var(--accent);
  color: #fff;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: start;
  max-width: 40rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  animation: home-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-brand {
  margin: 0 0 0.85rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.home-headline {
  margin: 0 0 0.85rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.25;
  color: rgba(245, 240, 232, 0.92);
}

.home-lead {
  margin: 0;
  max-width: 28rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.78);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.home-cta {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 12px;
  padding-inline: 1.45rem;
  animation: home-rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.home-contact {
  padding: clamp(2.75rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.home-contact-inner {
  max-width: 720px;
  margin: 0 auto;
}

.home-contact-title {
  margin: 0 0 0.55rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.home-contact-lead {
  margin: 0 0 1.5rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.home-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.home-contact-list li {
  display: grid;
  gap: 0.2rem;
}

.home-contact-label {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-contact-value {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

a.home-contact-value:hover {
  color: var(--accent);
}

.home-space {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse at top left, rgba(201, 169, 110, 0.12), transparent 45%),
    var(--bg-primary);
}

.home-space-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.home-space-title {
  margin: 0 0 0.65rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 600;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.home-space-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.home-space-visuals {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  align-items: stretch;
}

.home-space-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-secondary);
}

.home-space-shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-space-shot:hover img {
  transform: scale(1.03);
}

.home-space-shot--main {
  min-height: clamp(260px, 42vw, 420px);
}

.home-space-shot--side {
  min-height: clamp(220px, 36vw, 420px);
}

@keyframes home-hero-ken {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

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

@media (max-width: 767.98px) {
  html,
  body,
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .home-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      max(0.85rem, env(safe-area-inset-top))
      1.1rem
      max(1.35rem, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .home-hero-media,
  .home-hero-shade {
    position: absolute;
    inset: 0;
    grid-area: unset;
    width: auto;
    height: auto;
    min-height: 0;
    z-index: 0;
  }

  .home-hero-media img {
    object-position: 58% center;
  }

  .home-hero-top {
    position: relative;
    z-index: 2;
    grid-area: unset;
    align-self: flex-end;
    justify-self: unset;
    padding: 0;
    margin: 0 0 auto;
  }

  .home-theme-btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
  }

  .home-theme-btn [data-theme-label] {
    display: none;
  }

  .home-hero-copy {
    position: relative;
    z-index: 2;
    grid-area: unset;
    align-self: stretch;
    justify-self: unset;
    width: 100%;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
  }

  .home-brand {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 9vw, 2.35rem);
    line-height: 1.05;
    max-width: none;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .home-headline {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    line-height: 1.3;
  }

  .home-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: none;
  }

  .home-actions {
    margin-top: 1.1rem;
    width: 100%;
  }

  .home-cta {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
  }

  .home-space-visuals {
    grid-template-columns: 1fr;
  }

  .home-space-shot--side {
    min-height: 220px;
  }

  .home-contact,
  .home-space {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-media img,
  .home-hero-copy,
  .home-cta,
  .home-space-shot img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
