@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@font-face {
  font-family: "Druk Wide Cyr";
  src: url("fonts/Druk-Wide-Cyr-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("fonts/Onest-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --sand: #c2a998;
  --brown: #24150f;
  --orange: #d96b27;
  --page-padding: clamp(28px, 4vw, 96px);
  --header-height: 80px;
  --display-font: "Druk Wide Cyr", "Arial Black", sans-serif;
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--sand);
  color: var(--orange);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}
body {
  margin: 0;
  background: var(--brown);
  color: var(--sand);
  font-family: "Onest", sans-serif;
  animation: alternate fadeIn 0.25s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 7px;
}
button:disabled {
  cursor: default;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  color: var(--orange);
  font-family: var(--display-font);
  font-weight: 700;
}
h1,
h2 {
  font-size: clamp(42px, 5vw, 110px);
  line-height: 1.22;
  letter-spacing: normal;
}
h1,
.services h2,
.setup h2 {
  text-transform: uppercase;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 12px;
  background: var(--sand);
  color: var(--brown);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  padding: 13px var(--page-padding);
  color: var(--orange);
}

.site-header::after {
  content: "";
  flex: 1;
  height: 3px;
  background: currentColor;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font: 700 clamp(30px, 3.34vw, 72px) / 1 var(--display-font);
  letter-spacing: normal;
}
.brand-cloud {
  width: clamp(42px, 4.38vw, 94px);
  height: auto;
}
.site-header .brand {
  flex-shrink: 0;
  gap: 14px;
  font-size: clamp(24px, 2.5vw, 48px);
}
.site-header .brand-cloud {
  width: clamp(34px, 3.3vw, 64px);
}
.screen {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(24px, 3svh, 36px) var(--page-padding);
}

#main {
  padding-top: var(--header-height);
}

#main > .screen + .screen {
  margin-top: clamp(80px, 12svh, 160px);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(32px, 6svh, 70px);
}
.hero h1 span {
  display: block;
}
.intro {
  margin-top: 22px;
  font-size: clamp(20px, 1.67vw, 36px);
  line-height: 1.3;
}
.hero-action {
  margin-top: 48px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 22px 56px;
  border: 0;
  border-radius: 30px;
  background: var(--orange);
  color: var(--brown);
  font-size: clamp(20px, 1.88vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition:
    background 0.14s ease-in-out
}
.button:hover {
  background: var(--sand);
}
.price-note {
  margin-top: 12px;
  font-size: clamp(15px, 1.25vw, 26px);
  line-height: 1.4;
}

.services {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(190px, 23svh, 280px);
  padding: 18px 20px;
  border-radius: 28px;
  background: var(--orange);
  color: var(--brown);
  font: 700 clamp(18px, 2vw, 50px) / 1.2 var(--display-font);
  letter-spacing: normal;
  text-transform: uppercase;
}
.service-provider {
  font:
    500 clamp(16px, 1.15vw, 24px) / 1.4 "Onest",
    sans-serif;
  text-transform: none;
}
.service-card-more {
  grid-column: span 2;
  position: relative;
  padding-bottom: 66px;
  background: var(--sand);
  text-transform: none;
  transition: background 0.14s ease;
  & svg {transition: transform 0.14s ease;}
}
.service-card-more:hover {
  background: var(--orange);
  & svg {
    transform: translateX(6px);
  }
}
.service-card-more svg {
  position: absolute;
  right: 30px;
  bottom: 24px;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.setup {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.steps {
  width: min(100%, 1200px);
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 15px;
  padding: 30px 0;
}
.step-number {
  color: var(--orange);
  margin-bottom: 0;
  font: 700 52px/1.2 var(--display-font);
  letter-spacing: normal;
}
.steps h3 {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: clamp(24px, 1.67vw, 36px);
  font-weight: 650;
}
.steps p,
.setup-note {
  font-size: clamp(18px, 1.1vw, 24px);
  line-height: 1.5;
}
.setup-note {
  max-width: 740px;
  margin-top: 28px;
}

.purchase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.purchase-content h2 {
  line-height: 1.4;
  font-size: clamp(56px, 7vw, 110px);
}
.purchase-content h2 span {
  display: block;
}
.purchase-content .button {
  margin-top: 64px;
  min-width: 530px;
}

.payment-methods {
  position: absolute;
  bottom: 32px;
  left: var(--page-padding);
  right: var(--page-padding);
  font: 700 clamp(24px, 2.5vw, 54px) / 1.3 var(--display-font);
  letter-spacing: normal;
}

/* Smaller desktop windows keep the same composition without clipped content. */
@media (min-width: 769px) and (max-height: 760px) {
  .button {
    min-height: 68px;
    padding: 18px 36px;
    border-radius: 22px;
  }
  .services {
    gap: 32px;
  }
  .steps {
    margin-top: 32px;
  }
  .steps li {
    padding: 22px 0;
  }
}

@media (min-width: 769px) and (max-height: 850px) {
  .services {
    gap: 24px;
  }
  .service-card {
    min-height: 160px;
  }
  .steps {
    margin-top: 24px;
  }
  .steps li {
    padding: 18px 0;
  }
  .setup-note {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }
  h1,
  h2 {
    font-size: clamp(25px, 5.7vw, 44px);
    letter-spacing: normal;
  }
  .site-header {
    padding: 18px var(--page-padding);
  }
  .brand {
    gap: 10px;
    font-size: clamp(26px, 5.7vw, 38px);
  }
  .brand-cloud {
    width: 36px;
  }
  .site-header .brand {
    gap: 8px;
    font-size: clamp(22px, 4.7vw, 30px);
  }
  .site-header .brand-cloud {
    width: 30px;
  }
  .screen {
    min-height: auto;
    padding: 52px var(--page-padding);
  }
  #main > .screen + .screen {
    margin-top: 48px;
  }
  .hero {
    min-height: calc(100svh - var(--header-height));
    padding-top: max(56px, 12svh);
    padding-bottom: 28px;
  }
  .hero h1 {
    font-size: clamp(22px, 4.85vw, 38px);
    line-height: 1.5;
  }
  .intro {
    font-size: 18px;
    margin-top: 20px;
    line-height: 1.5;
  }
  .desktop-break {
    display: none;
  }
  .hero-action {
    margin-top: 40px;
  }
  .button {
    width: 100%;
    min-height: 68px;
    padding: 20px 18px;
    border-radius: 20px;
    font-size: 18px;
  }
  .price-note {
    font-size: 13px;
    margin-top: 12px;
  }
  .services {
    gap: 28px;
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .service-card {
    min-height: 176px;
    padding: 20px 14px;
    border-radius: 20px;
    font-size: clamp(18px, 4.3vw, 30px);
  }
  .steps {
    margin-top: 32px;
  }
  .steps li {
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 24px 0;
  }
  .step-number {
    font-size: 28px;
  }
  .steps h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .steps p,
  .setup-note {
    font-size: 16px;
  }
  .purchase {
    display: block;
    padding-top: 62px;
    padding-bottom: 32px;
  }
  .purchase-content {
    width: 100%;
    container-type: inline-size;
  }
  #purchase-title {
    font-size: clamp(24px, 9.4cqi, 64px);
    line-height: 1.35;
  }
  .purchase-content h2 span {
    white-space: nowrap;
  }
  .purchase-content .button {
    min-width: 0;
    margin-top: 32px;
  }
  .payment-methods {
    position: static;
    margin-top: 52px;
    font-size: clamp(18px, 4.4vw, 30px);
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(16px, 4.6vw, 28px);
    line-height: 1.4;
  }
  .hero .intro {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.4;
  }
  .hero-action {
    margin-top: 24px;
  }
  .hero .button {
    min-height: 60px;
    padding: 16px;
    font-size: 16px;
  }
  .price-note {
    font-size: 12px;
    margin-top: 10px;
  }
}

/* Compact phones: keep display text and card labels inside their columns. */
@media (max-width: 470px) {
  #main,
  .site-header,
  .site-footer {
    --page-padding: clamp(20px, 6vw, 28px);
  }

  #main .screen {
    padding-block: 40px;
  }

  #main .hero {
    padding-top: clamp(36px, 8svh, 68px);
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(17px, 4.7vw, 22px);
    line-height: 1.45;
  }

  .screen h2 {
    font-size: clamp(21px, 5.4vw, 25px);
    line-height: 1.35;
  }

  #main .intro {
    font-size: clamp(16px, 4vw, 18px);
    line-height: 1.5;
  }

  #main .button {
    min-height: 60px;
    padding: 18px 14px;
    font-size: 16px;
  }

  .service-grid {
    gap: 10px;
  }

  .service-card {
    min-width: 0;
    min-height: clamp(160px, 42vw, 190px);
    padding: 18px 12px;
    font-size: clamp(14px, 3.7vw, 18px);
  }

  .service-provider {
    font-size: 14px;
  }

  .service-card-more {
    padding-bottom: 60px;
    font-size: clamp(17px, 4.4vw, 21px);
  }

  .steps li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 24px;
  }

  .step-number {
    font-size: 25px;
  }

  .steps h3 {
    font-size: clamp(19px, 4.7vw, 22px);
    line-height: 1.35;
  }

  .steps p,
  .setup-note {
    font-size: 15px;
    line-height: 1.55;
  }

  .purchase-content {
    min-width: 0;
  }

  .payment-methods {
    font-size: clamp(16px, 4.3vw, 20px);
    line-height: 1.5;
  }
}

.site-footer {
  padding: 32px var(--page-padding) 40px;
  color: var(--sand);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer p {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button,
  .service-card-more {
    transition: none;
  }
}
