/* Drupal components and shared design tokens. Base mockup styles stay in style.css. */
.region-header,.region-header>div {
  display: contents;
}

.navbar-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.submenu-toggle {
  border: 0;
  background: transparent;
  color: var(--ed-green);
  padding: 5px;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 230px;
  padding: 12px 20px;
  list-style: none;
  background: #f5f3ed;
  box-shadow: 0 12px 22px #17282b22;
}

.nav-submenu .nav-submenu {
  position: static;
  box-shadow: none;
}

.submenu-open>.nav-submenu {
  display: block;
}

.nav-submenu .nav-link {
  white-space: normal;
}

.footer-top {
  grid-template-columns: 1.2fr .8fr 1.1fr;
  gap: 48px;
}

.footer-contacts ul {
  padding: 0;
  list-style: none;
}

.footer-contacts h4 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.footer-contacts i {
  display: none;
}

.footer-contacts a {
  color: var(--ed-green);
}

.footer-contacts .contact-info {
  font-size: 13px;
  line-height: 1.8;
}

.page-content {
  padding-top: 50px;
  padding-bottom: 65px;
  min-height: 40vh;
}

.psy-article .article-copy,.psy-article>.content {
  max-width: 920px;
}

.psy-article p,.psy-article li {
  line-height: 1.85;
}

.psy-article h2 {
  font-size: 34px;
  margin-top: 32px;
}

.psy-article h3 {
  font-size: 25px;
}

.field__label {
  font-weight: 600;
  margin: 22px 0 12px;
}

.field__items .field__item {
  margin-bottom: 12px;
}

.field--name-body {
  max-width: 920px;
}

.views-psy-grid {
  display: grid;
  gap: var(--psy-grid-gap);
}

.views-psy-grid>.views-row {
  min-width: 0;
}

.views-psy-grid .specialist-card {
  height: 100%;
}

.views-psy-grid--service {
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 18px;
}

.views-psy-grid--team {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.views-psy-grid--testimonial,.views-psy-grid--article {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.views-psy-grid--location {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.views-psy-grid--service .topic-card {
  display: block;
  text-decoration: none;
  height: auto;
  min-height: 0;
  aspect-ratio: .70;
  border-radius: var(--psy-card-radius);
}

.views-psy-grid--service .topic-card .topic-title {
  font-size: 20px;
  line-height: 1.15;
  left: 16px;
  right: 14px;
  bottom: 56px;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.views-psy-grid--service img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(.72);
  transition: transform .35s ease;
}

.specialist-name a {
  color: inherit;
  text-decoration: none;
}

.specialist-card>.specialist-photo {
  height: var(--specialist-photo-height,285px);
  object-fit: cover;
  object-position: center 20%;
  width: 100%;
}

.specialist-price small {
  font-size: 11px;
  font-weight: 400;
  display: block;
  margin-top: 3px;
}

.review-card,.news-card,.location-card {
  border: 1px solid var(--ed-line);
  border-radius: var(--psy-card-radius);
  overflow: hidden;
  background: white;
  height: 100%;
}

.review-card {
  padding: var(--psy-card-padding);
  display: flex;
  flex-direction: column;
}

.review-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.review-heading img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.review-heading h3 {
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

.home-reviews .review-copy {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-copy {
  font-size: 14px;
  line-height: 1.75;
  color: #52635d;
}

.home-reviews {
  background: white;
  padding: var(--psy-section-space) 0 0;
}

.home-news {
  padding: var(--psy-section-space) 0;
}

.news-card>.specialist-photo,.location-card>.specialist-photo {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.news-card h3 {
  font-family: var(--ed-serif);
  font-size: 25px;
  line-height: 1.2;
  margin: 10px 0 20px;
}

.location-card h2 {
  font-size: 30px;
  margin-top: 0;
}

.profile-summary {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 45px;
  margin-bottom: 35px;
}

.profile-summary img {
  max-height: 430px;
  object-fit: cover;
  border-radius: 6px;
}

.profile-summary .field__label {
  display: none;
}

.profile-summary .eyebrow {
  margin-top: 15px;
}

.gallery-grid .field__items {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
}

.gallery-grid.clients .field__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  padding: 16px 20px;
  background: #f8f9f7;
  border: 1px solid #edf0eb;
  border-radius: var(--psy-card-radius);
}

.gallery-grid.clients .field__item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--psy-card-radius);
}

.gallery-grid.clients img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 82px;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 0;
  transform: scale(var(--logo-scale-x, 1), var(--logo-scale-y, 1));
}

.video-card {
  display: block;
  position: relative;
  isolation: isolate;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--psy-card-radius);
  background: var(--ed-green-dark);
  text-decoration: none;
  color: white;
  margin: 0;
}

.video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.form-item {
  margin: 0 0 22px;
}

.form-item label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}

input:not([type=checkbox],[type=radio],[type=submit],[type=hidden]),textarea,select {
  max-width: 100%;
  border: 1px solid var(--ed-line);
  border-radius: 5px;
  background: #fcfcfa;
  padding: 12px 14px;
  font: inherit;
}

input[type=submit],button.form-submit {
  background: var(--ed-green);
  border: 0;
  border-radius: 5px;
  color: white;
  padding: 14px 25px;
}

.form-item .description {
  font-size: 12px;
  color: var(--ed-muted);
}

.form-item input[type=checkbox]+label,.form-item input[type=radio]+label {
  display: inline;
}

.messages {
  padding: 18px;
  margin: 20px 0;
  background: var(--ed-cream);
}

.tabs {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 15px 0;
}

.field--name-field-team-education .field__item {
  margin-bottom: 10px;
}

.psy-front-node {
  padding: 0;
}

.psy-front-node .node__links {
  display: none;
}

.profile-cta {
  margin: 40px 0;
}

.site-footer .field__label {
  display: none;
}

.contact-map {
  border: 0;
  width: 100%;
  height: 320px;
  margin: 24px 0;
}

.page-heading .breadcrumb {
  gap: 8px;
}

.page-heading .breadcrumb span:last-child {
  overflow-wrap: anywhere;
}

.psy-article a {
  overflow-wrap: anywhere;
}

.home-editorial {
  padding: var(--psy-section-space) 0;
  background: var(--ed-cream);
}

.home-details {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 32px;
  counter-reset: approach;
}

.home-details h3 {
  font-family: var(--ed-serif);
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.home-details p {
  font-size: 14px;
  line-height: 1.7;
  color: #52635d;
  margin-bottom: 0;
}

/* Client logos: keep the presentation local to the homepage. */
.home-clients {
  padding: 40px 0;
  background: #fff;
}

.home-clients .section-heading {
  margin-bottom: 24px;
}

.home-clients .client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.home-clients .client-logo {
  margin: 0;
  background: #f8f9f7;
  padding: 12px 18px;
  border: 1px solid #edf0eb;
  border-radius: var(--psy-card-radius);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-clients .client-logo img {
  display: block;
  width: 100%;
  max-width: 154px;
  height: 58px;
  object-fit: contain;
  object-position: center;
  /* The shared specialist-photo class supplies an unwanted green rectangle. */
  background: transparent;
  transform: scale(var(--logo-scale-x, 1), var(--logo-scale-y, 1));
}

/* Some legacy artboards already contain stretched artwork. Restore its shape
   against the corresponding original logos in files/banner. File IDs scope
   these reversible corrections to those exact uploads, never new images. */
.home-clients [data-logo-file="519"],
.gallery-grid.clients [data-logo-file="539"] { --logo-scale-y: .66; } /* Badoo */
.home-clients [data-logo-file="518"],
.gallery-grid.clients [data-logo-file="535"] { --logo-scale-y: .58; } /* Landor */
.home-clients [data-logo-file="512"],
.gallery-grid.clients [data-logo-file="537"] { --logo-scale-y: .33; } /* DoorHan */
.home-clients [data-logo-file="515"] { --logo-scale-x: .46; } /* Webgames */
.gallery-grid.clients [data-logo-file="531"] { --logo-scale-y: .66; } /* RTSoft */
.home-clients [data-logo-file="513"] { --logo-scale-y: .84; } /* Perm DSK */
.home-clients [data-logo-file="514"],
.gallery-grid.clients [data-logo-file="536"] { --logo-scale-x: .82; } /* Grand Motors */
.home-clients [data-logo-file="517"],
.gallery-grid.clients [data-logo-file="532"] { --logo-scale-x: .46; } /* RAO UES */
.home-clients [data-logo-file="509"],
.gallery-grid.clients [data-logo-file="534"] { --logo-scale-y: .66; } /* Mail.ru: @ outline */
.home-clients [data-logo-file="508"],
.gallery-grid.clients [data-logo-file="538"] { --logo-scale-x: .84; } /* Yandex: Я outline */

/* This original PNG contains much larger transparent margins around its mark.
   Give it more room without cropping, resampling or changing the source file. */
.home-clients .client-logo img[src*="/webgames_"] {
  max-width: 100%;
  height: 80px;
}

.social-links .social-icon {
  display: flex;
  gap: 20px;
}

.social-links .social-icon a {
  text-decoration: none;
  font-size: 14px;
}

.social-links .social-icon a[href*="whatsapp"]:after {
  content: 'WhatsApp ↗';
}

.social-links .social-icon a[href*="t.me"]:after {
  content: 'Telegram ↗';
}

.social-links .social-icon i {
  display: none;
}

.contact-info {
  margin: 20px 0;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info i {
  display: none;
}

.field--name-field-testimonial-avatar img {
  max-width: 140px;
  border-radius: 50%;
}

.page-content .form-item {
  max-width: 780px;
}

.map-placeholder {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
  background: var(--ed-cream);
  border-radius: 5px;
  margin-top: 20px;
}

.map-placeholder .contact-map {
  margin: 0;
}

.gallery-grid.photos img,.gallery-grid:not(.clients) img {
  object-fit: contain;
  background: var(--ed-cream);
}

.psy-article .article-copy .field--name-body {
  max-width: 920px;
}

.video-wrapper {
  max-width: 780px;
  margin: 32px 0;
}

.video-wrapper .video-card {
  margin: 0;
}

.video-embed {
  border: 0;
  width: 100%;
  aspect-ratio: 16/10;
  display: block;
  border-radius: var(--psy-card-radius);
}

.profile-education {
  margin: 30px 0;
}

.profile-education h2 {
  font-size: 32px;
}

:root {
  --psy-section-space: 64px;
  --psy-grid-gap: 24px;
  --psy-card-padding: 24px;
  --psy-card-radius: 8px;
}

.site-header .navbar {
  min-height: 100px;
  padding: 18px 0;
}

.hero {
  min-height: 620px;
}

.hero h1 {
  font-size: clamp(48px,5.5vw,78px);
}

.section-heading {
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(30px,3.3vw,46px);
  line-height: 1.12;
}

.requests {
  padding: var(--psy-section-space) 0 0;
}

.specialists {
  padding: var(--psy-section-space) 0;
}

.views-psy-grid--service .topic-card:after {
  background: linear-gradient(180deg,rgba(16,33,27,0) 15%,rgba(16,33,27,.20) 38%,rgba(12,28,23,.93) 100%);
}

.views-psy-grid--service .topic-card:hover img {
  transform: scale(1.04);
}

.topic-card:focus-visible {
  outline: 3px solid #b8873a;
  outline-offset: 4px;
}

.specialist-card {
  border-radius: var(--psy-card-radius);
  box-shadow: none;
}

.portrait-frame {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #e4e9e3;
  flex-shrink: 0;
}

.portrait-frame .specialist-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transform: scale(var(--portrait-zoom,1));
  transform-origin: 50% var(--portrait-origin,50%);
}

.specialist-card[data-portrait-file="623"] {
  --portrait-zoom: 1.45;
  --portrait-origin: 48%;
}

.specialist-card[data-portrait-file="610"] {
  --portrait-zoom: 1.34;
  --portrait-origin: 48%;
}

.specialist-card[data-portrait-file="580"] {
  --portrait-zoom: 1.3;
  --portrait-origin: 45%;
}

.specialist-card[data-portrait-file="595"] {
  --portrait-zoom: 1.32;
  --portrait-origin: 48%;
}

.specialist-body {
  padding: var(--psy-card-padding);
}

.specialist-name {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 7px;
}

.specialist-role {
  font-size: 13px;
  line-height: 1.5;
  min-height: 20px;
  margin-bottom: 22px;
}

.specialist-price {
  font-size: 19px;
  margin-top: auto;
  margin-bottom: 18px;
}

.specialist-card .btn {
  padding: 12px 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 0;
}

.home-reviews .review-copy :where(p,span,div) {
  font-family: inherit!important;
  font-size: inherit!important;
  line-height: inherit!important;
  color: inherit!important;
}

.home-reviews .review-copy p {
  margin-bottom: 12px;
}

.review-card>.text-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
}

.news-card {
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.news-card h3 a {
  color: var(--ed-ink);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--ed-green);
  text-decoration: underline;
}

.news-card .text-link {
  margin-top: auto;
  font-size: 13px;
}

.news-date {
  font-size: 11px;
  color: var(--ed-muted);
  letter-spacing: .04em;
}

.home-editorial .field--name-body {
  max-width: none;
}

.home-details section {
  counter-increment: approach;
  border-top: 1px solid #d8dfd6;
  padding-top: 18px;
}

.home-details section:before {
  content: "0" counter(approach);
  display: block;
  font-size: 12px;
  color: var(--ed-green);
  margin-bottom: 14px;
  letter-spacing: .1em;
}

.home-founder {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 48px;
  margin-top: 48px;
  padding: 32px;
  background: white;
  border-radius: var(--psy-card-radius);
}

.founder-intro h2 {
  font-size: clamp(30px,3vw,40px);
  line-height: 1.15;
  max-width: 390px;
  margin-bottom: 20px;
}

.founder-intro .eyebrow {
  margin-bottom: 14px;
}

.founder-intro .field {
  font-size: 14px;
  line-height: 1.75;
  color: #52635d;
}

.founder-intro .text-link {
  font-size: 13px;
  margin-top: 12px;
}

.home-founder .video-wrapper {
  margin: 0;
  min-width: 0;
  width: 100%;
}

.video-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#102b24d9,transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.video-card .video-play {
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%,-50%);
  width: 64px;
  height: 64px;
  padding-left: 4px;
  border-radius: 50%;
  background: white;
  color: var(--ed-green);
  font-size: 22px;
  z-index: 2;
  box-shadow: 0 4px 18px #102b2420;
}

.video-card .video-caption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  right: 24px;
  z-index: 2;
  font-size: 15px;
  line-height: 1.4;
  color: white;
}

.video-caption small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  opacity: .85;
}

.video-card:hover img {
  transform: scale(1.025);
}

.video-card:hover .video-play {
  background: #f0f4ed;
}

.home-clients .client-logos>div {
  flex: 0 0 calc((100% - 56px)/5);
  min-width: 0;
}

.matching {
  padding: 54px 0;
}

.matching h2 {
  font-size: clamp(32px,3vw,42px);
}

.matching p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.matching .mt-4 {
  font-size: 13px;
}

.site-footer {
  padding: 48px 0 22px;
}

@media(min-width:992px) {
  .has-submenu:hover>.nav-submenu,.has-submenu:focus-within>.nav-submenu {
    display: block;
  }
}

@media(max-width:1199px) {
  .navbar-nav {
    gap: 12px;
  }

  .navbar .nav-link {
    font-size: 12px;
  }

  .views-psy-grid--service .topic-card .topic-title {
    font-size: 20px;
  }
}

@media(max-width:991px) {
  .nav-submenu {
    position: static;
    box-shadow: none;
    padding: 0 0 8px 18px;
  }

  .nav-item-row {
    justify-content: space-between;
  }

  .submenu-toggle {
    padding: 10px 18px;
  }

  .profile-summary {
    grid-template-columns: 260px 1fr;
    gap: 25px;
  }

  :root {
    --psy-section-space: 48px;
    --psy-grid-gap: 20px;
    --psy-card-padding: 20px;
  }

  .site-header .navbar {
    min-height: 88px;
    padding: 16px 0;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .views-psy-grid--service {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
  }

  .views-psy-grid--service .topic-card .topic-title {
    font-size: 25px;
  }

  .views-psy-grid--team {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .views-psy-grid--testimonial,.views-psy-grid--article {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
  }

  .news-card>.specialist-photo {
    height: 160px;
  }

  .news-card h3 {
    font-size: 22px;
  }

  .home-details {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 28px;
  }

  .home-founder {
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    padding: 24px;
  }

  .founder-intro h2 {
    font-size: 30px;
  }

  .home-founder .video-card {
    aspect-ratio: 4/3;
  }

  .home-clients .client-logos>div {
    flex-basis: calc((100% - 28px)/3);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-contacts {
    grid-column: 1/-1;
  }
}

@media(max-width:767px) {
  .gallery-grid .field__items {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .profile-summary {
    grid-template-columns: 1fr;
  }

  .profile-summary img {
    max-width: 340px;
    width: 100%;
  }

  .views-psy-grid--location {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding-top: 30px;
  }

  .views-psy-grid--service {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .views-psy-grid--testimonial,.views-psy-grid--article {
    grid-template-columns: 1fr;
  }

  .home-founder {
    grid-template-columns: 1fr;
  }

  .home-founder .video-card {
    aspect-ratio: 16/10;
  }

  .hero {
    min-height: 640px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero:after {
    background: linear-gradient(180deg,#f5f3ed 0%,#f5f3edf5 38%,#f5f3edc9 55%,#f5f3ed00 82%);
  }
}

@media(max-width:479px) {
  .views-psy-grid--team,.views-psy-grid--testimonial,.views-psy-grid--article {
    grid-template-columns: 1fr;
  }

  .gallery-grid .field__items {
    grid-template-columns: 1fr;
  }

  .page-heading h1 {
    font-size: 38px;
  }

  :root {
    --psy-section-space: 40px;
    --psy-grid-gap: 20px;
  }

  .site-header .navbar {
    min-height: 80px;
    padding: 16px 0;
  }

  .hero {
    min-height: 660px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .requests .section-heading {
    display: block;
  }

  .requests .section-heading .text-link {
    margin-top: 6px;
  }

  .views-psy-grid--service {
    gap: 14px;
  }

  .views-psy-grid--service .topic-card {
    aspect-ratio: .67;
  }

  .views-psy-grid--service .topic-card .topic-title {
    font-size: 18px;
    line-height: 1.2;
    left: 14px;
    right: 12px;
    bottom: 54px;
  }

  .views-psy-grid--team {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
  }

  .specialist-name {
    font-size: 16px;
    min-height: 2.7em;
  }

  .specialist-card .specialist-body {
    padding: 16px 14px;
  }

  .specialist-card .specialist-role {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .specialist-card .btn {
    font-size: 12px;
    padding: 11px 6px;
  }

  .home-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-details h3 {
    font-size: 25px;
  }

  .home-founder {
    padding: 22px;
    gap: 24px;
    margin-top: 32px;
  }

  .video-card .video-play {
    width: 48px;
    height: 48px;
    font-size: 18px;
    top: 40%;
  }

  .video-card .video-caption {
    left: 16px;
    right: 16px;
    bottom: 14px;
    font-size: 12px;
  }

  .video-caption small {
    display: none;
  }

  .news-card>.specialist-photo {
    height: 210px;
  }

  .home-clients {
    padding: 32px 0;
  }

  .home-clients .client-logos {
    gap: 10px;
  }

  .home-clients .client-logos>div {
    flex-basis: calc((100% - 10px)/2);
  }

  .home-clients .client-logo {
    padding: 10px 14px;
    height: 88px;
  }

  .home-clients .client-logo img {
    height: 54px;
  }

  .home-clients .client-logo img[src*="/webgames_"] {
    height: 66px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 22px;
  }

  .footer-brand,.footer-contacts {
    grid-column: 1/-1;
  }

  .matching {
    padding: 42px 0;
  }

  .matching p {
    font-size: 14px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .topic-card:hover img,.video-card:hover img {
    transform: none;
  }
}

