:root {
  --primary: #ffffff;
  --secondary: #ffffff;
  --accent-bright: #d8effa;
  --night: #020b14;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

body {
  color: var(--primary);
  font-family: Arial, Helvetica, sans-serif;
}

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

.brochure-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--night);
  background-image: url("kaspiy-auto-hero-black.webp");
  background-position: center center;
  background-size: cover;
}

.background-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 8, 15, 0.56) 0%, rgba(1, 8, 15, 0.12) 58%, rgba(1, 7, 12, 0.24) 100%),
    linear-gradient(90deg, rgba(1, 9, 17, 0.54) 0%, rgba(1, 9, 17, 0.14) 68%, transparent 100%);
  pointer-events: none;
}

.brochure-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 38px) clamp(20px, 2.5vw, 48px) clamp(18px, 2vw, 34px);
}

header {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
}

header h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(32px, 3.35vw, 56px);
  font-weight: 650;
  letter-spacing: 0.18em;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.76);
}

header::after {
  display: block;
  width: 48px;
  height: 1px;
  margin: clamp(13px, 1.5vh, 20px) auto 0;
  background: rgba(169, 208, 229, 0.9);
  content: "";
}

.message {
  width: min(92vw, 1640px);
  margin-top: clamp(15px, 1.8vh, 24px);
  color: var(--secondary);
  font-size: clamp(17px, 1.45vw, 25px);
  font-weight: 500;
  letter-spacing: 0.002em;
  line-height: 1.27;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.68);
}

.message p {
  margin: 0 0 0.32em;
}

.message p:nth-child(3) {
  margin-top: 0.58em;
  margin-bottom: 0.58em;
  color: var(--primary);
  font-weight: 650;
}

.contact-area {
  display: flex;
  width: fit-content;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: clamp(10px, 1.3vh, 18px);
}

.phone-number {
  display: block;
  width: fit-content;
  color: var(--primary);
  font-size: clamp(44px, 5.2vw, 84px);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.92), 0 0 26px rgba(0, 0, 0, 0.5);
  transition: color 160ms ease, transform 160ms ease;
}

.phone-number:hover,
.phone-number:focus-visible {
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 24px);
  margin-top: clamp(14px, 1.7vh, 24px);
}

.social-link {
  display: grid;
  width: clamp(50px, 4.6vw, 76px);
  height: clamp(50px, 4.6vw, 76px);
  place-items: center;
  border: 1px solid rgba(226, 235, 240, 0.72);
  border-radius: 22%;
  background: rgba(4, 18, 29, 0.38);
  color: var(--primary);
  backdrop-filter: blur(6px);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  color: #07111a;
  transform: translateY(-3px);
}

.instagram-glyph {
  position: relative;
  display: block;
  width: 57%;
  height: 57%;
  border: 3px solid currentColor;
  border-radius: 27%;
}

.instagram-glyph::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 43%;
  height: 43%;
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.instagram-glyph::after {
  position: absolute;
  top: 14%;
  right: 14%;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.facebook {
  border-radius: 50%;
}

.facebook span {
  align-self: end;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(47px, 4.5vw, 75px);
  font-weight: 700;
  line-height: 0.86;
}

a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

@media (max-aspect-ratio: 4 / 3) {
  .brochure-page { background-position: 71% center; }
  .background-shade {
    background:
      linear-gradient(180deg, rgba(1, 8, 15, 0.72) 0%, rgba(1, 8, 15, 0.3) 68%, rgba(1, 7, 12, 0.27) 100%),
      linear-gradient(90deg, rgba(1, 9, 17, 0.48), transparent 100%);
  }
}

@media (max-width: 700px) {
  .brochure-content { padding: 15px 16px 16px; }
  header h1 { font-size: clamp(27px, 8.5vw, 39px); }
  .message {
    width: 100%;
    margin-top: 14px;
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.22;
  }
  .message p { margin-bottom: 0.32em; }
  .phone-number { font-size: clamp(34px, 10vw, 48px); }
  .social-link { width: 48px; height: 48px; }
  .facebook span { font-size: 45px; }
}

@media (max-height: 720px) and (min-width: 701px) {
  .brochure-content { padding-top: 16px; padding-bottom: 14px; }
  header h1 { font-size: 36px; }
  .message {
    margin-top: 13px;
    font-size: clamp(15px, 1.38vw, 21px);
    line-height: 1.2;
  }
  .phone-number { font-size: clamp(46px, 5.3vw, 78px); }
  .social-links { margin-top: 10px; }
  .social-link { width: 48px; height: 48px; }
  .facebook span { font-size: 45px; }
}

@media (max-height: 640px) {
  .message { font-size: clamp(12px, 2.55vh, 20px); line-height: 1.08; }
  .message p { margin-bottom: 0.12em; }
  .phone-number { font-size: clamp(34px, 7.2vh, 54px); }
  .social-links { margin-top: 7px; }
  .social-link { width: 40px; height: 40px; }
  .facebook span { font-size: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-number,
  .social-link { transition: none; }
}
