@font-face {
  font-family: 'TTFirsNeue';
  src: url('../../../fonts/TTFirsNeue-Regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'TTFirsNeue';
  src: url('../../../fonts/TTFirsNeue-Medium.woff') format('woff');
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

#ag-page.ag-home {
  --home-ink: #1f4d44;
  --home-green: #178f70;
  --home-deep: #135447;
  --home-lime: #c9eb67;
  --home-mint: #c7e4dc;
  --home-pale: #eef7f4;
  --home-line: rgba(31, 77, 68, .14);
  width: 100%;
  color: var(--home-ink);
  font-family: 'TTFirsNeue', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #edf7f3 0%, #eef8f4 48%, #f7fbf9 100%);
}

html,
body.ag-home-shell { background: #edf7f3; }

#ag-page.ag-home *,
#ag-page.ag-home *::before,
#ag-page.ag-home *::after { box-sizing: border-box; }

#ag-page.ag-home .ag-clean-section { --ag-clean-base: 1180px; overflow: visible; }
#ag-page.ag-home .ag-clean__canvas { width: 1180px; margin: 0 auto; }
#ag-page.ag-home h1,
#ag-page.ag-home h2,
#ag-page.ag-home h3,
#ag-page.ag-home h4,
#ag-page.ag-home p { margin-top: 0; }
#ag-page.ag-home a { color: inherit; text-decoration: none; }
#ag-page.ag-home img { display: block; max-width: none; }

#ag-page.ag-home .ag-home-services,
#ag-page.ag-home .ag-home-audiences,
#ag-page.ag-home .ag-home-team,
#ag-page.ag-home .ag-home-media,
#ag-page.ag-home .ag-home-articles,
#ag-page.ag-home .ag-home-client-logos,
#ag-page.ag-home .ag-home-video,
#ag-page.ag-home .ag-home-partners,
#ag-page.ag-home .ag-home-faq { background: transparent; }

.ag-home-hero { height: 650px; background: transparent; }
.ag-home-hero__panel {
  position: absolute;
  inset: 10px 10px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #157e68 url('../../../pages/home/media/hero-background.svg') center / 100% 100% no-repeat;
  color: #fff;
}
.ag-home-hero__header { position: relative; z-index: 2; display: flex; width: calc(100% - 80px); max-width: 1080px; height: 74px; flex-shrink: 0; align-items: center; margin: 0 auto; }
.ag-home-hero > .ag-clean__canvas .ag-home-hero__header::before { position: absolute; z-index: 0; top: 0; left: 50%; width: 1200px; height: 61px; background: url('../../pak/media/Frame_1948756806.svg') center / 100% 100% no-repeat; content: ''; transform: translateX(-50%); }
.ag-home-hero__header > * { position: relative; z-index: 1; }
.ag-home-logo { display: flex; flex-shrink: 0; align-items: center; gap: 12px; color: #fff !important; }
.ag-home-logo img { width: 150px; height: 24px; }
.ag-home-logo span { font-size: 14px; font-weight: 400; line-height: 1.05; }
.ag-home-nav { display: flex; align-items: center; gap: 20px; margin-left: 64px; }
.ag-home-nav a { color: #fff !important; font-size: 14px; white-space: nowrap; transition: opacity .2s ease; }
.ag-home-nav a:hover { opacity: .72; }
.ag-home-nav__mobile,
.ag-home-menu-toggle { display: none; }
.ag-home-hero__actions { display: flex; height: 61px; flex-shrink: 0; align-self: flex-start; align-items: center; gap: 8px; margin: 0 74px 0 auto; padding: 0 12px; border-radius: 0; background: transparent; }
.ag-home-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 18px; border: 0; border-radius: 9px; font: 500 14px/1.2 'TTFirsNeue', Arial, sans-serif; white-space: nowrap; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.ag-home-button:hover { transform: translateY(-2px); }
.ag-home-button--pale { min-width: 108px; background: var(--home-mint); color: var(--home-ink) !important; }
.ag-home-button--pale:first-child { min-width: 174px; }
.ag-home-hero__actions .ag-home-button { min-width: 89px; min-height: 35px; padding: 0 12px; border-radius: 8px; }
.ag-home-hero__actions .ag-home-button:first-child { min-width: 132px; }
.ag-home-scroll-header { position: fixed; z-index: 10000; top: 0; right: 0; left: 0; height: 69px; color: #fff; pointer-events: none; }
.ag-home-scroll-header[hidden] { display: none; }
.ag-home-scroll-header__canvas { position: relative; width: 1200px; height: 70px; margin: 0 auto; overflow: hidden; }
/* Match the shared scroll header's 1200px coordinates and original cutout. */
.ag-home-scroll-header__canvas::before { position: absolute; top: 8px; right: 6px; left: 6px; height: 66px; border-radius: 8px; background: #1e4c43 url('../../pak/media/Rectangle_14166.svg') center / cover no-repeat; content: ''; }
.ag-home-scroll-header__canvas::after { position: absolute; z-index: 1; top: 0; left: 0; width: 1200px; height: 62px; background: url('../../pak/media/Frame_1948756806.svg') center / cover no-repeat; content: ''; }
.ag-home-scroll-header .ag-home-hero__header { width: 1200px; max-width: none; height: 70px; margin: 0; pointer-events: auto; }
.ag-home-scroll-header .ag-home-hero__header::before { display: none; }
.ag-home-scroll-header .ag-home-logo { position: absolute; top: 24px; left: 35px; align-items: flex-start; }
.ag-home-scroll-header .ag-home-logo img { margin-top: 2px; }
.ag-home-scroll-header .ag-home-logo span { width: 64px; letter-spacing: -.5px; line-height: 1.1; }
.ag-home-scroll-header .ag-home-nav { position: absolute; top: 27px; left: 360px; gap: 0; margin: 0; }
.ag-home-scroll-header .ag-home-nav a { line-height: 1.55; letter-spacing: -.8px; }
.ag-home-scroll-header .ag-home-nav a:nth-child(1) { width: 64px; }
.ag-home-scroll-header .ag-home-nav a:nth-child(2) { width: 61px; }
.ag-home-scroll-header .ag-home-nav a:nth-child(3) { width: 67px; }
.ag-home-scroll-header .ag-home-nav a:nth-child(4) { width: 107px; }
.ag-home-scroll-header .ag-home-hero__actions { position: absolute; top: 19px; left: 815px; height: 35px; margin: 0; padding: 0; border-radius: 0; background: transparent; }
.ag-home-scroll-header .ag-home-button { height: 35px; padding: 0; background: #c9e5de; line-height: 1.55; }
.ag-home-scroll-header .ag-home-button:first-child { width: 132px; }
.ag-home-scroll-header .ag-home-button:last-child { width: 89px; }
.ag-home-button--lime { background: var(--home-lime); color: var(--home-ink) !important; }
/* Header and body share a centered measure and equal side gutters, including
   when the runtime widens the canvas to fit a short viewport. */
.ag-home-hero__body { display: grid; width: calc(100% - 80px); max-width: 1080px; flex: 1; grid-template-columns: minmax(0, 1fr) 370px; gap: 64px; align-items: center; margin: 0 auto; padding: 28px 0; }
.ag-home-hero__title { margin: 0; font-size: 68px; font-weight: 500; letter-spacing: -2.8px; line-height: 1.06; }
#ag-page.ag-home .ag-home-hero__services { margin: 26px 0 0; color: #d1eedc; font-size: 28px; letter-spacing: -.5px; line-height: 1.4; }
.ag-home-hero__title-end { display: inline-block; padding: 0 9px 2px; border-radius: 6px; background: #fff; color: var(--home-ink); line-height: 1.2; white-space: nowrap; }
.ag-home-hero__experts { display: flex; align-items: center; gap: 17px; margin-top: 45px; }
.ag-home-hero__avatars { display: flex; flex-shrink: 0; padding-left: 9px; }
.ag-home-hero__avatars img { width: 47px; height: 47px; margin-left: -9px; border: 2px solid #d1eedc; border-radius: 50%; object-fit: cover; }
.ag-home-hero__experts p { margin: 0; color: #d1eedc; font-size: 14px; line-height: 1.4; }
.ag-home-hero__proof { position: relative; display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; padding-top: 32px; }
.ag-home-hero__proof::before { position: absolute; top: 7px; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, rgba(209,238,220,.4), rgba(209,238,220,.85) 50%, rgba(209,238,220,.4)); content: ''; }
.ag-home-hero__proof > div { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ag-home-hero__proof > div::before { position: absolute; top: -32px; left: 50%; width: 14px; height: 14px; border: 2px solid rgba(209,238,220,.7); border-radius: 50%; background: var(--home-lime); box-shadow: 0 0 0 4px rgba(201,235,103,.14); content: ''; transform: translateX(-50%); }
.ag-home-hero__proof > div:nth-child(2) { text-align: center; }
.ag-home-hero__proof > div:nth-child(2)::before { left: 50%; }
.ag-home-hero__proof > div:nth-child(3) { text-align: center; }
.ag-home-hero__proof > div:nth-child(3)::before { right: auto; left: 50%; transform: translateX(-50%); }
.ag-home-hero__proof strong { font-size: 25px; font-weight: 500; line-height: 1.1; }
.ag-home-hero__proof span { max-width: 20ch; color: #d1eedc; font-size: 13px; line-height: 1.35; }

/* The desktop proof line runs straight through the markers. Its left edge
   starts outside the hero panel, while its right edge stops at the final
   marker. The hero panel clips the off-canvas portion cleanly. */
@media screen and (min-width: 960px) {
  .ag-home-hero__proof::before {
    top: 7px;
    left: -100px;
    right: auto;
    width: calc(83.333% + 105px);
    height: 2px;
    background: linear-gradient(90deg, rgba(209,238,220,.7), rgba(209,238,220,.82));
    content: '';
  }
  .ag-home-hero__proof::after {
    display: none;
  }
}
.ag-home-hero__consult { padding: 28px; border: 1px solid rgba(255,255,255,.28); border-radius: 16px; background: rgba(18, 78, 64, .8); scroll-margin-top: 24px; }
.ag-home-hero__consult h2 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.8px; line-height: 1.14; }
#ag-page.ag-home .ag-home-hero__consult > p { margin: 13px 0 24px; color: #d1eedc; font-size: 13px; line-height: 1.5; }

.ag-home-tags { background: var(--home-lime); color: var(--home-ink); }
.ag-home-tags__viewport { overflow: hidden; padding: 5px 0; }
.ag-home-tags__track { display: flex; width: max-content; gap: 14px; animation: ag-home-tags-scroll 52s linear infinite; will-change: transform; }
#ag-page.ag-home .ag-home-tags__group { display: flex; flex-shrink: 0; align-items: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ag-home-tags__group li { display: flex; min-height: 40px; align-items: center; padding: 0 22px; border-radius: 999px; background: #fff; font-size: 17px; line-height: 1.2; white-space: nowrap; }
.ag-home-tags:hover .ag-home-tags__track { animation-play-state: paused; }
@keyframes ag-home-tags-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - 7px), 0, 0); } }

/* The expertise strip belongs to the first screen. It stays in normal flow,
 * so it naturally scrolls away while the imported header takes over at the top. */
#ag-page.ag-home { --ag-home-tags-height: 36px; }
#ag-page.ag-home .ag-home-tags {
  position: relative;
  z-index: 2;
  width: 100%;
  height: var(--ag-home-tags-height);
  overflow: hidden;
  background: var(--home-lime);
  transition: opacity .2s ease;
}
#ag-page.ag-home .ag-home-tags > .ag-clean__canvas {
  width: 100%;
  height: 100%;
  margin: 0;
  zoom: 1;
}
#ag-page.ag-home .ag-home-tags__viewport { padding: 4px 14px; }
#ag-page.ag-home .ag-home-tags__track {
  display: flex;
  width: max-content;
  animation: ag-home-tags-scroll 150s linear infinite;
  will-change: transform;
}
#ag-page.ag-home .ag-home-tags__group {
  justify-content: center;
  flex-wrap: nowrap;
}
#ag-page.ag-home #ag-header:not(.ag-header-scrolled) > .r[data-record-type='396']:not(.uc-scrollmenu) {
  top: var(--ag-home-tags-height) !important;
}

/* Switch the two exported header records as a single state. Keeping the
 * inactive record out of layout prevents the static and scroll headers from
 * appearing together for one frame during a fast scroll. */
#ag-page.ag-home #ag-header:not(.ag-header-scrolled) > .uc-scrollmenu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#ag-page.ag-home #ag-header.ag-header-scrolled > .r[data-record-type='396']:not(.uc-scrollmenu) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#ag-page.ag-home #ag-header.ag-header-scrolled > .uc-scrollmenu {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.ag-home-services { min-height: 688px; margin-bottom: 48px; }
.ag-home-heading { display: flex; align-items: center; justify-content: space-between; }
.ag-home-heading h2,
.ag-home-clients h2,
.ag-home-process h2,
.ag-home-team h2,
.ag-home-media h2,
.ag-home-faq h2 { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -.8px; line-height: 1.2; }
.ag-home-heading > .ag-home-button { min-height: 34px; padding: 0 14px; font-size: 12px; }
.ag-home-services .ag-home-heading h2 { font-size: 38px; }
.ag-home-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.ag-home-service { display: flex; min-width: 0; min-height: 260px; flex-direction: column; padding: 25px 28px 22px; border: 1px solid rgba(31,77,68,.11); border-radius: 16px; background: #fff; box-shadow: 0 14px 34px rgba(25,77,61,.08); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ag-home-service:hover { transform: translateY(-3px); border-color: #c9e5de; box-shadow: 0 14px 30px rgba(22, 75, 62, .08); }
.ag-home-service:focus-visible { outline: 2px solid var(--home-green); outline-offset: 3px; }
.ag-home-service__heading { display: flex; min-height: 60px; align-items: flex-start; gap: 15px; }
.ag-home-service__icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 10px; background: #d8ebe5; }
#ag-page.ag-home .ag-home-service__icon img { width: 26px; height: 26px; }
.ag-home-service h3 { margin: 0; font-size: 23px; font-weight: 500; line-height: 1.2; }
.ag-home-service__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0 57px; padding: 0; list-style: none; }
.ag-home-service__tags li { display: inline-flex; min-height: 25px; align-items: center; padding: 3px 10px; border-radius: 999px; background: #c9e5de; color: var(--home-ink); font-size: 12px; line-height: 1.2; white-space: nowrap; }
.ag-home-service__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 16px; }
.ag-home-service p { max-width: 350px; margin: 0; color: #526d65; font-size: 15px; line-height: 1.38; }
.ag-home-service__link { flex-shrink: 0; padding-bottom: 2px; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.ag-home-service__link > span { display: inline-block; margin-left: 3px; transition: transform .2s ease; }
.ag-home-service:hover .ag-home-service__link > span { transform: translate(2px, -2px); }

@media screen and (min-width: 960px) {
  .ag-home-service h3 { font-size: 20px; }
  .ag-home-service__tags { margin-left: 0; }
  .ag-home-service__footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}

.ag-home-about { min-height: 0; margin-bottom: clamp(16px, 2vw, 28px); color: var(--home-ink); background: transparent; }
.ag-home-about__content { min-height: 0; padding: 0; color: var(--home-ink); }
.ag-home-about__green { min-height: 0; padding: 48px 40px 56px; border-radius: 18px; background: linear-gradient(135deg, #157e68 0%, #135447 100%); color: #fff; }
.ag-home-about__top { display: flex; height: 306px; justify-content: space-between; gap: 20px; overflow: hidden; }
.ag-home-about__top > div { display: flex; width: 625px; flex: 0 0 625px; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 0 30px; }
.ag-home-about__top h2 { margin: 0; color: #fff; font-size: 40px; font-weight: 500; letter-spacing: -1.1px; line-height: 1.29; }
.ag-home-about__top .ag-home-button { min-height: 38px; flex-shrink: 0; margin-top: 14px; padding: 0 15px; font-size: 14px; }
.ag-home-about__photo { width: 435px; height: 306px; flex: 0 0 435px; border: 1px solid rgba(31,77,68,.12); border-radius: 16px; object-fit: cover; box-shadow: 0 14px 28px rgba(31,77,68,.12); }
.ag-home-about__stats { display: grid; width: 625px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: -165px; }
.ag-home-about__stats > div { display: flex; min-width: 0; height: 167px; flex-direction: column; justify-content: space-between; padding: 20px 15px; border: 1px solid rgba(31,77,68,.12); border-radius: 16px; background: #fff; color: var(--home-ink); box-shadow: 0 10px 24px rgba(31,77,68,.08); }
.ag-home-about__stats strong { display: block; font-size: 35px; font-weight: 500; line-height: 1.05; white-space: nowrap; }
.ag-home-about__stats strong small { font-size: 18px; font-weight: 500; }
.ag-home-about__stats span { display: block; font-size: 15px; line-height: 1.24; }
.ag-home-about__stats span b { font-weight: 500; }
.ag-home-about__awards { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 20px; align-items: center; margin-top: 54px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.24); }
.ag-home-about__awards-copy { min-width: 0; padding-right: 12px; }
.ag-home-about__awards-copy > span { display: block; max-width: 250px; margin-bottom: 14px; color: #d1eedc; font-size: 12px; line-height: 1.45; }
.ag-home-about__awards-copy p { margin: 0; color: #fff; font-size: 28px; font-weight: 500; letter-spacing: -.6px; line-height: 1.25; text-wrap: balance; }
#ag-page.ag-home .ag-home-about__award { display: flex; min-width: 0; min-height: 184px; flex-direction: column; justify-content: space-between; gap: 18px; padding: 20px 22px 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 16px; background: #f2f8f3; color: var(--home-ink); transition: background .2s ease, transform .2s ease; }
#ag-page.ag-home .ag-home-about__award:hover { background: #fff; transform: translateY(-3px); }
#ag-page.ag-home .ag-home-about__award:focus-visible { outline: 2px solid var(--home-lime); outline-offset: 5px; }
.ag-home-about__award-logo { display: flex; min-width: 0; height: 88px; align-items: center; justify-content: center; }
#ag-page.ag-home .ag-home-about__award-logo img { width: 112px; height: 88px; max-width: 100%; object-fit: contain; }
#ag-page.ag-home .ag-home-about__award--kommersant img { width: 190px; height: 74px; }
.ag-home-about__award-footer { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--home-line); }
.ag-home-about__award-name { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.ag-home-about__award-name strong { font-size: 16px; font-weight: 500; line-height: 1.25; }
.ag-home-about__award-name > span { color: #526d65; font-size: 12px; line-height: 1.3; }
.ag-home-about__award-arrow { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #e0eddf; font-size: 19px; line-height: 1; transition: background .2s ease; }
.ag-home-about__award:hover .ag-home-about__award-arrow { background: var(--home-lime); }
.ag-home-about__audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ag-home-about__audiences article { display: flex; min-width: 0; min-height: 205px; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid rgba(31,77,68,.12); border-radius: 20px; background: #fff; color: var(--home-ink); box-shadow: 0 10px 24px rgba(31,77,68,.07); }
#ag-page.ag-home .ag-home-about__audiences article > img { width: 24px; height: 24px; }
#ag-page.ag-home .ag-home-about__audiences h4 { max-width: 305px; margin: 17px 0 0; font-size: 18px; font-weight: 500; line-height: 1.24; }
.ag-home-about__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin: 16px 0 0; padding: 0; list-style: none; }
.ag-home-about__tags li { display: inline-flex; min-height: 22px; align-items: center; padding: 3px 9px; border-radius: 999px; background: #c9e5de; color: var(--home-ink); font-size: 11px; line-height: 1.2; }

.ag-home-audiences { min-height: 0; color: var(--home-ink); }
.ag-home-audiences > .ag-clean__canvas { padding: 48px 40px 60px; }
.ag-home-audiences h2 { margin: 0 0 34px; font-size: 45px; font-weight: 500; letter-spacing: -1.1px; line-height: 1.29; }
.ag-home-audiences .ag-home-about__audiences { margin: 0; }

.ag-home-clients { min-height: 634px; }
.ag-home-clients .ag-home-heading h2 { font-size: 45px; line-height: 1.29; letter-spacing: -1.1px; }
.ag-home-clients .ag-home-heading > .ag-home-button { display: none; }
.ag-home-clients__viewport { width: 1100px; margin-top: 39px; overflow: hidden; outline-offset: 5px; }
.ag-home-clients__track { position: relative; display: flex; gap: 16px; transition: transform .42s ease; }
.ag-home-case { --case-ink: #fff; --case-muted: rgba(255,255,255,.84); --case-soft: #b9e6d3; --case-link-bg: #a3e696; --case-link-ink: var(--home-ink); position: relative; display: flex; width: 356px; height: 370px; flex: 0 0 356px; flex-direction: column; align-items: flex-start; padding: 26px; overflow: hidden; border-radius: 20px; background: linear-gradient(145deg, #287d61 0%, #174d43 100%); color: var(--case-ink); }
.ag-home-case:nth-child(2) { --case-ink: #1f4d44; --case-muted: #476b60; --case-soft: #557d70; --case-link-bg: #1f4d44; --case-link-ink: #fff; background: linear-gradient(145deg, #e6f3ed 0%, #c8e5d6 100%); }
.ag-home-case:nth-child(3) { --case-ink: #1f4d44; --case-muted: #56766c; --case-soft: #178f70; --case-link-bg: #c9eb67; background: #f5faf7; box-shadow: inset 0 0 0 2px #8cc8a7; }
.ag-home-case:nth-child(4) { --case-soft: #b9e6d3; --case-muted: rgba(255,255,255,.84); background: linear-gradient(145deg, #287d61 0%, #174d43 100%); }
.ag-home-case:nth-child(5) { --case-ink: #1f4d44; --case-muted: #476b60; --case-soft: #557d70; --case-link-bg: #1f4d44; --case-link-ink: #fff; background: linear-gradient(145deg, #d9ef87 0%, #a7d98c 100%); }
.ag-home-case:nth-child(6) { --case-ink: #1f4d44; --case-muted: #55756a; --case-soft: #178f70; --case-link-bg: #178f70; --case-link-ink: #fff; border: 2px solid #178f70; background: #fff; }
.ag-home-case__number { display: block; margin-bottom: 23px; color: var(--case-soft); font-size: 12px; line-height: 1.25; }
.ag-home-case h3 { margin: 0 0 15px; font-size: 22px; font-weight: 500; line-height: 1.2; }
.ag-home-case p { margin: 0; color: var(--case-muted); font-size: 13px; line-height: 1.42; }
.ag-home-case__result { display: block; margin-top: auto; color: var(--case-ink); font-size: 29px; font-weight: 500; line-height: 1.05; }
.ag-home-case__result small { display: block; margin-top: 4px; color: var(--case-soft); font-size: 12px; font-weight: 400; line-height: 1.25; }
#ag-page.ag-home .ag-home-case__logo { width: 116px; height: 80px; margin-top: auto; object-fit: contain; object-position: left center; }
.ag-home-case__link { display: inline-flex; min-height: 38px; align-items: center; gap: 12px; margin-top: 20px; padding: 0 15px; border-radius: 10px; background: var(--case-link-bg); color: var(--case-link-ink) !important; font-size: 13px; line-height: 1; white-space: nowrap; transition: background .2s ease; }
.ag-home-case__link:hover { background: #c9eb67; }
.ag-home-case__link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ag-home-clients__controls { display: flex; align-items: center; justify-content: center; gap: 25px; margin-top: 22px; }
.ag-home-clients__controls > button { width: 40px; height: 40px; border: 1px solid var(--home-line); border-radius: 50%; background: #fff; color: var(--home-ink); font: 21px 'TTFirsNeue', Arial, sans-serif; cursor: pointer; }
.ag-home-clients__controls > button:hover:not(:disabled) { background: var(--home-pale); }
.ag-home-clients__controls > button:disabled { opacity: .35; cursor: default; }
.ag-home-clients__dots { display: flex; align-items: center; gap: 10px; }
.ag-home-clients__dots button { width: 13px; height: 13px; padding: 0; border: 0; border-radius: 50%; background: var(--home-ink); opacity: .15; cursor: pointer; }
.ag-home-clients__dots button[aria-current='true'] { opacity: .5; }
.ag-home-clients__dots button:focus-visible,
.ag-home-clients__controls > button:focus-visible { outline: 2px solid var(--home-green); outline-offset: 3px; }

.ag-home-process { min-height: 500px; padding: 0 10px; }
.ag-home-process__panel { position: relative; min-height: 500px; padding: 50px 30px; border-radius: 10px; background: linear-gradient(112deg, #157e68 0%, #1a8068 42%, #1e4c43 100%); color: #fff; }
.ag-home-process .ag-home-heading { align-items: flex-start; }
.ag-home-process .ag-home-heading h2 { font-size: 45px; line-height: 58px; letter-spacing: 0; }
.ag-home-process__guarantee { display: flex; width: 340px; flex: 0 0 340px; align-items: center; gap: 25px; margin-top: 10px; }
#ag-page.ag-home .ag-home-process__guarantee img { width: 24px; height: 24px; flex: 0 0 24px; }
.ag-home-process .ag-home-process__guarantee { padding: 12px 16px; border: 1px solid rgba(201,235,103,.65); border-radius: 12px; background: rgba(201,235,103,.16); }
.ag-home-process .ag-home-process__guarantee p { margin: 0; color: #e8f8d6; font-size: 15px; line-height: 1.29; }
.ag-home-process__steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 25px; margin: 76px 0 0; padding: 0; list-style: none; }
.ag-home-process__steps::before { position: absolute; top: 35px; right: calc(10% - 10px); left: calc(10% - 10px); height: 1px; background: rgba(211,237,231,.2); content: ''; pointer-events: none; }
.ag-home-process__steps li { position: relative; min-width: 0; padding-top: 14px; text-align: center; }
.ag-home-process__steps li:first-child::before { position: absolute; top: -90px; left: 50%; width: 1px; height: 125px; background: rgba(211,237,231,.2); content: ''; pointer-events: none; }
.ag-home-process__steps li:first-child::after { position: absolute; top: -94px; left: calc(50% - 4px); width: 8px; height: 8px; border: 1px solid #fff; border-radius: 50%; background: #a3e696; content: ''; pointer-events: none; }
.ag-home-process__steps li > span { position: relative; display: grid; width: 43px; height: 43px; place-items: center; margin: 0 auto 35px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: #a3e696; box-shadow: 0 8px 18px rgba(8,55,43,.18); color: #1e4c43; font-size: 18px; font-weight: 500; line-height: 1.29; }
.ag-home-process__steps li > span::before { display: none; }
.ag-home-process__steps h3 { display: flex; min-height: 46px; align-items: center; justify-content: center; margin: 0 0 15px; font-size: 18px; font-weight: 500; line-height: 1.29; }
.ag-home-process__steps p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.29; }

@media (prefers-reduced-motion: no-preference) {
  #ag-page.ag-home .ag-home-process__steps li > span {
    opacity: .35;
    transform: translate3d(0, -12px, 0) scale(.82);
    transition: opacity .42s ease, transform .42s cubic-bezier(.22,.61,.36,1);
  }
  #ag-page.ag-home .ag-home-process__steps li.is-visible > span { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  #ag-page.ag-home .ag-home-process__steps li:nth-child(2) > span { transition-delay: .08s; }
  #ag-page.ag-home .ag-home-process__steps li:nth-child(3) > span { transition-delay: .16s; }
  #ag-page.ag-home .ag-home-process__steps li:nth-child(4) > span { transition-delay: .24s; }
  #ag-page.ag-home .ag-home-process__steps li:nth-child(5) > span { transition-delay: .32s; }
}

.ag-home-cta__panel { display: grid; grid-template-columns: 380px 540px; gap: 60px; min-height: 586px; padding: 50px; border-radius: 10px; background: #edf5f5; color: #1e4c43; }
#ag-page.ag-home .ag-home-cta__image { width: 380px; height: 486px; border-radius: 10px; object-fit: cover; object-position: center; }
.ag-home-cta__copy { min-width: 0; padding-top: 60px; }
.ag-home-cta h2 { max-width: 529px; margin: 0 0 36px; font-size: 48px; font-weight: 400; line-height: 53px; letter-spacing: -2px; }
.ag-home-cta__description { max-width: 369px; margin: 0 0 50px; font-size: 19px; line-height: 27px; letter-spacing: -.5px; }
.ag-home-cta .ag-home-cta__form { display: grid; gap: 20px; }
.ag-home-cta__phone > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ag-home-cta__form input[type='tel'] { width: 100%; height: 50px; padding: 0 16px; border: 1px solid #c9ded7; border-radius: 8px; background: #fff; color: #1e4c43; font-size: 15px; box-shadow: inset 0 1px 2px rgba(31,77,68,.04); transition: border-color .2s ease, box-shadow .2s ease; }
.ag-home-cta__form input[type='tel']::placeholder { color: #67847b; opacity: .8; }
.ag-home-cta__form input[type='tel']:focus-visible { border-color: #178f70; box-shadow: 0 0 0 3px rgba(23,143,112,.12); }
.ag-home-cta__form input:focus-visible,
.ag-home-cta__form button:focus-visible,
.ag-home-cta__form a:focus-visible { outline: 2px solid #178f70; outline-offset: 4px; }
.ag-home-cta__actions { display: flex; align-items: center; gap: 20px; }
.ag-home-cta__form .ag-home-button { width: 190px; min-height: 50px; flex: 0 0 190px; border-radius: 8px; background: #1e4c43; color: #fff; font-size: 14px; font-weight: 400; }
.ag-home-cta__form .ag-home-button:hover { background: #16624a; }
.ag-home-cta__form .ag-home-button:disabled { opacity: .7; cursor: wait; transform: none; }
.ag-home-cta__form .ag-home-form__consent { flex: 1; gap: 7px; font-size: 11px; line-height: 17px; }
.ag-home-cta__form .ag-home-form__consent input { width: 12px; height: 12px; flex: 0 0 12px; margin-top: 3px; accent-color: #1e4c43; }
.ag-home-cta__form [role='status'] { margin: 0; font-size: 13px; line-height: 1.4; }

.ag-home-team { min-height: 0; }
.ag-home-team__header { display: flex; width: 1100px; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.ag-home-team__header > div:first-child { width: 625px; }
.ag-home-team h2 { font-size: 45px; line-height: 58px; letter-spacing: 0; }
.ag-home-team__header p { margin: 15px 0 0; color: #1e4c43; font-size: 18px; font-weight: 500; line-height: 23px; }
.ag-home-team__viewport { width: 100%; }
.ag-home-team__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; }
.ag-home-team__track.is-collapsed article:nth-child(n+5) { display: none; }
.ag-home-team__track article { min-width: 0; text-align: center; }
.ag-home-team__track img { display: block; width: 100%; height: 270px; border-radius: 10px; background: #e7ecea; object-fit: cover; object-position: center top; }
#ag-page.ag-home .ag-home-team__track h3 { margin: 14px 0 5px; color: #1e4c43; font-size: 18px; font-weight: 500; line-height: 23px; }
.ag-home-team__track p { margin: 0; font-size: 14px; line-height: 18px; }
.ag-home-team__track .ag-home-team__role { color: rgba(30, 76, 67, .5); font-weight: 500; margin-bottom: 5px;}
.ag-home-team__toggle { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 12px; margin: 28px auto 0; padding: 0 22px; border: 1px solid rgba(30,76,67,.22); border-radius: 999px; background: #fff; color: #1e4c43; font: 500 14px/1 'TTFirsNeue', Arial, sans-serif; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.ag-home-team__toggle:hover { border-color: #1e4c43; background: #f1f7f4; }
.ag-home-team__toggle:focus-visible { outline: 2px solid #1e4c43; outline-offset: 4px; }
.ag-home-team__toggle span { font-size: 18px; transition: transform .2s ease; }
.ag-home-team__toggle[aria-expanded='true'] span { transform: rotate(180deg); }

.ag-home-media { min-height: 0; }
.ag-home-media__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
.ag-home-media__tile { display: block; min-width: 0; padding: 12px; border: 1px solid rgba(31,77,68,.12); border-radius: 18px; background: #fff; color: var(--home-ink) !important; box-shadow: 0 14px 32px rgba(31,77,68,.08); }
.ag-home-media__gallery { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: #e4eeea; }
#ag-page.ag-home .ag-home-media__gallery-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; background: #e4eeea; opacity: 0; backface-visibility: hidden; transition: opacity 1.15s ease-in-out; will-change: opacity; }
#ag-page.ag-home .ag-home-media__gallery-layer.is-active { opacity: 1; }

.ag-home-articles { min-height: 650px; }
.ag-home-articles__panel { min-height: 650px; padding: 40px 30px 36px; border-radius: 10px; background: #edf6f5; }
.ag-home-eyebrow { display: inline-flex; height: 38px; align-items: center; margin: 0 0 20px; padding: 0 15px; border-radius: 10px; background: #c9e5de; color: var(--home-ink); font-size: 14px; line-height: 18px; }
.ag-home-articles .ag-home-heading { align-items: flex-end; height: 116px; }
.ag-home-articles .ag-home-heading h2 { font-size: 45px; font-weight: 500; letter-spacing: 0; line-height: 58px; }
.ag-home-articles .ag-home-heading > .ag-home-button { min-height: 38px; padding: 0 20px; border-radius: 10px; font-size: 14px; }
.ag-home-articles__slider { display: flex; width: 1100px; align-items: center; gap: 10px; margin-top: 50px; }
.ag-home-articles__arrow { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ag-home-articles__arrow { align-self: flex-start; margin-top: 128px; }
.ag-home-articles__arrow img { display: block; width: 26px; height: 26px; }
.ag-home-articles__arrow--next img { transform: rotate(180deg); }
.ag-home-articles__arrow:disabled { cursor: default; opacity: .35; }
.ag-home-articles__arrow:focus-visible { outline: 2px solid var(--home-ink); outline-offset: 4px; border-radius: 50%; }
.ag-home-articles__viewport { width: 1028px; overflow: hidden; outline-offset: 4px; }
.ag-home-articles__viewport:focus-visible { outline: 2px solid var(--home-ink); }
.ag-home-articles__cards { display: flex; gap: 10px; margin: 0; transition: transform .35s ease; }
.ag-home-articles__cards > a { display: block; width: 336px; min-width: 336px; height: 343px; color: var(--home-ink); }
.ag-home-articles__visual { display: block; width: 336px; height: 210px; border-radius: 10px; background: linear-gradient(135deg, #1e4d44 0%, #2d7a60 100%); }
.ag-home-articles__visual::after { content: 'AG'; display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255,255,255,.18); font-family: 'TTFirsNeue', Arial, sans-serif; font-size: 72px; font-weight: 500; letter-spacing: -2px; }
.ag-home-articles__date { display: block; margin-top: 20px; font-size: 14px; line-height: 18px; }
.ag-home-articles__cards h3 { height: 46px; margin: 5px 0 20px; overflow: hidden; font-size: 18px; font-weight: 400; line-height: 23px; }
.ag-home-articles__meta { display: flex; gap: 5px; height: 24px; }
.ag-home-articles__meta > span { display: inline-flex; height: 24px; align-items: center; gap: 6px; padding: 0 7px; border-radius: 8px; background: rgba(31, 77, 68, .5); color: #fff; font-size: 14px; line-height: 18px; }
.ag-home-articles__meta img { width: 15px; height: 15px; object-fit: contain; }
.ag-home-community { position: relative; min-height: 400px; padding: 48px 40px 40px; overflow: hidden; border-radius: 20px; background: #0d5949 url('../../../pages/home/media/community-background.png') center / cover no-repeat; color: #fff; }
.ag-home-community h2 { position: relative; z-index: 1; max-width: 760px; margin: 0 0 36px; font-size: 38px; font-weight: 500; letter-spacing: -.8px; line-height: 1.2; }
.ag-home-community > div { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ag-home-community a { display: flex; min-width: 0; min-height: 200px; flex-direction: column; padding: 26px 24px; border-radius: 12px; background: #fff; color: var(--home-ink) !important; transition: background .2s ease, transform .2s ease; }
.ag-home-community a:hover { background: #eef7f4; transform: translateY(-3px); }
.ag-home-community a:focus-visible { outline: 2px solid var(--home-lime); outline-offset: 4px; }
.ag-home-community__title { display: flex; min-height: 32px; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; line-height: 1.3; }
.ag-home-community__title img { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.ag-home-community__copy { display: block; margin-top: 18px; color: #526d65; font-size: 16px; line-height: 1.5; }
.ag-home-community__arrow { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; align-self: flex-end; margin-top: auto; border-radius: 50%; background: var(--home-lime); color: var(--home-ink); font-size: 20px; line-height: 1; transition: transform .2s ease, background .2s ease; }
.ag-home-community a:hover .ag-home-community__arrow { transform: translate(2px, -2px); background: #b7e94f; }

.ag-home-client-logos__panel { padding: 42px 0 48px; border-radius: 20px; background: #e3f0eb; }
.ag-home-client-logos__header { padding: 0 40px; }
.ag-home-client-logos__header h2 { margin: 0; font-size: 45px; font-weight: 500; letter-spacing: -1.1px; line-height: 1.2; }
.ag-home-client-logos__viewport { margin-top: 30px; overflow: hidden; }
.ag-home-client-logos__rows { display: grid; gap: 10px; }
.ag-home-client-logos__row { overflow: hidden; }
.ag-home-client-logos__marquee { display: flex; width: max-content; gap: 10px; animation: ag-home-logo-drift 65s linear infinite; will-change: transform; }
.ag-home-client-logos__row:nth-child(even) .ag-home-client-logos__marquee { animation-direction: reverse; animation-duration: 73s; }
.ag-home-client-logos__row:hover .ag-home-client-logos__marquee { animation-play-state: paused; }
@keyframes ag-home-logo-drift { to { transform: translate3d(calc(-50% - 5px), 0, 0); } }
.ag-home-client-logo { display: grid; width: 210px; height: 108px; flex: 0 0 210px; place-items: center; padding: 18px; border: 1px solid rgba(31,77,68,.08); border-radius: 12px; background: #fff; }
#ag-page.ag-home .ag-home-client-logo__image { display: block; width: auto; max-width: 90%; height: auto; max-height: 68px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .ag-home-client-logos__marquee { animation: none; } }

.ag-home-video { min-height: 0; background: transparent; }
.ag-home-video__intro { max-width: 980px; margin-bottom: 38px; }
.ag-home-video__intro .ag-home-eyebrow { margin-bottom: 22px; }
.ag-home-video__intro h2 { max-width: 960px; margin: 0; color: var(--home-ink); font-size: 32px; font-weight: 500; letter-spacing: -.6px; line-height: 1.16; }
.ag-home-video__description { max-width: 620px; margin: 10px 0 0; color: #5f7b72; font-size: 16px; line-height: 1.45; }
.ag-home-video__cards { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.ag-home-video__card { display: flex; min-width: 0; min-height: 430px; flex-direction: column; padding: 14px; border: 1px solid rgba(31,77,68,.1); border-radius: 18px; background: #fff; color: var(--home-ink); box-shadow: 0 12px 32px rgba(31,77,68,.06); }
.ag-home-video__card--upcoming { padding: 0 24px 24px; border-color: rgba(201,235,103,.42); background: linear-gradient(145deg, #287d61 0%, #174d43 100%); color: #fff; box-shadow: 0 18px 38px rgba(23,77,67,.2); }
.ag-home-video__card-visual, .ag-home-video__upcoming-art { position: relative; display: flex; min-height: 180px; align-items: flex-end; padding: 20px; overflow: hidden; border-radius: 12px; background: #dcebe6; }
.ag-home-video__upcoming-art { min-height: 180px; margin: 0 -24px 22px; padding: 24px; background: linear-gradient(118deg, transparent 0 53%, rgba(201,235,103,.9) 53.4% 54.6%, transparent 55%), linear-gradient(135deg, #3b9978 0%, #174d43 75%); }
.ag-home-video__upcoming-art::before { position: absolute; right: -64px; bottom: -98px; width: 174px; height: 174px; border: 1px solid rgba(255,255,255,.28); content: ''; transform: rotate(45deg); }
.ag-home-video__upcoming-art span { position: relative; z-index: 1; display: inline-block; padding-left: 12px; border-left: 3px solid var(--home-lime); font-size: 24px; font-weight: 500; letter-spacing: 1px; line-height: 1.05; }
.ag-home-video__poster { position: relative; display: block; min-height: 180px; overflow: hidden; border-radius: 12px; background: #dcebe6; }
#ag-page.ag-home .ag-home-video__poster img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: center; transition: transform .35s ease; }
.ag-home-video__poster::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(17,54,46,.38)); content: ''; pointer-events: none; }
.ag-home-video__card:hover .ag-home-video__poster img { transform: scale(1.04); }
.ag-home-video__play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: var(--home-lime); transform: translate(-50%, -50%); }
.ag-home-video__play::before { width: 0; height: 0; margin-left: 3px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid var(--home-ink); content: ''; }
.ag-home-video__card-label { display: inline-flex; align-items: center; align-self: flex-start; min-height: 24px; margin-top: 20px; padding: 0 10px; border-radius: 999px; background: #dceee8; color: #397263; font-size: 11px; line-height: 1; text-transform: uppercase; }
.ag-home-video__card--upcoming .ag-home-video__card-label { margin-top: 0; background: var(--home-lime); color: var(--home-ink); font-weight: 500; letter-spacing: .04em; }
.ag-home-video__card h3 { margin: 12px 0 0; font-size: 21px; font-weight: 500; line-height: 1.2; text-wrap: balance; }
.ag-home-video__card--upcoming p { margin: 10px 0 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.45; }
#ag-page.ag-home .ag-home-video__card--upcoming h3 { margin-top: 16px; }
#ag-page.ag-home .ag-home-video__card--upcoming p { margin-top: 12px; }
.ag-home-video__actions { display: grid; gap: 8px; margin-top: auto; padding-top: 22px; }
.ag-home-video__actions a { position: relative; display: inline-flex; min-height: 44px; align-items: center; justify-content: flex-start; gap: 9px; padding: 0 11px; border: 1px solid rgba(31,77,68,.13); border-radius: 10px; background: #f7fbf9; color: var(--home-ink) !important; font-size: 13px; font-weight: 500; line-height: 1; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ag-home-video__actions a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(31,77,68,.1); }
.ag-home-video__action--youtube:hover { border-color: rgba(228, 47, 47, .42); background: #fff4f2; }
.ag-home-video__action--rutube:hover { border-color: rgba(40, 125, 97, .42); background: #eff8f4; }
.ag-home-video__platform { position: relative; display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 7px; }
.ag-home-video__platform::after { width: 0; height: 0; margin-left: 1px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid #fff; content: ''; }
.ag-home-video__action--youtube .ag-home-video__platform { background: #e53935; }
.ag-home-video__action--rutube .ag-home-video__platform { background: #287d61; }
.ag-home-video__action-text { letter-spacing: .01em; }
.ag-home-video__action-arrow { margin-left: auto; color: #63877c; font-size: 17px !important; font-weight: 400; }
.ag-home-video__register { display: inline-flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 0 13px; border: 0; border-radius: 10px; background: var(--home-lime); color: var(--home-ink) !important; font: 500 13px/1 'TTFirsNeue', Arial, sans-serif; text-align: left; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.ag-home-video__register:hover { background: #d7f47b; transform: translateY(-2px); }
.ag-home-video__register:disabled { justify-content: center; border: 1px solid rgba(31,77,68,.18); background: #dce7c0; color: var(--home-ink) !important; text-align: center; cursor: not-allowed; box-shadow: none; transform: none; }
.ag-home-video__register > .ag-home-video__register-icon { font-size: 16px; }
.ag-home-video__register-form { display: grid; gap: 9px; margin-top: 14px; }
.ag-home-video__register-form[hidden] { display: none; }
.ag-home-video__register-form > label:not(.ag-home-form__consent) { display: grid; gap: 4px; color: rgba(255,255,255,.88); font-size: 12px; line-height: 1.2; }
.ag-home-video__register-form input[type='text'],
.ag-home-video__register-form input[type='tel'],
.ag-home-video__register-form input[type='email'] { width: 100%; height: 38px; padding: 0 11px; border: 1px solid rgba(255,255,255,.36); border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font: 13px 'TTFirsNeue', Arial, sans-serif; }
.ag-home-video__register-form input::placeholder { color: rgba(255,255,255,.62); }
.ag-home-video__register-form input:focus-visible { outline: 2px solid var(--home-lime); outline-offset: 2px; }
.ag-home-video__register-form .ag-home-form__consent { display: flex; align-items: flex-start; gap: 7px; color: rgba(255,255,255,.78); font-size: 10px; line-height: 1.35; }
.ag-home-video__register-form .ag-home-form__consent input { flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--home-lime); }
.ag-home-video__register-form .ag-home-form__consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.ag-home-video__register-submit { min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; background: rgba(255,255,255,.12); color: #fff; font: 500 13px 'TTFirsNeue', Arial, sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease; }
.ag-home-video__register-submit:hover { background: #fff; color: var(--home-ink); }
.ag-home-video__register-submit:disabled { cursor: wait; opacity: .65; }
.ag-home-video__register-form [role='status'] { margin: 0; color: #fff; font-size: 12px; line-height: 1.4; }
.ag-home-video__actions a:focus-visible, .ag-home-video__register:focus-visible, .ag-home-video__register-submit:focus-visible, .ag-home-video__poster:focus-visible { outline: 2px solid var(--home-green); outline-offset: 4px; }
.ag-home-video__dialog { width: min(460px, calc(100% - 32px)); max-width: 460px; max-height: calc(100vh - 24px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 20px; background: #174d43; color: #fff; box-shadow: 0 24px 70px rgba(8,45,37,.32); }
.ag-home-video__dialog::backdrop { background: rgba(10,45,38,.58); backdrop-filter: blur(3px); }
.ag-home-video__dialog-panel { position: relative; padding: 32px; }
.ag-home-video__dialog-close { position: absolute; top: 18px; right: 18px; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; font-size: 0; cursor: pointer; transition: background .2s ease, color .2s ease; }
.ag-home-video__dialog-close::before, .ag-home-video__dialog-close::after { position: absolute; top: 50%; left: 50%; width: 19px; height: 3px; border-radius: 999px; background: currentColor; content: ''; transform: translate(-50%, -50%) rotate(45deg); }
.ag-home-video__dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ag-home-video__dialog-close:hover { background: #fff; color: var(--home-ink); }
.ag-home-video__dialog .ag-home-eyebrow { margin-bottom: 18px; background: var(--home-lime); color: var(--home-ink); }
.ag-home-video__dialog h2 { max-width: 330px; margin: 0; font-size: 32px; font-weight: 500; line-height: 1.15; }
.ag-home-video__dialog-panel > p { margin: 10px 0 0; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.45; }
.ag-home-video__dialog .ag-home-video__register-form { margin-top: 24px; }
.ag-home-video__dialog .ag-home-video__register-submit { width: 100%; margin-top: 4px; }

.ag-home-partners { min-height: 420px; padding: 0 40px 50px; }
.ag-home-partners__panel {
  min-height: 370px;
  margin-top: 50px;
  padding: 45px 30px 27px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 54% 100%, rgba(107, 183, 115, .7), transparent 43%),
    linear-gradient(110deg, #157e68 0%, #1a7e6b 48%, #174e45 100%);
  color: #fff;
}
.ag-home-partners__panel .ag-home-heading { align-items: center; }
.ag-home-partners__panel .ag-home-heading > div { width: 550px; }
.ag-home-partners__panel h2 { margin: 0 0 18px; font-size: 45px; font-weight: 500; line-height: 1.29; }
.ag-home-partners__panel .ag-home-heading p { max-width: 550px; margin: 0; font-size: 18px; line-height: 1.28; }
.ag-home-partners__panel .ag-home-button { flex: 0 0 158px; width: 158px; height: 38px; min-height: 38px; margin-right: 65px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.ag-home-partners__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 50px; }
.ag-home-partners__cards article { display: flex; min-height: 126px; flex-direction: column; justify-content: center; padding: 10px 18px; border-radius: 10px; background: #fff; color: var(--home-ink); }
.ag-home-partners__cards h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; line-height: 1.28; }
.ag-home-partners__cards p { margin: 0; color: #8ba7a0; font-size: 14px; line-height: 1.29; }

.ag-home-faq { min-height: 436px; padding: 0 40px 55px; }
.ag-home-faq h2 { font-size: 45px; font-weight: 500; letter-spacing: 0; line-height: 58px; }
.ag-home-faq__list { width: 910px; margin: -58px 0 0 190px; }
.ag-home-faq__list details { min-height: 56px; margin: 0; padding: 15px 20px; border-radius: 20px; background: #edf6f5; }
.ag-home-faq__list details + details { margin-top: 10px; }
.ag-home-faq__list details[open] { min-height: 112px; }
.ag-home-faq__list summary { display: flex; min-height: 26px; align-items: center; justify-content: space-between; gap: 16px; padding: 0; color: var(--home-ink); font-size: 18px; line-height: 26px; list-style: none; cursor: pointer; }
.ag-home-faq__list summary::-webkit-details-marker { display: none; }
.ag-home-faq__list summary::marker { content: ''; }
.ag-home-faq__icon { position: relative; display: block; width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid #8ba7a1; border-radius: 50%; }
.ag-home-faq__icon::before { position: absolute; top: 8px; left: 8px; width: 7px; height: 7px; border-right: 1px solid #78978f; border-bottom: 1px solid #78978f; content: ''; transform: rotate(45deg); }
.ag-home-faq__list details[open] .ag-home-faq__icon::before { top: 10px; transform: rotate(225deg); }
.ag-home-faq__list details p { margin: 16px 30px 0 0; padding: 0; color: #607a72; font-size: 14px; line-height: 18px; }

.ag-home-footer { min-height: 950px; padding: 0 0 20px; background: #10815f; color: #fff; }
.ag-home-footer > .ag-clean__canvas { min-height: 950px; padding: 20px 10px; background: linear-gradient(160deg, #0d5b4a, #0f865e); }
.ag-home-footer__panel { min-height: 910px; padding: 48px 38px 27px; border-radius: 10px; background: linear-gradient(140deg, #b1df84 0%, #3ca976 55%, #0c674f 100%); }
.ag-home-footer__contact { display: grid; min-height: 290px; grid-template-columns: 1fr 400px; gap: 45px; align-items: start; }
.ag-home-footer__contact h2 { margin: 0 0 24px; font-size: 36px; font-weight: 500; line-height: 1.12; }
.ag-home-footer__contact > div > a { font-size: 13px; }
.ag-home-form { display: grid; gap: 11px; }
.ag-home-form > label:not(.ag-home-form__consent) { display: grid; gap: 6px; font-size: 12px; }
.ag-home-form input[type='text'],
.ag-home-form input[type='tel'] { width: 100%; height: 40px; padding: 0 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 5px; background: rgba(255,255,255,.12); color: #fff; font: 13px 'TTFirsNeue', Arial, sans-serif; }
.ag-home-form input::placeholder { color: rgba(255,255,255,.7); }
.ag-home-form__consent { display: flex; align-items: flex-start; gap: 8px; font-size: 10px; line-height: 1.4; }
.ag-home-form__consent input { margin: 2px 0 0; }
.ag-home-form__consent a { text-decoration: underline !important; }
.ag-home-form .ag-home-button { justify-self: start; min-height: 38px; }
.ag-home-form--hero { gap: 15px; }
.ag-home-form--hero > label:not(.ag-home-form__consent) { gap: 7px; color: #d1eedc; }
.ag-home-form--hero input[type='text'],
.ag-home-form--hero input[type='tel'] { height: 44px; border-color: rgba(209,238,220,.5); background: rgba(255,255,255,.07); font-size: 14px; }
.ag-home-form--hero input:focus-visible { outline: 2px solid var(--home-lime); outline-offset: 3px; }
.ag-home-form--hero .ag-home-form__consent { gap: 9px; color: #d1eedc; line-height: 1.5; }
.ag-home-form--hero .ag-home-form__consent input { flex-shrink: 0; accent-color: var(--home-lime); }
.ag-home-form--hero .ag-home-button { width: 100%; min-height: 46px; margin-top: 2px; }
.ag-home-form--hero .ag-home-button:disabled { cursor: wait; opacity: .7; transform: none; }
.ag-home-form--hero [role='status'] { margin: 0; color: #fff; font-size: 12px; line-height: 1.4; }
.ag-home-footer__wordmark { height: 176px; overflow: hidden; color: rgba(201, 235, 103, .38); font-size: 164px; font-weight: 500; letter-spacing: -12px; line-height: 1; white-space: nowrap; }
.ag-home-footer__links { display: grid; grid-template-columns: 1.2fr .8fr 1.3fr .8fr; gap: 30px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.25); }
.ag-home-footer__links > div { display: flex; flex-direction: column; gap: 10px; }
.ag-home-footer__links b { margin-bottom: 4px; font-size: 10px; font-weight: 500; letter-spacing: .05em; }
.ag-home-footer__links a,
.ag-home-footer__links span { font-size: 12px; line-height: 1.45; }
.ag-home-footer__bottom { display: flex; justify-content: space-between; margin-top: 65px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); font-size: 10px; }

@media (prefers-reduced-motion: reduce) {
  #ag-page.ag-home *, #ag-page.ag-home *::before, #ag-page.ag-home *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .ag-home-tags__track { display: block; width: 100%; animation: none; will-change: auto; }
  #ag-page.ag-home .ag-home-tags__group { flex-wrap: wrap; justify-content: center; padding: 0 40px; }
  #ag-page.ag-home .ag-home-tags__group[aria-hidden='true'] { display: none; }
}

/* Padding belongs to the authored canvas, so the runtime scales it along with
   every other 1180px coordinate. Padding on the outer section stays unscaled. */
#ag-page.ag-home .ag-clean-section { min-height: 0; padding: 0; }
#ag-page.ag-home .ag-home-services > .ag-clean__canvas { padding: 48px 40px 58px; }
#ag-page.ag-home .ag-home-about > .ag-clean__canvas { padding: 0 10px; }
#ag-page.ag-home .ag-home-clients > .ag-clean__canvas { padding: 48px 40px 60px; }
#ag-page.ag-home .ag-home-process > .ag-clean__canvas { padding: 0 10px; }
#ag-page.ag-home .ag-home-cta > .ag-clean__canvas { padding: 70px 50px 0; }
#ag-page.ag-home .ag-home-team > .ag-clean__canvas { padding: 70px 30px; }
#ag-page.ag-home .ag-home-media > .ag-clean__canvas { padding: 80px 40px 78px; }
#ag-page.ag-home .ag-home-articles > .ag-clean__canvas { padding: 0 10px; }
#ag-page.ag-home .ag-home-community-section > .ag-clean__canvas { padding: 48px 10px 60px; }
#ag-page.ag-home .ag-home-client-logos > .ag-clean__canvas { padding: 48px 10px 60px; }
#ag-page.ag-home .ag-home-video > .ag-clean__canvas { padding: 52px 40px 60px; }
#ag-page.ag-home .ag-home-partners > .ag-clean__canvas { padding: 0 40px 50px; }
#ag-page.ag-home .ag-home-faq > .ag-clean__canvas { padding: 0 40px 55px; }
#ag-page.ag-home .ag-home-faq > .ag-clean__canvas { min-height: 436px; }

/* Keep the CTA phone field visibly distinct from its pale panel. This rule
   follows the shared form rules and uses the page/form scope to win cascade. */
#ag-page.ag-home form.ag-home-cta__form .ag-home-cta__phone input[type='tel'] {
  border: 2px solid #b5d1c7;
  border-radius: 8px;
  background-color: #fff !important;
  box-shadow: 0 2px 8px rgba(31, 77, 68, .08);
}
#ag-page.ag-home form.ag-home-cta__form .ag-home-cta__phone input[type='tel']::placeholder { color: #66847a; opacity: 1; }

/* Responsive home layouts use the same authored grids as the migrated pages.
   All rules below are tablet/phone overrides; the agreed desktop layout above
   remains unchanged. */
@media screen and (max-width: 1179px) {
  #ag-page.ag-home .ag-clean-section { --ag-clean-base: 960px; }
  #ag-page.ag-home .ag-clean__canvas { width: 960px; }
  .ag-home-hero { height: auto; }
  .ag-home-hero__panel { inset: 8px 8px 16px; }
  .ag-home-hero__header { width: calc(100% - 48px); }
  /* Keep the authored cutout aligned with the 1200px desktop header grid.
     The canvas zoom scales this shape with the logo, links, and actions. */
  #ag-page.ag-home .ag-home-hero > .ag-clean__canvas .ag-home-hero__header::before { width: 1200px; background-size: 100% 100%; }
  .ag-home-logo img { width: 132px; height: auto; }
  .ag-home-logo span { font-size: 12px; }
  .ag-home-nav { gap: 12px; margin-left: 25px; }
  .ag-home-nav a { font-size: 12px; }
  .ag-home-hero__actions { margin-right: 12px; padding: 0 6px; }
  .ag-home-hero__actions .ag-home-button { min-width: 72px; padding: 0 8px; font-size: 11px; }
  .ag-home-hero__actions .ag-home-button:first-child { min-width: 100px; }
  .ag-home-hero__body { width: calc(100% - 64px); grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
  .ag-home-hero__title { font-size: 58px; }
  #ag-page.ag-home .ag-home-hero__services { font-size: 23px; }
  .ag-home-hero__consult { padding: 22px; }
  .ag-home-about__green { padding: 36px 28px; }
  .ag-home-about__top { height: 270px; }
  .ag-home-about__top > div { width: 52%; flex-basis: 52%; }
  .ag-home-about__top h2 { font-size: 34px; }
  .ag-home-about__photo { width: 44%; height: 270px; flex-basis: 44%; }
  .ag-home-about__stats { width: 57%; margin-top: -118px; }
  .ag-home-about__stats > div { height: 140px; padding: 15px 10px; }
  .ag-home-about__stats strong { font-size: 27px; }
  .ag-home-about__awards { grid-template-columns: minmax(0, .9fr) repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 42px; padding-top: 24px; }
  .ag-home-about__awards-copy p { font-size: 24px; }
  #ag-page.ag-home .ag-home-about__award { padding-right: 18px; padding-left: 18px; }
  #ag-page.ag-home .ag-home-about__award--kommersant img { width: 165px; }
  .ag-home-about__audiences { gap: 12px; }
  .ag-home-about__audiences article { padding: 16px; }
  .ag-home-audiences > .ag-clean__canvas { padding: 36px 28px 48px; }
  .ag-home-audiences h2 { margin-bottom: 28px; font-size: 34px; }
  .ag-home-clients > .ag-clean__canvas { padding-right: 32px; padding-left: 32px; }
  .ag-home-services > .ag-clean__canvas { padding-right: 24px; padding-left: 24px; }
  .ag-home-clients__viewport, .ag-home-team__header, .ag-home-articles__slider { width: 100%; }
  .ag-home-case { width: 300px; flex-basis: 300px; }
  .ag-home-process__panel { padding: 40px 24px; }
  .ag-home-process__steps::before { right: calc(10% - 4.8px); left: calc(10% - 4.8px); }
  .ag-home-process__steps li:first-child::before { top: -75px; height: 110px; }
  .ag-home-process__steps li:first-child::after { top: -79px; }
  .ag-home-process__steps { gap: 12px; }
  .ag-home-process__steps h3 { font-size: 16px; }
  .ag-home-process__steps p { font-size: 12px; }
  .ag-home-cta > .ag-clean__canvas { padding: 48px 34px 0; }
  .ag-home-cta__panel { grid-template-columns: 34% minmax(0, 1fr); gap: 36px; padding: 36px; }
  #ag-page.ag-home .ag-home-cta__image { width: 100%; height: 430px; }
  .ag-home-cta__copy { padding-top: 32px; }
  .ag-home-cta h2 { font-size: 40px; line-height: 1.1; }
  .ag-home-team > .ag-clean__canvas { padding-right: 24px; padding-left: 24px; }
  .ag-home-cta > .ag-clean__canvas { padding-right: 24px; padding-left: 24px; }
  .ag-home-media > .ag-clean__canvas { padding-right: 24px; padding-left: 24px; }
  .ag-home-team__track img { height: 235px; }
  .ag-home-articles__panel { padding-right: 24px; padding-left: 24px; }
  .ag-home-articles__cards > a { width: 290px; min-width: 290px; }
  .ag-home-articles__visual { width: 290px; }
  .ag-home-articles__viewport { min-width: 0; }
  .ag-home-community { padding: 40px 30px; }
  .ag-home-community > div { gap: 16px; }
  .ag-home-community a { padding: 22px 18px; }
  .ag-home-community__title { font-size: 18px; }
  #ag-page.ag-home .ag-home-client-logos > .ag-clean__canvas { padding: 36px 10px 48px; }
  .ag-home-client-logos__panel { padding: 34px 0 40px; }
  .ag-home-client-logos__header h2 { font-size: 38px; }
  .ag-home-video > .ag-clean__canvas { padding-right: 32px; padding-left: 32px; }
  .ag-home-partners > .ag-clean__canvas { padding-right: 30px; padding-left: 30px; }
  .ag-home-partners__panel .ag-home-button { margin-right: 12px; }
  .ag-home-faq > .ag-clean__canvas { padding-right: 32px; padding-left: 32px; }
  .ag-home-faq__list { width: 75%; margin-left: auto; }
  .ag-home-footer__panel { padding-right: 30px; padding-left: 30px; }
  .ag-home-footer__contact { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .ag-home-footer__links { gap: 20px; }
}

@media screen and (min-width: 960px) {
  #ag-page.ag-home .ag-home-tags__group li { min-height: 28px; padding: 0 13px; font-size: 12px; }
}

@media screen and (max-width: 959px) {
  #ag-page.ag-home { --ag-home-tags-height: 36px; }
  #ag-page.ag-home .ag-clean-section { --ag-clean-base: 640px; }
  .ag-home-services { margin-bottom: 32px; }
  #ag-page.ag-home .ag-clean__canvas { width: 640px; }
  /* Keep the fixed header on the same 640px artwork grid as the hero.
     The previous 1200px clone was squeezed into the viewport, shifting its
     cutout and menu away from the logo. */
  .ag-home-scroll-header { height: 62px; }
  .ag-home-scroll-header__canvas { width: 640px; max-width: none; height: 62px; overflow: visible; margin: 0 auto; }
  .ag-home-scroll-header__canvas::before { position: absolute; inset: 6px 6px 0; border-radius: 9px; background: #1e4c43 url('../../pak/media/Rectangle_14166.svg') center / 100% 100% no-repeat; content: ''; }
  .ag-home-scroll-header__canvas::after { z-index: 1; top: 6px; left: 0; width: 100%; height: 45px; background-image: url('../../pak/media/640px.svg'); background-size: 100% 100%; }
  .ag-home-scroll-header .ag-home-hero__header { display: flex; width: calc(100% - 36px); max-width: none; height: 58px; margin: 6px auto 0; pointer-events: auto; }
  .ag-home-scroll-header .ag-home-hero__header::before { display: none; }
  .ag-home-scroll-header .ag-home-logo { position: relative; top: auto; left: auto; align-items: center; }
  .ag-home-scroll-header .ag-home-nav { display: none; position: absolute; top: 54px; right: 0; left: 0; width: auto; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: #1e4d45; box-shadow: 0 12px 26px rgba(8,45,37,.22); }
  .ag-home-scroll-header .ag-home-hero__header--menu-open .ag-home-nav { display: flex; }
  .ag-home-scroll-header .ag-home-menu-toggle { display: grid; }
  .ag-home-scroll-header .ag-home-hero__actions { display: none; }
  .ag-home-hero__panel { inset: 6px 6px 12px; }
  .ag-home-menu-toggle { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; margin-left: auto; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
  .ag-home-menu-toggle img { width: 24px; height: 6px; }
  .ag-home-nav__mobile { display: block; }
  .ag-home-hero__header { width: calc(100% - 36px); height: 66px; }
  #ag-page.ag-home .ag-home-hero > .ag-clean__canvas .ag-home-hero__header::before { width: 640px; height: 45px; background-image: url('../../pak/media/640px.svg'); background-size: 100% 100%; }
  .ag-home-logo { gap: 7px; }
  .ag-home-logo img { width: 118px; }
  .ag-home-logo span { font-size: 11px; }
  .ag-home-nav { display: none; }
  .ag-home-hero__header.ag-home-hero__header--menu-open .ag-home-nav { position: absolute; z-index: 5; top: 60px; right: 0; left: 0; display: flex; width: auto; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: #1e4d45; box-shadow: 0 14px 30px rgba(8,45,37,.22); }
  .ag-home-hero__header--menu-open .ag-home-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 14px; }
  .ag-home-hero__header--menu-open .ag-home-nav a:last-child { border-bottom: 0; }
  .ag-home-hero__actions { gap: 4px; margin-right: 0; padding: 0; }
  .ag-home-hero__actions .ag-home-button { min-width: 58px; padding: 0 6px; font-size: 10px; }
  .ag-home-hero__actions .ag-home-button:first-child { min-width: 80px; }
  .ag-home-hero__body { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; padding: 20px 0; }
  .ag-home-hero__title { font-size: 43px; letter-spacing: -1.8px; }
  #ag-page.ag-home .ag-home-hero__services { margin-top: 18px; font-size: 18px; }
  .ag-home-hero__experts { gap: 10px; margin-top: 25px; }
  .ag-home-hero__avatars img { width: 37px; height: 37px; }
  .ag-home-hero__experts p { font-size: 11px; }
  .ag-home-hero__consult { padding: 16px; border-radius: 12px; }
  .ag-home-hero__consult h2 { font-size: 23px; }
  #ag-page.ag-home .ag-home-hero__consult > p { font-size: 11px; }
  .ag-home-form--hero { gap: 10px; }
  .ag-home-form--hero .ag-home-form__consent { font-size: 9px; }
  .ag-home-form--hero .ag-home-button { min-height: 40px; font-size: 12px; white-space: normal; }
  .ag-home-tags__viewport { padding: 7px 0; }
  .ag-home-tags__group li { min-height: 30px; padding: 0 14px; font-size: 13px; }
  #ag-page.ag-home .ag-home-services > .ag-clean__canvas { padding: 32px 24px 36px; }
  .ag-home-services .ag-home-heading h2 { font-size: 32px; }
  .ag-home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 25px; }
  .ag-home-service { min-height: 230px; padding: 18px; }
  .ag-home-service h3 { font-size: 18px; }
  .ag-home-service__heading { gap: 10px; }
  .ag-home-service__icon { width: 34px; height: 34px; flex-basis: 34px; }
  .ag-home-service__tags { gap: 5px; margin-left: 44px; }
  .ag-home-service__tags li { font-size: 10px; }
  .ag-home-service__footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ag-home-service p { font-size: 13px; }
  .ag-home-about__green { padding: 26px 22px; }
  .ag-home-about__top { height: auto; flex-direction: column; }
  .ag-home-about__top > div { width: 100%; flex: auto; }
  .ag-home-about__top h2 { font-size: 30px; }
  .ag-home-about__photo { width: 100%; height: 230px; flex-basis: auto; }
  .ag-home-about__stats { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; }
  .ag-home-about__stats > div { height: 116px; }
  .ag-home-about__awards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
  .ag-home-about__awards-copy { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: center; padding: 0; }
  .ag-home-about__awards-copy > span { margin: 0; }
  .ag-home-about__awards-copy p { font-size: 24px; }
  .ag-home-about__audiences { grid-template-columns: 1fr; }
  .ag-home-about__audiences article { min-height: 0; }
  .ag-home-audiences > .ag-clean__canvas { padding: 34px 22px 44px; }
  .ag-home-audiences h2 { margin-bottom: 20px; font-size: 30px; }
  #ag-page.ag-home .ag-home-clients > .ag-clean__canvas { padding: 32px 24px 40px; }
  .ag-home-clients .ag-home-heading { align-items: flex-start; gap: 12px; }
  .ag-home-clients .ag-home-heading h2 { font-size: 32px; }
  .ag-home-case { width: 300px; flex-basis: 300px; }
  .ag-home-process > .ag-clean__canvas { padding: 0 10px; }
  .ag-home-process__panel { min-height: 0; padding: 30px 22px; }
  .ag-home-process .ag-home-heading { flex-direction: column; gap: 14px; }
  .ag-home-process .ag-home-heading h2 { font-size: 32px; line-height: 1.2; }
  .ag-home-process__guarantee { width: 100%; flex-basis: auto; gap: 12px; }
  .ag-home-process__steps::before,
  .ag-home-process__steps li:first-child::before,
  .ag-home-process__steps li:first-child::after { display: none; }
  .ag-home-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin-top: 28px; }
  .ag-home-process__steps li { padding-top: 0; }
  .ag-home-process__steps li > span { margin-bottom: 12px; }
  .ag-home-process__steps h3 { min-height: 0; margin-bottom: 8px; }
  #ag-page.ag-home .ag-home-cta > .ag-clean__canvas { padding: 32px 22px 0; }
  .ag-home-cta__panel { grid-template-columns: 1fr; gap: 0; padding: 22px; }
  #ag-page.ag-home .ag-home-cta__image { width: 100%; height: 250px; object-position: center 35%; }
  .ag-home-cta__copy { padding-top: 24px; }
  .ag-home-cta h2 { margin-bottom: 16px; font-size: 32px; line-height: 1.1; }
  .ag-home-cta__description { margin-bottom: 22px; font-size: 16px; line-height: 1.4; }
  .ag-home-cta__actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ag-home-cta__form .ag-home-button { width: 190px; min-height: 50px; flex: 0 0 auto; }
  #ag-page.ag-home .ag-home-team > .ag-clean__canvas { padding: 38px 22px; }
  .ag-home-team__header { align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .ag-home-team__header > div:first-child { width: auto; }
  .ag-home-team h2 { font-size: 32px; line-height: 1.2; }
  .ag-home-team__header p { margin-top: 8px; font-size: 15px; }
  .ag-home-team__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .ag-home-team__track img { height: 220px; }
  .ag-home-team__track h3 { margin-top: 12px !important; }
  #ag-page.ag-home .ag-home-media > .ag-clean__canvas { padding: 40px 24px; }
  .ag-home-media h2 { font-size: 32px; }
  .ag-home-articles > .ag-clean__canvas { padding: 0 10px; }
  .ag-home-articles__panel { min-height: 0; padding: 24px 18px; }
  .ag-home-articles .ag-home-heading { height: auto; align-items: flex-start; flex-direction: column; gap: 16px; }
  .ag-home-articles .ag-home-heading h2 { font-size: 25px; line-height: 1.2; }
  .ag-home-articles .ag-home-heading > .ag-home-button { display: none; }
  .ag-home-articles__slider { width: 100%; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
  .ag-home-articles__viewport { order: 0; width: 100%; flex: 0 0 100%; }
  .ag-home-articles__arrow { width: 28px; height: 28px; flex: 0 0 28px; align-self: auto; order: 1; margin-top: 0; }
  .ag-home-articles__arrow img { width: 24px; height: 24px; }
  .ag-home-articles__cards > a { display: flex; width: 280px; min-width: 280px; height: 320px; flex-direction: column; }
  .ag-home-articles__visual { width: 280px; height: 175px; }
  .ag-home-articles__cards h3 { display: -webkit-box; height: 46px; flex: 0 0 46px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .ag-home-articles__meta { flex: 0 0 24px; margin-top: auto; }
  #ag-page.ag-home .ag-home-community-section > .ag-clean__canvas { padding: 32px 10px 40px; }
  .ag-home-community { min-height: 0; padding: 32px 24px; }
  .ag-home-community h2 { margin-bottom: 26px; font-size: 32px; }
  .ag-home-community > div { grid-template-columns: 1fr; }
  .ag-home-community a { min-height: 120px; padding: 24px; }
  #ag-page.ag-home .ag-home-client-logos > .ag-clean__canvas { padding: 32px 10px 40px; }
  .ag-home-client-logos__panel { min-height: 0; padding: 28px 0 32px; }
  .ag-home-client-logos__header h2 { font-size: 32px; }
  #ag-page.ag-home .ag-home-video > .ag-clean__canvas { padding: 38px 24px 44px; }
  .ag-home-video__intro { margin-bottom: 28px; }
  .ag-home-video__intro h2 { font-size: 30px; }
  .ag-home-video__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ag-home-video__card { min-height: 460px; padding: 12px; }
  .ag-home-video__card--upcoming { padding: 0 18px 20px; }
  .ag-home-video__poster, .ag-home-video__upcoming-art { min-height: 170px; }
  #ag-page.ag-home .ag-home-video__poster img { height: 170px; }
  .ag-home-video__upcoming-art { margin-right: -18px; margin-left: -18px; }
  .ag-home-video__card h3 { font-size: 18px; }
  .ag-home-video__actions a { min-height: 44px; padding: 0 10px; font-size: 12px; }
  #ag-page.ag-home .ag-home-partners > .ag-clean__canvas { padding: 0 18px 28px; }
  .ag-home-partners__panel { min-height: 0; margin-top: 22px; padding: 26px 20px; }
  .ag-home-partners__panel .ag-home-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .ag-home-partners__panel .ag-home-heading > div { width: auto; }
  .ag-home-partners__panel h2 { font-size: 30px; }
  .ag-home-partners__panel .ag-home-button { margin: 0; }
  .ag-home-partners__cards { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .ag-home-partners__cards article { min-height: 100px; }
  #ag-page.ag-home .ag-home-faq > .ag-clean__canvas { min-height: 0; padding: 0 24px 32px; }
  .ag-home-faq h2 { font-size: 32px; line-height: 1.2; }
  .ag-home-faq__list { width: 100%; margin: 20px 0 0; }
  .ag-home-faq__list summary { font-size: 15px; }
  .ag-home-footer > .ag-clean__canvas { min-height: 0; padding: 12px; }
  .ag-home-footer__panel { min-height: 0; padding: 26px 22px; }
  .ag-home-footer__contact { min-height: 0; grid-template-columns: 1fr; gap: 26px; }
  .ag-home-footer__contact h2 { font-size: 30px; }
  .ag-home-footer__wordmark { height: 90px; margin-top: 32px; font-size: 78px; letter-spacing: -6px; }
  .ag-home-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-top: 24px; }
  .ag-home-footer__bottom { gap: 18px; margin-top: 30px; }
}

@media screen and (max-width: 639px) {
  #ag-page.ag-home { --ag-home-tags-height: 32px; }
  #ag-page.ag-home .ag-clean-section { --ag-clean-base: 320px; }
  .ag-home-services { margin-bottom: 24px; }
  #ag-page.ag-home .ag-clean__canvas { width: 320px; }
  #ag-page.ag-home .ag-clean-section:not(.ag-home-hero):not(.ag-home-footer) { overflow: visible; }
  .ag-home-scroll-header__canvas { width: 320px; height: 62px; }
  .ag-home-scroll-header__canvas::before { inset: 4px 4px 0; }
  .ag-home-scroll-header__canvas::after { top: 4px; height: 45px; background-image: url('../../pak/media/320.svg'); }
  .ag-home-scroll-header .ag-home-hero__header { position: relative; width: calc(100% - 16px); height: 58px; min-height: 58px; flex-wrap: nowrap; align-content: center; margin-top: 4px; padding-top: 0; }
  .ag-home-scroll-header .ag-home-nav { width: auto; gap: 0; margin: 0; }
  .ag-home-scroll-header .ag-home-hero__header.ag-home-hero__header--menu-open .ag-home-nav { position: absolute; top: 54px; right: 0; left: 0; width: auto; flex-direction: column; margin: 0; }
  .ag-home-hero__panel { inset: 4px 4px 8px; }
  .ag-home-hero__header { width: calc(100% - 16px); height: 58px; min-height: 58px; flex-wrap: nowrap; align-content: center; padding-top: 0; }
  #ag-page.ag-home .ag-home-hero > .ag-clean__canvas .ag-home-hero__header::before { top: 0; width: 320px; height: 45px; background-image: url('../../pak/media/320.svg'); background-size: 100% 100%; background-position: center top; }
  .ag-home-logo { gap: 5px; }
  .ag-home-logo img { width: 82px; height: auto; }
  .ag-home-logo span { font-size: 9px; line-height: 1.05; }
  .ag-home-menu-toggle { width: 30px; height: 36px; flex-basis: 30px; margin-right: 2px; }
  .ag-home-nav { display: none; }
  .ag-home-hero__actions { display: none; }
  .ag-home-hero__body { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 16px; align-content: center; padding: 18px 0; }
  .ag-home-hero__title { font-size: 37px; line-height: 1; }
  #ag-page.ag-home .ag-home-hero__services { margin-top: 12px; font-size: 15px; line-height: 1.3; }
  .ag-home-hero__experts { margin-top: 15px; }
  .ag-home-hero__avatars img { width: 32px; height: 32px; }
  .ag-home-hero__consult { padding: 14px; }
  .ag-home-hero__consult h2 { font-size: 21px; }
  #ag-page.ag-home .ag-home-hero__consult > p { margin: 8px 0 12px; font-size: 10px; }
  .ag-home-form--hero { grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
  .ag-home-form--hero > label:not(.ag-home-form__consent) { grid-column: 1 / -1; }
  .ag-home-form--hero input[type='tel'] { height: 38px; }
  .ag-home-form--hero .ag-home-form__consent { grid-column: 1 / -1; }
  .ag-home-form--hero .ag-home-button { min-height: 38px; margin: 0; }
  .ag-home-tags__viewport { padding: 5px 0; }
  .ag-home-tags__track { gap: 8px; animation-duration: 68s; }
  #ag-page.ag-home .ag-home-tags__group { gap: 8px; }
  .ag-home-tags__group li { min-height: 26px; padding: 0 9px; font-size: 11px; }
  #ag-page.ag-home .ag-home-services > .ag-clean__canvas { padding: 24px 16px 28px; }
  .ag-home-services .ag-home-heading h2 { font-size: 27px; }
  .ag-home-services .ag-home-heading > .ag-home-button { min-height: 32px; padding: 0 10px; font-size: 11px; }
  .ag-home-services__grid { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
  .ag-home-service { min-height: 0; padding: 16px; }
  .ag-home-service h3 { font-size: 17px; }
  .ag-home-service__tags { margin-top: 10px; }
  .ag-home-service__footer { padding-top: 12px; }
  .ag-home-service p { font-size: 12px; }
  .ag-home-service__link { font-size: 12px; }
  .ag-home-about__green { padding: 20px 16px; }
  .ag-home-about__top > div { align-items: flex-start; flex-direction: column; gap: 10px; padding: 0 22px; }
  .ag-home-about__top h2 { font-size: 27px; }
  .ag-home-about__top .ag-home-button { margin-top: 0; }
  .ag-home-about__photo { height: 170px; }
  .ag-home-about__stats { gap: 7px; }
  .ag-home-about__stats > div { height: 92px; padding: 11px 9px; }
  .ag-home-about__stats strong { font-size: 21px; }
  .ag-home-about__stats span { font-size: 11px; }
  .ag-home-about__awards { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; padding-top: 22px; }
  .ag-home-about__awards-copy { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
  .ag-home-about__awards-copy > span { font-size: 12px; }
  .ag-home-about__awards-copy p { font-size: 23px; }
  #ag-page.ag-home .ag-home-about__award { display: grid; min-height: 108px; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: 12px; }
  .ag-home-about__award-logo { height: 64px; }
  #ag-page.ag-home .ag-home-about__award-logo img { width: 76px; height: 64px; }
  #ag-page.ag-home .ag-home-about__award--kommersant img { width: 88px; }
  .ag-home-about__award-footer { gap: 8px; padding: 0; border: 0; }
  .ag-home-about__award-name strong { font-size: 14px; }
  .ag-home-about__award-name > span { font-size: 11px; }
  .ag-home-about__award-arrow { width: 24px; height: 24px; flex-basis: 24px; font-size: 16px; }
  .ag-home-about__audiences article { padding: 15px; }
  .ag-home-about__audiences h4 { font-size: 16px !important; }
  .ag-home-about__tags li { font-size: 10px; }
  .ag-home-audiences > .ag-clean__canvas { padding: 28px 16px 36px; }
  .ag-home-audiences h2 { margin-bottom: 16px; font-size: 26px; }
  #ag-page.ag-home .ag-home-clients > .ag-clean__canvas { padding: 25px 16px 30px; }
  .ag-home-clients .ag-home-heading { flex-direction: column; }
  .ag-home-clients .ag-home-heading h2 { font-size: 27px; }
  .ag-home-clients__viewport { margin-top: 22px; }
  .ag-home-case { width: 280px; flex-basis: 280px; height: 340px; padding: 20px; }
  .ag-home-case h3 { font-size: 20px; }
  .ag-home-clients__controls { gap: 15px; }
  .ag-home-process > .ag-clean__canvas { padding: 0 6px; }
  .ag-home-process__panel { padding: 24px 16px; }
  .ag-home-process .ag-home-heading h2 { font-size: 27px; }
  .ag-home-process__guarantee { gap: 9px; }
  .ag-home-process__guarantee p { font-size: 12px !important; }
  .ag-home-process__steps { gap: 20px 10px; }
  .ag-home-process__steps li > span { width: 36px; height: 36px; font-size: 16px; }
  .ag-home-process__steps h3 { font-size: 14px; }
  .ag-home-process__steps p { font-size: 11px; }
  #ag-page.ag-home .ag-home-cta > .ag-clean__canvas { padding: 22px 12px 0; }
  .ag-home-cta__panel { padding: 16px; }
  #ag-page.ag-home .ag-home-cta__image { height: 190px; }
  .ag-home-cta h2 { font-size: 27px; }
  .ag-home-cta__description { font-size: 14px; }
  #ag-page.ag-home .ag-home-team > .ag-clean__canvas { padding: 28px 16px; }
  #ag-page.ag-home .ag-home-team > .ag-clean__canvas { display: flex; flex-direction: column; }
  .ag-home-team__header { display: block; }
  .ag-home-team__viewport { order: 2; }
  .ag-home-team__toggle { order: 3; margin-top: 22px; }
  .ag-home-team h2 { font-size: 27px; }
  .ag-home-team__header p { font-size: 13px; }
  .ag-home-team__track img { height: 160px; }
  #ag-page.ag-home .ag-home-team__track h3 { font-size: 16px; line-height: 1.25; }
  .ag-home-team__track .ag-home-team__role { font-size: 12px; line-height: 1.4; }
  #ag-page.ag-home .ag-home-media > .ag-clean__canvas { padding: 30px 16px; }
  .ag-home-media h2 { font-size: 27px; }
  .ag-home-articles__panel { padding: 20px 14px; }
  .ag-home-articles .ag-home-heading h2 { font-size: 23px; }
  .ag-home-articles__slider { gap: 10px; margin-top: 22px; }
  .ag-home-articles__arrow { width: 28px; height: 28px; flex-basis: 28px; }
  .ag-home-articles__arrow img { width: 24px; height: 24px; }
  .ag-home-articles__viewport { width: calc(100% - 42px); }
  .ag-home-articles__cards > a { height: 295px; }
  .ag-home-articles__visual { width: 236px; height: 148px; }
  .ag-home-articles__cards h3 { font-size: 16px; }
  #ag-page.ag-home .ag-home-community-section > .ag-clean__canvas { padding: 24px 10px 32px; }
  .ag-home-community { padding: 26px 18px 18px; border-radius: 14px; }
  .ag-home-community h2 { margin-bottom: 24px; font-size: 26px; }
  .ag-home-community > div { gap: 12px; }
  .ag-home-community a { min-height: 0; padding: 20px 18px; }
  .ag-home-community__title { font-size: 18px; }
  .ag-home-community__copy { margin-top: 14px; font-size: 14px; }
  #ag-page.ag-home .ag-home-client-logos > .ag-clean__canvas { padding: 24px 10px 32px; }
  .ag-home-client-logos__panel { padding: 24px 0 26px; border-radius: 14px; }
  .ag-home-client-logos__header h2 { font-size: 26px; }
  #ag-page.ag-home .ag-home-video > .ag-clean__canvas { padding: 30px 16px 36px; }
  .ag-home-video__intro { margin-bottom: 24px; }
  .ag-home-video__intro h2 { font-size: 24px; line-height: 1.2; }
  .ag-home-video__cards { grid-template-columns: 1fr; gap: 16px; }
  .ag-home-video__card { min-height: 460px; padding: 12px; }
  .ag-home-video__card--upcoming { min-height: 460px; padding: 0 18px 20px; }
  .ag-home-video__poster, .ag-home-video__upcoming-art { min-height: 190px; }
  #ag-page.ag-home .ag-home-video__poster img { height: 190px; }
  .ag-home-video__upcoming-art { margin-right: -18px; margin-left: -18px; }
  .ag-home-video__card h3 { font-size: 19px; }
  .ag-home-video__actions { gap: 7px; }
  .ag-home-video__actions a { min-height: 44px; padding: 0 10px; font-size: 13px; }
  #ag-page.ag-home .ag-home-partners > .ag-clean__canvas { padding: 0 12px 22px; }
  .ag-home-partners__panel { padding: 22px 16px; }
  .ag-home-partners__panel h2 { font-size: 26px; }
  .ag-home-partners__panel .ag-home-heading p { font-size: 15px; }
  .ag-home-partners__panel .ag-home-button { width: 158px; height: 38px; min-height: 38px; flex: 0 0 auto; }
  .ag-home-partners__cards article { padding: 14px; }
  .ag-home-partners__cards h3 { font-size: 16px; }
  .ag-home-partners__cards p { font-size: 12px; }
  #ag-page.ag-home .ag-home-faq > .ag-clean__canvas { padding: 0 16px 24px; }
  .ag-home-faq h2 { font-size: 27px; }
  .ag-home-faq__list details { padding: 12px 14px; }
  .ag-home-faq__list summary { gap: 10px; font-size: 13px; line-height: 1.35; }
  .ag-home-faq__list details p { margin: 12px 0 0; font-size: 12px; line-height: 1.45; }
  .ag-home-footer > .ag-clean__canvas { padding: 8px; }
  .ag-home-footer__panel { padding: 20px 16px; }
  .ag-home-footer__contact h2 { font-size: 26px; }
  .ag-home-footer__wordmark { height: 52px; font-size: 46px; letter-spacing: -4px; }
  .ag-home-footer__links { grid-template-columns: 1fr 1fr; gap: 20px 12px; padding-top: 20px; }
  .ag-home-footer__links a, .ag-home-footer__links span { font-size: 11px; }
  .ag-home-footer__links > div:last-child { grid-column: 1 / -1; }
  .ag-home-footer__bottom { align-items: flex-start; flex-direction: column; gap: 10px; margin: 22px 0 0; }
}

/* Keep the fixed top strip slow and continuous after all responsive home rules. */
#ag-page.ag-home .ag-home-tags__track { display: flex; width: max-content; animation: ag-home-tags-scroll 140s linear infinite; transform: none; }
#ag-page.ag-home .ag-home-tags__group { flex-wrap: nowrap; padding: 0; }
#ag-page.ag-home .ag-home-tags__group[aria-hidden='true'] { display: flex; }

@media (prefers-reduced-motion: reduce) {
  #ag-page.ag-home .ag-home-tags__track { animation: none; transform: none; }
  #ag-page.ag-home .ag-home-tags__group[aria-hidden='true'] { display: none; }
}

/* Subtle motion system for the home page: reveal content as it enters the
 * viewport, then keep hover feedback spatial and restrained. */
@media (prefers-reduced-motion: no-preference) {
  #ag-page.ag-home .ag-home-reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity .72s cubic-bezier(.22, .61, .36, 1), transform .72s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--ag-reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  #ag-page.ag-home .ag-home-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
  #ag-page.ag-home .ag-home-reveal:nth-child(odd) { transform: translate3d(0, 22px, 0); }
  #ag-page.ag-home .ag-home-reveal:nth-child(odd).is-visible { transform: translate3d(0, 0, 0); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #ag-page.ag-home .ag-home-about__photo { transition: transform .8s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease; }
  #ag-page.ag-home .ag-home-about__top:hover .ag-home-about__photo { transform: scale(1.018); box-shadow: 0 18px 34px rgba(31,77,68,.18); }
  #ag-page.ag-home .ag-home-media__tile { transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease; }
  #ag-page.ag-home .ag-home-media__tile:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(31,77,68,.16); }
  #ag-page.ag-home .ag-home-service,
  #ag-page.ag-home .ag-home-case,
  #ag-page.ag-home .ag-home-video__card,
  #ag-page.ag-home .ag-home-partners__cards article { transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease; }
  #ag-page.ag-home .ag-home-service:hover,
  #ag-page.ag-home .ag-home-case:hover,
  #ag-page.ag-home .ag-home-video__card:hover,
  #ag-page.ag-home .ag-home-partners__cards article:hover { transform: translateY(-4px); }
}

@media screen and (max-width: 1179px) {
  .ag-home-hero__proof { gap: 10px; margin-top: 32px; }
  .ag-home-client-logos__header { padding: 0 30px; }
  .ag-home-client-logo { width: 175px; height: 98px; flex-basis: 175px; }
}
@media screen and (max-width: 959px) {
  .ag-home-hero__proof { gap: 8px; margin-top: 24px; }
  .ag-home-hero__proof strong { font-size: 19px; }
  .ag-home-hero__proof span { font-size: 11px; }
  .ag-home-media__grid { gap: 10px; margin-top: 26px; }
  .ag-home-media__tile { padding: 8px; border-radius: 12px; }
  .ag-home-media__gallery { border-radius: 8px; }
  .ag-home-client-logos__header { padding: 0 24px; }
  .ag-home-client-logo { width: 145px; height: 86px; flex-basis: 145px; padding: 12px; }
  #ag-page.ag-home .ag-home-client-logo__image { max-height: 55px; }
}
@media screen and (max-width: 639px) {
  .ag-home-hero__proof { gap: 8px; margin-top: 18px; padding-top: 22px; }
  .ag-home-hero__proof > div::before { top: -22px; }
  .ag-home-hero__proof strong { font-size: 16px; }
  .ag-home-hero__proof span { font-size: 10.5px; }
  .ag-home-media__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .ag-home-media__tile { padding: 10px; }
  .ag-home-client-logos__header { padding: 0 18px; }
  .ag-home-client-logo { width: 125px; height: 76px; flex-basis: 125px; padding: 10px; }
  #ag-page.ag-home .ag-home-client-logo__image { max-height: 48px; }
}

/* On phones, keep the first screen focused on the offer and its one action.
   The topic ticker and the expert/proof row repeat information available
   further down the page, so remove them from this narrow first-screen layout. */
@media screen and (max-width: 639px) {
  #ag-page.ag-home { --ag-home-tags-height: 0px; }
  #ag-page.ag-home .ag-home-tags { display: none; }
  #ag-page.ag-home .ag-home-hero { height: auto; }
  #ag-page.ag-home .ag-home-hero__panel {
    position: relative;
    inset: auto;
    width: calc(100% - 8px);
    min-height: 650px;
    height: auto;
    margin: 4px auto 8px;
    overflow: hidden;
  }
  #ag-page.ag-home .ag-home-hero__body {
    flex: 1 0 auto;
    align-content: start;
    align-items: start;
    gap: 26px;
    padding: 78px 0 28px;
  }
  #ag-page.ag-home .ag-home-hero__experts,
  #ag-page.ag-home .ag-home-hero__proof { display: none; }
  #ag-page.ag-home .ag-home-hero__title { font-size: 36px; line-height: 1.06; }
  #ag-page.ag-home .ag-home-hero__services { margin-top: 18px; font-size: 16px; line-height: 1.45; }
  #ag-page.ag-home .ag-home-hero__consult { padding: 20px; }
  #ag-page.ag-home .ag-home-hero__consult h2 { font-size: 23px; line-height: 1.2; }
  #ag-page.ag-home .ag-home-hero__consult > p { margin: 12px 0 18px; font-size: 13px; line-height: 1.45; }
  #ag-page.ag-home .ag-home-form--hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #ag-page.ag-home .ag-home-form--hero > label:not(.ag-home-form__consent),
  #ag-page.ag-home .ag-home-form--hero .ag-home-form__consent { grid-column: auto; }
  #ag-page.ag-home .ag-home-form--hero > label:not(.ag-home-form__consent) { gap: 8px; font-size: 13px; }
  #ag-page.ag-home .ag-home-form--hero input[type='tel'] { height: 46px; font-size: 16px; }
  #ag-page.ag-home .ag-home-form--hero .ag-home-form__consent { gap: 9px; font-size: 11px; line-height: 1.45; }
  #ag-page.ag-home .ag-home-form--hero .ag-home-button { min-height: 48px; font-size: 14px; }
}

/* On phones, show the work process as a clear, vertically ordered list. */
@media screen and (max-width: 639px) {
  #ag-page.ag-home .ag-home-process__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  #ag-page.ag-home .ag-home-process__steps li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: start;
    padding: 0;
    text-align: left;
  }
  #ag-page.ag-home .ag-home-process__steps li > span {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    margin: 0;
  }
  #ag-page.ag-home .ag-home-process__steps h3 {
    grid-column: 2;
    min-height: 0;
    justify-content: flex-start;
    margin: 0 0 5px;
    font-size: 16px;
    text-align: left;
  }
  #ag-page.ag-home .ag-home-process__steps p {
    grid-column: 2;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
  }
}

/* Give the phone layout one outer gutter and one radius for its main panels. */
@media screen and (max-width: 639px) {
  #ag-page.ag-home {
    --ag-home-mobile-gutter: 12px;
    --ag-home-mobile-radius: 16px;
  }

  #ag-page.ag-home .ag-home-hero__panel {
    width: 92.5%;
    border-radius: var(--ag-home-mobile-radius);
  }
  #ag-page.ag-home .ag-home-hero__services {
    font-size: 19px;
    line-height: 1.35;
  }

  #ag-page.ag-home .ag-home-services > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-about > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-clients > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-audiences > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-process > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-cta > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-client-logos > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-team > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-media > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-community-section > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-articles > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-video > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-partners > .ag-clean__canvas,
  #ag-page.ag-home .ag-home-faq > .ag-clean__canvas {
    padding-inline: var(--ag-home-mobile-gutter);
  }

  #ag-page.ag-home .ag-home-about__green,
  #ag-page.ag-home .ag-home-process__panel,
  #ag-page.ag-home .ag-home-cta__panel,
  #ag-page.ag-home .ag-home-client-logos__panel,
  #ag-page.ag-home .ag-home-articles__panel,
  #ag-page.ag-home .ag-home-community,
  #ag-page.ag-home .ag-home-partners__panel,
  #ag-page.ag-home .ag-home-video__card,
  #ag-page.ag-home .ag-home-faq__list details {
    border-radius: var(--ag-home-mobile-radius);
  }

  body.ag-home-shell .ag-site-footer__canvas { padding-inline: 12px; }
  body.ag-home-shell .ag-site-footer__contact { border-radius: 16px; }
}
