/* ==================== CSS ПЕРЕМЕННЫЕ ==================== */
:root {
  /* Цвета */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-primary: #4280a6;
  --color-text-muted: #5a5a5a;
  --color-footer-text: #bcc2cd;
  --color-counter: #2980b9;
  --gradient-menu: linear-gradient(to bottom, #4484ac 0%, #3d769a 100%);
  --gradient-menu-hover: linear-gradient(to bottom, #5c9bca 0%, #4484ac 100%);

  /* Контейнер */
  --container-width: 1000px;
  --container-padding: 15px;

  /* Типографика */
  --font-family: "Montserrat", Arial, sans-serif;
  --font-weight-default: 400;
  --font-weight-medium: 500;
  --font-size-default: 14px;
  --line-height-default: 1;
}

/* ==================== СБРОС ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
}

img, video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  background-color: transparent;
  border: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* ==================== ШРИФТЫ ==================== */
/* Montserrat (Google Fonts) — замена Gotham Pro прежнего сайта, ближайшая по ширине букв. */
@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Italic-Cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Italic-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==================== ГЛОБАЛЬНЫЕ СТИЛИ ==================== */
body {
  font-family: var(--font-family);
  color: var(--color-black);
  font-weight: var(--font-weight-default);
  font-size: var(--font-size-default);
  line-height: var(--line-height-default);
  background: var(--color-white);
  min-width: 320px;
  -webkit-text-size-adjust: none;
}

body._disable-scroll {
  overflow: hidden;
  touch-action: none;
  -ms-touch-action: none;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

main {
  flex: 1;
  position: relative;
}

.container {
  max-width: var(--container-width);
  width: var(--container-width);
  padding-inline: var(--container-padding);
  margin-inline: auto;
}

.header._home .container,
.main._home .container,
.works .container,
.letters .container {
  --container-width: 1030px;
}

.swiper {
  width: 100%;
}

strong, b {
  font-weight: 700;
}

/* ==================== HOVER ==================== */
.footer__link,
.footer__menu a {
  transition: color 0.3s ease;
}

/* ==================== НАВИГАЦИЯ СЛАЙДЕРОВ ==================== */
.nav__prev.swiper-button-lock,
.nav__next.swiper-button-lock {
  display: none;
}

/* ==================== ШАПКА ==================== */
.header {
  position: relative;
  width: 100%;
  height: 264px;
  background: url("../img/header/header-bg.jpg") no-repeat center top;
}

.header._home {
  height: auto;
  padding-bottom: 40px;
  background-size: cover;
}

.header__top::after {
  content: "";
  display: block;
  clear: both;
}

.header__logo {
  display: block;
  float: left;
  width: 170px;
  height: 130px;
}

.header__logo img {
  display: block;
}

.header__center {
  float: left;
  margin: 53px 0 0 247px;
}

.header__mail {
  display: block;
  margin-bottom: 13px;
  font-size: 18px;
  color: var(--color-white);
}

.header__mail-icon {
  display: block;
  float: left;
  width: 44px;
  height: 18px;
  text-align: center;
}

.header__mail-icon .icon {
  width: 24px;
  height: 24px;
  margin-top: -1px;
}

.header__right {
  float: right;
  margin: 20px -3px 0 0;
}

.header__phones {
  display: block;
  margin-bottom: 5px;
  font-size: 23px;
  line-height: 30px;
  color: var(--color-white);
}

.header__phone {
  display: block;
}

.header__btn {
  display: block;
  width: 217px;
  height: 44px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.33);
  font-size: 16px;
  line-height: 44px;
  color: var(--color-white);
  text-align: center;
}

.header__btn:hover {
  text-decoration: underline;
}

/* На внутренних страницах значок кнопки — в строке с текстом. */
.header__btn-icon {
  display: inline-block;
  vertical-align: top;
}

.header__btn-icon .icon {
  width: 16px;
  height: 16px;
  margin-top: 14px;
}

.header__btn-icon .icon._phone {
  width: 13px;
}

/* На главной — голубой квадрат слева. */
.header._home .header__btn-icon {
  display: block;
  float: left;
  width: 44px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(72, 143, 193, 0.75) 0%, rgba(141, 205, 255, 0.94) 75%, rgb(141, 205, 255) 100%);
}

.header._home .header__btn:hover .header__btn-icon {
  background: linear-gradient(to bottom, rgb(72, 143, 193) 0%, rgb(141, 205, 255) 75%, rgb(141, 205, 255) 100%);
}

.header._home .header__btn-icon .icon {
  width: 24px;
  height: 24px;
  margin-top: 10px;
}

.header._home .header__btn-icon .icon._phone {
  width: 18px;
}

/* ==================== МЕНЮ ==================== */
.menu {
  position: relative;
  width: 100%;
  margin-top: 10px;
  background: var(--gradient-menu);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.menu__burger {
  display: none;
}

.menu__list {
  display: table;
  width: 100%;
}

.menu__item {
  position: relative;
  display: table-cell;
  background: url("../img/header/menu-divider.png") no-repeat right center;
}

.menu__item:last-child {
  background: none;
}

.menu__link {
  display: block;
  height: 40px;
  line-height: 40px;
  color: var(--color-white);
  text-align: center;
}

.menu__item._parent > .menu__link {
  padding-right: 10px;
}

.menu__item:hover > .menu__link,
.menu__item._active > .menu__link {
  background: var(--gradient-menu-hover);
}

.menu__arrow {
  position: absolute;
  top: 13px;
  right: 5px;
  display: block;
  width: 9px;
  height: 14px;
  color: var(--color-white);
  pointer-events: none;
}

.menu__arrow .icon {
  display: block;
  width: 9px;
  height: 14px;
}

.menu__sub-item .menu__arrow {
  display: none;
}

.menu__sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 222;
  display: none;
  width: 320px;
  background: var(--gradient-menu);
  text-align: left;
}

.menu__item:hover > .menu__sub {
  display: block;
}

.menu__sub-item {
  position: relative;
  width: 320px;
}

.menu__sub-link {
  display: block;
  height: 40px;
  padding: 0 10px 0 21px;
  line-height: 40px;
  color: var(--color-white);
  white-space: nowrap;
}

.menu__sub-item:hover > .menu__sub-link {
  background: var(--gradient-menu-hover);
}

.menu__sub .menu__sub {
  top: 0;
  left: 320px;
}

.menu__sub-item:hover > .menu__sub {
  display: block;
}

/* ==================== ХЛЕБНЫЕ КРОШКИ ==================== */
.breadcrumbs {
  margin-top: 20px;
}

.breadcrumbs::after {
  content: "";
  display: block;
  clear: both;
}

.breadcrumbs__item {
  float: left;
  font-size: 13px;
  line-height: 13px;
  color: var(--color-white);
}

.breadcrumbs__link {
  float: left;
  color: var(--color-white);
  text-decoration: underline;
}

.breadcrumbs__divider {
  padding: 0 10px;
}

/* ==================== ВНУТРЕННЯЯ СТРАНИЦА ==================== */
.main {
  margin-top: 40px;
}

.main::after {
  content: "";
  display: block;
  clear: both;
}

.page {
  font-size: 14px;
  line-height: 17px;
}

.page::after {
  content: "";
  display: block;
  clear: both;
}

.page__head {
  margin-bottom: -30px;
}

.page__title {
  position: relative;
  top: -75px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  line-height: 0.96;
  color: var(--color-white);
  text-transform: uppercase;
  text-shadow: 1px 1px 3px #000;
}

.page__list-title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  line-height: 17px;
  text-transform: uppercase;
}

.page__list-title span {
  display: block;
  margin: -75px 0 40px;
  font-size: 22px;
  line-height: 0.96;
  color: var(--color-white);
  text-shadow: 1px 1px 3px #000;
}

.page__date {
  display: block;
  margin: -10px 0 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ==================== ТЕКСТ СТАТЕЙ ==================== */
/* Разметка текстов перенесена с прежнего сайта как есть. */
.article p {
  padding-bottom: 15px;
}

.article img {
  max-width: 100%;
  height: auto;
}

.article img[align="left"] {
  margin-right: 20px;
}

.article img[align="right"] {
  margin-left: 20px;
}

.article__bullet {
  display: inline-block;
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -0.12em;
}

.article a {
  color: #00e;
  text-decoration: underline;
}

.article a:visited {
  color: #551a8b;
}

.article h1 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  line-height: normal;
  color: var(--color-primary);
  text-transform: uppercase;
}

.article h2 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
}

.article h3 {
  font-weight: 700;
  font-size: 1.17em;
}

.article em, .article i {
  font-style: italic;
}

.article sup {
  vertical-align: super;
  font-size: smaller;
}

.article sub {
  vertical-align: sub;
  font-size: smaller;
}

.article li::before {
  content: counter(article-counter);
  counter-increment: article-counter;
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 5px 10px;
  background: var(--color-counter);
  line-height: 40px;
  color: var(--color-white);
  text-align: center;
}

.article ul,
.article ol {
  counter-reset: article-counter;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.article td,
.article th {
  padding: 10px;
  border: 1px solid #999;
  text-align: left;
  vertical-align: middle;
}

.article th {
  font-weight: 700;
  text-align: center;
}

.article td[align="center"] {
  text-align: center;
}

.article tr:nth-child(odd) {
  background: #3f799e;
  color: var(--color-white);
}

.article blockquote {
  margin: 1em 40px;
}

.article iframe {
  max-width: 100%;
  border: 0;
}

/* Список-ссылки в три колонки (страницы цен и разделов услуг). */
.article .fasad-bottom-list {
  column-count: 3;
  margin-bottom: 50px;
}

.article .fasad-bottom-list li {
  display: inline-block;
  width: 100%;
  text-align: left;
}

.article .fasad-bottom-list a {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-black);
}

/* ==================== ГЛАВНАЯ СТРАНИЦА ==================== */
.hero {
  margin-top: 10px;
}

.hero-slider {
  position: relative;
  height: 403px;
  overflow: hidden;
}

.hero-slider__item {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.hero-slider__img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-slider__caption {
  position: absolute;
  z-index: 2;
  width: 470px;
  margin: 60px 0 0 60px;
  padding: 15px;
  background: rgba(60, 91, 119, 0.75);
  color: var(--color-white);
}

.hero-slider__title {
  display: block;
  padding-bottom: 15px;
  font-size: 22px;
  line-height: 22px;
}

.hero-slider__text {
  font-size: 13px;
  line-height: 16px;
}

.hero-slider__text p {
  padding-bottom: 5px;
}

.hero-slider__text sup {
  vertical-align: super;
  font-size: smaller;
  line-height: 0;
}

.hero-slider__btn {
  position: relative;
  z-index: 50;
  display: block;
  width: 144px;
  height: 38px;
  margin-top: 32px;
  padding-top: 10px;
  border: 1px solid var(--color-white);
  color: var(--color-white);
  text-align: center;
}

.hero-slider-nav__prev,
.hero-slider-nav__next {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 60px;
  height: 60px;
  margin-top: -35px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.hero-slider-nav__prev {
  left: 0;
}

.hero-slider-nav__next {
  right: 0;
}

.hero-slider:hover .hero-slider-nav__prev,
.hero-slider:hover .hero-slider-nav__next {
  opacity: 1;
}

.hero-slider-nav__prev:hover,
.hero-slider-nav__next:hover {
  color: rgba(255, 255, 255, 0.7);
}

.hero-slider .hero-slider__pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 37px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 15px;
  height: 26px;
}

.hero-slider__bullet {
  display: block;
  width: 20px;
  height: 20px;
  background: url("../img/main/slider-dot.png") no-repeat;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

/* Как у прежнего сайта: активная точка — та же, увеличенная в 1,3 раза. */
.hero-slider__bullet._is-active {
  background-image: url("../img/main/slider-dot-active.png");
  transform: scale(1.3);
}

/* Наши услуги */
.services {
  margin-top: 20px;
  background: rgba(39, 80, 106, 0.33);
}

.services__title {
  padding: 15px 0;
  background: linear-gradient(to bottom, rgba(68, 132, 172, 0.33) 0%, rgba(61, 118, 154, 0.33) 100%);
  font-size: 22px;
  line-height: 22px;
  color: var(--color-white);
  text-transform: uppercase;
  text-align: center;
}

.services__wrapper::after {
  content: "";
  display: block;
  clear: both;
}

.services__col {
  float: left;
  width: 440px;
  margin-top: 30px;
  margin-left: 30px;
}

.services__col._right {
  float: right;
  margin-left: 0;
  margin-right: 30px;
}

.services__item {
  margin-bottom: 30px;
}

.services__item::after {
  content: "";
  display: block;
  clear: both;
}

.services__img {
  position: relative;
  float: left;
  margin-right: 15px;
}

.services__img img {
  display: block;
}

.services__img::after {
  content: "";
  position: absolute;
  inset: 0 0 2px 0;
  background: rgba(255, 255, 255, 0.61);
  opacity: 0;
  transition: opacity 1s;
}

.services__img:hover::after {
  opacity: 1;
}

.services__body {
  float: right;
  width: 235px;
}

.services__name {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-white);
  text-transform: uppercase;
  /* Как у прежнего сайта: подчёркивание цвета ссылки (синее) под белым текстом. */
  text-decoration: underline;
  text-decoration-color: #00e;
}

.services__text {
  font-size: 14px;
  line-height: 18px;
  color: var(--color-white);
}

/* Основная часть главной */
.main._home .home__wrapper::after {
  content: "";
  display: block;
  clear: both;
}

.home__sidebar {
  float: left;
  width: 29.5%;
}

.home__content {
  float: right;
  width: 67%;
  font-size: 14px;
  line-height: 17px;
  text-align: justify;
}

.home__title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  line-height: 22px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.article._home p {
  padding-bottom: 20px;
}

.article._home h2 {
  line-height: 17px;
  text-transform: uppercase;
}

.home-news {
  margin-bottom: 26px;
}

.home-news__title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  line-height: 22px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.home-news__item {
  margin-bottom: 25px;
}

.home-news__item::after {
  content: "";
  display: block;
  clear: both;
}

.home-news__item:last-child {
  margin-bottom: 0;
}

.home-news__date {
  float: left;
  width: 50px;
  margin-right: 25px;
  color: var(--color-text-muted);
  text-align: center;
}

.home-news__day {
  display: block;
  font-size: 40px;
  line-height: 40px;
}

.home-news__month {
  display: block;
  font-size: 14px;
  line-height: 14px;
}

.home-news__name {
  overflow: hidden;
  font-size: 15px;
  line-height: 15px;
}

.home-news__name a {
  font-size: 14px;
  line-height: 16px;
  color: var(--color-black);
}

.home-news__item:hover .home-news__date,
.home-news__item:hover .home-news__name a {
  color: var(--color-primary);
}

.home__video {
  display: block;
  width: 295px;
  height: 180px;
  margin-bottom: 3px;
  border: 0;
}

.home__certificate a,
.home__certificate img {
  display: block;
  width: 100%;
  height: auto;
}

/* Наши работы (слайдер на главной) */
.works {
  height: 365px;
  margin-top: 0;
  background: #f2f2f2;
}

.works__wrapper {
  position: relative;
}

.works__title {
  margin-bottom: 20px;
  padding-top: 40px;
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  line-height: 22px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.works__controls {
  position: absolute;
  top: 37px;
  right: -20px;
  display: flex;
  align-items: flex-start;
}

.works__all {
  display: block;
  width: 100px;
  height: 30px;
  margin-right: 27px;
  background: url("../img/main/works-all.png") left center no-repeat;
  line-height: 28px;
  color: var(--color-white);
  text-align: center;
  transition: all 0.5s;
}

.works__all:hover {
  background-image: url("../img/main/works-all-hover.png");
  color: var(--color-black);
}

.works-nav {
  display: flex;
}

.works-nav__prev,
.works-nav__next {
  display: block;
  width: 33px;
  height: 30px;
  background: url("../img/main/works-prev.png") left center no-repeat;
}

.works-nav__prev {
  margin-right: 6px;
}

.works-nav__next {
  margin-right: 21px;
  background-image: url("../img/main/works-next.png");
}

.works-slider {
  width: 1020px;
  margin-left: -10px;
}

.works-slider__item {
  width: 255px;
  padding: 8px 11px;
}

.works-slider__img {
  display: block;
  width: 233px;
  height: 174px;
  overflow: hidden;
}

.works-slider__img img {
  display: block;
  width: 233px;
  height: 174px;
  object-fit: cover;
}

.works-slider__name {
  display: block;
  width: 233px;
  max-height: 63px;
  margin: -2px 0 0 1px;
  padding: 10px 0;
  background: var(--color-white);
  font-size: 14px;
  line-height: 21px;
  color: var(--color-black);
  text-align: center;
  text-transform: capitalize;
}

.works-slider__item:hover .works-slider__name {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Отзывы клиентов и «Мы помогаем детям» */
.letters {
  padding-bottom: 20px;
}

.letters__title {
  margin-bottom: 30px;
  padding-top: 40px;
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  line-height: 22px;
  color: var(--color-primary);
  text-transform: uppercase;
  text-align: center;
}

.letters__block + .letters__block {
  margin-top: 20px;
}

.letters-slider {
  position: relative;
}

.letters-slider__page {
  display: flex;
  justify-content: center;
  margin-left: -35px;
  width: calc(100% + 35px);
}

.letters-slider__item {
  flex: 0 0 25%;
  padding-left: 35px;
  text-align: center;
}

.letters-slider._kids .letters-slider__item {
  flex-basis: 50%;
}

.letters-slider__item a {
  display: inline-block;
}

.letters-slider__item img {
  display: block;
  width: 215px;
  max-width: 100%;
  height: auto;
}

.letters-slider-nav__prev,
.letters-slider-nav__next {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  width: 35px;
  height: 60px;
  margin-top: -30px;
  background: url("../img/main/slideset-prev.png") left center no-repeat;
}

.letters-slider-nav__prev {
  left: 0;
}

.letters-slider-nav__next {
  right: 0;
  background-image: url("../img/main/slideset-next.png");
}

.letters-slider:hover .letters-slider-nav__prev:not(.swiper-button-lock),
.letters-slider:hover .letters-slider-nav__next:not(.swiper-button-lock) {
  display: block;
}

/* ==================== СТРАНИЦА «УСЛУГИ» ==================== */
.service-grid {
  overflow: hidden;
  margin-top: 30px;
  font-size: 0;
}

.service-grid__item {
  display: inline-block;
  width: 50%;
  margin-bottom: 30px;
  vertical-align: top;
}

.service-grid__item::after {
  content: "";
  display: block;
  clear: both;
}

.service-grid__img {
  float: left;
  margin-right: 15px;
}

.service-grid__img img {
  display: block;
}

.service-grid__body {
  float: left;
  max-width: 254px;
}

.service-grid__name {
  display: block;
  width: 235px;
  margin-top: -5px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  line-height: 22px;
  color: var(--color-primary);
  text-transform: uppercase;
  text-align: left;
}

.service-grid__text {
  font-size: 14px;
  line-height: 18px;
  color: var(--color-black);
  text-align: left;
}

.service-grid__list {
  counter-reset: service-counter;
}

.service-grid__list-item {
  margin-left: -10px;
}

.service-grid__list-item::before {
  content: counter(service-counter);
  counter-increment: service-counter;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 5px 10px;
  background: var(--color-counter);
  line-height: 20px;
  color: var(--color-white);
  text-align: center;
}

.service-grid__list-item a {
  font-size: 12px;
  color: var(--color-black);
}

/* ==================== СПИСКИ НОВОСТЕЙ И СТАТЕЙ ==================== */
.blog-item {
  margin-bottom: 20px;
}

.blog-item::after {
  content: "";
  display: block;
  clear: both;
}

.blog-item__img {
  float: left;
  width: 150px;
  height: 100px;
  margin-right: 20px;
}

.blog-item__img img {
  display: block;
  width: 150px;
  height: 100px;
  margin-right: 20px;
}

.blog-item__body {
  float: left;
  max-width: 800px;
  margin-top: -3px;
}

.blog-item__title {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
}

.blog-item__title a {
  font-size: 16px;
  color: var(--color-black);
}

.blog-item__date {
  display: block;
  margin: -10px 0 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Пагинация */
.pagination::after {
  content: "";
  display: block;
  clear: both;
}

.pagination__counter {
  float: right;
  padding-bottom: 15px;
}

.pagination__list {
  text-align: center;
}

.pagination__item {
  display: inline-block;
  margin: 1px;
  vertical-align: top;
  border: 1px solid #888;
  border-radius: 2px;
}

.pagination__link {
  display: block;
  padding: 2px 10px;
  color: var(--color-black);
  text-align: center;
}

a.pagination__link:hover {
  color: var(--color-primary);
}

.pagination__item._is-current .pagination__link {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==================== НАШИ РАБОТЫ ==================== */
.main._work .page {
  text-align: justify;
}

.main._work .article p {
  padding-bottom: 20px;
}

.main._work .article h2 {
  text-transform: uppercase;
}

.main._work .page__list-title span {
  line-height: 17px;
}

.main._work .page__title {
  margin: 0 0 20px;
  line-height: 22px;
}

/* У шаблона работ прежнего сайта заголовок не занимает места в потоке — галерея начинается выше. */
.main._work .page__head {
  margin-bottom: -70px;
}

.works-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.works-grid__col {
  width: 25%;
  padding: 0 15px;
}

.work-card {
  max-width: 220px;
  margin: 0 auto 20px;
  box-shadow: 0 0 2px #000;
}

.work-card__img {
  display: block;
  width: 100%;
  height: 175px;
}

.work-card__img img {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
}

.work-card__title a {
  display: block;
  margin-top: -2px;
  padding: 10px 0;
  background: var(--color-white);
  font-size: 13px;
  line-height: 17px;
  color: var(--color-black);
  text-align: center;
  text-transform: capitalize;
}

.work-card:hover .work-card__title a {
  background: var(--color-primary);
  color: var(--color-white);
}

.work-gallery {
  margin: -30px 0 20px -15px;
}

.work-gallery::after {
  content: "";
  display: block;
  clear: both;
}

.work-gallery__item {
  display: block;
  float: left;
  width: 160px;
  height: 140px;
  padding: 30px 0 0 14px;
}

.work-gallery__item img {
  display: block;
  width: 150px;
  height: 110px;
  max-width: none;
  object-fit: cover;
}

.work-gallery__item._big {
  width: 534px;
  height: 420px;
}

.work-gallery__item._big img {
  width: 520px;
  height: 390px;
}

/* ==================== СЕРТИФИКАТЫ ==================== */
.certificates {
  margin-bottom: 20px;
}

.certificates::after {
  content: "";
  display: block;
  clear: both;
}

.certificates__item {
  display: block;
  float: left;
  width: 216px;
  margin-right: 40px;
}

.certificates__link._hidden {
  display: none;
}

.certificates__link img {
  display: block;
  width: 215px;
  height: 307px;
}

/* ==================== КОНТАКТЫ ==================== */
.contacts::after {
  content: "";
  display: block;
  clear: both;
}

.contacts__info {
  float: left;
  width: 66.6666%;
}

.contacts__requisites p {
  padding-bottom: 15px;
}

.contacts__requisites {
  padding-bottom: 34px;
}

.contacts__row::after {
  content: "";
  display: block;
  clear: both;
}

.contacts__col {
  float: left;
}

.contacts__col._phones {
  width: 268px;
}

.contacts__title {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--color-black);
}

.contacts__value {
  display: block;
  font-size: 16px;
  line-height: 18px;
  color: var(--color-black);
}

.contacts__map {
  margin: 20px 0;
}

.contacts__map .contacts__value {
  margin-bottom: 10px;
}

.contacts__map-box {
  width: 100%;
  height: 237px;
}

.contacts__form {
  float: right;
  width: 29%;
}

/* ==================== ПОДВАЛ ==================== */
.footer {
  width: 100%;
  padding-bottom: 40px;
  background: linear-gradient(to bottom, #27678f 0%, #214962 100%);
}

.footer__wrapper::after {
  content: "";
  display: block;
  clear: both;
}

.footer__col._first {
  float: left;
  width: 295px;
  margin-right: 100px;
}

.footer__col._services {
  float: left;
  width: 295px;
}

.footer__col._info {
  float: right;
  width: 185px;
}

.footer__copy {
  display: block;
  margin-top: 30px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-footer-text);
}

.footer__phones {
  display: block;
  margin-top: 13px;
  font-size: 25px;
  line-height: 26px;
  color: var(--color-white);
}

.footer__title {
  display: block;
  margin: 30px 0 35px;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  line-height: 16px;
  color: var(--color-footer-text);
  text-transform: uppercase;
}

.footer__menu a {
  display: block;
  white-space: nowrap;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-footer-text);
}

.footer__menu a:hover {
  color: var(--color-white);
}

.footer__dev {
  float: left;
  width: 100%;
}

.footer__dev-link {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 10px;
}

.footer__dev-link img {
  display: block;
}

.footer__dev-text {
  position: relative;
  padding-left: 60px;
  font-size: 14px;
  line-height: 1.3em;
  color: var(--color-white);
  text-align: left;
}

.footer__dev-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 17px;
  width: 25px;
  height: 1px;
  background-color: var(--color-white);
}

.footer__dev-accent {
  color: #ff3572;
  text-decoration: underline;
}

/* На страницах «Наших работ» у прежнего сайта блок разработчика без оформления. */
.footer._plain {
  padding-bottom: 0;
}

.footer._plain .footer__dev {
  float: none;
  width: auto;
}

.footer._plain .footer__dev-link {
  display: inline;
  margin: 0;
  color: #00e;
  text-decoration: underline;
}

.footer._plain .footer__dev-link img {
  display: inline;
}

.footer._plain .footer__dev-text {
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.footer._plain .footer__dev-text::before {
  display: none;
}

.footer._plain .footer__dev-accent {
  color: inherit;
}

/* ==================== ФОРМЫ ==================== */
.popup-form {
  display: none;
}

.request-form {
  text-align: center;
}

.wpcf7 {
  width: 100%;
}

/* Служебные скрытые поля CF7 (стили плагина отключены). */
.request-form .hidden-fields-container {
  display: none;
}

.request-form .wpcf7-form-control-wrap {
  display: block;
}

/* Поля — строчные блоки с отступами 8px, как у прежнего сайта (между полями 16px). */
.request-form input[type="text"],
.request-form input[type="tel"],
.request-form input[type="email"],
.request-form textarea {
  box-sizing: content-box;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  max-width: 270px;
  height: 45px;
  margin: 8px auto;
  padding: 1px 2px;
  border: none;
  border-radius: 0;
  outline: none;
  background: #dddedf;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  text-indent: 30px;
  color: #171717;
}

.request-form textarea {
  width: 270px;
  height: 80px;
  margin-bottom: 11px;
  padding: 5px 2px 2px;
  resize: vertical;
}

.request-form ::placeholder {
  color: #171717;
  opacity: 1;
  font-size: 16px;
}

.request-form ._is-error {
  border-bottom: 2px solid red;
}

.request-form .wpcf7-not-valid-tip,
.request-form .wpcf7-response-output,
.request-form .wpcf7-spinner {
  display: none !important;
}

.request-form input[type="submit"] {
  box-sizing: content-box;
  display: inline-block;
  vertical-align: top;
  width: 270px;
  height: 45px;
  margin: 8px auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: linear-gradient(to bottom, #5c9bca 0%, #4484ac 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 45px;
  color: var(--color-black);
  text-align: center;
  cursor: pointer;
}

.request-form input[type="submit"]:hover {
  background: #fbf3b5;
}

.request-form__success {
  display: none;
  margin-top: 100px;
  font-size: 30px;
  line-height: 30px;
  color: var(--color-white);
  text-align: center;
}

.wpcf7._is-sent form > *:not(.request-form__success) {
  display: none;
}

.wpcf7._is-sent .request-form__success {
  display: block;
}

/* Попапы на Fancybox — окно как у прежнего сайта: 33% от верха экрана, левый край на 165px левее центра. */
.popup-fancybox {
  --fancybox-backdrop-bg: rgba(0, 0, 0, 0.5);
}

.popup-fancybox .fancybox__slide {
  display: block;
  padding: 0;
}

.popup-fancybox .popup-form {
  position: absolute;
  top: 33%;
  left: 50%;
  box-sizing: content-box;
  width: 95%;
  max-width: 330px;
  margin: 0 0 0 -165px;
  padding: 10px;
  border-radius: 5px;
  background: rgba(19, 27, 33, 0.85);
  color: var(--color-white);
}

.popup-fancybox .popup-form._call {
  height: 187px;
}

.popup-fancybox .popup-form._request {
  height: 357px;
}

.popup-form._call input[type="text"],
.popup-form._call input[type="tel"] {
  font-size: 19px;
}

.popup-form__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 14px;
  height: 10px;
  background: url("../img/form/close.png") no-repeat;
}

/* Форма на странице «Контакты» */
.contacts__form .request-form {
  height: 357px;
  padding: 10px;
  background: #363d42;
}

.contacts__form .request-form input[type="text"],
.contacts__form .request-form input[type="tel"],
.contacts__form .request-form input[type="email"],
.contacts__form .request-form textarea {
  width: 100%;
  max-width: none;
  height: 40px;
  margin: 0 0 15px;
  font-size: 19px;
}

.contacts__form .request-form textarea {
  height: 80px;
  vertical-align: top;
}

.contacts__form .request-form input[type="submit"] {
  width: 100%;
  margin: 0;
}

.contacts__form .request-form ::placeholder {
  font-size: 16px;
}
