/* Final visual refinement layer */
.gem-real {
  width: 48px;
  height: 48px;
  border: 0;
  overflow: visible;
}

.gem-real::before,
.gem-real::after,
.gem-real i {
  display: none;
}

.gem-real img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(72, 214, 144, .28));
}

.hero-actions a span,
.service-card > a,
.case-controls,
.round-button b {
  display: none !important;
}

.hero-image {
  object-position: center;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(7,30,24,.94) 0%, rgba(9,42,33,.75) 39%, rgba(8,35,28,.06) 72%), linear-gradient(0deg, rgba(7,29,23,.55), transparent 55%);
  mix-blend-mode: multiply;
}

.brand-grid button {
  padding: 17px 12px 13px;
}

.brand-grid button img {
  display: block;
  width: auto;
  max-width: 86px;
  height: 36px;
  object-fit: contain;
}

.brand-grid button.active {
  background: #d8e5de;
  color: var(--ink);
}

.brand-grid button.active img {
  transform: scale(1.06);
}

.service-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-v2 {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
}

.service-v2 > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

.service-v2-copy {
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

/* Larger typography in the benefits cards */
.benefit-grid span {
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}

.benefit-grid h3 {
  margin-bottom: 18px;
  font-size: 29px;
  line-height: 1.15;
}

.benefit-grid p {
  font-size: 17px;
  line-height: 1.5;
}

.service-v2-copy > span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--emerald);
}

.service-v2 h3 {
  margin: auto 0 18px;
  font-size: clamp(32px, 2.65vw, 44px);
  line-height: 1.05;
  font-weight: 540;
  letter-spacing: -.035em;
}

.service-v2 p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.service-v2 ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-v2 li {
  padding: 8px 13px;
  border: 1px solid #bcc7c1;
  border-radius: 999px;
  color: #69756f;
  font-size: 12px;
}

.cases-head .section-heading {
  padding-right: 4vw;
}

.case-track {
  padding-bottom: 6px;
}

.round-button {
  justify-content: center;
}

/* Hero typography and key facts */
.hero .eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .1em;
}

.hero-actions .button {
  padding: 19px 28px;
  font-size: 14px;
}

.hero-actions > a {
  font-size: 14px;
  font-weight: 600;
}

/* Clear navigation against the bright studio lighting */
@media (min-width: 981px) {
  .main-nav {
    gap: 2px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(3, 21, 16, .5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
    backdrop-filter: blur(12px);
  }

  .main-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    opacity: .92;
    transition: background .2s, color .2s, opacity .2s;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--lime);
    color: var(--forest-2);
    opacity: 1;
    outline: 0;
  }

  .main-nav .header-cta {
    margin-left: 4px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--lime);
    color: var(--forest-2);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .main-nav .header-cta:hover {
    background: #e0f4c3;
  }
}

@media (min-width: 1280px) {
  .hero-facts {
    display: flex;
    max-width: 1040px;
  }

  .hero-facts div {
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
  }

  .hero-facts strong {
    font-size: 23px;
  }

  .hero-facts span {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .service-grid-v2 {
    grid-template-columns: 1fr;
  }

  .service-v2 {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
  }

  .service-v2 > img {
    height: 100%;
    aspect-ratio: auto;
  }

  .service-v2-copy {
    min-height: 340px;
  }
}

@media (max-width: 650px) {
  .site-header {
    padding: 0 18px;
  }

  .gem-real,
  .gem-real img {
    width: 38px;
    height: 38px;
  }

  .brand b {
    font-size: 16px;
  }

  .hero {
    height: auto;
    min-height: 820px;
  }

  .hero-image {
    object-position: 65% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7,30,24,.92), rgba(8,38,30,.3)), linear-gradient(0deg, rgba(7,29,23,.84), transparent 60%);
  }

  .hero-inner {
    padding: 128px 18px 96px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 54px);
    line-height: .98;
  }

  .hero-lead {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    gap: 14px;
    margin-top: 48px;
  }

  .hero-facts div {
    display: block;
    padding: 0 12px 0 0;
  }

  .hero-facts strong,
  .hero-facts span {
    display: block;
  }

  .hero-facts span {
    margin-top: 6px;
  }

  .hero-note {
    display: none;
  }

  .section {
    padding: 72px 18px;
  }

  .section-heading {
    margin: 30px 0 38px;
  }

  .section-heading h2,
  .estimate h2,
  .contact h2 {
    font-size: 38px;
    line-height: 1.02;
  }

  .section-heading p {
    font-size: 13px;
  }

  .brand-photo {
    min-height: 230px;
  }

  .brand-photo > span {
    left: 17px;
    bottom: 15px;
    font-size: 10px;
  }

  .brand-grid {
    gap: 6px;
  }

  .brand-grid button {
    min-height: 96px;
    padding: 13px 8px 10px;
  }

  .brand-grid button img {
    max-width: 76px;
    height: 31px;
  }

  .service-grid-v2 {
    gap: 10px;
  }

  .service-v2 {
    display: block;
  }

  .service-v2 > img {
    height: auto;
    aspect-ratio: 1.35 / 1;
  }

  .service-v2-copy {
    min-height: 300px;
    padding: 24px;
  }

  .service-v2 h3 {
    font-size: 30px;
  }

  .benefit-image {
    min-height: 250px;
  }

  .benefit-grid article {
    min-height: 190px;
    padding: 24px;
  }

  .benefit-grid span {
    font-size: 17px;
  }

  .benefit-grid h3 {
    font-size: 25px;
  }

  .benefit-grid p {
    font-size: 16px;
  }

  .cases {
    padding-right: 0;
  }

  .cases-head,
  .cases-head .section-heading {
    padding-right: 18px;
  }

  .case-track {
    gap: 8px;
    padding-right: 18px;
    scroll-snap-type: x mandatory;
  }

  .case-track article {
    flex-basis: calc(100vw - 54px);
    min-height: 490px;
    scroll-snap-align: start;
  }

  .case-track img {
    height: 205px;
  }

  .estimate {
    margin: 50px 12px;
    border-radius: 18px;
  }

  .estimate-visual {
    min-height: 240px;
  }

  .estimate-panel {
    padding: 34px 22px;
  }

  .estimate-panel input,
  .estimate-panel select,
  .estimate-panel textarea,
  .booking-modal input {
    font-size: 16px;
  }

  .map-canvas {
    height: 390px;
  }

  .pin-perm {
    left: 8%;
  }

  .pin-main {
    left: 29%;
  }

  .pin-chel {
    left: 43%;
  }

  .contact {
    padding: 72px 18px 52px;
  }

  .round-button {
    width: 100%;
    height: auto;
    min-height: 54px;
    margin: 0;
    border-radius: 999px;
  }

  .round-button span br {
    display: none;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 46px 18px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading h2,
  .estimate h2,
  .contact h2 {
    font-size: 35px;
  }
}

/* Interactive Yandex map */
.yandex-map {
  position: relative;
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(38, 50, 46, .12);
  border-radius: 24px;
  background: #e7ebe7;
}

.yandex-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.68) sepia(.1) hue-rotate(92deg) saturate(.72) contrast(.96);
}

.map-places {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: calc(100% - 40px);
  pointer-events: none;
}

.map-places span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(9, 42, 33, .88);
  color: #fff;
  font-size: 10px;
  letter-spacing: .03em;
  box-shadow: 0 8px 24px rgba(6, 29, 23, .14);
  backdrop-filter: blur(8px);
}

/* Direct contact block */
.contact-modern {
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  gap: 56px 7vw;
  align-items: end;
}

.contact-intro > p:last-child {
  max-width: 670px;
  margin: 28px 0 0;
  color: #afc4bb;
  font-size: 15px;
  line-height: 1.7;
}

.contact-primary {
  padding: 30px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.contact-primary > span,
.contact-meta span {
  display: block;
  margin-bottom: 13px;
  color: #8eaaa0;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-phone {
  display: inline-block;
  color: var(--lime);
  text-decoration: none;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 520;
  letter-spacing: -.04em;
}

.contact-primary p {
  margin: 10px 0 0;
  color: #8eaaa0;
  font-size: 12px;
}

.contact-messengers {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0 22px;
}

.contact-messengers > p {
  max-width: 430px;
  margin: 0;
  color: #d2dfda;
  font-size: 20px;
  line-height: 1.35;
}

.contact-messenger-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-messenger-icons img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.contact-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 8px;
}

.contact-meta p {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #d2dfda;
  font-size: 13px;
}

@media (max-width: 760px) {
  .yandex-map {
    height: 410px;
    border-radius: 18px;
  }

  .map-places {
    left: 12px;
    bottom: 12px;
    gap: 5px;
    max-width: calc(100% - 24px);
  }

  .map-places span {
    padding: 7px 10px;
    font-size: 9px;
  }

  .contact-modern {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-intro > p:last-child {
    margin-top: 21px;
    font-size: 14px;
  }

  .contact-primary {
    padding-top: 22px;
  }

  .contact-phone {
    font-size: 31px;
  }

  .contact-messengers {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-top: 6px;
  }

  .contact-messengers > p {
    font-size: 18px;
  }

  .contact-messenger-icons {
    gap: 14px;
  }

  .contact-messenger-icons img {
    width: 50px;
    height: 50px;
  }

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

@media (max-width: 390px) {
}

/* Balanced desktop canvas */
@media (min-width: 981px) {
  :root {
    --desktop-gutter: clamp(84px, 7vw, 150px);
  }

  .site-header {
    padding-right: var(--desktop-gutter);
    padding-left: var(--desktop-gutter);
  }

  .hero-inner {
    padding-left: var(--desktop-gutter);
  }

  .hero-note {
    right: var(--desktop-gutter);
  }

  .section {
    padding-right: var(--desktop-gutter);
    padding-left: var(--desktop-gutter);
  }

  .cases {
    padding-right: var(--desktop-gutter);
  }

  .cases-head {
    padding-right: 0;
  }

  .case-track {
    padding-right: 0;
  }

  .estimate {
    margin-right: var(--desktop-gutter);
    margin-left: var(--desktop-gutter);
  }

  .contact {
    padding-right: var(--desktop-gutter);
    padding-left: var(--desktop-gutter);
  }

  footer {
    padding-right: var(--desktop-gutter);
    padding-left: var(--desktop-gutter);
  }
}

@media (min-width: 1280px) {
  .case-track {
    overflow: visible;
  }

  .case-track article {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Mobile UX pass */
.mobile-slider-nav {
  display: none;
}

@media (max-width: 980px) {
  body.menu-open {
    overflow: hidden;
  }

  .main-nav {
    z-index: 30;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    padding: 28px 18px;
    box-shadow: 0 24px 48px rgba(4, 23, 18, .28);
  }

  .main-nav a {
    padding: 8px 0;
    font-size: 16px;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 0;
    margin-top: 26px;
    margin-bottom: 32px;
  }

  .contact-modern {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .service-v2-copy {
    min-height: 260px;
  }

  .service-v2 h3 {
    font-size: 30px;
  }

  .service-v2-copy > span {
    font-size: 12px;
  }

  .service-v2 p {
    font-size: 15px;
  }

  .service-v2 li {
    font-size: 11px;
  }

  .mobile-slider-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -8px 0 18px;
  }

  .mobile-slider-nav button {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border: 0;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    font: 500 24px/1 var(--font);
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-slider-nav button:disabled {
    background: var(--card);
    color: #8d9993;
    cursor: default;
  }

  .mobile-slider-status {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .08em;
  }

  .mobile-slider-status b {
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
  }

  .service-grid-v2,
  .benefit-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .service-grid-v2::-webkit-scrollbar,
  .benefit-grid::-webkit-scrollbar {
    display: none;
  }

  .service-grid-v2 > article,
  .benefit-grid > article {
    flex: 0 0 min(100%, 560px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .service-v2-copy {
    min-height: 280px;
    padding: 24px 20px;
  }

  .service-v2 {
    display: block;
  }

  .service-v2 > img {
    height: auto;
    aspect-ratio: 1.35 / 1;
  }

  .service-v2 h3 {
    font-size: clamp(27px, 8vw, 32px);
  }

  .benefit-layout {
    display: block;
  }

  .benefit-mobile-nav {
    margin-top: 14px;
  }

  .benefit-grid article {
    min-height: 270px;
  }

  .case-track {
    overscroll-behavior-inline: contain;
    scroll-padding-right: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .case-track article {
    display: flex;
    min-height: 470px;
    flex-direction: column;
  }

  .case-track article small {
    margin-top: auto;
  }

  h1,
  h2,
  h3,
  p,
  a,
  button,
  span,
  strong,
  small,
  li,
  label {
    overflow-wrap: anywhere;
  }

  img {
    max-width: 100%;
  }

  .booking-modal {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 38px 22px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  footer > .footer-brand,
  footer > div:last-of-type,
  .footer-demo {
    grid-column: 1 / -1;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .section-heading,
  .cases-head .section-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
    gap: 48px;
    padding-left: 0;
  }

  .cases-head .section-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .section-heading h2,
  .estimate h2,
  .contact h2 {
    font-size: 32px;
  }

}

@media (max-width: 380px) {
  footer {
    grid-template-columns: 1fr;
  }

  footer > div,
  footer > .footer-brand,
  footer > div:last-of-type,
  .footer-demo {
    grid-column: 1 / -1;
  }

  .contact-phone {
    font-size: 28px;
  }
}

/* One deterministic vector arrow for every mobile carousel control. */
.mobile-slider-nav button {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
}

.mobile-slider-nav button::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mobile-slider-nav [data-slider-prev]::before {
  transform: rotate(180deg);
}
