.template-services {
  --services-canvas: #d7dade;
  --services-ink: #191919;
  --services-dark: #171717;
  --services-card: #242423;
  --services-muted: #959595;
  --services-accent: #ffd334;
  background: var(--services-canvas);
}

.gk-services-page {
  overflow: hidden;
  background: var(--services-canvas);
  color: var(--services-ink);
  font-family: "Montserrat", Arial, sans-serif;
}

.template-services .mobile-book { display: none; }

.gk-services-page h1,
.gk-services-page h2,
.gk-services-page h3,
.gk-services-page p { margin-top: 0; }

.gk-services-container,
.gk-services-projects-inner,
.gk-services-contacts-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.gk-services-catalog { padding: 120px 0 60px; }
.gk-services-intro { margin-bottom: 90px; text-align: center; }
.gk-services-intro h1,
.gk-services-why h2,
.gk-services-project-copy h2,
.gk-services-calculator h2,
.gk-services-reviews h2,
.gk-services-contacts h2 {
  margin-bottom: 0;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-transform: uppercase;
}
.gk-services-intro h1 { font-size: 52px; }
.gk-services-intro p { max-width: 610px; margin: 40px auto 0; color: #303234; font-family: "Oswald", Arial, sans-serif; font-size: 16px; line-height: 1.55; }

.gk-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 70px; }
.gk-service-card { display: block; min-width: 0; }
.gk-service-card-media { position: relative; display: block; height: 250px; overflow: hidden; border-radius: 28px; background: #bfc2c5; }
.gk-service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.22,1,.36,1), filter 320ms ease; }
.gk-service-card strong { display: block; margin-top: 18px; font-family: "Oswald", Arial, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.44; text-align: center; text-transform: uppercase; }
.gk-service-card:hover img { transform: scale(1.035); filter: contrast(1.04); }

.gk-services-why { position: relative; min-height: 620px; padding-top: 120px; background: var(--services-canvas); color: #fff; }
.gk-services-why-media { position: absolute; inset: 120px 0 0; overflow: hidden; background: #111; }
.gk-services-why-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.gk-services-why-media span { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.65) 44%, rgba(0,0,0,.36) 100%), linear-gradient(0deg, rgba(0,0,0,.4), transparent 60%); }
.gk-services-why-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; width: min(1160px, calc(100% - 40px)); min-height: 500px; margin: 0 auto; }
.gk-services-why-copy h2 { max-width: none; font-size: 52px; white-space: nowrap; }
.gk-services-why-copy > p { max-width: 470px; margin: 24px 0 34px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.gk-services-pill { display: inline-flex; min-height: 58px; align-items: center; justify-content: center; gap: 10px; padding: 0 31px; border-radius: 999px; background: var(--services-accent); color: #171717; font-size: 13px; font-weight: 700; transition: transform 320ms cubic-bezier(.22,1,.36,1), box-shadow 320ms ease; }
.gk-services-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.gk-services-facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.24); }
.gk-services-facts li { display: grid; grid-template-columns: 78px 1fr; gap: 24px; align-items: center; min-height: 112px; border-bottom: 1px solid rgba(255,255,255,.24); }
.gk-services-facts li > span { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.gk-services-facts svg { width: 29px; height: 29px; fill: none; stroke: var(--services-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gk-services-facts p { max-width: 410px; margin: 0; font-family: "Oswald", Arial, sans-serif; font-size: 19px; font-weight: 500; line-height: 1.35; text-transform: uppercase; }

.gk-services-projects { min-height: 800px; background: var(--services-canvas); color: #222427; }
.gk-services-projects-inner { position: relative; display: grid; grid-template-columns: minmax(0, 760px) minmax(250px, 1fr); gap: 70px; align-items: center; min-height: 800px; }
.gk-services-project-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gk-services-project-card { overflow: hidden; border-radius: 24px; background: var(--services-card); }
.gk-services-project-card > a { position: relative; display: block; height: 205px; overflow: hidden; }
.gk-services-project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.22,1,.36,1); }
.gk-services-project-card:hover img { transform: scale(1.045); }
.gk-services-project-card > div { position: relative; min-height: 98px; padding: 19px 22px; }
.gk-services-project-card h3 { max-width: 260px; margin: 0; font-family: "Oswald", Arial, sans-serif; font-size: 18px; font-weight: 500; line-height: 1.3; text-transform: uppercase; }
.gk-services-project-card h3 a { color: #fff; }
.gk-services-project-card h3 a::after { content: "↗"; position: absolute; right: 20px; top: 19px; color: var(--services-accent); font-family: Arial, sans-serif; font-size: 18px; }
.gk-services-project-card span { display: block; margin-top: 11px; color: var(--services-muted); font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.gk-services-project-copy { align-self: center; }
.gk-services-project-kicker { margin-bottom: 32px; color: #222427; font-size: 45px; font-weight: 400; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.gk-services-project-kicker span { display: block; margin-top: 10px; color: #85898d; font-size: 12px; }
.gk-services-project-copy h2 { margin: 0 0 26px; font-family: "Montserrat", Arial, sans-serif; font-size: 45px; font-weight: 400; letter-spacing: .02em; line-height: 1.3; }
.gk-services-project-copy > p:not(.gk-services-project-kicker) { max-width: 310px; margin-bottom: 34px; color: #343638; font-size: 12px; line-height: 1.55; text-transform: uppercase; }
.gk-services-project-copy > a { display: inline-flex; width: 150px; min-height: 46px; align-items: center; justify-content: center; border: 1px solid #222427; color: #222427; font-size: 11px; font-weight: 500; text-transform: uppercase; }
.gk-services-project-controls { position: absolute; z-index: 2; left: 712px; top: 50%; display: flex; gap: 8px; transform: translate(-50%, -50%); }
.gk-services-project-controls button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #171717; box-shadow: 0 4px 13px rgba(0,0,0,.18); font-size: 26px; line-height: 1; }

.gk-services-calculator { position: relative; isolation: isolate; display: grid; min-height: 500px; place-items: center; overflow: hidden; padding: 70px 20px; background-color: #1d1d1c; background-image: repeating-linear-gradient(135deg, transparent 0 17px, rgba(255,255,255,.025) 17px 19px), linear-gradient(90deg, rgba(0,0,0,.5), transparent 45%, rgba(0,0,0,.45)); color: #fff; text-align: center; }
.gk-services-calculator::before,
.gk-services-calculator::after { content: "GUARDKVADRO"; position: absolute; z-index: -1; right: 0; left: 0; display: grid; height: 50px; place-items: center; background-color: #d2a90f; background-image: linear-gradient(#d2a90f, #d2a90f), repeating-linear-gradient(45deg, #171717 0 11px, transparent 11px 21px); background-position: center, 0 0; background-repeat: no-repeat, repeat; background-size: min(560px, 70vw) 100%, auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); color: #171717; font-family: "Oswald", Arial, sans-serif; font-size: 28px; font-weight: 700; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.gk-services-calculator::before { top: 42px; }
.gk-services-calculator::after { bottom: 42px; transform: rotate(180deg); }
.gk-services-calculator > div { position: relative; z-index: 1; max-width: 760px; }
.gk-services-calculator h2 { font-size: 52px; }
.gk-services-calculator p { max-width: 570px; margin: 24px auto 34px; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.7; }

.gk-services-reviews { padding: 120px 0; background: var(--services-canvas); }
.gk-services-reviews h2 { max-width: 760px; margin: 0 0 58px; font-size: 52px; }
.gk-services-reviews [data-reviewlab-zone].is-reviewlab-ready .gk-reviewlab-widget { visibility: visible; overflow: visible; pointer-events: auto; }
.gk-services-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.gk-services-review-grid article,
.gk-services-reviews-empty { min-height: 320px; padding: 34px; border-radius: 28px; background: #fff; box-shadow: 0 16px 38px rgba(25,25,25,.06); }
.gk-services-review-grid article > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--services-dark); color: #fff; font-weight: 700; }
.gk-services-review-grid h3 { margin: 24px 0 16px; font-family: "Oswald", Arial, sans-serif; font-size: 20px; font-weight: 600; text-transform: uppercase; }
.gk-services-review-grid p { color: #5f6264; font-size: 13px; line-height: 1.7; }
.gk-services-review-grid a,
.gk-services-reviews-empty a { display: inline-block; margin-top: 16px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.gk-services-reviews-empty { display: grid; max-width: 760px; min-height: 270px; align-content: center; }
.gk-services-reviews-empty strong { font-family: "Oswald", Arial, sans-serif; font-size: 27px; font-weight: 600; text-transform: uppercase; }
.gk-services-reviews-empty p { margin: 16px 0 0; color: #626567; }
.gk-services-reviews-empty a { width: max-content; }

.gk-services-contacts { min-height: 740px; background: var(--services-dark); color: #fff; }
.gk-services-contacts-inner { display: grid; grid-template-columns: 660px 1fr; gap: 86px; align-items: center; min-height: 740px; }
.gk-services-map { height: 500px; overflow: hidden; border-radius: 30px; background: #333; box-shadow: 0 0 0 12px rgba(255,211,52,.08); filter: grayscale(.9) contrast(1.08); }
.gk-services-map .gk-yandex-map,
.gk-services-map .gk-yandex-map-target,
.gk-services-map iframe { width: 100%; height: 100%; border: 0; }
.gk-services-map .gk-yandex-map { position: relative; }
.gk-services-map .gk-yandex-map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: #2b2b2b; color: #fff; text-align: center; }
.gk-services-map .gk-yandex-map-fallback span { font-family: "Oswald", Arial, sans-serif; font-size: 22px; font-weight: 600; text-transform: uppercase; }
.gk-services-map .gk-yandex-map-fallback a { padding-bottom: 4px; border-bottom: 1px solid var(--services-accent); color: var(--services-accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gk-services-map .gk-yandex-map.is-ready .gk-yandex-map-fallback { display: none; }
.gk-services-contacts address { display: flex; flex-direction: column; align-items: flex-start; font-style: normal; }
.gk-services-contacts h2 { margin-bottom: 36px; font-size: 52px; }
.gk-services-contacts address > a:first-of-type { color: var(--services-accent); font-family: "Oswald", Arial, sans-serif; font-size: 27px; font-weight: 600; }
.gk-services-contacts address > span,
.gk-services-contacts address > a:not(:first-of-type) { margin-top: 16px; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.55; }
.gk-services-contacts .gk-services-contact-link { margin-top: 34px; padding-bottom: 4px; border-bottom: 1px solid var(--services-accent); color: var(--services-accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.gk-services-page a:focus-visible,
.gk-services-page button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 6px var(--services-ink); }

@media (max-width: 980px) {
  .gk-services-container,
  .gk-services-projects-inner,
  .gk-services-contacts-inner { width: min(100% - 40px, 720px); }
  .gk-services-catalog { padding: 60px 0; }
  .gk-services-catalog .gk-services-container { width: min(600px, calc(100% - 40px)); }
  .gk-services-intro { margin-bottom: 58px; }
  .gk-services-intro h1 { font-size: 38px; }
  .gk-services-intro p { margin-top: 22px; }
  .gk-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 40px; }
  .gk-service-card-media { height: 190px; }

  .gk-services-why { min-height: 800px; padding-top: 90px; }
  .gk-services-why-media { inset: 90px 0 0; }
  .gk-services-why-inner { display: block; width: min(100% - 40px, 720px); min-height: 710px; padding: 62px 0 40px; }
  .gk-services-why-copy h2 { font-size: 40px; }
  .gk-services-why-copy > p { max-width: 560px; }
  .gk-services-facts { margin-top: 42px; }
  .gk-services-facts li { grid-template-columns: 62px 1fr; gap: 14px; }
  .gk-services-facts li > span { width: 50px; height: 50px; }
  .gk-services-facts p { font-size: 16px; }

  .gk-services-projects,
  .gk-services-projects-inner { min-height: 600px; }
  .gk-services-projects-inner { grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr); gap: 34px; align-content: center; padding: 0; }
  .gk-services-project-rail { grid-template-columns: 1fr; gap: 18px; }
  .gk-services-project-card > a { height: 150px; }
  .gk-services-project-card:nth-child(n + 3) { display: none; }
  .gk-services-project-controls { left: 52.4%; top: 50%; display: block; transform: translate(-50%, -50%); }
  .gk-services-project-controls [data-services-project-previous] { display: none; }
  .gk-services-project-copy h2 { font-size: 42px; }
  .gk-services-project-copy > p:not(.gk-services-project-kicker) { max-width: 560px; }

  .gk-services-calculator { min-height: 589px; }
  .gk-services-contacts,
  .gk-services-contacts-inner { min-height: 1140px; }
  .gk-services-contacts-inner { grid-template-columns: 1fr; gap: 55px; align-content: center; padding: 80px 0; }
  .gk-services-map { height: 500px; }
}

@media (max-width: 600px) {
  .gk-services-container,
  .gk-services-projects-inner,
  .gk-services-contacts-inner { width: calc(100% - 40px); }
  .gk-services-catalog { padding: 90px 0 60px; }
  .gk-services-catalog .gk-services-container { width: calc(100% - 40px); }
  .gk-services-intro h1,
  .gk-services-why-copy h2,
  .gk-services-project-copy h2,
  .gk-services-calculator h2,
  .gk-services-reviews h2,
  .gk-services-contacts h2 { font-size: 30px; }
  .gk-services-intro p { font-size: 13px; }
  .gk-services-grid { grid-template-columns: 1fr; row-gap: 52px; }
  .gk-service-card-media { height: 250px; border-radius: 25px; }
  .gk-service-card strong { margin-top: 16px; font-size: 17px; }

  .gk-services-why { min-height: 666px; }
  .gk-services-why-inner { display: block; min-height: 576px; padding: 48px 0 28px; }
  .gk-services-why-copy > p { max-width: 320px; margin: 18px 0 24px; font-size: 12px; }
  .gk-services-pill { min-height: 52px; padding: 0 24px; font-size: 12px; }
  .gk-services-facts { margin-top: 28px; }
  .gk-services-facts li { min-height: 80px; grid-template-columns: 52px 1fr; gap: 12px; }
  .gk-services-facts li > span { width: 42px; height: 42px; }
  .gk-services-facts svg { width: 23px; height: 23px; }
  .gk-services-facts p { font-size: 13px; }

  .gk-services-projects,
  .gk-services-projects-inner { min-height: 1170px; }
  .gk-services-projects-inner { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 78px 0 92px; }
  .gk-services-project-rail { order: 1; display: flex; width: calc(100vw - 20px); margin-left: 20px; padding-right: 40px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gk-services-project-rail::-webkit-scrollbar { display: none; }
  .gk-services-project-card { flex: 0 0 calc(100vw - 56px); scroll-snap-align: start; }
  .gk-services-project-card:nth-child(n + 3) { display: block; }
  .gk-services-project-card > a { height: 238px; }
  .gk-services-project-copy { order: 2; width: 100%; margin-top: 130px; }
  .gk-services-project-kicker { margin-bottom: 26px; font-size: 13px; }
  .gk-services-project-kicker span { display: inline; margin: 0 0 0 8px; font-size: 11px; }
  .gk-services-project-copy h2 { margin-bottom: 24px; }
  .gk-services-project-copy > p:not(.gk-services-project-kicker) { max-width: 320px; font-size: 12px; }
  .gk-services-project-copy > a { width: 270px; min-height: 40px; border-color: #222427; background: #191919; color: var(--services-canvas); font-size: 13px; }
  .gk-services-project-controls { right: -4px; left: auto; top: 215px; display: block; transform: translateY(-50%); }
  .gk-services-project-controls button { width: 34px; height: 34px; font-size: 22px; }
  .gk-services-project-controls [data-services-project-previous] { display: none; }

  .gk-services-calculator { min-height: 422px; padding-inline: 24px; }
  .gk-services-calculator p { margin: 20px auto 28px; font-size: 12px; }

  .gk-services-reviews { padding: 90px 0; }
  .gk-services-reviews h2 { margin-bottom: 42px; }
  .gk-services-review-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gk-services-review-grid article { flex: 0 0 calc(100vw - 56px); min-height: 360px; scroll-snap-align: start; }
  .gk-services-reviews-empty { min-height: 330px; padding: 30px; }
  .gk-services-reviews-empty strong { font-size: 23px; }

  .gk-services-contacts,
  .gk-services-contacts-inner { min-height: 788px; }
  .gk-services-contacts-inner { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 55px; padding: 58px 0; }
  .gk-services-map { width: 100%; height: 330px; border-radius: 26px; box-shadow: 0 0 0 8px rgba(255,211,52,.08); }
  .gk-services-contacts h2 { margin-bottom: 25px; }
  .gk-services-contacts address > a:first-of-type { font-size: 23px; }
  .gk-services-contacts address > span,
  .gk-services-contacts address > a:not(:first-of-type) { margin-top: 11px; font-size: 12px; }
  .gk-services-contacts .gk-services-contact-link { margin-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .gk-service-card-media img,
  .gk-services-project-card img,
  .gk-services-pill { transition: none; }
}
