/* Правки шаблона под сайт «Каменный цветок». */

/* Боковой баннер с PDF: тёмный гранитный фон — светлый текст;
   картинка идёт под формой, а не поверх неё. */
.side-banner {
  padding-bottom: 0;
  color: #fff;
}

.side-banner__text,
.side-banner__title,
.side-banner__form .form-text,
.side-banner .md-standart-form .form-checkbox p {
  color: #fff;
}

.side-banner__text {
  opacity: 0.85;
}

.side-banner .md-standart-form .form-checkbox p a {
  color: #e2c48f;
}

.side-banner__img {
  position: relative;
  width: auto;
  height: auto;
  margin: 0.5vw -1.8229166667vw 0;
}

.side-banner__img img {
  display: block;
  height: auto;
}

@media only screen and (max-width: 768px) {
  .side-banner {
    padding-bottom: 0;
  }

  .side-banner__img {
    height: auto;
    margin: 3vw -3.75vw 0;
  }
}

/* Шапка: крупнее логотип, адрес и кнопка — без лишних переносов. */
@media only screen and (min-width: 769px) {
  .header__top .wrapper {
    gap: 0.6vw;
  }

  .header__top .wrapper > * {
    flex-shrink: 0;
  }

  .header__logo a img {
    width: 11.8vw;
    height: auto;
  }

  .header__text {
    flex-shrink: 1;
    width: auto;
    max-width: 11vw;
    font-size: 0.83vw;
    line-height: 1.25;
  }

  .header__address {
    width: auto;
    flex-shrink: 0;
  }

  .header__address p {
    white-space: nowrap;
    line-height: 1.55;
  }

  .header__download {
    width: auto;
  }

  .header__download a {
    gap: 0.7vw;
    padding: 0 1.3vw;
    height: 3.4vw;
  }

  .header__download a span {
    white-space: nowrap;
  }

  .header__social {
    width: auto;
    padding-left: 0;
  }

  .header__social p {
    white-space: nowrap;
  }

  .header__contacts {
    width: auto;
    padding-left: 0;
  }

  .header__contacts p,
  .header__contacts a {
    white-space: nowrap;
  }
}

/* Заголовки внутренних страниц — по левому краю. */
h1.md-main-title,
.articles-typical__title.md-text-centered {
  text-align: left;
}

/* Поля форм: заметная рамка и тень, чтобы не сливались с фоном. */
.md-standart-form .form-input,
.md-standart-form .form-textarea {
  background-color: #fff;
  border: 1px solid rgba(68, 68, 66, 0.22);
  box-shadow: 0 2px 10px rgba(28, 28, 28, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.md-standart-form .form-input::placeholder,
.md-standart-form .form-textarea::placeholder {
  color: #77756f;
}

.md-standart-form .form-input:focus,
.md-standart-form .form-textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(196, 158, 94, 0.22);
}

/* Типографика текстовых страниц. */
.ms-prose {
  --ms-gap: clamp(14px, 1.15vw, 22px);
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.65;
  color: var(--text-main-color);
}

.ms-prose > * + * {
  margin-top: var(--ms-gap);
}

.ms-prose p {
  padding: 0;
}

.ms-prose .ms-lead {
  font-size: clamp(17px, 1.15vw, 21px);
  line-height: 1.55;
  color: #1c1c1c;
}

.ms-prose h2 {
  position: relative;
  margin-top: calc(var(--ms-gap) * 2.4);
  padding-left: 18px;
  font-family: var(--font-headings), serif;
  font-size: clamp(24px, 1.75vw, 34px);
  line-height: 1.2;
  font-weight: 400;
  color: #1c1c1c;
}

.ms-prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 2px;
  background: var(--main-color);
}

.ms-prose h3 {
  margin-top: calc(var(--ms-gap) * 1.6);
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.3;
  font-weight: 700;
  color: #1c1c1c;
}

.ms-prose a {
  color: var(--main-color-darken);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-prose a:hover {
  text-decoration: none;
}

/* Маркированный список — золотые галочки. */
.ms-prose ul:not([class]),
.ms-prose ul.ms-check {
  padding: 0;
  list-style: none;
}

.ms-prose ul:not([class]) li,
.ms-prose ul.ms-check li {
  position: relative;
  padding: 0 0 0 34px;
}

.ms-prose ul:not([class]) li + li,
.ms-prose ul.ms-check li + li {
  margin-top: 10px;
}

.ms-prose ul:not([class]) li::before,
.ms-prose ul.ms-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(196, 158, 94, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9803f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Нумерованный список — шаги с номером в круге. */
.ms-prose ol {
  padding: 0;
  list-style: none;
  counter-reset: ms-step;
}

.ms-prose ol li {
  position: relative;
  min-height: 34px;
  padding: 4px 0 0 50px;
  counter-increment: ms-step;
}

.ms-prose ol li + li {
  margin-top: 14px;
}

.ms-prose ol li::before {
  content: counter(ms-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--main-color);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

/* Карточки преимуществ / видов работ. */
.ms-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.ms-card {
  padding: 22px 22px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ece6db;
  box-shadow: 0 6px 24px rgba(28, 28, 28, 0.05);
}

.ms-card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(196, 158, 94, 0.14);
  color: #a9803f;
}

.ms-card__icon svg {
  width: 24px;
  height: 24px;
}

.ms-card h3 {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.05vw, 19px);
}

.ms-card p {
  margin: 0;
  font-size: clamp(14px, 0.88vw, 16px);
  line-height: 1.55;
}

/* Теги. */
.ms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.ms-tags li,
.ms-tags a {
  padding: 7px 14px;
  border-radius: 100px;
  background: #f4efe6;
  color: #5b4a2c;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}

.ms-tags a:hover {
  background: var(--main-color);
  color: #fff;
}

/* Выноска. */
.ms-note {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 14px;
  background: #faf6ef;
  border-left: 4px solid var(--main-color);
}

.ms-note p {
  margin: 0;
}

.ms-note strong {
  color: #1c1c1c;
}

/* Призыв к действию внутри текста. */
.ms-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  border-radius: 18px;
  background: #1f1d1a;
  color: #f3eee6;
}

.ms-cta p {
  margin: 0;
  max-width: 560px;
}

.ms-cta b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-headings), serif;
  font-size: clamp(20px, 1.4vw, 26px);
  font-weight: 400;
  color: #fff;
}

.ms-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-prose .ms-btn,
.ms-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  background: var(--main-color);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ms-btn:hover {
  background: #a9803f;
}

.ms-prose .ms-btn--wa,
.ms-btn--wa {
  background: #25d366;
}

.ms-btn--wa:hover {
  background: #1da851;
}

/* Таблица. */
.ms-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.ms-prose th,
.ms-prose td {
  padding: 12px 14px;
  border-bottom: 1px solid #ece6db;
  text-align: left;
}

.ms-prose th {
  background: #faf6ef;
  font-weight: 700;
}

/* Фото в тексте. */
.ms-figure {
  margin: 0;
}

.ms-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.ms-figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #77756f;
}

.ms-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ms-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

@media only screen and (max-width: 768px) {
  .ms-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .ms-cta {
    padding: 22px 20px;
  }
}

/* Блоки консультации: человек целиком (без обрезки головы), текст и форма не заходят на фото. */
.get-consultation .person-img {
  object-fit: contain;
  object-position: center bottom;
}

@media only screen and (min-width: 769px) {
  .get-consultation:not(.md-style-2) .get-consultation__content {
    width: 40vw;
    max-width: 40vw;
  }

  .get-consultation:not(.md-style-2) .get-consultation__title {
    font-size: 2.5vw;
    line-height: 1.2;
  }

  .get-consultation:not(.md-style-2) .get-consultation__person .person-img {
    object-position: right bottom;
  }

  .get-consultation:not(.md-style-2) .get-consultation__form .form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8vw;
  }

  .get-consultation:not(.md-style-2) .get-consultation__form .form-container > * {
    width: 100%;
    margin: 0;
  }

  .get-consultation:not(.md-style-2) .get-consultation__form .form-container > .form-checkbox,
  .get-consultation:not(.md-style-2) .get-consultation__form .form-container > .form-btn {
    grid-column: 1 / -1;
  }

  .get-consultation:not(.md-style-2) .get-consultation__form .form-container > .form-select {
    display: none;
  }

  .get-consultation:not(.md-style-2) .get-consultation__form .form-container > .nice-select {
    display: flex;
    align-items: center;
  }

  .get-consultation.md-style-2 .get-consultation__title {
    font-size: 2.3vw;
    line-height: 1.18;
  }

  .get-consultation.md-style-2 .get-consultation__links {
    width: auto;
    max-width: 22vw;
  }
}

/* Отзывы на главной: видео и карточки на всю ширину. */
.ms-reviews {
  width: 100%;
}

.ms-reviews__videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ms-reviews__video {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}

.ms-reviews__video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.ms-reviews__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.35);
}

.ms-reviews__video:hover > img {
  transform: scale(1.04);
}

.ms-reviews__video .video {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ms-review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.ms-review-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(28, 28, 28, 0.07);
}

.ms-review-card__stars {
  color: var(--main-color);
  font-size: 18px;
  letter-spacing: 2px;
}

.ms-review-card__text {
  flex: 1;
  margin: 12px 0 16px;
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 1.6;
  color: var(--text-main-color);
}

.ms-review-card__author b {
  display: block;
  color: #1c1c1c;
}

.ms-review-card__author span {
  font-size: 13px;
  color: #8a867d;
}

.ms-reviews__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}

.ms-reviews__links a {
  color: var(--main-color);
  font-weight: 600;
}

@media only screen and (max-width: 768px) {
  .ms-reviews__videos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ms-review-cards {
    grid-template-columns: 1fr;
  }
}

/* «6 причин»: затемнение под текстом, чтобы он читался на любом фото. */
.reply__block {
  position: relative;
  overflow: hidden;
}

.reply__block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 16, 13, 0.82) 0%, rgba(18, 16, 13, 0.55) 45%, rgba(18, 16, 13, 0.05) 85%);
  z-index: 0;
  pointer-events: none;
}

.reply__block-title,
.reply__block-text {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.get-consultation.md-style-2 .get-consultation__links p {
  width: auto;
}

/* Карточки каталога: вертикальные фото 3:4 — памятники высокие. */
.catalog__item .item-slider {
  height: auto;
  aspect-ratio: 3 / 4;
}

.catalog__item .item-slider .swiper-container .swiper-slide img {
  background-color: #f3f1ec;
}

/* Категории каталога: 4 карточки в ряд. */
.ms-catalog-grid .portfolio__container .container-flex {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.56vw, 30px);
  margin: 0;
}

.ms-catalog-grid .catalog__item {
  width: auto;
  margin: 0;
}

@media only screen and (max-width: 1024px) {
  .ms-catalog-grid .portfolio__container .container-flex {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 768px) {
  .ms-catalog-grid .portfolio__container .container-flex {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ms-catalog-grid .catalog__item .item-slider {
    width: 100%;
    margin-left: 0;
    margin-bottom: 14px;
  }
}

/* Пагинация: круглые кнопки, отдельно от текста ниже. */
.page-pagination {
  margin: clamp(28px, 2.6vw, 50px) 0 clamp(40px, 4.2vw, 80px);
}

.page-pagination .navigation {
  overflow: visible;
}

.page-pagination .navigation .nav-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-pagination .navigation .page-numbers,
.page-pagination .navigation .page-numbers.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border-radius: 22px;
  border: 1px solid rgba(68, 68, 66, 0.18);
  background: #fff;
  font: 600 15px/1 "Manrope", Arial, sans-serif;
  color: var(--text-main-color);
}

.page-pagination .navigation .page-numbers:hover {
  border-color: var(--main-color);
  color: var(--main-color);
}

.page-pagination .navigation .page-numbers.current {
  width: auto;
  background: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
}

.page-pagination .navigation .page-numbers.dots {
  border-color: transparent;
  background: none;
}

.page-pagination .navigation .page-numbers.prev,
.page-pagination .navigation .page-numbers.next {
  width: auto;
  height: 44px;
  font-size: 15px;
  transform: none;
}

.page-pagination .navigation .page-numbers.prev::before,
.page-pagination .navigation .page-numbers.next::before {
  content: none;
}

/* Страница работы: слева галерея с вертикальной лентой миниатюр, справа описание. */
.ms-work {
  padding: clamp(10px, 1vw, 20px) 0 clamp(50px, 5.2vw, 100px);
}

.ms-work__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 3.6vw, 70px);
  align-items: start;
}

.ms-work__gallery {
  display: grid;
  grid-template-columns: clamp(72px, 5.7vw, 110px) minmax(0, 1fr);
  gap: clamp(10px, 0.8vw, 16px);
}

.ms-work__stage {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 80vh;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f1ec;
}

.ms-work__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  cursor: zoom-in;
}

.ms-work__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.ms-work__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-work__thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.6vw, 12px);
  max-height: min(80vh, 100%);
  overflow-y: auto;
  scrollbar-width: thin;
}

.ms-work__thumb {
  flex: 0 0 auto;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.ms-work__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ms-work__thumb:hover,
.ms-work__thumb.is-active {
  opacity: 1;
}

.ms-work__thumb.is-active {
  border-color: var(--main-color);
}

.ms-work__thumb:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.ms-work__info {
  position: sticky;
  top: 120px;
}

.ms-work__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(196, 158, 94, 0.14);
  color: #8a6a35;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ms-work__title.md-main-title {
  margin-bottom: clamp(16px, 1.3vw, 24px);
  text-align: left;
  font-size: clamp(30px, 2.5vw, 48px);
  line-height: 1.1;
}

.ms-work__descr {
  margin-bottom: clamp(18px, 1.5vw, 28px);
}

.ms-work__facts {
  display: grid;
  gap: 10px;
  margin: 0 0 clamp(22px, 1.8vw, 34px);
  padding: 0;
  list-style: none;
}

.ms-work__facts li {
  padding: 14px 18px;
  border-radius: 12px;
  background: #f6f4ef;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-main-color);
}

.ms-work__facts b {
  color: #1c1c1c;
}

.ms-work__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.ms-work__btns .md-main-color-btn {
  width: auto;
  height: auto;
  padding: 15px 28px;
  font-size: 15px;
  cursor: pointer;
}

.ms-work__btns .ms-btn {
  padding: 15px 26px;
}

.ms-work__back {
  color: var(--main-color);
  font-weight: 600;
  text-decoration: none;
}

.ms-work__content {
  max-width: 900px;
  margin-top: clamp(40px, 3.6vw, 70px);
}

@media only screen and (max-width: 1024px) {
  .ms-work__grid {
    grid-template-columns: 1fr;
  }

  .ms-work__info {
    position: static;
  }
}

@media only screen and (max-width: 768px) {
  .ms-work__gallery {
    grid-template-columns: 1fr;
  }

  .ms-work__stage {
    grid-column: 1;
    max-height: none;
  }

  .ms-work__thumbs {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
  }

  .ms-work__thumb {
    width: 64px;
  }
}

/* Контакты: карточка с адресами и форма в одном ряду, ниже фото мастерской и карта. */
.ms-contacts {
  padding-bottom: clamp(50px, 5.2vw, 100px);
}

.ms-contacts__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 2.1vw, 40px);
  align-items: stretch;
  margin-bottom: clamp(40px, 3.6vw, 70px);
}

.ms-contacts__card {
  padding: clamp(24px, 2.3vw, 44px);
  border-radius: 20px;
  background: #f6f4ef;
}

.ms-contacts__title {
  margin: 0 0 clamp(18px, 1.5vw, 28px);
  font-family: "Forum", serif;
  font-size: clamp(26px, 1.9vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: #1c1c1c;
}

.ms-contacts__title b {
  color: var(--main-color);
  font-weight: 400;
}

.ms-contacts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.3vw, 24px) clamp(20px, 1.6vw, 30px);
  margin: 0 0 clamp(22px, 1.8vw, 34px);
  padding: 0;
  list-style: none;
}

.ms-contacts__row {
  padding-left: 38px;
  background-repeat: no-repeat;
  background-position: 0 2px;
  background-size: 26px 26px;
}

.ms-contacts__row span,
.ms-contacts__req span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8780;
}

.ms-contacts__row p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #1c1c1c;
}

.ms-contacts__row a {
  display: block;
  color: #1c1c1c;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.ms-contacts__row--mail a {
  font-size: 16px;
  font-weight: 600;
}

.ms-contacts__row a:hover {
  color: var(--main-color);
}

.ms-contacts__row--address { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c49e5e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.ms-contacts__row--time { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c49e5e' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ms-contacts__row--phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c49e5e' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.ms-contacts__row--mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c49e5e' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }

.ms-contacts__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(22px, 1.8vw, 34px);
}

.ms-contacts__messengers .ms-btn {
  padding: 16px 28px;
  font-size: 16px;
}

.ms-btn--max { background: linear-gradient(45deg, #2b6cff, #9b3dff); }
.ms-btn--tg { background: #229ed9; }
.ms-btn--vk { background: #0077ff; }

.ms-contacts__req {
  padding-top: clamp(18px, 1.5vw, 26px);
  border-top: 1px solid rgba(68, 68, 66, 0.14);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-main-color);
}

.ms-contacts__req p {
  margin: 0 0 6px;
}

.ms-contacts .contacts__form {
  width: auto;
  padding: clamp(24px, 2.3vw, 44px);
  border-radius: 20px;
  background: #1f1d1a;
  color: #fff;
}

.ms-contacts .contacts__form .form-title {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(20px, 1.35vw, 26px);
  line-height: 1.25;
}

.ms-contacts .contacts__form .form-container .form-input,
.ms-contacts .contacts__form .form-container .form-textarea {
  width: 100%;
  margin-bottom: 12px;
}

.ms-contacts .contacts__form .form-checkbox p {
  color: rgba(255, 255, 255, 0.8);
}

.ms-contacts .contacts__form .form-container .form-btn {
  width: 100%;
}

.ms-contacts__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 1.6vw, 30px);
  margin: 0 0 clamp(40px, 3.6vw, 70px);
}

.ms-contacts__photo-group {
  margin: 0;
}

.ms-contacts__photo-group figcaption {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 17px;
  color: #1c1c1c;
}

.ms-contacts__photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 4 / 3;
}

.ms-contacts__photo-grid a:first-child {
  grid-row: 1 / 3;
}

.ms-contacts__photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.ms-contacts__photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.ms-contacts__photo-grid a:hover img {
  transform: scale(1.04);
}

.ms-contacts__map .map-container iframe {
  width: 100%;
  border: 0;
}

@media only screen and (max-width: 1024px) {
  .ms-contacts__top,
  .ms-contacts__photos {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 768px) {
  .ms-contacts__list {
    grid-template-columns: 1fr;
  }

  .ms-contacts__messengers .ms-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Иконки карточек в тексте: классы ms-i-*, чтобы редактор WordPress не вырезал SVG. */
.ms-card__icon[class*="ms-i-"]::before {
  content: '';
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--ms-icon) center / contain no-repeat;
          mask: var(--ms-icon) center / contain no-repeat;
}

.ms-i-portrait { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%224%22/%3E%3Cpath d=%22M4 21a8 8 0 0 1 16 0%22/%3E%3C/svg%3E"); }
.ms-i-person { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%225%22 r=%222.5%22/%3E%3Cpath d=%22M12 8v7m0 0-3 6m3-6 3 6M7 11h10%22/%3E%3C/svg%3E"); }
.ms-i-double { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%223%22/%3E%3Ccircle cx=%2216%22 cy=%228%22 r=%223%22/%3E%3Cpath d=%22M2 20a6 6 0 0 1 12 0M10 20a6 6 0 0 1 12 0%22/%3E%3C/svg%3E"); }
.ms-i-text { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 6h14M12 6v13M8 19h8%22/%3E%3C/svg%3E"); }
.ms-i-cross { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3v18M7 8h10M9 15l6-2%22/%3E%3C/svg%3E"); }
.ms-i-landscape { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 19l6-8 4 5 3-4 5 7z%22/%3E%3Ccircle cx=%2217%22 cy=%226%22 r=%222%22/%3E%3C/svg%3E"); }
.ms-i-flower { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%229%22 r=%222.5%22/%3E%3Cpath d=%22M12 6.5C12 3 15 3 15 6M12 6.5C12 3 9 3 9 6M14.5 9c3.5 0 3.5 3 .5 3M9.5 9C6 9 6 12 9 12M12 11.5V21M12 17c-2-2-5-2-5 0M12 17c2-2 5-2 5 0%22/%3E%3C/svg%3E"); }
.ms-i-star { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z%22/%3E%3C/svg%3E"); }
.ms-i-size { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 4h6M4 4v6M20 20h-6M20 20v-6M4 4l16 16%22/%3E%3C/svg%3E"); }
.ms-i-photo { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2214%22 rx=%222%22/%3E%3Ccircle cx=%229%22 cy=%2210%22 r=%222%22/%3E%3Cpath d=%22M21 16l-5-5-8 8%22/%3E%3C/svg%3E"); }
.ms-i-stone { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 21V8a5 5 0 0 1 10 0v13M4 21h16%22/%3E%3C/svg%3E"); }
.ms-i-set { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 17V7a3 3 0 0 1 6 0v10M3 17h18v4H3z%22/%3E%3C/svg%3E"); }
.ms-i-home { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 11l9-7 9 7M5 9.5V20h14V9.5M10 20v-6h4v6%22/%3E%3C/svg%3E"); }
.ms-i-click { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 3v4M3 9h4M5 5l2.5 2.5M11 11l9 3-4 2-2 4z%22/%3E%3C/svg%3E"); }
.ms-i-chat { --ms-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 5h16v11H9l-5 4z%22/%3E%3Cpath d=%22M8 10h8M8 13h5%22/%3E%3C/svg%3E"); }

.ms-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.ms-gallery a img {
  display: block;
  width: 100%;
}

.ms-prose .ms-figure img {
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}

.ms-prose .ms-card h3 {
  margin: 0 0 6px;
  padding: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  color: #1c1c1c;
}

.ms-prose .ms-card h3::before {
  content: none;
}

.ms-prose .ms-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Карточки каталога: точки и стрелки слайдера — внутри фото, при одном фото скрыты. */
.catalog__item .item-slider .slider-pagination {
  top: auto;
  bottom: 10px;
  z-index: 2;
}

.catalog__item .item-slider .slider-prev-btn {
  left: 6px;
  z-index: 2;
}

.catalog__item .item-slider .slider-next-btn {
  right: 6px;
  left: auto;
  z-index: 2;
}

.catalog__item .item-slider:has(.swiper-slide:only-child) .slider-pagination,
.catalog__item .item-slider:has(.swiper-slide:only-child) .slider-btn,
.catalog__item .item-slider .slider-pagination.swiper-pagination-lock {
  display: none;
}

/* Мастерские на странице контактов */
.ms-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1vw, 18px);
  margin: 0 0 clamp(20px, 1.6vw, 30px);
}

.ms-branch {
  padding: clamp(16px, 1.2vw, 22px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.ms-branch__name {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8780;
}

.ms-branch__address {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
  color: #1c1c1c;
}

.ms-branch__phone {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #1c1c1c;
  text-decoration: none;
}

.ms-branch__phone:hover {
  color: var(--main-color);
}

.ms-branch__maps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ms-branch__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #e3ded3;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1c;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.ms-branch__map::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ms-branch__map--yandex::before { background: #fc3f1d; }
.ms-branch__map--gis::before { background: #19aa1e; }

.ms-branch__map:hover {
  border-color: var(--main-color);
  background: #faf7f0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media only screen and (max-width: 768px) {
  .ms-branches {
    grid-template-columns: 1fr;
  }
}

/* Логотип в шапке на телефоне: крупнее, но с воздухом до телефонов и кнопки меню. */
@media only screen and (max-width: 768px) {
  .header__top .wrapper {
    justify-content: space-between;
    gap: 3vw;
  }

  .header__logo a img {
    width: 26vw;
    height: auto;
  }
}

/* Блок «Мастер-консультант» на телефоне: текст по левому краю, без разреженных букв. */
@media only screen and (max-width: 768px) {
  .get-consultation__person .person-info p,
  .get-consultation__person .person-info span {
    text-align: left;
    letter-spacing: normal;
  }
}

/* Мобильное меню: один фон на весь экран, без серой полосы под пунктами. */
@media only screen and (max-width: 768px) {
  .header__nav {
    background: #fff;
  }

  .header__nav .nav-wrap {
    min-height: 100%;
    background: #fff;
  }
}

/* Телефон: хлебные крошки и заголовки выровнены по левому краю одной линией. */
@media only screen and (max-width: 768px) {
  .breadcrumbs__container {
    justify-content: flex-start;
    width: auto;
    margin: 0;
    padding: 0;
  }
}

/* Телефон: хлебные крошки и заголовки выровнены по левому краю одной линией. */
@media only screen and (max-width: 768px) {
  .breadcrumbs__container {
    justify-content: flex-start;
    width: auto;
    margin: 0;
    padding: 0;
  }
}

@media only screen and (max-width: 768px) {
  .breadcrumbs .wrapper {
    display: flex;
    justify-content: flex-start;
  }
}

/* Телефон: футер в одном стиле — по левому краю, один столбец, читаемые шрифты. */
@media only screen and (max-width: 768px) {
  .footer__top {
    padding-left: 0;
    padding-right: 0;
  }

  .footer__logo {
    justify-content: flex-start;
  }

  .footer__logo a {
    justify-content: flex-start;
  }

  .footer__top-item,
  .footer__top-item:nth-child(1n+3) {
    width: 100%;
    align-items: flex-start;
    margin-bottom: 28px;
    text-align: left;
  }

  .footer-title {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.3;
    text-align: left;
  }

  .footer-list,
  .footer__top-item:nth-child(1n+3) .footer-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .footer-list .menu-item a,
  .footer-list .nav-item a,
  .footer-list li span {
    font-size: 15px;
    line-height: 2;
  }

  .footer-list li {
    display: flex;
    align-items: baseline;
    text-align: left;
  }

  .footer-list li img,
  .footer-list li svg {
    width: 12px;
    height: 9px;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .footer-text p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: left;
  }

  .footer__social {
    align-items: flex-start;
  }

  .footer__social p {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .footer__social > div a {
    margin: 0 8px 0 0;
  }

  .footer__bottom-item p {
    font-size: 13px;
    line-height: 1.5;
    text-align: left !important;
  }
}

/* Телефон: самые мелкие шрифты шапки, крошек и форм подняты до читаемых. */
@media only screen and (max-width: 768px) {
  .header__contacts p {
    font-size: 10px;
    line-height: 1.3;
  }

  .header__contacts a {
    font-size: 12.5px;
  }

  .breadcrumbs__container {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .breadcrumbs__item a {
    font-size: 13px;
  }

  .get-consultation__form .form-list li,
  .nice-select .current,
  .nice-select .list .option {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* Футер: ссылки в контактах — цвета сайта, а не синие по умолчанию. */
.footer-text a {
  color: var(--main-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-text a:hover {
  text-decoration: none;
}

/* Телефон: карточка товара и карточки каталога. */
@media only screen and (max-width: 768px) {
  .info-list li {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .info-list li span,
  .info-list li p {
    font-size: 15px;
    line-height: 1.5;
  }

  .info-btn-container {
    margin-bottom: 28px;
  }

  .info-btn-container .order-btn {
    width: auto;
    min-width: 240px;
    height: auto;
    min-height: 56px;
    padding: 0 28px;
  }

  .info-btn-container .order-btn span {
    width: auto;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .catalog__item .item-slider {
    aspect-ratio: 3 / 4;
  }

  .catalog__item .item-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Телефон: переключатели — крупные кнопки, прокрутка пальцем. */
@media only screen and (max-width: 768px) {
  .ms-tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ms-tabs-scroll::-webkit-scrollbar {
    display: none;
  }

  .ms-tabs-scroll .swiper-wrapper {
    display: flex;
    gap: 8px;
    width: max-content;
    transform: none !important;
  }

  .ms-tabs-scroll .swiper-slide {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 !important;
  }

  .ms-tabs-scroll .filters-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* Мобильная версия: минимальные размеры шрифтов и единое выравнивание заголовков. */
@media only screen and (max-width: 768px) {
  .header__contacts p,
  .header__contacts p b,
  .header__contacts p span { font-size: 11px; }
  .header__contacts .call-back { font-size: 12px; }
  .quiz-progress .progress-text,
  .quiz-progress .progress-text span,
  .btn-wrap__hint,
  .slider-hint span,
  .slider-hint { font-size: 12.5px; }
  .quiz-question .question-title span { font-size: 13px; }
  .answers-item__text { font-size: 13.5px; }
  .portfolio-sort__title,
  .portfolio-sort__item { font-size: 13.5px; }
  .item-price .current-price span { font-size: 14px; }
  .catalog__item a.item-order,
  .catalog__btn { font-size: 13px; }
  .delivery__item span,
  .delivery__item b { font-size: 13.5px; }

  .calc-price__title,
  .articles__title,
  .process__title,
  .reasons__title,
  .reviews__title,
  .reply__title,
  .delivery__title { text-align: left; }
}

@media only screen and (max-width: 768px) {
  .calc-price__quiz .quiz-progress .progress-text,
  .calc-price__quiz .quiz-progress .progress-text span,
  .calc-price__quiz .btn-wrap__hint,
  .articles__slider .slider-hint span,
  .quiz-question .question-title span { font-size: 12.5px !important; }
  .calc-price__quiz .answers-item__text,
  .answers-wrap .answers-item p { font-size: 13.5px !important; }
  .reasons__block-text,
  .reply__block-text,
  .catalog__btn { font-size: 13px !important; }
  .header__contacts p,
  .header__contacts p b,
  .header__contacts p span { font-size: 11px !important; }

  .first__title,
  .services__title,
  .catalog__title,
  .download-price__title,
  .portfolio__title,
  .our-works__title,
  .geography__title,
  .work-steps__title,
  .questions__title { text-align: left; }
}

@media only screen and (max-width: 768px) {
  .slider-hint,
  .slider-hint span,
  .slider-hint p { font-size: 12.5px !important; }
  .bullets-item p,
  .bullets-item p b { font-size: 13px !important; }
  .first__buttons-text,
  .first__buttons-text b { font-size: 12.5px !important; }
  .load-more-btn span,
  .md-line-dotted span { font-size: 13.5px !important; }
  .form-list li,
  .nice-select .current,
  .nice-select .list .option { font-size: 14px !important; }
  .current-price span,
  .current-price { font-size: 14px !important; }
  .download-price__circle,
  .download-price__circle span,
  .download-price__circle p { font-size: 11px !important; }
}

@media only screen and (max-width: 768px) {
  .calc-price__quiz .quiz-progress { height: 28px; border-radius: 14px; overflow: hidden; }
  .calc-price__quiz .quiz-progress .progress-bar { height: 100%; }
  .calc-price__quiz .quiz-progress .progress-text {
    left: 0; right: 0; top: 0; width: auto; height: 100%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; white-space: nowrap;
  }
  .calc-banner__title b,
  .calc-banner__title p { font-size: 14px !important; }
  .calc-banner__text { font-size: 12.5px !important; }
  .calc-banner .md-main-color-btn span,
  .calc-banner__container .md-main-color-btn span { font-size: 14px !important; }
  .item-gallery__hint,
  .item-gallery__hint span { font-size: 12px !important; }
  .produce__list-item,
  .produce__video-text,
  .contacts__info-address,
  .contacts__info-work-time,
  .contacts__info a { font-size: 13px !important; }
  .filters-item { font-size: 14px !important; }
  .cookie-popup p, .cookie p, [class*="cookie"] p { font-size: 12px !important; }
}

@media only screen and (max-width: 768px) {
  .calc-price__quiz .quiz-progress .progress-text {
    display: block; line-height: 28px; text-align: center; height: 28px;
  }
  .first__buttons-text p,
  .produce__main p,
  .produce__list-item p,
  .produce__video-text p,
  .contacts__info-address p,
  .contacts__info-work-time p,
  .contacts__info-phones p,
  .contacts__info-phones a,
  .contacts__info-email p,
  .contacts__info-email a { font-size: 13px !important; line-height: 1.45; }
  .download-price__circle p { font-size: 11.5px !important; }
  body > div > p,
  .page > div > p { font-size: 12px; }
}

@media only screen and (max-width: 768px) {
  .calc-price__quiz .quiz-progress .progress-text { transform: none !important; }
}

/* Телефон шапки с адресом точки. */
.header__contacts .ms-hphone { display: flex; flex-direction: column; align-items: center; }
.header__contacts .ms-hphone small { font-size: 11px; line-height: 1.3; opacity: .75; text-align: center; }
@media only screen and (max-width: 768px) {
  .header__contacts .ms-hphone small span { display: none; }
  .header__contacts .ms-hphone small::after { content: attr(data-city); }
  .header__contacts .ms-hphone small { font-size: 11px !important; }
}

/* Каталог: фото целиком, без обрезки, на светлом фоне. */
.catalog__item .item-slider .swiper-slide img { object-fit: contain !important; background: #f6f5f2; }

/* Каталог: вертикальная карточка 3:4, фото заполняет её. */
.catalog__item .item-slider { aspect-ratio: 3 / 4 !important; }
.catalog__item .item-slider .swiper-slide img { background: #fff; }

@media only screen and (max-width: 768px) {
  .header__logo a img { width: 31vw; }
  .header__top .wrapper { gap: 2vw; }
  .header__contacts .ms-hphone small { font-size: 10.5px !important; white-space: nowrap; }
}
.catalog__item .item-slider { margin-bottom: 14px !important; }
.catalog__item .item-slider .swiper-slide img { background: #f6f5f2; }

/* Фото входа в карточке мастерской. */
.ms-branch__photo { display: block; margin: 0 0 16px; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.ms-branch__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

.catalog__item .item-slider .swiper-slide img { object-fit: cover !important; }

@media only screen and (max-width: 768px) {
  .header__top .wrapper { gap: 10px; align-items: center; }
  .header__logo { flex: 0 0 auto; }
  .header__logo a img { width: 27vw; }
  .header__contacts { flex: 1 1 auto; min-width: 0; }
  .header__contacts .ms-hphone small { font-size: 10px !important; }
}

@media only screen and (max-width: 768px) {
  .header { height: auto !important; min-height: 74px; }
}

/* Логотип крупнее. */
@media only screen and (min-width: 769px) {
  .header__logo a img { width: clamp(170px, 15vw, 300px); height: auto; }
}
@media only screen and (max-width: 768px) {
  .header__top .wrapper { gap: 6px; }
  .header__logo a img { width: 33vw; }
}

/* Адреса теперь указаны у телефонов — отдельный блок адресов в шапке не нужен. */
.header__address { display: none; }
@media only screen and (max-width: 768px) {
  .header__logo a img { width: min(33vw, calc(100vw - 248px)); }
}
@media only screen and (max-width: 768px) {
  .header__top .wrapper { gap: 14px; }
  .header__logo a img { width: min(30vw, calc(100vw - 262px)); }
  .header__contacts { padding-left: 0; }
}

/* Опции памятника: комплект плитки, дополнения, надпись по буквам. */
.ms-opts {
  margin: 0 0 clamp(16px, 1.4vw, 26px);
  padding: clamp(14px, 1.2vw, 22px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.ms-opts__title {
  margin: 0 0 12px;
  font-size: clamp(17px, 1.15vw, 22px);
  font-weight: 600;
}
.ms-opts__group {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ms-opts__group legend {
  padding: 0;
  margin: 0 0 4px;
  font-size: clamp(15px, 0.95vw, 18px);
  font-weight: 600;
}
.ms-opts__hint {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.7;
}
.ms-opts__section {
  margin: 10px 0 2px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}
.ms-opts__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: clamp(14px, 0.9vw, 17px);
  line-height: 1.3;
}
.ms-opts__row:hover {
  background: rgba(0, 0, 0, 0.04);
}
.ms-opts__row input[type='radio'],
.ms-opts__row input[type='checkbox'] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--main-color);
}
.ms-opts__qty {
  flex: 0 0 64px;
  width: 64px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
}
.ms-opts__label {
  flex: 1 1 auto;
}
.ms-opts__price {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 600;
}
.ms-opts__total {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 15px;
}
.ms-opts__total[hidden] {
  display: none;
}
.ms-opts__sum {
  margin-left: auto;
  font-size: 17px;
}
@media (max-width: 768px) {
  .ms-opts {
    padding: 14px;
  }
  .ms-opts__row {
    font-size: 14.5px !important;
    gap: 10px;
  }
  .ms-opts__price {
    font-size: 13.5px;
    text-align: right;
    white-space: normal;
    max-width: 38%;
  }
  .ms-opts__total {
    font-size: 14px !important;
  }
  .ms-opts__sum {
    margin-left: 0;
    flex: 1 0 100%;
  }
}
.ms-opts__section {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ms-opts__thumb {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  text-transform: none;
}
.ms-opts__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Карточка памятника: фото закреплено при прокрутке, кнопки и отступы. */
.products__item .item-info-block .info-btn-container .order-btn {
  white-space: nowrap;
}
.products__item .item-info-block .info-btn-container .order-btn span {
  white-space: nowrap;
}
@media (min-width: 769px) {
  .products__item .item-img-block {
    position: sticky;
    top: 24px;
    align-self: flex-start;
  }
  .products__item .item-info-block .info-price {
    margin-bottom: clamp(20px, 1.8vw, 34px);
  }
  .products__item .item-info-block .info-btn-container {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 20px;
  }
  .products__item .item-info-block .info-btn-container .order-btn,
  .products__item .item-info-block .info-btn-container .order-btn:hover {
    width: auto;
    min-width: clamp(200px, 15vw, 300px);
    height: clamp(52px, 3.6vw, 70px);
    padding: 0 clamp(26px, 2.2vw, 44px);
    gap: 16px;
    justify-content: center;
    font-size: clamp(15px, 1vw, 19px);
  }
  .products__item .item-info-block .info-btn-container .free-call-btn {
    width: auto;
    height: clamp(52px, 3.6vw, 70px);
    gap: 14px;
  }
  .products__description {
    margin-top: clamp(36px, 3.4vw, 64px);
  }
}
/* Превью плитки: прозрачность подзаголовка не должна затрагивать картинку. */
.ms-opts__section {
  opacity: 1;
}
.ms-opts__section span {
  opacity: 0.7;
  font-weight: 600;
}
.ms-opts__thumb {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
