:root {
  color-scheme: light;
  --paper: #fcfaf7;
  --ink: #29221c;
  --secondary: #5d5047;
  --orange: #ef8025;
  --accent-text: #a14216;
  --rule: #e4d8cc;
  --clay: #f1e2d2;
  --shell-width: 83.125rem;
  --gutter: clamp(1rem, 3.82vw, 3.4375rem);
  font: 100% / 1.4 "Arial Nova", Arial, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
section[id], footer[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(var(--shell-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 1; padding: .6rem .8rem; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { min-height: 6.625rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { justify-self: start; }
.brand img { width: 9.0625rem; height: auto; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 4.3vw, 3.875rem); }
.site-nav a { padding-block: .65rem; font-size: 1.25rem; }
.site-nav a:first-child { font-weight: 700; }
.site-nav a:hover, .header-phone:hover, .contact-phones a:hover { color: var(--accent-text); }
.header-phone { justify-self: end; font-size: 1.4375rem; font-weight: 700; white-space: nowrap; }

.hero {
  display: grid;
  align-items: center;
  min-height: 30.4375rem;
  border-radius: 1.5rem;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  color: #fff;
  background: linear-gradient(90deg, rgb(27 22 18 / 91%) 0%, rgb(27 22 18 / 82%) 32%, rgb(27 22 18 / 35%) 61%, transparent 100%),
    #342820 url("assets/windows-astana.jpg") center / cover no-repeat;
}
.hero-content { max-width: 50rem; }
.location { display: flex; align-items: center; gap: .8rem; color: #fff0da; font-size: clamp(1rem, 1.5vw, 1.3125rem); font-weight: 700; }
.location::before { content: ""; flex: 0 0 1.375rem; height: 3px; background: var(--orange); }
.hero h1 { margin-top: 1.85rem; font-size: clamp(2.5rem, 5.1vw, 4.5625rem); line-height: .98; letter-spacing: -.025em; }
.hero-summary { margin-top: 1rem; font-size: clamp(1.0625rem, 1.75vw, 1.5625rem); line-height: 1.3; }
.services-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 3.25rem; margin-top: 2.25rem; padding: .6rem 1.375rem; border-radius: .5rem; background: var(--orange); color: #281a12; font-size: 1.375rem; font-weight: 700; }
.services-link:hover { background: #ffa354; }
.services-link:focus-visible { outline-color: #fff; }
.down-arrow { position: relative; width: 1rem; height: 1.25rem; }
.down-arrow::before, .down-arrow::after { content: ""; position: absolute; }
.down-arrow::before { top: 0; bottom: 2px; left: 7px; border-left: 2px solid; }
.down-arrow::after { width: .625rem; height: .625rem; left: 3px; bottom: 1px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }

.services { display: grid; grid-template-columns: .83fr 2.17fr; gap: 2.375rem; padding-block: 4.125rem 2.875rem; }
.services h2, .screens h2 { font-size: clamp(2rem, 3.65vw, 3.25rem); line-height: 1.08; letter-spacing: -.018em; }
.services h2 { padding-top: .375rem; }
.services h2::after { content: ""; display: block; margin-top: .95rem; width: 2.3125rem; height: 3px; background: var(--orange); }
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.625rem; }
.services-list li { border-top: 1px solid var(--rule); padding-block: .85rem 1.125rem; min-height: 8.0625rem; }
.services-list h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; }
.services-list p { max-width: 27ch; margin-top: .375rem; font-size: clamp(1rem, 1.55vw, 1.375rem); line-height: 1.26; color: var(--secondary); }

.screens { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27.875rem); gap: 1.25rem; padding: 1.25rem; border-radius: 1.5rem; background: var(--clay); }
.screens-content { padding: 1.375rem 1.875rem; }
.screens-content > p { margin-top: .625rem; color: var(--secondary); font-size: clamp(1.0625rem, 1.8vw, 1.5625rem); }
.screen-types { display: flex; flex-wrap: wrap; gap: .75rem .6875rem; max-width: 43rem; margin-top: 1.625rem; }
.screen-types li { padding: .5rem 1.0625rem; border-radius: 100vmax; color: var(--ink); background: #fcf5eb; font-size: clamp(.9375rem, 1.5vw, 1.3125rem); font-weight: 700; }
.screens-photo { width: 100%; height: 21.125rem; object-fit: cover; border-radius: .9375rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; margin-top: 3.125rem; padding-block: 1.875rem 2.9rem; border-top: 1px solid var(--rule); }
.site-footer h2 { font-size: clamp(1.75rem, 2.65vw, 2.3125rem); line-height: 1.1; }
.contact-phones { display: flex; gap: clamp(1rem, 4.8vw, 4.375rem); font-size: clamp(1.0625rem, 1.85vw, 1.625rem); font-style: normal; font-weight: 700; }
.contact-phones a { white-space: nowrap; }
.site-footer p { justify-self: end; color: var(--accent-text); font-size: clamp(1rem, 1.55vw, 1.375rem); font-weight: 700; }
.site-credit { grid-column: 1 / -1; color: var(--secondary); font-size: .9375rem; }
.site-credit a { text-decoration: underline; text-underline-offset: .18em; }
.site-credit a:hover { color: var(--accent-text); }

@media (max-width: 68rem) {
  .screens { grid-template-columns: minmax(0, 1fr) 34%; }
  .screens-content { padding-inline: 1rem; }
  .site-nav { gap: 1.5rem; }
  .site-nav a, .header-phone { font-size: 1.0625rem; }
  .contact-phones { gap: 1.5rem; }
}

@media (max-width: 48rem) {
  .site-header { grid-template-columns: 1fr auto; gap: .15rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
  .brand img { width: 7.25rem; }
  .header-phone { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; justify-content: center; gap: .35rem 1.5rem; }
  .site-nav a { font-size: .9375rem; padding-block: .65rem; }
  .hero { min-height: 27rem; border-radius: 1rem; padding: 2rem 1.375rem; background-image: linear-gradient(90deg, rgb(27 22 18 / 91%), rgb(27 22 18 / 66%) 100%), url("assets/windows-astana.jpg"); background-position: 54% center; }
  .hero h1 { line-height: 1.02; margin-top: 1.25rem; }
  .desktop-break { display: none; }
  .services-link { font-size: 1.125rem; margin-top: 1.5rem; }
  .services { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem 1.75rem; }
  .services-list li { min-height: 0; padding-block: .8rem 1.2rem; }
  .screens { grid-template-columns: 1fr; border-radius: 1rem; padding: 1rem; }
  .screens-content { padding: .5rem .25rem 0; }
  .screens-photo { height: clamp(12rem, 55vw, 20rem); }
  .site-footer { grid-template-columns: 1fr; gap: .75rem; margin-top: 2rem; padding-block: 1.5rem 2rem; }
  .contact-phones { flex-wrap: wrap; gap: .375rem 1.375rem; }
  .contact-phones a { padding-block: .4rem; }
  .site-footer p { justify-self: start; }
}

@media (max-width: 30rem) {
  .site-nav { gap: .2rem 1.125rem; }
  .header-phone { font-size: .9375rem; }
  .hero { min-height: 25rem; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.75rem); }
  .services-list { grid-template-columns: 1fr; }
  .services-list p { max-width: 36ch; }
  .screen-types { gap: .5rem; margin-top: 1rem; }
  .screen-types li { padding: .375rem .75rem; }
}

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

.social-float {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: flex;
  gap: .625rem;
}

.social-float a {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 .25rem 1rem rgb(0 0 0 / 20%);
}

.social-float a:focus-visible { outline-color: var(--ink); }

.instagram-float { background: linear-gradient(145deg, #6744bb, #bb266a 65%, #bc4631); }
.instagram-float:hover { background: #a42265; }
.whatsapp-float { background: #128346; }
.whatsapp-float:hover { background: #0d6d3a; }

/* Keep the last line of the contacts section above the floating buttons. */
.site-footer { padding-block-end: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
