:root {
  --yellow: #f5c400;
  --overlay-yellow-rgb: 253, 200, 4;
  --yellow-strong: #ffd21a;
  --gimax-yellow: #fec542;
  --gimax-yellow-hover: #eaba3c;
  --ink: #151515;
  --muted: #5f5f5f;
  --white: #ffffff;
  --line: rgba(21, 21, 21, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

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

.site-header {
  position: fixed;
  top: 26px;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 24px;
  transition: transform 180ms ease, top 180ms ease;
}

.site-header.is-compact {
  top: 14px;
}

.header-panel {
  width: min(var(--max-width), 100%);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--yellow);
  padding: 160px 24px 8vh;
}

.hero::after {
  content: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero-desktop.jpg");
  background-size: cover;
  background-position: 64% center;
  opacity: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--overlay-yellow-rgb), 0.58) 0%,
    rgba(var(--overlay-yellow-rgb), 0.88) 18%,
    rgba(var(--overlay-yellow-rgb), 0.40) 70%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 0 0 22px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.42);
  overflow-wrap: normal;
  white-space: normal;
}

.hero p {
  width: min(560px, 100%);
  margin: 0 0 34px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
}

.hero-link {
  margin-top: 6px;
}

.button {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid #000;
  border-radius: 0;
  letter-spacing: 0;
  transition: all 0.3s ease-out;
}

.button::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 30px;
  height: 2px;
  background: #000;
  transition: all 0.5s;
}

.button:hover::after {
  transform: translate(0%, -50%);
}

.button.prim {
  color: #000;
  background: var(--gimax-yellow);
  border-color: var(--gimax-yellow);
  padding: 9px 33px;
}

.button.prim:hover {
  background: var(--gimax-yellow-hover);
  border-color: var(--gimax-yellow-hover);
  color: #000;
}

.button.prim::after,
.button.prim:hover::after {
  background: #000;
}

.hero .link .button {
  position: relative;
  background: none;
  color: #000;
  border: 2px solid #000;
  padding: 15px 25px;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  box-shadow: none;
}

.hero .link .button:hover {
  text-decoration: none;
  color: #000;
  transform: none;
  border: 2px solid #848484;
}

.hero .link .button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 2px;
  background: #000;
  transition: all 0.5s;
}

.hero .link .button:hover::after {
  transform: translate(-20%, -50%);
  background: #000;
}

.footer-bottom a {
  color: var(--ink);
  font-weight: 800;
  border-bottom: 2px solid var(--yellow-strong);
}

.site-footer {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: 74px 24px 26px;
}

.footer-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 42px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.footer-block h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.footer-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 1.06rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contact a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  border-bottom: 2px solid var(--yellow-strong);
}

.footer-bottom {
  width: min(var(--max-width), 100%);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1180px) {
  .hero-media {
    background-image: url("assets/images/hero-tablet.jpg");
    background-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(var(--overlay-yellow-rgb), 0.84) 0%,
      rgba(var(--overlay-yellow-rgb), 1.00) 21%,
      rgba(var(--overlay-yellow-rgb), 0.4) 76%
    );
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 24px;
    padding: 0 24px;
  }

  .header-panel {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .brand {
    font-size: 1.42rem;
  }

  .phone-link {
    width: 100%;
  }

  .hero {
    min-height: 100svh;
    padding: 150px 24px 7vh;
  }

  .site-footer {
    padding: 73px 24px 24px;
  }

  .hero-media {
    background-image: url("assets/images/hero-mobile.jpg");
    background-position: center center;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(var(--overlay-yellow-rgb), 0.4) 0%,
      rgba(var(--overlay-yellow-rgb), 0.88) 65%,
      rgba(var(--overlay-yellow-rgb), 1) 100%
    );
  }

  .hero h1 {
    width: min(620px, 100%);
    max-width: 100%;
    font-size: clamp(2.35rem, 13.2vw, 4.2rem);
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero .link .button {
    font-size: 15px;
    padding: 12px 25px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
