:root {
  --bg: #f5f3ec;
  --ink: #212121;
  --orange: #fc9709;
  --white: #fff;
  --footer: #212121;
  --header-pad: clamp(16px, 5.56cqi, 80px);
  font-family: "Open Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--bg);
  container-type: inline-size;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 74px;
  padding: 12px var(--header-pad);
}

.site-header__start,
.site-header__end,
.site-nav,
.site-lang summary,
.site-nav__drop summary,
.site-phone {
  display: flex;
  align-items: center;
}

.site-header__start {
  gap: clamp(20px, 3.9cqi, 56px);
  min-width: 0;
}

.site-header__end {
  gap: 24px;
  flex-shrink: 0;
}

.site-header__logo img {
  width: 113px;
  height: 50px;
  object-fit: cover;
}

.site-header__burger {
  display: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.site-header__icon-close {
  display: none;
}

.site-nav {
  gap: 24px;
}

.site-nav__link,
.site-lang summary,
.site-nav__drop summary {
  gap: 6px;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.32px;
  cursor: pointer;
  list-style: none;
}

.site-nav__drop summary::-webkit-details-marker,
.site-lang summary::-webkit-details-marker {
  display: none;
}

.site-nav__link.is-current,
.site-menu__link.is-current,
.site-nav__sub.is-current {
  font-weight: 600;
}

.site-nav__drop,
.site-lang {
  position: relative;
}

.site-nav__panel,
.site-lang__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
  padding: 16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.site-lang__panel {
  min-width: 120px;
  right: 0;
  left: auto;
}

.site-nav__sub,
.site-lang__panel a,
.site-menu__link,
.site-menu__title {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.32px;
}

.site-nav__muted {
  color: rgba(33, 33, 33, 0.45);
}

.site-phone {
  gap: 16px;
  height: 48px;
  padding: 0 2px 0 20px;
  color: var(--ink);
  background: var(--white);
  border-radius: 52px;
  box-shadow: 0 1px 6px rgba(33, 33, 33, 0.2);
}

.site-phone__text {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.site-phone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 40px;
}

.site-phone--lg {
  align-self: flex-start;
  width: max-content;
  height: 60px;
  padding-left: 24px;
}

.site-phone--lg .site-phone__text {
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.site-phone--lg .site-phone__icon {
  width: 56px;
  height: 56px;
}

.site-menu {
  display: none;
}

.site-header.is-open {
  margin-bottom: 8px;
  background: var(--white);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.site-header.is-open .site-header__icon-menu {
  display: none;
}

.site-header.is-open .site-header__icon-close {
  display: block;
}

.site-header.is-open .site-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px var(--header-pad) 28px;
}

.site-menu__link,
.site-menu__title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0;
}

.site-menu__sub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 16px;
}

.site-footer {
  background: var(--footer);
  color: var(--white);
  container-type: inline-size;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, clamp(140px, 25.7cqi, 370px)) minmax(0, 1fr);
  gap: clamp(40px, 13.9cqi, 200px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(32px, 5.56cqi, 80px);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.site-footer__eyebrow,
.site-footer__heading {
  margin: 0;
  color: var(--orange);
  font-family: Oswald, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer__about {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4.2cqi, 60px);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__col--contacts {
  container-type: inline-size;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.site-footer__phone {
  font-size: clamp(15px, 12.7cqi, 25px);
  line-height: 1.36;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .site-nav {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }

  .site-header__bar {
    min-height: 66px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 12px;
  }

  .site-phone:not(.site-phone--lg) {
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-phone:not(.site-phone--lg) .site-phone__text {
    display: none;
  }

  .site-phone:not(.site-phone--lg) .site-phone__icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  /* Brand gap 40px minus 16px gives the same 24px as under the other footer headings. */
  .site-footer__about {
    margin-top: -16px;
  }

  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .site-footer__col--hours {
    grid-column: 2;
    grid-row: 1;
  }

  .site-footer__col--contacts {
    grid-column: 1 / -1;
  }
}

/* Floating back-to-top button: shows after a short scroll down (look from the mobile footer frame 848:960). */

.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  visibility: hidden;
}

.scroll-top[hidden] {
  display: none;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.scroll-top img {
  transform: rotate(-90deg);
}

/* Hover states (Figma 796:1025): an 8% black layer over the orange circle and the white back-to-top button. */
.site-phone__icon,
.scroll-top {
  transition: background-image 0.2s, opacity 0.25s, transform 0.25s, visibility 0.25s;
}

@media (hover: hover) {
  .site-phone:hover .site-phone__icon,
  .scroll-top:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08));
  }
}
