/*
Theme Name: Алтех
Theme URI: https://alteh33.ru/
Description: Шаблон сайта Алтех. Главная страница, шапка и подвал для чистого WordPress с WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: alteh
*/

:root {
  --orange: #f37f45;
  --orange-dark: #de6c34;
  --ink: #1c1c1e;
  --muted: #6d6d72;
  --line: #ececee;
  --soft: #f4f4f5;
  --footer: #141416;
  --container: 1240px;
  --header: 124px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Rubik, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 0;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  width: 130px;
  height: 105px;
  object-fit: contain;
}

.header-address,
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.header-address,
.header-yandex,
.header-contacts {
  margin-top: 14px;
}

.header-address {
  margin-left: 20px;
}

.header-address span {
  font-size: 17px;
}

.header-address small,
.header-phone small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.header-address small {
  font-size: 14px;
}

.header-phone {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.header-phone > a,
.header-mobiles__nums a {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.header-phone a:hover {
  color: var(--orange);
}

.header-yandex {
  display: block;
  flex: 0 0 150px;
  width: 150px;
  height: 50px;
  margin-left: auto;
  margin-right: auto;
  border: 0;
}

.header-contacts {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.header-mobiles {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.header-mobiles__nums {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.messengers {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.messengers img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.header-bar {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding-bottom: 8px;
  padding-left: 174px;
}

.header-bar__start {
  display: flex;
  align-items: center;
}

.primary-nav .menu {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 600;
}

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

.header-tools {
  margin-left: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--soft);
}

.header-search {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.header-tools {
  position: relative;
}

.header-search.is-open {
  display: block;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--orange-dark);
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
}

.hero img {
  width: 100%;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  color: #000;
  font-family: Rubik, sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: left;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0;
  border-radius: 2px;
  background: var(--orange);
}

.link-more {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.link-more:hover,
.link-more--accent {
  color: var(--orange);
}

.section-lead {
  max-width: 760px;
  margin: -12px 0 24px;
  color: var(--muted);
}

.cat-grid,
.card-grid,
.class-grid,
.project-grid,
.article-grid {
  display: grid;
  gap: 16px;
}

.cat-grid {
  grid-template-columns: repeat(5, 1fr);
}

.cat-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card:hover {
  border-color: #f3c3ad;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.cat-card__icon {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card__icon img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

.cat-card__foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
}

.cat-card__name {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.35;
}

.cat-card__arrow {
  color: var(--orange);
  font-weight: 700;
}

.urgent {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  border-radius: 22px;
  color: #fff;
  background: #1a1a1a center/cover no-repeat;
}

.urgent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28));
}

.urgent__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 40px 48px;
}

.urgent h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.urgent p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
}

.section-soft {
  background: var(--soft);
}

.class-block .section-title {
  margin-bottom: 28px;
}

.class-block + .class-block {
  margin-top: 36px;
}

.class-block h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.class-grid {
  grid-template-columns: repeat(5, 1fr);
}

.class-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.class-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.class-card:hover {
  border-color: #f3c3ad;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.class-card img {
  max-height: 130px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.card-grid {
  grid-template-columns: repeat(5, 1fr);
}

.example-card,
.article-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.example-card__media,
.article-card__media,
.project-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #ddd;
}

.article-card__media {
  aspect-ratio: 16 / 10;
}

.article-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #1c1c1e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.example-card__media img,
.article-card__media img,
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-card img,
.article-card img,
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-card strong,
.article-card strong,
.photo-slider__item strong {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.35;
}

.article-card strong {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
}

.article-card__more {
  margin-top: 10px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 600;
}

.article-card:hover .article-card__more {
  color: var(--orange-dark);
}

.photo-slider {
  position: relative;
}

.photo-slider__viewport {
  overflow: hidden;
}

.photo-slider__track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
}

.photo-slider__item {
  flex: 0 0 calc((100% - 48px) / 4);
  width: calc((100% - 48px) / 4);
  min-width: 0;
}

button.example-card,
button.project-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
}

.photo-slider__btn,
.lightbox__nav,
.lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1c1c1e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.photo-slider__btn {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}

.photo-slider__btn--prev {
  left: 8px;
}

.photo-slider__btn--next {
  right: 8px;
}

.photo-slider__btn:hover,
.lightbox__nav:hover,
.lightbox__close:hover {
  background: var(--orange);
  color: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 80px;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

.article-card time {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.project-grid {
  grid-template-columns: repeat(4, 1fr);
}

.about-grid,
.consult-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.about-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.about-photo {
  display: none;
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.about-photo.is-active {
  display: block;
}

.about-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1c1c1e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
  cursor: pointer;
}

.about-slider__btn--prev {
  left: 16px;
}

.about-slider__btn--next {
  right: 16px;
}

.about-slider__btn:hover {
  background: var(--orange);
  color: #fff;
}

.about-video-section {
  padding-bottom: 0;
}

.about-video {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.about-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.clients-section .section-title {
  margin-bottom: 28px;
}

.clients {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clients__viewport {
  flex: 1;
  overflow: hidden;
}

.clients__track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.clients__item {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 8px 18px;
}

.clients__item img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.clients__btn {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d7d7db;
  border-radius: 50%;
  background: #fff;
  color: #1c1c1e;
  cursor: pointer;
}

.clients__btn:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.delivery-map-band {
  background: #fff url("assets/img/bakground-dostavka.png") center center / 100% auto no-repeat;
}

.delivery-section .section-title {
  margin-bottom: 20px;
  text-transform: uppercase;
}

.delivery-copy {
  width: 100%;
  margin-bottom: 28px;
  color: #3a3a3e;
}

.delivery-copy p {
  margin: 0 0 12px;
}

.delivery-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.delivery-kinds {
  min-width: 0;
  background: #fff;
  border: 2px solid #f2f2f2;
  padding: 22px 18px 28px;
}

.delivery-kinds h3 {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ececee;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.delivery-kinds__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px 12px;
  text-align: center;
}

.delivery-kinds__grid > div {
  min-width: 0;
}

.delivery-kinds__grid img {
  width: 72px;
  max-width: 100%;
  height: 72px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.delivery-kinds__grid span {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.delivery-notes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 36px 40px;
  list-style: none;
  background: #bf7f65;
  color: #fff;
}

.delivery-notes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  width: 100%;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

.delivery-notes li span {
  flex: 1;
  min-width: 0;
}

.delivery-notes li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 3px, transparent 4px);
}

.objects-map-section .section-title {
  margin-bottom: 28px;
}

.objects-map {
  position: relative;
  height: 720px;
  overflow: hidden;
  border-radius: 16px;
  background: #e8eef2;
}

.objects-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.certificates-section .section-title {
  margin-bottom: 16px;
}

.certificates-lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
}

.certificates {
  position: relative;
}

.certificates__viewport {
  overflow: hidden;
}

.certificates__track {
  display: flex;
  gap: 20px;
  transition: transform 0.35s ease;
}

.certificates__item {
  flex: 0 0 calc((100% - 60px) / 4);
  width: calc((100% - 60px) / 4);
  max-width: calc((100% - 60px) / 4);
  min-width: 0;
}

.certificates__item img {
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.certificates__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1c1c1e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
  cursor: pointer;
}

.certificates__btn--prev {
  left: 18px;
}

.certificates__btn--next {
  right: 18px;
}

.certificates__btn:hover {
  background: var(--orange);
  color: #fff;
}

.office-map {
  width: 100%;
  height: 640px;
}

.office-map iframe {
  display: block;
  width: 100%;
  height: 640px;
  min-height: 640px;
  border: 0;
}

.about-copy p {
  color: #3a3a3e;
}

.features {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  font-weight: 700;
}

.features {
  margin-left: 0;
  padding: 0;
}

.feature-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff3ec;
  color: var(--orange);
}

.article-grid {
  grid-template-columns: repeat(3, 1fr);
}

.consult-section {
  background: linear-gradient(90deg, rgba(18, 22, 28, 0.72), rgba(18, 22, 28, 0.28)), url("assets/img/form-background.png") center / cover no-repeat;
}

.consult-copy h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.consult-copy p {
  margin: 0;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.45;
}

.consult-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.consult-form textarea {
  min-height: 110px;
  resize: vertical;
}

.consult-form input:focus,
.consult-form textarea:focus {
  outline: 2px solid rgba(243, 127, 69, 0.35);
  border-color: var(--orange);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.consult-form .btn {
  width: 100%;
}

.form-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef8ef;
  color: #1d6b32;
  font-weight: 700;
}

.form-note.is-error {
  background: #fff1f0;
  color: #a12622;
}

.hp {
  position: absolute;
  left: -9999px;
}

.site-footer {
  padding: 48px 0 24px;
  background: var(--footer);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr) auto;
  gap: 32px;
  align-items: start;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.9fr);
  gap: 24px 40px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.footer-contacts {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-cats {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-cats strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 15px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-menu,
.site-footer .menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a:hover,
.footer-contacts a:hover,
.footer-cats a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  margin-left: auto;
}

.footer-legal a:hover {
  color: var(--orange);
}

.page-main {
  padding: 48px 0 80px;
}

.narrow {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.page-main h1 {
  margin: 0 0 20px;
  font-size: 40px;
  letter-spacing: -0.03em;
}

.entry,
.entry-teaser {
  font-size: 17px;
  line-height: 1.7;
}

.entry-teaser {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.entry-teaser h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .header-address,
  .header-yandex {
    display: none;
  }

  .cat-grid,
  .card-grid,
  .class-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .class-grid--four,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-slider__item {
    flex-basis: calc((100% - 32px) / 3);
    width: calc((100% - 32px) / 3);
  }

  .about-grid,
  .consult-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 12px;
  }

  .header-top,
  .header-bar {
    display: contents;
  }

  .site-header .logo {
    order: 1;
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 46px;
    overflow: hidden;
  }

  .site-header .logo img {
    width: 56px !important;
    height: 46px !important;
    max-width: 56px !important;
    max-height: 46px !important;
    object-fit: contain;
  }

  .header-contacts {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    align-items: center;
    gap: 8px;
  }

  .header-phone {
    min-width: 0;
  }

  .header-phone > a {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  .header-phone small,
  .header-mobiles__nums,
  .header-cta {
    display: none;
  }

  .header-mobiles {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .messengers {
    gap: 6px;
  }

  .messengers img {
    width: 20px;
    height: 20px;
  }

  .header-bar__start {
    order: 3;
  }

  .header-tools {
    order: 4;
    margin-left: 0;
  }

  .site-header .icon-btn {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    order: 5;
    position: static;
    flex: 1 0 100%;
    width: 100%;
    padding: 8px 4px 4px;
    background: #fff;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    flex-direction: column;
    gap: 14px;
  }

  .article-grid,
  .blog-grid,
  .cat-grid,
  .card-grid,
  .class-grid,
  .class-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title,
  .urgent h2,
  .consult-copy h2 {
    font-size: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .urgent__inner {
    padding: 28px 22px;
  }
}

@media (max-width: 900px) {
  .delivery-board {
    grid-template-columns: 1fr;
  }

  .delivery-notes {
    padding: 28px 22px;
  }

  .delivery-notes li {
    font-size: 18px;
  }

  .certificates__item {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 700px) {
  .clients__item {
    flex-basis: 50%;
  }

  .photo-slider__item {
    flex-basis: calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
  }

  .objects-map {
    height: 480px;
  }

  .about-video {
    height: 360px;
  }

  .office-map,
  .office-map iframe {
    height: 460px;
    min-height: 460px;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .certificates__item,
  .photo-slider__item {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  .cat-grid,
  .card-grid,
  .project-grid,
  .article-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
