#head {
  --nav-height: 110px;
  --nav-gutter: clamp(24px, 5vw, 60px);
  --nav-ink: #2d2926;
  --nav-panel: #fff0e3;
  height: var(--nav-height);
  box-sizing: border-box;
}
#head.fixed { --nav-ink: #fff6ed; --nav-panel: #302e2c; }
#head .around_header {
  box-sizing: border-box;
  width: min(100%, 1120px);
  height: 100%;
  padding: 0 var(--nav-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#head .logo_href { flex: 0 0 auto; display: block; padding: 0; }
#head #logo { width: clamp(125px, 24vw, 170px); margin: 0; float: none; }
#head #logo svg { display: block; width: 100%; height: auto; }
#head .links {
  float: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 50px);
  color: var(--nav-ink);
}
#head .links > .link {
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0;
  color: var(--nav-ink);
}
#head .links > .link:not(.telegram-nav) { display: flex; }
#head .links > .telegram-nav,
#head .menu-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-target, 48px);
  height: var(--nav-target, 48px);
  box-sizing: border-box;
  color: var(--nav-ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
#head .links > .telegram-nav svg, #head .menu-toggle svg { width: 24px; height: 24px; }
#head .menu-toggle { display: none; }
#head .links :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#head #flip-menu {
  display: none;
  position: absolute;
  box-sizing: border-box;
  top: 100%;
  right: var(--nav-gutter);
  width: min(340px, calc(100% - 2 * var(--nav-gutter)));
  height: auto;
  max-height: calc(100svh - var(--nav-height));
  overflow-y: auto;
  padding: 8px;
  background: var(--nav-panel);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 28px rgb(0 0 0 / .24);
}
#head #flip-menu .links2 { padding: 0; }
#head #flip-menu .link2 {
  display: flex;
  align-items: center;
  min-height: var(--nav-target, 48px);
  padding: 0 14px;
  border-radius: 6px;
  text-align: left;
  color: var(--nav-ink);
  font-size: 17px;
}
#head #flip-menu .link2:hover, #head .menu-toggle:hover { background: rgb(128 128 128 / .13); }
@media (max-width: 820px) {
  #head .links { gap: 8px; }
  #head .links > .link:not(.telegram-nav) { display: none; }
  #head .menu-toggle { display: inline-flex; }
  #head .menu-toggle[aria-expanded="true"] + #flip-menu { display: block; }
}
@media (max-width: 820px) and (pointer: coarse) {
  #head { --nav-target: 74px; }
  #head .links > .telegram-nav svg, #head .menu-toggle svg { width: 36px; height: 36px; }
  #head #flip-menu .link2 { font-size: 25px; }
}
.lc-home #head { position: sticky; top: 0; z-index: 10; }
.lc-home :is(#uslugi, #about, #gallery, #forms) { scroll-margin-top: 110px; }
#live-content {
  height: auto;
  min-height: min(800px, max(490px, calc(100svh - 110px)));
  display: grid;
  align-items: center;
  box-sizing: border-box;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  background: #302e2c;
}
#live-content::after {
  background: linear-gradient(90deg, rgb(23 20 18 / .76), rgb(23 20 18 / .25)), rgb(23 20 18 / .18);
}
#live-content .video-bg { inset: 0; height: 100%; }
#live-content .video_media { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; object-position: center; }
#live-content .live-around {
  box-sizing: border-box;
  position: relative;
  inset: auto;
  width: min(100%, 1120px);
  height: auto;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 88px) clamp(24px, 5vw, 60px);
}
#live-content .live-lines-1, #live-content .img-1 { display: none; }
#live-content .l-p-around { margin: 0; padding: 0; }
#live-content .hero-heading {
  font: 300 clamp(27px, 5.4vw, 64px)/1.12 Roboto, sans-serif;
  color: #fff0e3;
}
#live-content .hero-heading > span {
  display: block;
  padding: 0;
  opacity: 1;
  visibility: visible;
}
#live-content .hero-heading > span:first-child {
  font-size: clamp(31px, 6.5vw, 84px);
  line-height: 1.04;
  white-space: nowrap;
}
#live-content .hero-phrase { display: block; white-space: nowrap; }
#live-content .hero-heading > span + span { margin-top: .35em; }
#live-content .hero-subtitle {
  max-width: 31em;
  margin: 18px 0 0;
  color: #fff0e3;
  font: 400 clamp(16px, 2.6vw, 21px)/1.4 Roboto, sans-serif;
}
#live-content .hero-telegram {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  margin-top: 26px;
  padding: 10px 22px;
  border-radius: 32px;
  background: #ff9d34;
  color: #271b10;
  text-align: center;
  font: 500 17px/1.2 Roboto, sans-serif;
}
#live-content .hero-telegram:hover { background: #ffb45e; }
#live-content .hero-telegram:focus-visible { outline: 2px solid #fff0e3; outline-offset: 4px; }
@media (max-width: 820px) {
  #live-content::after {
    background: linear-gradient(90deg, rgb(23 20 18 / .68), rgb(23 20 18 / .28)), rgb(23 20 18 / .22);
  }
  #live-content .hero-subtitle { max-width: 30ch; }
}
@media (max-width: 820px) and (pointer: coarse) {
  #live-content .hero-heading { font-size: clamp(36px, 6.6vw, 55px); }
  #live-content .hero-heading > span:first-child { font-size: clamp(43px, 8.3vw, 67px); }
  #live-content .hero-subtitle { font-size: clamp(25px, 4vw, 28px); }
  #live-content .hero-telegram { min-height: 74px; padding-inline: 30px; font-size: 27px; }
}

/* Keep the services heading and cards in normal flow at every width. */
.lc-home .uslugi {
  box-sizing: border-box;
  height: auto;
  padding: clamp(32px, 5vw, 64px) 24px clamp(12px, 2vw, 24px);
  text-align: center;
}
.lc-home .uslugi-slogan { position: static; margin: 0; padding: 0; font-size: clamp(28px, 5vw, 50px); }
.lc-home .uslugi :is(.number1, .balls, .us_moveline1, .us_moveline2) { display: none; }
#service-catalog .i-text-around { height: auto; padding: 0 0 clamp(24px, 4vw, 52px); opacity: 1; animation: none; }
#service-catalog .icons_text { width: auto; padding: 0 24px; }
#service-catalog .icons_zag { margin: 0; padding: 0; font-size: clamp(23px, 4vw, 38px); line-height: 1.22; }
#service-catalog :is(.basis_icons, .icons-around) {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(32px, 5vw, 64px) 24px;
  box-sizing: border-box;
  width: min(calc(100% - 48px), 1120px);
  height: auto;
  margin: 0 auto;
  padding: 0;
  opacity: 1;
  animation: none;
}
#service-catalog .basis_icons { background: none; }
#service-catalog .icons-around { margin-top: clamp(32px, 5vw, 64px); }
#service-catalog :is(.basis_icons, .icons-around) > div { min-width: 0; }
#service-catalog .flex-button { box-sizing: border-box; width: fit-content; min-height: 44px; padding: 12px 8px; text-align: center; }
@media (max-width: 1050px) {
  #service-catalog :is(.basis_icons, .icons-around) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 735px) {
  #service-catalog :is(.basis_icons, .icons-around) { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 820px) and (pointer: coarse) {
  #service-catalog .flex-button { min-height: 74px; display: flex; align-items: center; font-size: 19px; }
}
