/* MKTU */
/* Список классов МКТУ */

.mktu__classes-list-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.mktu__classes-list__title {
  width: 100%;
  margin: 0;
}

.mktu__classes-list__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.mktu__classes-list__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.mktu__classes-list__item:hover,
.mktu__classes-list__item:focus-visible,
.mktu__classes-list__item.is-active {
  background-color: var(--accent-d-color);
  border-color: var(--accent-d-color);
}

.mktu__classes-list__item:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.mktu__classes-list__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.mktu__classes-list__more svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.mktu__classes-list__more:hover,
.mktu__classes-list__more:focus-visible {
  color: var(--accent-d-color);
}

.mktu__classes-list__more:hover svg,
.mktu__classes-list__more:focus-visible svg {
  transform: translate(2px, -2px);
}

@media (max-width: 767px) {
  .mktu__classes-list-inner {
    gap: 20px;
  }

  .mktu__classes-list__list {
    gap: 8px;
  }

  .mktu__classes-list__item {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
}


/* Бесплатная проверка по базе Роспатента */


.mktu__check-inner {
  --rospatent-height: 103px;
  --rospatent-width: 72px;

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  align-items: center;
  padding: clamp(1.25rem, 0.057rem + 2.4876vw, 2.5rem);
  overflow: hidden;
  background-color: var(--accent-l-color);
  border-radius: var(--br);
}

.mktu__rospatent {
  position: relative;
}
.mktu__rospatent::before,
.mktu__rospatent::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  width: var(--rospatent-width);
  height: var(--rospatent-height);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.7;
  transform: translateY(-50%);
  pointer-events: none;
}
.mktu__rospatent--l {
  padding-left: calc(var(--rospatent-width) + 15px) !important;
}
.mktu__rospatent--r {
  padding-right: calc(var(--rospatent-width) + 15px) !important;
}
.mktu__rospatent--l::before {
  right: calc(100% - var(--rospatent-width));
  background-image: url("../images/rospatent-r.png");
  background-position: right center;
}

.mktu__rospatent--r::after {
  left: calc(100% - var(--rospatent-width));
  background-image: url("../images/rospatent-l.png");
  background-position: left center;
}

.mktu__check-content {
  position: relative;
  z-index: 1;
  padding: 28px 36px;
  background-color: #fff;
  border-radius: var(--br);
}

.mktu__check-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
}

.mktu__check-content strong,
.mktu__check-content b {
  font-weight: 700;
}

.mktu__check-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.mktu__check-content a:hover,
.mktu__check-content a:focus-visible {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .mktu__check-inner {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .mktu__rospatent--r {
    padding-right: 0px !important;
  }
  .mktu__rospatent--l {
    padding-left: inherit !important;
  }
  .mktu__rospatent--r::after {
    display: none;
    /* transform: translate(0, 100%);
    bottom: 0;
    right: 50%;
    top: auto;
    left: auto; */
  }
  .mktu__rospatent--l::before {
    display: none;
    /* top: 0;
    left: 50%;
    right: auto;
    transform: translate(0, -100%); */
  }

}

.mktu__check-info {
  padding-right: 36px;
}
.mktu__form .mktu__check-inner{
  grid-template-columns: 1fr 1.5fr;
}

@media (max-width: 768px) {
  .mktu__form .mktu__check-inner {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
}

.mktu__check-text {
  margin-top: 20px;
  line-height: 1.6;
}

.mktu__check-form {
  padding: 36px;
  padding-bottom: 0px;
  background-color: var(--white-color);
  border-radius: var(--br);
}
.mktu__check-form .form-container{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mktu__check-form .form-container #form_phone_button{
  background-color: var(--accent-color);
  color: var(--white-color) !important;
}

.mktu__check-form .privacy {
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray-color);
}

.mktu__check-form .privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* mktu search page*/

.mktu__header {
	display: grid;
	gap: 24px;
	margin-bottom: 40px;
  text-align: center;
}

.mktu__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.mktu__item {
	background-color: var(--accent-xl-color);
	border-radius: var(--br);
	overflow: hidden;
}

.mktu__link {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	height: 100%;
	padding: 24px;
}

.mktu__item-title {
	line-height: 1.2;
  font-weight: 700 !important;
}

.mktu__item-text {
	line-height: 1.4;
}

@media (max-width: 1024px) {
	.mktu__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.mktu__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mktu__link {
		padding: 20px;
	}
}


/* tz-suppurt */

.tz-suppurt__columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-radius: var(--br);
	overflow: hidden;
}

.tz-suppurt__column {
	padding: clamp(30px, 4vw, 48px);
}

.tz-suppurt__column--light {
	background-color: var(--gray-bg);
}

.tz-suppurt__column--accent {
	background-color: var(--accent-xl-color);
}

.tz-suppurt__title {
	margin-bottom: 32px;
	line-height: 1.05;
}

.tz-suppurt__advantages-item {
  padding-bottom: 20px;
  border-bottom: var(--divider);
  margin-bottom: 20px;
}

.tz-suppurt__advantages-item::before {
	top: 20px;
}

.tz-suppurt__advantages-item:last-child {
	border-bottom: none;
}

.tz-suppurt__footer {
	display: grid;
	justify-items: start;
	gap: 28px;
	margin-top: 28px;
}

.tz-suppurt__text {
	font-size: clamp(18px, 1.6vw, 22px);
	line-height: 1.15;
}

.tz-suppurt__steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tz-suppurt__step {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 16px;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: var(--divider);
}

.tz-suppurt__step:last-child {
	border-bottom: none;
}

.tz-suppurt__step-number {
	color: var(--accent-color);
	white-space: nowrap;
}

.tz-suppurt__step-text {
	line-height: 1.25;
}

@media (max-width: 768px) {
	.tz-suppurt__columns {
		grid-template-columns: 1fr;
	}


	.tz-suppurt__step {
		grid-template-columns: 60px minmax(0, 1fr);
	}
}

/* page-template-page-search */

.page-template-page-search .block-simple-text .block__inner {
  font-size: 16px;
}


/* guides */


.guides__title {
	margin-bottom: 20px;
}

.guides__intro {
	line-height: 1.6;
}

.guides__intro p {
	line-height: inherit;
}

.guides__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 960px;
	margin-top: clamp(48px, 6vw, 64px);
}

.guides__item {
	overflow: hidden;
	border: 2px solid #eeeeee;
	transition: transform .3s ease;
}

.guides__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.guides__image {
	width: 100%;
	height: auto;
}

.guides__description {
	padding: 16px 12px;
	line-height: 1.6;
}

@media (hover: hover) {
	.guides__item:hover {
		transform: translateY(-4px);
	}
}

@media (max-width: 768px) {
	.guides__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.guides__items {
		grid-template-columns: 1fr;
	}
}

/* partner */

.partner__hero {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 30px;
	align-items: start;
}

.partner__hero .icon::before {
  --size: 23px;
  color: var(--accent-color);
}

.partner__title {
	margin-bottom: 20px;
}

.partner__intro {
	font-size: clamp(16px, 15.11px + .25vw, 18px);
	line-height: 1.6;
}

.partner__button {
	margin-top: 20px;
}

.partner__benefits {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.partner__benefit {
	position: relative;
	line-height: 1.6;
}

.partner__benefit-text p {
	line-height: inherit;
}

.partner__section-title {
	text-align: center;
}

.partner__areas-grid,
.partner__steps-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 40px;
}

.partner__area,
.partner__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 18px;
	background-color: var(--white-color);
	border-radius: var(--br);
	box-shadow: 0 12px 32px rgba(27, 29, 33, .07);
	text-align: center;
}

.partner__area {
	min-height: 145px;
  border: 2px solid transparent;
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

@media (hover: hover) {
	.partner__area:hover {
		border-color: var(--accent-color);
		box-shadow: 0 12px 32px rgba(27, 29, 33, .05);
	}
}

.partner__step {
	justify-content: flex-start;
	min-height: 280px;
  border: 2px solid transparent;
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

@media (hover: hover) {
	.partner__step:hover {
		border-color: var(--accent-color);
		box-shadow: 0 12px 32px rgba(27, 29, 33, .05);
	}
}

.partner__icon {
	width: 42px;
	height: 42px;
	margin-bottom: 20px;
	color: var(--accent-color);
}

/* .partner__icon-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
} */

.partner__area-title,
.partner__step-title {
	margin: 0;
	color: var(--black-color);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.partner__step-description {
	margin-top: 20px;
	color: var(--gray-color);
	line-height: 1.6;
}

.partner__audience {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 230px;
	padding: clamp(32px, 7vw, 80px);
	border: 4px solid var(--accent-color);
	border-radius: var(--br);
	text-align: center;
}

.partner__audience-title {
	max-width: 780px;
}

@media (max-width: 1024px) {
	.partner__hero {
		grid-template-columns: 1fr;
	}

	.partner__areas-grid,
	.partner__steps-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.partner__areas-grid,
	.partner__steps-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.partner__step {
		min-height: auto;
	}

	.partner__audience {
		min-height: 180px;
		padding: 28px 20px;
		border-width: 2px;
	}
}

.block-logo-slider--partners h2{
  text-align: center;
}


/* info pages */

.info-page__title {
	margin-bottom: clamp(32px, 5vw, 56px);
}

.info-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
	gap: clamp(40px, 7vw, 90px);
	align-items: start;
}

.info-page__content {
	line-height: 1.7;
}

.info-page__content a,
.department-contacts a {
	text-decoration: underline;
}

.info-page__content--bottom {
	margin-top: 40px;
}

.contact-info {
	margin-top: 36px;
}

.contact-info--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.contact-info--stacked {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 0;
}

.contact-info__item {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 14px;
	align-items: start;

  padding: 28px;
	border: 2px solid transparent;
	border-radius: var(--br);
	background-color: var(--white-color);
	box-shadow: 0 12px 32px rgba(27, 29, 33, .07);
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

@media (hover: hover) {
	.contact-info__item:hover {
		border-color: var(--accent-color);
		box-shadow: 0 12px 32px rgba(27, 29, 33, .05);
	}
}

@media (max-width: 768px) {
  .contact-info__item {
    padding: 0px;
    border-radius: 0px;
    box-shadow: none;
    border: none;
  }
  .contact-info__item:hover {
    padding: 0px;
    border-radius: 0px;
    box-shadow: none;
    border: none;
  }
}

.contact-info__icon {
	width: 34px;
	height: 34px;
	color: var(--accent-color);
}

.contact-info__icon svg,
.contact-info__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.contact-info__title {
	margin: 0 0 8px;
	color: var(--black-color);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.contact-info__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-info__link,
.contact-info__links a {
	line-height: 1.4;
}

@media (hover:hover) {
  .contact-info__link:hover,
  .contact-info__links a:hover {
    color: var(--accent-color);
  } 
}

.business-hours {
	padding: 20px 24px;
	background-color: var(--white-color);
	border-radius: var(--br);
	box-shadow: 0 12px 24px rgba(27, 29, 33, .12);
}

.business-hours__row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 4px;
	border-bottom: 1px solid #eeeeee;
	line-height: 1.2;
}

.business-hours__row:last-child {
	border-bottom: 0;
}

.business-hours__row--closed {
	color: #ff1f1f;
}

.department-contacts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 36px 0 0;
	padding-left: 18px;
	/* color: var(--gray-color); */
}

.payment-qr {
	width: fit-content;
	margin: 36px auto 0;
	text-align: center;
}

.payment-qr__image {
	width: 270px;
	height: 270px;
	object-fit: contain;
}

.payment-qr__caption {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.info-page__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.contact-info--grid {
		grid-template-columns: 1fr;
	}

	.info-page--help .contact-info__item--messengers {
		padding: 20px;
	}

	.info-page__aside {
		max-width: 420px;
		width: 100%;
	}
}

/* glossary */

.glossary {
  --glossary-gap: clamp(32px, 5vw, 72px);
}

.glossary__title {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.glossary__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background-color: var(--accent-xl-color);
  border: var(--divider);
  border-radius: var(--br);
}

.glossary__letter-link {
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-weight: 700;
  color: var(--accent-d-color);
  background-color: var(--white-color);
  border: 1px solid transparent;
  border-radius: var(--br-s);
  transition: color .25s, background-color .25s, border-color .25s, transform .25s;
}

.glossary__index {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: var(--divider);
  border-radius: var(--br);
}

.glossary__index-title {
  margin-bottom: 24px;
}

.glossary__index-list {
  column-count: 3;
  column-gap: clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.glossary__index-item {
  position: relative;
  break-inside: avoid;
  padding-left: 16px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.glossary__index-item::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--accent-color);
}

.glossary__index-item a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .25s, text-decoration-color .25s;
}

.glossary__groups {
  display: flex;
  flex-direction: column;
  gap: var(--glossary-gap);
  margin-top: var(--glossary-gap);
}

.glossary__group {
  display: grid;
  grid-template-columns: minmax(90px, 140px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  scroll-margin-top: 100px;
}

.glossary__group-head {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.glossary__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(70px, 8vw, 100px);
  aspect-ratio: 1;
  color: var(--accent-color);
  background-color: var(--accent-xl-color);
  border-radius: var(--br);
}

.glossary__to-top {
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-color);
  text-transform: uppercase;
  transition: color .25s;
}

.glossary__to-top span {
  color: var(--accent-color);
}

.glossary__terms {
  min-width: 0;
  border-top: var(--divider);
}

.glossary__term {
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: var(--divider);
  scroll-margin-top: 100px;
}

.glossary__term-title {
  margin-bottom: 18px;
}

.glossary__content {
  color: var(--gray-d-color);
}

.glossary__content p,
.glossary__content li,
.glossary__content td {
  line-height: 1.55;
}

.glossary__content ul,
.glossary__content ol {
  margin-block: 18px;
  padding-left: 22px;
}

.glossary__content ul {
  list-style: square;
}

.glossary__content li + li {
  margin-top: 8px;
}

.glossary__content ul ul,
.glossary__content ol ol,
.glossary__content ul ol,
.glossary__content ol ul {
  margin-block: 8px 0;
}

.glossary__content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
  overflow-x: auto;
  border-collapse: collapse;
}

.glossary__content th,
.glossary__content td {
  min-width: 220px;
  padding: 14px 16px;
  vertical-align: top;
  border: var(--divider);
}

.glossary__content th,
.glossary__content tr:first-child td {
  font-weight: 700;
  color: var(--black-color);
  background-color: var(--accent-xl-color);
}

.glossary__empty {
  padding: 24px;
  background-color: var(--accent-xl-color);
  border-radius: var(--br);
}

@media (hover: hover) {
  .glossary__letter-link:hover {
    color: var(--white-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
  }

  .glossary__index-item a:hover {
    color: var(--accent-d-color);
    text-decoration-color: currentColor;
  }

  .glossary__to-top:hover {
    color: var(--accent-color);
  }
}

@media (max-width: 900px) {
  .glossary__index-list {
    column-count: 2;
  }

  .glossary__group {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .glossary__letters {
    padding: 12px;
  }

  .glossary__letter-link {
    width: 36px;
    height: 36px;
  }

  .glossary__index-list {
    column-count: 1;
  }

  .glossary__group {
    display: block;
  }

  .glossary__group-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .glossary__letter {
    width: 58px;
  }

  .glossary__term {
    padding-block: 26px;
  }

  .glossary__content th,
  .glossary__content td {
    min-width: 190px;
    padding: 12px;
  }
}

/* ==========================================================================
   Partner Offers Page (.info-page--partner-offers)
   ========================================================================== */

/* Двухколоночная шапка страницы */
.info-page__header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: var(--block-mb);
}

.info-page__header-left .info-page__title {
  margin-bottom: 12px;
}

.info-page__subtitle {
  font-size: 18px;
  line-height: 1.4;
}

.info-page__header-right {
  font-size: 16px;
  line-height: 1.6;
}

.info-page__header-right p {
  margin-bottom: 12px;
}

.info-page__header-right p:last-child {
  margin-bottom: 0;
}

/* Сетка карточек партнеров (3 в ряд) */
.partner-offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  background-color: var(--accent-l-color);
  /* border: var(--divider); */
  border-radius: var(--br);
  overflow: hidden;
    /* Легкая аккуратная тень по умолчанию */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
  .partner-card:hover {
    border-color: var(--accent-color);
    /* Более глубокая, но мягкая тень при ховере */
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  }
}


.partner-card__header {
  height: 140px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-l-color);
  /* border-bottom: var(--divider); */
}

.partner-card__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-card__body {
  padding: 24px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  row-gap: 15px;
  border-radius: var(--br);
  background-color: var(--white-color);
}

.partner-card__title {
  font-size: 18px;
  font-weight: 600 !important;
  color: var(--black-color);
  line-height: 1.35;
}

.partner-card__description {
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-d-color);
}

.partner-card__description p:last-child {
  margin-bottom: 0;
}

.partner-card__button-wrap {
  flex-grow: 1;
  display: flex;
  align-items: end;
}

.partner-card__button {
  margin-inline: auto;
  display: flex;
}

.partner-card__icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .partner-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .info-page__header-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .partner-offers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* ==========================================================================
   Contacts Page (.info-page--contacts)
   ========================================================================== */

.info-page__grid--contacts {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
}

.info-page__grid--contacts .info-page__content {
  margin-bottom: var(--block-mb);
}

.info-page__grid--contacts .info-page__main {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contacts-map {
  width: 100%;
  border-radius: var(--br);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(27, 29, 33, .07);
  margin-bottom: 24px;
  background-color: var(--gray-bg);
}

.contacts-map iframe {
  display: block;
  width: 100% !important;
  height: 380px !important;
  border: 0;
}

.contacts-addresses {
  padding: 24px 28px;
  border-radius: var(--br);
  background-color: var(--white-color);
  box-shadow: 0 12px 32px rgba(27, 29, 33, .07);
}

/* Блок Реквизиты */
.contacts-requisites {
  margin-top: clamp(48px, 6vw, 80px);
}

.contacts-requisites__title {
  margin-bottom: 32px;
}

.requisites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.requisites-card {
  padding: 32px;
  border-radius: var(--br);
  background-color: var(--white-color);
  box-shadow: 0 12px 32px rgba(27, 29, 33, .07);
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .requisites-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 32px rgba(27, 29, 33, .05);
  }
}

.requisites-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: var(--divider);
}

.requisites-card__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent-color);
}

.requisites-card__title {
  margin: 0;
}

.requisites-card__title a {
  color: var(--accent-d-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.requisites-card__title a:hover {
  color: var(--accent-color);
}

.requisites-card__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--black-l-color);
}

.requisites-card__body p {
  margin: 0 0 12px;
}

.requisites-card__body p:last-child {
  margin-bottom: 0;
}

/* Адаптивность */
@media (max-width: 900px) {
  .info-page__grid--contacts,
  .requisites-grid {
    grid-template-columns: 1fr;
  }

  .contacts-map iframe {
    height: 300px !important;
  }
}

/* FAQ */

.faq-page__title:has(+ .faq-page__intro) {
	margin-bottom: 24px;
}

.faq-page__intro {
	max-width: 820px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.faq-page__layout {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 72px);
	align-items: start;
}

.faq-page__nav {
	position: sticky;
	top: 110px;
	padding: 14px;
	background-color: var(--accent-xl-color);
	border: var(--divider);
	border-radius: var(--br);
}

.faq-page__nav-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.faq-page__nav-link {
	position: relative;
	width: 100%;
	padding: 12px 14px 12px 30px;
	color: var(--black-color);
	border-radius: var(--br-s);
	line-height: 1.3;
	transition: color .25s ease, background-color .25s ease;
}

.faq-page__nav-link::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 14px;
	width: 6px;
	height: 6px;
	background-color: var(--accent-color);
	transform: translateY(-50%);
}

.faq-page__groups {
	display: flex;
	flex-direction: column;
	gap: clamp(56px, 8vw, 96px);
	min-width: 0;
}

.faq-page__group {
	scroll-margin-top: 110px;
}

.faq-page__group-title {
	margin-bottom: 24px;
}

@media (hover: hover) {
	.faq-page__nav-link:hover {
		color: var(--accent-d-color);
		background-color: var(--white-color);
	}
}

@media (max-width: 768px) {
	.faq-page__layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.faq-page__nav {
		position: static;
		padding: 10px;
		overflow: hidden;
	}

	.faq-page__nav-list {
		flex-direction: row;
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}

	.faq-page__nav-item {
		flex: 0 0 auto;
	}

	.faq-page__nav-link {
		width: auto;
		white-space: nowrap;
	}

	.faq-page__groups {
		gap: 56px;
	}

	.faq-page__group {
		scroll-margin-top: 24px;
	}

	.faq-page__group-title {
		margin-bottom: 20px;
	}
}


/* ==========================================================================
   Блок "СМИ о нас" / Публикации (Media Mentions Grid)
   ========================================================================== */

.media-mentions__title {
  text-transform: uppercase;
}

   /* Контейнер сетки */
.media-mentions__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

/* Карточка */
.media-card {
  background-color: #f5f5f7;
  border-radius: 16px;
  overflow: hidden;
}

/* Ховер-эффект для карточки */
.media-card:hover {
  background-color: #f0f0f3;
}

/* Ссылка внутри карточки (растягиваем на всю высоту) */
.media-card__link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 160px; /* Минимальная высота карточки */
    padding: 28px 32px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

/* Верхняя часть карточки — заголовок */
.media-card__body {
  margin-bottom: 20px;
}

.media-card__title {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--black-color);
}

/* Нижняя часть карточки — логотип */
.media-card__footer {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: auto;
}

.media-card__logo {
  max-height: 38px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .media-mentions__grid {
    grid-template-columns: 1fr; /* Переключение в 1 колонку на смартфонах */
    gap: 16px;
  }

  .media-card__link {
    padding: 20px 24px;
    min-height: 140px;
  }

  .media-card__title {
    font-size: 20px;
  }

  .media-card__logo {
    max-height: 32px;
    max-width: 130px;
  }
}

/* ==========================================================================
   Страница «Отзывы»
   ========================================================================== */

.page-otzyvy__intro-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

@media (max-width: 1024px) {
  .page-otzyvy__intro-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-otzyvy__intro-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.page-otzyvy__intro-content {
  min-width: 0;
}

.page-otzyvy__title {
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .page-otzyvy__title {
    margin-bottom: 22px;
  }
}

.page-otzyvy__description {
  max-width: 650px;
  font-size: clamp(16px, 15.11px + .25vw, 18px);
  line-height: 1.75;
}

.page-otzyvy__description p {
  line-height: inherit;
}

.page-otzyvy__description p:not(:last-child) {
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .page-otzyvy__description p:not(:last-child) {
    margin-bottom: 20px;
  }
}

.page-otzyvy__yandex {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: var(--divider);
  border-radius: var(--br);
}

.page-otzyvy__yandex-frame {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
}

@media (max-width: 1024px) {
  .page-otzyvy__yandex-frame {
    height: 440px;
  }
}

@media (max-width: 768px) {
  .page-otzyvy__yandex-frame {
    height: 420px;
  }
}

@media (max-width: 480px) {
  .page-otzyvy__yandex-frame {
    height: 370px;
  }
}

.page-otzyvy__yandex-link {
  margin-top: 10px;
  color: var(--gray-color);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .25s ease;
}

@media (hover: hover) {
  .page-otzyvy__yandex-link:hover {
    color: var(--accent-color);
  }
}

/* ==========================================================================
   Сетка рекомендательных писем
   ========================================================================== */

.page-otzyvy__references-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}

@media (max-width: 1024px) {
  .page-otzyvy__references-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-otzyvy__references-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }
}

@media (max-width: 480px) {
  .page-otzyvy__references-grid {
    gap: 14px 10px;
  }
}

.page-otzyvy__reference {
  min-width: 0;
}

.page-otzyvy__reference--more {
  display: flex;
  width: 100%;
  aspect-ratio: 210 / 297;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  color: var(--accent-color);
  font-size: 18px;
}
.page-otzyvy__reference-link--more {
  display: inline;
  align-items: center;
  position: relative;
}

.page-otzyvy__reference-link--more::after {
  --size: 12px;
  display: inline-block;
  vertical-align: middle;
}

.page-otzyvy__reference-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-otzyvy__reference-description {
  display: none;
}


/* ==========================================================================
   Блок «Что о нас говорят»
   ========================================================================== */

.block-otzyvy .block__title {
  text-transform: uppercase;
}

.block-otzyvy__source {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: clamp(28px, 24.44px + .99vw, 36px);
}

@media (max-width: 768px) {
  .block-otzyvy__source {
    margin-bottom: 28px;
  }
}

.block-otzyvy__source-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  transition: color .25s ease;
}

@media (hover: hover) {
  .block-otzyvy__source-link:hover {
    color: var(--accent-color);
  }
}

.block-otzyvy__source-image {
  flex: 0 0 65px;
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.block-otzyvy__reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .block-otzyvy__reviews {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .block-otzyvy__reviews {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.block-otzyvy__review {
  position: relative;
  min-width: 0;
  min-height: 285px;
  padding: 28px 26px;
  overflow: hidden;
  border-radius: var(--br);
  background-color: var(--gray-bg);
}

@media (max-width: 1024px) {
  .block-otzyvy__review {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .block-otzyvy__review {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .block-otzyvy__review {
    padding: 22px 18px;
  }
}

.block-otzyvy__quote {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 32px;
  height: 32px;
  color: #dedbdd;
  pointer-events: none;
}

@media (max-width: 480px) {
  .block-otzyvy__quote {
    top: 22px;
    right: 18px;
    width: 28px;
    height: 28px;
  }
}

.block-otzyvy__quote svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.block-otzyvy__author {
  max-width: calc(100% - 48px);
  margin: 0 0 16px;
  color: var(--black-color);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .block-otzyvy__author {
    font-size: 18px;
  }
}

.block-otzyvy__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  color: #f2b01e;
}

@media (max-width: 480px) {
  .block-otzyvy__stars {
    margin-bottom: 18px;
  }
}

.block-otzyvy__star {
  display: block;
  width: 22px;
  height: 22px;
  line-height: 0;
}

@media (max-width: 480px) {
  .block-otzyvy__star {
    width: 20px;
    height: 20px;
  }
}

.block-otzyvy__star svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.block-otzyvy__text {
  font-size: 16px;
  line-height: 1.72;
}

@media (max-width: 480px) {
  .block-otzyvy__text {
    font-size: 15px;
  }
}

/* ==========================================================================
   Письма внутри блока
   ========================================================================== */

.block-otzyvy__letters {
  margin-top: 34px;
}

@media (max-width: 768px) {
  .block-otzyvy__letters {
    margin-top: 28px;
  }
}


/* ==========================================================================
   Страница «Клиенты и отзывы»
   ========================================================================== */

.clients-reviews__header {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 768px) {
  .clients-reviews__header {
    text-align: left;
  }
}

.clients-reviews__title {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 24px;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .clients-reviews__title {
    margin-inline: 0;
    margin-bottom: 20px;
  }
}

.clients-reviews__description {
  font-size: clamp(16px, 15.11px + .25vw, 18px);
  line-height: 1.75;
}

.clients-reviews__description p {
  line-height: inherit;
}


/* ==========================================================================
   Слайдер рекомендательных писем
   ========================================================================== */

.clients-reviews__references {
  margin-top: clamp(56px, 7vw, 90px);
  padding-bottom: 38px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .clients-reviews__references {
    margin-top: 42px;
    padding-bottom: 32px;
  }
}

.clients-reviews__references-wrapper {
  align-items: stretch;
}

.clients-reviews__reference {
  height: auto;
}

.clients-reviews__reference-link {
  display: block !important;
  width: 100%;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border: var(--divider);
}


.clients-reviews__reference-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clients-reviews__pagination {
  bottom: 0 !important;
}

.clients-reviews__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin-inline: 6px !important;
  background-color: var(--accent-l-color);
  opacity: 1;
}

.clients-reviews__pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}


/* ==========================================================================
   Сетка клиентов
   ========================================================================== */

.clients-reviews__clients {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 46px;
}

@media (max-width: 1100px) {
  .clients-reviews__clients {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .clients-reviews__clients {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
  }
}

@media (max-width: 560px) {
  .clients-reviews__clients {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.clients-reviews__client {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 180px;
  padding: 20px 14px 18px;
  border: var(--divider);
  background-color: var(--white-color);
  text-align: center;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

@media (hover: hover) {
  .clients-reviews__client:hover {
    border-color: var(--accent-color);
    /* box-shadow: 0 8px 24px rgba(27, 29, 33, .08); */
  }
}

@media (max-width: 768px) {
  .clients-reviews__client {
    min-height: 160px;
    padding: 16px 10px;
  }
}

@media (max-width: 560px) {
  .clients-reviews__client {
    min-height: 145px;
  }
}

.clients-reviews__client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 95px;
}

@media (max-width: 560px) {
  .clients-reviews__client-logo {
    min-height: 82px;
  }
}

.clients-reviews__client-image {
  width: auto;
  max-width: 100%;
  max-height: 95px;
  object-fit: contain;
}

@media (max-width: 560px) {
  .clients-reviews__client-image {
    max-height: 78px;
  }
}

.clients-reviews__client-number {
  display: inline-flex;
  justify-content: center;
  margin-top: 12px;
  color: var(--gray-d-color);
  font-size: 16px;
  line-height: 1.3;
  transition: color .25s ease;
}

@media (hover: hover) {
  a.clients-reviews__client-number:hover {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 560px) {
  .clients-reviews__client-number {
    font-size: 14px;
  }
}


/* ==========================================================================
   Страница одного сотрудника (Single Team)
   ========================================================================== */

/* --- Главный блок (Фото + Инфо) --- */
.single-team__hero {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  align-items: start;
}

.single-team__photo {
  width: 100%;
  border-radius: var(--br);
  overflow: hidden;
}

.single-team__photo-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.single-team__intro {
  display: flex;
  flex-direction: column;
  /* Позволяет родительскому Flex/Grid-элементу сжиматься и не давать Swiper ломать сетку */
  min-width: 0; 
  gap: 16px;
  height: 100%;
}

.single-team__title {
  font-size: clamp(32px, 26.67px + 1.67vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--black-color);
}

.single-team__position {
  font-size: clamp(24px, 21.33px + 0.83vw, 32px);
  font-weight: 600;
  color: var(--black-color);
}

.single-team__registry-link {
  color: var(--accent-color);
  font-size: 20px;
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 9px;
}

.single-team__registry-link svg {
  width: 18px;
  height: auto;
}

/* --- Контакты (Иконки) --- */
.single-team__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.single-team__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.single-team__contact svg {
  width: 24px;
  height: 24px;
}

/* --- Слайдер документов/дипломов --- */
.single-team__documents-slider {
  width: 100%;
  /* Жестко ограничиваем ширину слайдера границами родительской колонки */
  min-width: 0; 
  max-width: 100%;
  margin-top: auto;
}

.single-team__document {
  display: block;
  border-radius: var(--br);
  overflow: hidden;
  border: 1px solid var(--accent-l-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-team__document:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.single-team__document-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.4;
  object-fit: cover;
  display: block;
}

/* Пока Swiper не инициализирован */

.single-team__documents-slider:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 16px !important;
}

.single-team__documents-slider:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 calc((100% - 65px) / 5);
}

/* --- Секции "Образование" и "Опыт работы" --- */
.single-team__section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px 40px;
}

.single-team__section-title {
  margin: 0;
  color: var(--black-color);
  font-weight: 600;
  font-size: clamp(24px, 21.33px + 0.83vw, 32px);
}

.single-team__section-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Образование */
.single-team__education-item {
  display: flex;
  align-items: center;
  gap: 70px;
}

.single-team__period {
  font-size: 16px;
  color: var(--gray-l-color);
  min-width: 110px;
  font-weight: 400;
  flex-shrink: 0;
  line-height: 28px;
}

.single-team__education-info {
  display: flex;
  align-items: center;
  column-gap: 33px;
  row-gap: 10px;
  flex-wrap: wrap;
}

.single-team__institution {
  font-weight: 700;
  font-size: 20px;
  color: var(--black-color);
}

.single-team__degree {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent-xl-color);
  color: var(--black-color);
  padding: 8px 19px;
  border-radius: var(--br);
  font-size: 18px;
  font-weight: 600;
}

/* Опыт работы */
.single-team__experience-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 70px;
  align-items: start;
}

.single-team__experience-description {
  font-size: 20px;
  font-weight: 400;
  color: var(--black-l-color);
}
.single-team__experience-description p {
  margin-bottom: 16px;
  line-height: 1.4;
}

.single-team__experience-description p:last-child {
  margin-bottom: 0;
}

.single-team__description-text {
  font-size: 20px;
  font-weight: 400;
  color: var(--black-l-color);
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
  .single-team__hero {
    grid-template-columns: 240px 1fr;
  }

  .single-team__section {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .single-team__hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .single-team__photo {
    max-width: 280px;
    margin-inline: auto;
  }

  .single-team__section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .single-team__education-item {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 0 !important;
  }

  .single-team__experience-item {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0 !important;
  }

  .single-team__period {
    min-width: auto;
  }
}


/* ==========================================================================
   Страница «Команда»
   ========================================================================== */

.page-team {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Вступительный блок */

.page-team__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.page-team__intro-heading {
  min-width: 0;
}

.page-team__title {
  margin-bottom: 14px;
  text-transform: uppercase;
}

.page-team__subtitle {
  max-width: 470px;
  color: var(--black-color);
  font-size: clamp(20px, 18.22px + .49vw, 24px);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
}

.page-team__description {
  max-width: 570px;
  color: var(--gray-color);
  font-size: clamp(16px, 15.11px + .25vw, 18px);
  line-height: 1.45;
}

.page-team__description p {
  line-height: inherit;
}

/* Группы сотрудников */

.page-team__group:first-of-type {
  margin-top: 0px;
}

.page-team__group-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.page-team__group-title {
  text-transform: uppercase;
}

.page-team__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Карточка сотрудника */

.page-team__item {
  min-width: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--br);
  background-color: var(--gray-bg);
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.page-team__item-link {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  min-height: 182px;
  padding: 20px 24px;
  color: inherit;
  height: 100%;
}

.page-team__item-photo {
  align-self: start;
  width: 110px;
  height: 110px;
  overflow: hidden;
  border-radius: 50%;
  background-color: var(--accent-l-color);
}

.page-team__item-image,
.page-team__item-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.page-team__item-image {
  object-fit: cover;
}

.page-team__item-placeholder {
  background-color: var(--accent-color);
}

.page-team__item-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}


.page-team__item-description {
  margin-top: 18px;
  color: var(--gray-color);
  line-height: 1.15;
}

.page-team__item-position,
.page-team__item-position-note {
  line-height: inherit;
}

.page-team__item-position-note {
  margin-top: 2px;
}

.page-team__item-position-note p {
  line-height: inherit;
}

.page-team__item-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--gray-d-color);
  font-size: 14px;
  line-height: 1;
  transition: color .25s ease;
}

.page-team__item-more span {
  transition: transform .25s ease;
}

@media (hover: hover) {
  .page-team__item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 28px rgba(27, 29, 33, .07);
  }

  .page-team__item:hover .page-team__item-more {
    color: var(--accent-color);
  }

  .page-team__item:hover .page-team__item-more span {
    transform: translateX(3px);
  }
}

/* Адаптив */

@media (max-width: 900px) {
  .page-team__intro {
    gap: 40px;
  }

  .page-team__items {
    gap: 18px;
  }

  .page-team__item-link {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    min-height: 170px;
    padding: 18px;
  }

  .page-team__item-photo {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 768px) {
  .page-team__intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-team__description {
    max-width: 680px;
  }

  .page-team__items {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-team__group-header {
    margin-bottom: 24px;
  }

  .page-team__item-link {
    min-height: 156px;
  }
}

@media (max-width: 480px) {
  .page-team__subtitle {
    font-size: 18px;
  }

  .page-team__item-link {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    min-height: 140px;
    padding: 16px 14px;
  }

  .page-team__item-photo {
    width: 78px;
    height: 78px;
  }

  .page-team__item-title {
    font-size: 21px;
  }

  .page-team__item-description {
    margin-top: 12px;
    font-size: 13px;
  }

  .page-team__item-more {
    padding-top: 12px;
    font-size: 12px;
  }
}

/* ==========================================================================
   Блок «Берем на себя...» / Команда
   ========================================================================== */

.team__title {
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* ==========================================================================
   Слайдер сотрудников
   ========================================================================== */

.team__members-slider,
.team__documents-slider {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.team__members {
  align-items: stretch;
}

.team__member {
  display: flex;
  height: auto;
  min-width: 0;
  flex-direction: column;
}

.team__member-image-link {
  display: block !important;
  width: 100%;
  overflow: hidden;
  border-radius: var(--br);
  aspect-ratio: 1 / 1;
  background-color: var(--gray-bg);
}

.team__member-image,
.team__member-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.team__member-image {
  object-fit: cover;
}

.team__member-image-placeholder {
  background-color: var(--accent-l-color);
}

.team__member-content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding-top: 14px;
}

.team__member-name {
  margin: 0;
  color: var(--black-color);
  font-size: clamp(18px, 17.11px + .25vw, 20px);
  font-weight: 500;
  line-height: 1.2;
}

.team__member-name a {
  transition: color .25s ease;
}

.team__member-position {
  min-height: 66px;
  margin-top: 14px;
  color: var(--black-l-color);
  font-size: 15px;
  line-height: 1.25;
}

.team__member-position-main,
.team__member-position-note {
  line-height: inherit;
}

.team__member-position-note {
  margin-top: 2px;
  color: var(--gray-color);
}

.team__member-position-note p {
  line-height: inherit;
}

.team__member-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.team__member-contact {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--black-color);
  transition: color .25s ease;
}

.team__member-contact svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Слайдер документов
   ========================================================================== */

.team__documents-slider {
  margin-top: clamp(32px, 4vw, 48px);
}

.team__documents {
  align-items: stretch;
  padding-bottom: 3px;
}

.team__document {
  display: block !important;
  height: auto;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--br);
  aspect-ratio: 210 / 297;
  background-color: var(--white-color);
  transition:
    border-color .25s ease,
    box-shadow .25s ease;
}

.team__document-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Навигация Swiper
   ========================================================================== */

.team__members-slider .swiper-button-prev,
.team__members-slider .swiper-button-next,
.team__documents-slider .swiper-button-prev,
.team__documents-slider .swiper-button-next {
  width: 34px;
  height: 34px;
  margin-top: 0;
  color: var(--accent-color);
}

.team__members-slider .swiper-button-prev,
.team__members-slider .swiper-button-next {
  top: 23%;
}

.team__documents-slider .swiper-button-prev,
.team__documents-slider .swiper-button-next {
  top: 50%;
}

.team__members-slider .swiper-button-prev,
.team__documents-slider .swiper-button-prev {
  left: 4px;
}

.team__members-slider .swiper-button-next,
.team__documents-slider .swiper-button-next {
  right: 4px;
}

.team__members-slider .swiper-button-prev::after,
.team__members-slider .swiper-button-next::after,
.team__documents-slider .swiper-button-prev::after,
.team__documents-slider .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.team .swiper-button-disabled {
  opacity: .25;
}

.team .swiper-button-lock {
  display: none;
}

/* ==========================================================================
   Ссылки под блоком
   ========================================================================== */

.team__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(48px, 10vw, 140px);
  margin-top: clamp(44px, 6vw, 72px);
  padding-inline: 24px;
}

.team__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
  font-size: clamp(18px, 17.11px + .25vw, 20px);
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .25s ease;
}

.team__footer-link svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  transition: transform .25s ease;
}

/* ==========================================================================
   Состояние до инициализации Swiper
   ========================================================================== */

@media (min-width: 1024px) {
  .team__members-slider:not(.swiper-initialized) .swiper-wrapper,
  .team__documents-slider:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 20px;
  }

  .team__members-slider:not(.swiper-initialized) .swiper-slide,
  .team__documents-slider:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc((100% - 80px) / 5);
  }
}

/* ==========================================================================
   Hover
   ========================================================================== */

@media (hover: hover) {
  .team__member-name a:hover,
  .team__member-contact:hover,
  .team__footer-link:hover {
    color: var(--accent-d-color);
  }

  .team__document:hover {
    border-color: var(--accent-l-color);
    box-shadow: 0 8px 24px rgba(27, 29, 33, .08);
  }

  .team__footer-link:hover svg {
    transform: translate(2px, -2px);
  }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1023px) {
  .team__member-position {
    min-height: 58px;
  }

  .team__members-slider .swiper-button-prev,
  .team__members-slider .swiper-button-next {
    top: 25%;
  }
}

@media (max-width: 767px) {
  .team__title br {
    display: none;
  }

  .team__member-position {
    min-height: 0;
  }

  .team__documents-slider {
    margin-top: 36px;
  }

  .team__footer {
    gap: 24px 48px;
    margin-top: 44px;
    padding-inline: 0;
  }
}

@media (max-width: 560px) {
  .team__member-content {
    padding-top: 12px;
  }

  .team__member-name {
    font-size: 18px;
  }

  .team__member-position {
    margin-top: 10px;
    font-size: 14px;
  }

  .team__member-contacts {
    padding-top: 14px;
  }

  .team__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}


/* ==========================================================================
   Блок сертификатов
   ========================================================================== */

.certificates__title {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.certificates__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 24px;
}

.certificates__item {
  min-width: 0;
}

.certificates__link {
  position: relative;
  display: block !important;
  width: 100%;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background-color: var(--white-color);
}

.certificates__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .certificates__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .certificates__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
  }
}

@media (max-width: 600px) {
  .certificates__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .certificates__title {
    margin-bottom: 32px;
  }
}
/* Page o kompanii */

.page-about {
	padding-block: clamp(48px, 6vw, 96px);
}

.page-about__main {
	margin-bottom: clamp(44px, 5vw, 72px);
}

.page-about__top {
	display: grid;
	grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.8fr);
	gap: clamp(40px, 5vw, 96px);
	align-items: start;
}

.page-about__title {
	margin: 0 0 24px;
}

.page-about__lead {
	font-size: 20px;
  font-weight: 600;
}


.page-about__gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(8px, 1vw, 16px);
}

.page-about__gallery-item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4/3;
	margin: 0;
	background: #f2f2f2;
}

.page-about__gallery-image {
	width: 100%;
  height: 100%;
	object-fit: cover;
  object-position: center;
}

.page-about__facts .block-cards__icon {
  align-self: center;
}
.page-about__facts .block-cards__title {
  text-align: center;
}
.page-about__fact-text {
  text-align: center;
}

.page-about__fact-text a {
  color: inherit !important;
}

@media (max-width: 991px) {
	.page-about__top {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.page-about__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.page-about {
		padding-block: 36px 56px;
	}

	.page-about__title {
		margin-bottom: 18px;
	}

	.page-about__text {
		line-height: 1.6;
	}
}

/* page-about-media */

.page-about-media__featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 52px;
}

.page-about-media__featured-item {
  min-width: 0;
}

.page-about-media__featured-logo {
  display: block;
  width: auto;
  max-width: 120px;
  height: 28px;
  margin-bottom: 0;
  object-fit: contain;
  object-position: left center;
}

.page-about-media__featured-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-about-media__featured-text {
  margin: 22px 0 10px;
}

.page-about-media__featured-text time {
  margin-right: 4px;
}

.page-about-media__source {
  display: inline-block;
  margin-top: 22px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-about-media__slider {
  position: relative;
  margin-top: 70px;
  padding-inline: 12px;
}

.page-about-media__slider .swiper-wrapper {
  align-items: stretch;
}

.page-about-media__slide {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: auto !important;
  padding: 28px 44px 24px 12px;
  gap: 10px;
}

.page-about-media__logo {
  display: block;
  width: auto;
  max-width: 120px;
  height: 34px;
  margin-bottom: 10px;
  object-fit: contain;
  object-position: left center;
}

.page-about-media__date {
  display: block;
  margin-bottom: 4px;
}

.page-about-media__text {
  margin: 0 0 18px;
}

.page-about-media__source {
  margin-top: auto;
}

.block-otzyvy__quote {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 32px;
  height: 32px;
  color: #dedbdd;
  pointer-events: none;
}

.block-otzyvy__quote svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}


@media (max-width: 1199px) {

  .page-about-media__slider {
    padding-inline: 36px;
  }
}

@media (max-width: 767px) {
  .page-about-media__featured {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 36px;
  }

  .page-about-media__slider {
    margin-top: 52px;
  }

  .page-about-media__slide {
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  .page-about-media__slider {
    padding-inline: 24px;
  }

  .page-about-media__slide {
    padding: 22px 38px 20px 8px;
  }

  .block-otzyvy__quote {
    top: 22px;
    right: 18px;
    width: 28px;
    height: 28px;
  }
}



/* History */

.history-block {
  display: grid;
  grid-template-columns: 290px 1fr;
  column-gap: 70px;
  padding-block: 40px;
}

@media (max-width: 991px) {
  .history-block {
    grid-template-columns: 220px 1fr;
    column-gap: 40px;
  }
}

@media (max-width: 767px) {
  .history-block {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding-block: 32px;
  }
}

.history-block:nth-child(even) {
  --over-size: max(calc((100dvw - var(--container)) / 2) + var(--container-pad), var(--container-pad));
  position: relative;
  background-color: var(--gray-bg);
}

@media (max-width: 767px) {
  .history-block:nth-child(even) {
    --over-size: var(--container-pad);
  }
}

.history-block:nth-child(even)::after,
.history-block:nth-child(even)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(0px - var(--over-size));
  width: var(--over-size);
  background-color: var(--gray-bg);
}

.history-block:nth-child(even)::after {
  left: auto;
  right: calc(0px - var(--over-size));
}

.history-block__title {
  line-height: 1.4;
}

@media (max-width: 767px) {
  .history-block__title {
    margin: 0;
  }
}

.history-block blockquote {
  position: relative;
  padding-left: 48px;
  margin: 24px 0;
}

@media (max-width: 767px) {
  .history-block blockquote {
    padding-left: 36px;
    margin: 20px 0;
  }
}

/* Вывод иконки через маску */
.history-block blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  
  /* Цвет иконки (можно использовать текущий цвет текста currentColor или переменную) */
  background-color: var(--black-color); 

  /* Относительный путь к иконке от CSS-файла (например: ../img/quote.svg) */
  -webkit-mask-image: url('../images/icons/quote-top.svg');
  mask-image: url('../images/icons/quote-top.svg');

  /* Параметры отображения маски */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  
  -webkit-mask-position: center;
  mask-position: center;
  
  -webkit-mask-size: contain;
  mask-size: contain;
}

.history-summary__title {
  margin-bottom: 30px;
}


.history-summary__outro h2 {
  font-size: clamp(1.125rem, 0.9028rem + 0.9877vw, 1.625rem) !important; /* 26px - 18px */
  color: var(--black-color);
  font-weight: 600 !important;
  margin-block: 30px;
}


.history-nav {
  width: 100%;
}

/* Список кнопок навигации */
.history-nav__list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0 0 8px 0; /* Небольшой отступ снизу под плавный скролл */
    
    /* Горизонтальный скролл на мобильных устройствах */
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
    scroll-snap-type: x mandatory;     /* Привязка элементов при скролле */
    
    /* Скрытие полосы прокрутки */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
}

/* Скрытие полосы прокрутки для Chrome, Safari, Opera */
.history-nav__list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (min-width: 768px) {
  .history-nav__list {
    gap: 12px;
    padding-bottom: 0;
    justify-content: space-between;
  }
}

/* Элемент списка */
.history-nav__item {
    flex: 0 0 auto; /* Запрещаем сжатие кнопок */
    scroll-snap-align: start;
}

/* Ссылка-кнопка */
.history-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-d-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

/* Состояния кнопки (Hover / Focus / Active) */
.history-nav__link:hover,
.history-nav__link:focus {
  color: var(--accent-color);
}


.history-team {
    margin: 40px 0;
    width: 100%;
}

/* Сетка карточек сотрудников (Десктоп по умолчанию: 5 колонок) */
.history-team__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 24px;
}

/* Карточка сотрудника */
.history-team__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Круглая рамка для фотографии */
.history-team__photo,
.history-team__photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.history-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ФИО сотрудника */
.history-team__name {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin: 0 0 6px 0;
}

/* Должность сотрудника */
.history-team__position {
    font-size: 14px;
    color: #666666;
    line-height: 1.35;
    margin: 0;
}


/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .history-team__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px 20px;
    }

    .history-team__photo,
    .history-team__photo-placeholder {
        width: 140px;
        height: 140px;
    }

    .history-team__name {
        font-size: 15px;
    }

    .history-team__position {
        font-size: 13px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .history-team__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }

    .history-team__photo,
    .history-team__photo-placeholder {
        width: 120px;
        height: 120px;
        margin-bottom: 14px;
    }
}

/* search-page */

.search-page .site-main {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.search-page .post-box {
  position: relative;
  background-color: #fff;
  transition: box-shadow 0.3s linear;
  padding: 0;
}

.search-page .post-inner {
  margin: 0;
}

.search-page .inner-post {
  padding: 40px 40px 36px;
  border: 1px solid #e7e7e7;
  transition: border-color 0.3s linear;
}

.search-page .post-box:hover {
  box-shadow: 15px 15px 38px rgb(0 0 0 / 10%);
}

.search-page .post-box:hover .inner-post {
  border-color: transparent;
}

.search-page .entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: #6d6d6d;
  font-size: 12px;
  line-height: 1.4;
}

.search-page .posted-on,
.search-page .read-time {
  display: inline-flex;
  align-items: center;
}

.search-page .entry-title {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.search-page .entry-title a {
  color: inherit;
  text-decoration: none;
}

.search-page .entry-title a:hover {
  text-decoration: underline;
}

.search-page .entry-summary {
  font-size: 14px;
  line-height: 1.875;
}

.search-page .entry-summary p {
  margin: 0;
}

.search-page .entry-summary .excerpt_part {
  display: inline;
}

.search-page .entry-summary mark,
.search-page .entry-summary span[style*="background-color"] {
  background-color: #eded6a !important;
}

.search-page .btn-readmore {
  margin-top: 22px;
}

.search-page .btn-readmore a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.search-page .btn-readmore a span {
  transition: transform 0.2s linear;
}

.search-page .btn-readmore a:hover span {
  transform: translateX(4px);
}

.search-page .navigation.pagination {
  margin-top: 0;
}

.search-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.search-page .page-numbers {
  display: flex;
  min-width: 40px;
  height: 40px;
  padding-inline: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e7e7;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.search-page .page-numbers.current,
.search-page a.page-numbers:hover {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: #fff;
}

.search-page__empty {
  max-width: 700px;
}

.search-page__empty-title {
  margin-bottom: 15px;
}

.search-page__empty-text {
  margin-bottom: 30px;
}

@media (max-width: 767px) {

  .search-page .site-main {
    gap: 30px;
  }

  .search-page .inner-post {
    padding: 25px 20px;
  }

  .search-page .entry-title {
    font-size: 18px;
  }

  .search-page .entry-summary {
    font-size: 13px;
  }
}

/*--------------------------------------------------------------
## 404
--------------------------------------------------------------*/
.error-404 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.error-404 img {
  margin-block: 40px;
  max-width: 600px;
}
.error-404 .content-404 {
  max-width: 480px;
  margin: auto;
}
.error-404 .content-404 p {
  font-size: 18px;
  margin-bottom: 40px;
}
.error-404 .content-404 form {
  margin: 0 30px 20px;
}

@media (max-width: 767px) {
  .error-404 h1 {
    font-size: 36px;
    display: block;
  }
}

/*--------------------------------------------------------------
## sitemap
--------------------------------------------------------------*/

.sitemap {
	padding-block: 60px 100px;
}

.sitemap__title {
	margin: 0 0 50px;
}

.sitemap__section {
	margin-top: 70px;
}

.sitemap__section:first-of-type {
	margin-top: 0;
}

.sitemap__section-title {
	margin: 0 0 35px;
	font-size: clamp(24px, 2.5vw, 36px);
	line-height: 1.2;
}

.sitemap__section-title a {
	color: inherit;
	text-decoration: none;
}

.sitemap__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 45px 50px;
}

.sitemap__group {
	min-width: 0;
}

.sitemap__group-title,
.sitemap__blog-title {
	margin: 0 0 15px;
	font-size: clamp(18px, 1.75vw, 20px);
	line-height: 1.3;
}

.sitemap__group-title a,
.sitemap__blog-title a {
	color: inherit;
	text-decoration: none;
}

.sitemap__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sitemap__item,
.sitemap__list--pages > li {
	margin: 0 0 8px;
	line-height: 1.45;
}

.sitemap__item:last-child {
	margin-bottom: 0;
}

.sitemap__item a,
.sitemap__list--pages a {
	color: var(--text);
	text-decoration: none;
	transition: color var(--transition-duration);
}

.sitemap__item a:hover,
.sitemap__list--pages a:hover,
.sitemap__group-title a:hover,
.sitemap__blog-title a:hover,
.sitemap__section-title a:hover {
	color: var(--accent);
}


/* Страницы */

.sitemap__list--pages {
	columns: 3;
	column-gap: 50px;
}

.sitemap__list--pages > li {
	break-inside: avoid;
	margin-bottom: 20px;
}

.sitemap__list--pages > li > a {
	font-weight: 600;
}

.sitemap__list--pages .children {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.sitemap__list--pages .children li {
	margin-bottom: 7px;
}


/* Блог */

.sitemap__section--blog {
	margin-top: 90px;
}

.sitemap__blog {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.sitemap__blog-group {
	max-width: 1000px;
}


/* Адаптив */

@media (max-width: 1024px) {

	.sitemap {
		padding-block: 45px 70px;
	}

	.sitemap__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px;
	}

	.sitemap__list--pages {
		columns: 2;
		column-gap: 40px;
	}
}

@media (max-width: 600px) {

	.sitemap {
		padding-block: 35px 55px;
	}

	.sitemap__title {
		margin-bottom: 35px;
	}

	.sitemap__section {
		margin-top: 50px;
	}

	.sitemap__section-title {
		margin-bottom: 25px;
	}

	.sitemap__grid {
		grid-template-columns: 1fr;
		gap: 35px;
	}

	.sitemap__list--pages {
		columns: 1;
	}

	.sitemap__section--blog {
		margin-top: 60px;
	}

	.sitemap__blog {
		gap: 35px;
	}
}