:root {
  --bg: #0f1014;
  --panel: rgba(14, 16, 22, 0.72);
  --panel-strong: rgba(10, 11, 16, 0.86);
  --text: #f3f4f7;
  --muted: #c5cad4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Manrope", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

.page {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px 24px;
  background-image:
    linear-gradient(90deg, rgba(8, 9, 12, 0.9) 0%, rgba(8, 9, 12, 0.52) 42%, rgba(8, 9, 12, 0.72) 100%),
    url("./assets/coolray-bg.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 90, 31, 0.3), transparent 28%),
    linear-gradient(180deg, transparent 45%, rgba(15, 16, 20, 0.88) 100%);
}

.hero__content,
.content {
  position: relative;
  z-index: 1;
}

.hero__content {
  width: min(100%, 760px);
  margin-left: clamp(0px, 4vw, 56px);
}

.hero-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(132px, 14vw, 190px);
  pointer-events: none;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hero__eyebrow,
.section-label {
  margin: 0 0 12px;
  color: #ffd2c2;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4rem, 14vw, 8rem);
  max-width: 9ch;
}

.hero__price {
  display: block;
  margin-top: 10px;
  color: #ff7c3a;
  text-shadow: 0 10px 30px rgba(255, 90, 31, 0.28);
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 28px;
}

h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.hero__lead {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero__link,
.seller__text a,
.assurance__text a {
  color: #ffffff;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 700;
}

.card {
  backdrop-filter: blur(16px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trim p,
.trim p,
.intro__item span {
  margin: 0;
  color: var(--muted);
}

.hero__cta-wrap {
  margin-top: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b2b 0%, #ff3b08 100%);
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(255, 90, 31, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(255, 90, 31, 0.38);
  filter: brightness(1.05);
}

.cta-button:focus-visible {
  outline: 2px solid #ffd7c8;
  outline-offset: 4px;
}

.content {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 48px;
}

.seller,
.assurance {
  display: grid;
  gap: 24px;
}

.seller__copy {
  max-width: 760px;
}

.seller__text,
.assurance__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.seller__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seller__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.seller__link--ghost {
  background: transparent;
}

.card {
  border-radius: 30px;
  padding: 32px;
}

.gallery-showcase {
  display: block;
  margin: 20px 0;
}

.gallery-showcase__item {
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 0;
}

.gallery-showcase__item img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery-showcase__item {
  aspect-ratio: 4 / 3;
}

.gallery-showcase__item:hover img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

.gallery-showcase__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 11, 16, 0.86) 48%, rgba(10, 11, 16, 0.96) 100%);
  overflow: hidden;
  line-height: normal;
}

.gallery-showcase__caption strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.gallery-showcase__caption span {
  color: #d7dce5;
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.feature-strip__item {
  min-height: 100%;
}

.feature-strip__item p:last-child {
  line-height: 1.65;
}

.intro__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.intro__item {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.intro__item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.trim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.trim {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.trim p {
  line-height: 1.7;
}

.trim__price {
  margin: 0 0 16px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: #ffffff;
}

.trim--accent {
  background:
    linear-gradient(180deg, rgba(255, 90, 31, 0.18), rgba(14, 16, 22, 0.8)),
    var(--panel);
}

.trim__promo {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff3ed;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 90, 31, 0.4);
  font-size: 0.92rem;
  line-height: 1.2;
}

.trim__subheading,
.assurance__title,
.assurance__subtitle {
  margin: 18px 0 10px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assurance__title {
  font-size: 1.8rem;
}

.assurance__subtitle {
  font-size: 1.15rem;
}

.assurance__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.assurance__item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.trim__button {
  margin-top: auto;
  padding: 14px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.trim__button:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 32px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 16, 0.94);
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal__lead {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
}

.field select option {
  color: #111111;
}

.field--hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.cta-button--full {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #ffd7c8;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 1fr;
  gap: 28px;
  padding: 36px 24px 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(12, 13, 18, 0.96), rgba(9, 10, 14, 1));
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer-brand,
.footer-legal,
.footer-contacts {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-brand strong,
.footer-contact-grid strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-label {
  color: #ffd2c2;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 800;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.footer-contact-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contacts a,
.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 20px 34px;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px 72px;
    align-items: flex-end;
  }

  .hero__content {
    width: min(100%, 680px);
    margin-left: 0;
  }

  .hero-logo {
    top: 20px;
    right: 20px;
    width: 146px;
  }

  .trust-strip {
    gap: 8px;
  }

  .trust-pill {
    font-size: 0.82rem;
    padding: 9px 12px;
  }

  .content {
    margin-top: 24px;
  }

  .assurance__grid,
  .feature-strip,
  .intro__grid,
  .trim-grid {
    grid-template-columns: 1fr;
  }

  .gallery-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 24px 12px 56px;
    background-position: 74% center;
  }

  .hero__content {
    margin-left: 0;
  }

  .hero-logo {
    top: 14px;
    right: 12px;
    width: 112px;
  }

  .hero__eyebrow,
  .section-label {
    margin-bottom: 10px;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 16vw, 4.9rem);
    line-height: 0.9;
  }

  .hero__price {
    margin-top: 8px;
    font-size: 0.78em;
  }

  h2 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    margin-bottom: 18px;
  }

  h3 {
    font-size: clamp(1.4rem, 7vw, 1.9rem);
    margin-bottom: 12px;
  }

  .hero__lead {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .trust-pill {
    border-radius: 16px;
    font-size: 0.84rem;
    text-align: center;
  }

  .hero__cta-wrap {
    margin-top: 22px;
  }

  .cta-button,
  .trim__button,
  .seller__link {
    width: 100%;
    padding: 15px 18px;
  }

  .content {
    width: min(100% - 20px, 1180px);
    margin-top: 20px;
    margin-bottom: 24px;
  }

  .gallery-showcase {
    margin: 14px 0;
  }

  .feature-strip {
    gap: 14px;
    margin: 14px 0 20px;
  }

  .gallery-showcase__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-showcase__item {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .gallery-showcase__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .gallery-showcase__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px 14px;
    gap: 5px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 11, 16, 0.82) 46%, rgba(10, 11, 16, 0.96) 100%);
  }

  .gallery-showcase__caption strong {
    font-size: 1rem;
    line-height: 1.05;
  }

  .gallery-showcase__caption span {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .card {
    padding: 18px;
    border-radius: 24px;
  }

  .seller,
  .assurance,
  .lead-form {
    gap: 18px;
  }

  .seller__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .intro__item,
  .assurance__item {
    padding: 16px;
    border-radius: 18px;
  }

  .trim-grid {
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 22px;
  }

  .trim {
    gap: 0;
  }

  .trim__price {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 9vw, 2.25rem);
  }

  .trim__promo {
    margin-bottom: 12px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .trim p,
  .feature-strip__item p,
  .seller__text,
  .assurance__text {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .trim > p:not(.trim__price):not(.trim__promo) {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.68;
    color: #e3e6ec;
  }

  .trim__price {
    margin-bottom: 10px;
  }

  .trim__promo {
    display: block;
    margin-top: 6px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 16px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .trim__button {
    margin-top: 16px;
  }

  .trim__subheading,
  .assurance__title,
  .assurance__subtitle {
    margin-top: 14px;
    margin-bottom: 8px;
  }

  .assurance__title {
    font-size: 1.45rem;
  }

  .assurance__subtitle {
    font-size: 1rem;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal__dialog {
    width: 100%;
    max-height: min(88vh, 760px);
    overflow-y: auto;
    padding: 20px 16px 24px;
    border-radius: 24px 24px 0 0;
  }

  .modal__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .modal__lead {
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .lead-form {
    margin-top: 18px;
  }

  .field {
    gap: 6px;
  }

  .field input,
  .field select {
    padding: 15px 14px;
    border-radius: 16px;
  }

  .site-footer {
    gap: 22px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand strong,
  .footer-contact-grid strong {
    font-size: 1.25rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-logo {
    right: 10px;
    width: 96px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .hero__cta-wrap {
    margin-top: 18px;
  }

  .gallery-showcase__item {
    aspect-ratio: 4 / 3;
  }

  .gallery-showcase__item img {
    width: 100%;
    height: 100%;
  }

  .gallery-showcase__caption {
    padding: 12px;
  }

  .gallery-showcase__caption span {
    font-size: 0.8rem;
  }
}

@media (hover: none) {
  .gallery-showcase__item:hover img {
    transform: none;
    filter: none;
  }
}
