:root {
  --accent: #EA6249;
  --white: #FFFFFF;
  --gray-bg: #F6F6F6;
  --light-accent: #F9ECE7;
  --gray-text: #606060;
  --light-gray: #D2C9C3;
  --dark: rgba(67, 59, 56, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
  background: #161312;
  font-family: 'Montserrat', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  background: var(--white);
  overflow: hidden;
  display: none;
}
.stage.active { display: block; }
.stage.desktop { width: 1920px; }
.stage.mobile { width: 402px; height: 874px; }

/* ===== Гибкие отступы (десктоп) ===== */
.d-gap {
  flex-grow: var(--g, 1);
  flex-shrink: 0;
  flex-basis: 0px;
  min-height: 0;
}
.d-title-row {
  position: relative;
  flex-shrink: 0;
  height: 49px;
}
.d-content-row {
  flex-shrink: 0;
  display: flex;
  gap: 20px;
}
.d-col-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Шапка ===== */
.header {
  position: absolute;
  left: 60px;
  top: 24px;
  width: 1766px;
  height: 46px;
  z-index: 30;
}

.hamburger {
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger img { width: 18px; height: 12px; display: block; }

.logo {
  position: absolute;
  left: 38px;
  top: 0;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.logo-icon { width: 45px; height: 46px; }
.logo-text {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.phone {
  position: absolute;
  left: 1525px;
  top: 12px;
  width: 241px;
  height: 21px;
  display: flex;
  align-items: center;
}
.phone-icon { width: 17px; height: 17px; margin-right: 17px; }
.phone-code {
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-right: 17px;
}
.phone-number {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-text);
}

/* ===== Тёмный блок ===== */
.dark-block {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 819px;
  background: var(--dark);
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding-left: 164px;
}

.social {
  width: 378px;
  height: 31px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.social-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--white);
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}
.social-icons img { display: block; }
.social-icons img:nth-child(1) { width: 33px; height: 24px; }
.social-icons img:nth-child(2) { width: 26px; height: 26px; }
.social-icons img:nth-child(3) { width: 23px; height: 27px; }

.welcome {
  width: 553px;
  flex-shrink: 0;
}
.hero {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  font-size: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}
.hero-line { color: var(--white); }
.hero-accent { color: var(--accent); }

.intro {
  margin-top: 30px;
  width: 483px;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--white);
}
.copyright {
  margin-top: 30px;
  width: 368px;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--white);
}

.dark-menu {
  width: 460px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  gap: 20px;
}
.btn-viber,
.btn-instagram {
  width: 220px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: var(--white);
  cursor: pointer;
}
.btn-viber {
  background: rgba(255, 255, 255, 0.25);
  border: none;
}
.btn-viber img { width: 20px; height: 21px; }
.btn-instagram {
  background: transparent;
  border: 1px solid var(--gray-bg);
}
.btn-instagram img { width: 21px; height: 21px; }

/* Позиция счётчика в шапке (десктоп): напротив логотипа, слева от телефона */
.header .ig-counter {
  position: absolute;
  right: 360px;
  top: 10px;
}

/* --- Инстаграм-счётчик подписчиков --- */
.ig-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(214, 36, 159, 0.35);
}
.ig-counter-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  display: block;
}
.ig-counter b {
  font-weight: 700;
  font-style: normal;
}
.ig-counter--sm {
  padding: 8px 13px 8px 9px;
  font-size: 12px;
  gap: 6px;
}
.ig-counter--sm .ig-counter-icon {
  width: 16px;
  height: 16px;
}

/* ===== Экраны ===== */
.screens {
  position: absolute;
  left: 942px;
  top: 183px;
  bottom: 0;
  width: 875px;
  z-index: 20;
}

.screen {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 875px;
  display: none;
  flex-direction: column;
}
.screen.active { display: flex; }

.title {
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 900;
  font-size: 18px;
  line-height: 21px;
  text-transform: uppercase;
  color: var(--accent);
}
.subtitle {
  position: absolute;
  left: 149px;
  top: 0;
  font-weight: 300;
  font-size: 14px;
  line-height: 21px;
  color: var(--gray-text);
}

/* --- Главная: услуги --- */
.services {
  width: 862px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 275px 273px 273px;
  grid-auto-rows: 104px;
  column-gap: 21px;
  row-gap: 20px;
}
.service-item {
  position: relative;
  background: var(--gray-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding-left: 30px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.service-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}
.service-name {
  margin-left: 32px;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--gray-text);
}
.service-check {
  position: absolute;
  right: 27px;
  width: 15px;
  height: 10px;
  display: none;
}
.service-item.active {
  background: var(--light-accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.service-item.active .service-name { color: var(--accent); }
.service-item.active .service-check { display: block; }

/* --- Опции --- */
.options {
  width: 361px;
  flex-shrink: 0;
}
.option-row {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--gray-bg);
  border-radius: 15px;
  padding: 30px 26px;
  cursor: pointer;
  transition: background .2s;
}
.option-row + .option-row { margin-top: 20px; }
.option-row .opt-icon { flex-shrink: 0; }
.option-row[data-opt="urgent"] { padding-top: 30px; padding-bottom: 30px; }
.opt-text {
  margin-left: 24px;
  display: flex;
  flex-direction: column;
}
.opt-text strong {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-text);
}
.opt-text span {
  margin-top: 2px;
  font-weight: 300;
  font-size: 12px;
  line-height: 21px;
  color: var(--gray-text);
}
.opt-icon[src*="urgent"] { width: 13px; height: 25px; }
.opt-icon[src*="outtown"] { width: 18px; height: 18px; }
.opt-icon[src*="materials"] { width: 19px; height: 19px; }

.toggle {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--gray-bg);
  border: 1px solid var(--light-gray);
  transition: background .2s, border-color .2s;
}
.toggle::after {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--light-gray);
  transition: left .2s, background .2s;
}
.option-row.on .toggle {
  background: var(--accent);
  border-color: var(--accent);
}
.option-row.on .toggle::after {
  left: 19px;
  background: var(--white);
}

.add-file {
  width: 478px;
  height: 352px;
  flex-shrink: 0;
  border: 1px dashed var(--light-gray);
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.upload-icon { width: 39px; height: 50px; }
.add-file-body {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.add-file-body strong {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-text);
}
.add-file-body span {
  margin-top: 2px;
  font-weight: 300;
  font-size: 12px;
  line-height: 21px;
  color: var(--gray-text);
}
.progress {
  margin-top: 12px;
  width: 310px;
  height: 6px;
  border-radius: 40px;
  background: var(--gray-bg);
  overflow: hidden;
  display: none;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 40px;
  background: var(--accent);
  transition: width .2s linear;
}
.add-file.uploading .progress,
.add-file.done .progress { display: block; }
.add-file.error { border-color: #d32f2f; animation: addfile-shake .4s ease; }
.add-file.error .add-file-body strong { color: #d32f2f; }
.add-file.error .add-file-body span { color: #d32f2f; }
@keyframes addfile-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* --- Форма --- */
.form {
  position: relative;
  width: 478px;
  height: 352px;
  flex-shrink: 0;
}
.field {
  position: absolute;
  left: 0;
  width: 478px;
  border-radius: 15px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  outline: none;
  padding: 0 27px;
  background: var(--gray-bg);
  border: 1px solid transparent;
  color: var(--gray-text);
  transition: background .2s, border-color .2s;
}
.field::placeholder { color: var(--light-gray); }
.field:focus { background: var(--white); border-color: var(--accent); }
.field-name {
  top: 0;
  height: 55px;
}
.field-phone {
  top: 75px;
  height: 55px;
}
.field-desc {
  top: 150px;
  height: 202px;
  padding: 18px 27px;
  resize: none;
}

.summary {
  width: 361px;
  flex-shrink: 0;
}
.summary-row {
  width: 361px;
  height: 57px;
  border: 1px dashed var(--light-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.summary-row + .summary-row { margin-top: 10px; }
.summary-row span {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-text);
}
.summary-row b {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.add-file-summary {
  width: 361px;
  height: 57px;
  flex-shrink: 0;
  border: 1px dashed var(--light-gray);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.add-file-summary span {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-text);
}
.add-file-summary b {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* --- Успех --- */
.message {
  width: 540px;
  height: 146px;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
}
.message-icon { width: 146px; height: 146px; flex-shrink: 0; }
.message-text { margin-left: 68px; }
.message-text strong {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.message-text p {
  margin-top: 9px;
  width: 326px;
  font-weight: 300;
  font-size: 14px;
  line-height: 21px;
  color: var(--gray-text);
}

/* ===== Кнопки действий ===== */
.actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 51px;
}
.btn {
  height: 51px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  cursor: pointer;
  transition: opacity .2s, background .2s;
}
.btn img { width: 14px; height: 14px; display: block; }
.btn-back {
  width: 202px;
  background: var(--gray-bg);
  border: none;
  color: var(--light-gray);
}
.btn-primary {
  width: 202px;
  margin-left: 20px;
  background: var(--accent);
  border: none;
  color: var(--white);
}
.btn-primary:disabled {
  background: var(--gray-bg);
  color: var(--light-gray);
  cursor: default;
}
.btn-primary:disabled img { opacity: .4; }
.btn-complain {
  width: 216px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-complain img { width: 19px; height: 21px; }

/* ===== Лоадер ===== */
.loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 100;
}
.loader.active {
  opacity: 1;
  visibility: visible;
}
.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(234, 98, 73, 0.2);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================== МОБИЛЬНАЯ ВЕРСИЯ ===================== */

.m-header {
  position: absolute;
  left: 26px;
  top: 20px;
  width: 341px;
  height: 37px;
  z-index: 15;
}
.m-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  cursor: pointer;
}
.m-logo img { width: 147px; height: 23px; }
.m-review-btn {
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.m-review-btn img { width: 20px; height: 20px; display: block; }
/* Позиция инстаграм-счётчика в мобильной шапке: слева от кнопки отзыва */
.m-header .ig-counter {
  position: absolute;
  right: 39px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-bg);
  color: var(--gray-text);
  box-shadow: none;
}
.m-header .ig-counter .ig-counter-icon {
  filter: brightness(0) invert(0.377);
}

.m-screens {
  position: absolute;
  inset: 0;
}
.m-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 84px 20px 20px;
}
.m-screen.active { display: flex; }

.m-gap {
  flex-grow: var(--g, 1);
  flex-shrink: 0;
  flex-basis: 0px;
  min-height: 0;
}

.m-title-row {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.m-title {
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--accent);
}
.m-back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.m-back img { width: 24px; height: 24px; display: block; }

.m-btn {
  width: 100%;
  height: 60px;
  flex-shrink: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  cursor: pointer;
  border: none;
}
.m-btn img { display: block; }
.m-btn img[src*="arrow"] { width: 14px; height: 14px; }
.m-btn img[src*="fast"] { width: 11px; height: 21px; }
.m-btn img[src*="call"] { width: 13px; height: 13px; }
.m-btn-primary { background: var(--accent); color: var(--white); }
.m-btn-primary:disabled { background: var(--gray-bg); color: var(--light-gray); cursor: default; }
.m-btn-primary:disabled img { opacity: .4; }
.m-btn-call { background: var(--gray-bg); color: var(--accent); }

/* --- Главная --- */
.m-hero { flex-shrink: 1; min-height: 0; overflow: hidden; }
.m-hero h1 {
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--accent);
}
.m-hero p {
  margin-top: 14px;
  font-weight: 300;
  font-size: 14px;
  line-height: 21px;
  color: var(--gray-text);
}
.m-menu-grid {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.m-menu-item {
  height: 105px;
  background: var(--gray-bg);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  cursor: pointer;
  position: relative;
}
.m-menu-item img { width: 24px; height: 26px; }
.m-menu-item span {
  margin-top: 20px;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: var(--gray-text);
}
.m-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* --- Услуги --- */
.m-service-list {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-service-item {
  flex: 0 1 70px;
  min-height: 52px;
  position: relative;
  background: var(--gray-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 30px;
  cursor: pointer;
}
.m-service-item > img:first-child { width: 25px; height: 25px; flex-shrink: 0; }
.m-service-item span {
  margin-left: 32px;
  font-weight: 400;
  font-size: 14px;
  color: var(--gray-text);
}
.m-check {
  position: absolute;
  right: 30px;
  width: 25px;
  height: 25px;
  display: none;
}
.m-service-item.active {
  background: var(--light-accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.m-service-item.active span { color: var(--accent); }
.m-service-item.active .m-check { display: block; }

/* --- Опции --- */
.m-options {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-option-row {
  flex: 0 1 100px;
  min-height: 78px;
  position: relative;
  background: var(--gray-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  cursor: pointer;
}
.m-opt-icon { width: 19px; height: 19px; flex-shrink: 0; }
.m-opt-icon[src*="urgent"] { width: 13px; height: 25px; }
.m-opt-icon[src*="outtown"] { width: 18px; height: 18px; }
.m-opt-text {
  margin-left: 22px;
  display: flex;
  flex-direction: column;
}
.m-opt-text strong { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--gray-text); }
.m-opt-text span { margin-top: 2px; font-weight: 300; font-size: 12px; line-height: 21px; color: var(--gray-text); }

.m-toggle {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--gray-bg);
  border: 1px solid var(--light-gray);
  transition: background .2s, border-color .2s;
}
.m-toggle::after {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--light-gray);
  transition: left .2s, background .2s;
}
.m-option-row.on .m-toggle { background: var(--accent); border-color: var(--accent); }
.m-option-row.on .m-toggle::after { left: 19px; background: var(--white); }

.m-add-file {
  flex-shrink: 0;
  height: 136px;
  border: 1px dashed var(--light-gray);
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.m-upload-icon { width: 25px; height: 32px; }
.m-add-file-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.m-add-file-body strong { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--gray-text); }
.m-add-file-body span { margin-top: 2px; font-weight: 300; font-size: 12px; line-height: 21px; color: var(--gray-text); }
.m-progress {
  margin-top: 8px;
  width: 300px;
  height: 6px;
  border-radius: 40px;
  background: var(--gray-bg);
  overflow: hidden;
  display: none;
}
.m-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 40px;
  transition: width .2s linear;
}
.m-add-file.uploading .m-progress,
.m-add-file.done .m-progress { display: block; }
.m-add-file.error { border-color: #d32f2f; animation: addfile-shake .4s ease; }
.m-add-file.error .m-add-file-body strong { color: #d32f2f; }
.m-add-file.error .m-add-file-body span { color: #d32f2f; }

/* --- Форма --- */
.m-form {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-field {
  width: 100%;
  box-sizing: border-box;
  border-radius: 15px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  outline: none;
  padding: 0 28px;
  background: var(--gray-bg);
  border: 1px solid transparent;
  color: var(--gray-text);
  transition: background .2s, border-color .2s;
}
.m-field::placeholder { color: var(--light-gray); }
.m-field:focus { background: var(--white); border-color: var(--accent); }
.m-field-name { flex: 0 0 55px; }
.m-field-phone { flex: 0 0 55px; }
.m-field-desc { flex: 1 1 90px; min-height: 70px; padding: 16px 28px; resize: none; }

.m-summary {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-summary-row {
  height: 57px;
  flex-shrink: 0;
  border: 1px dashed var(--light-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.m-summary-row span { font-weight: 400; font-size: 14px; letter-spacing: 0.04em; color: var(--gray-text); }
.m-summary-row b { font-weight: 700; font-size: 16px; letter-spacing: 0.04em; color: var(--accent); }

.m-add-file-summary {
  flex-shrink: 0;
  height: 57px;
  border: 1px dashed var(--light-gray);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.m-add-file-summary span { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--gray-text); }
.m-add-file-summary b { font-weight: 700; font-size: 16px; letter-spacing: 0.04em; color: var(--accent); }

/* --- Контакты --- */
.m-contact-list {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-contact-card {
  flex: 0 1 100px;
  min-height: 76px;
  background: var(--gray-bg);
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  cursor: pointer;
}
.m-contact-icon { width: 24px; height: 24px; flex-shrink: 0; }
.m-contact-text {
  margin-left: 26px;
  display: flex;
  flex-direction: column;
}
.m-contact-text strong { font-weight: 700; font-size: 14px; color: var(--gray-text); }
.m-contact-sub { margin-top: 4px; font-weight: 300; font-size: 14px; line-height: 21px; color: var(--gray-text); }
.m-contact-sub b { font-weight: 500; }
.m-contact-line { display: flex; align-items: baseline; gap: 10px; }
.m-contact-code { font-weight: 300; font-size: 18px; text-transform: uppercase; color: var(--gray-text); }
.m-contact-number { font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--gray-text); }
.m-contact-mts { font-weight: 300; font-size: 16px; text-transform: lowercase; color: var(--gray-text); }

/* --- Модальные окна --- */
.m-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  transition: visibility .35s;
}
.m-modal.active {
  visibility: visible;
}
.m-modal .m-overlay {
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: 0;
  transition: opacity .35s;
}
.m-modal.active .m-overlay {
  opacity: 1;
}
.m-modal .m-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-radius: 50px 50px 0 0;
  padding: 41px 20px 20px;
  display: flex;
  flex-direction: column;
  transform: translateY(102%);
  transition: transform .35s ease;
}
.m-modal.active .m-sheet {
  transform: translateY(0);
}
.m-sheet h3 {
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.m-sheet-hint {
  margin-top: 12px;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-text);
}
.m-sheet .m-field { margin-top: 15px; }
.m-sheet-note {
  margin-top: 15px;
  text-align: center;
  font-weight: 300;
  font-size: 12px;
  line-height: 21px;
  color: var(--gray-text);
}
.m-sheet .m-btn { margin-top: 20px; }
#m-screen-shortorder .m-sheet { transition: transform .25s ease; }
#so-add-file { margin-top: 15px; }

/* --- Модалка отзыва --- */
.m-review-body {
  display: flex;
  flex-direction: column;
}
.m-field-rv-name { height: 55px; margin-top: 15px; }
.m-field-rv-name:disabled { opacity: .5; }
.m-field-rv-text {
  margin-top: 10px;
  min-height: 110px;
  padding: 16px 28px;
  resize: none;
}
.m-review-anon {
  position: relative;
  margin-top: 15px;
  min-height: 60px;
  background: var(--gray-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  cursor: pointer;
}
.m-review-anon .m-opt-text { margin-left: 0; }
.m-review-anon .m-toggle { right: 26px; }
.m-review-anon.on .m-toggle { background: var(--accent); border-color: var(--accent); }
.m-review-anon.on .m-toggle::after { left: 19px; background: var(--white); }

.m-sheet-small {
  bottom: 40px;
  left: 36px;
  right: 36px;
  border-radius: 20px;
  padding: 32px 20px;
  align-items: center;
  justify-content: center;
}
.m-message {
  position: relative;
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.m-state.active {
  opacity: 1;
  visibility: visible;
}
.m-state strong {
  margin-top: 18px;
  font-weight: 700;
  font-size: 16px;
  color: var(--gray-text);
  white-space: nowrap;
}
.m-state span {
  margin-top: 6px;
  font-weight: 300;
  font-size: 13px;
  color: var(--gray-text);
  white-space: nowrap;
}
.m-state-success img { width: 72px; height: 72px; }
.m-state-error img { width: 56px; height: 56px; }
.m-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(234, 98, 73, 0.2);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}

/* --- Заставка --- */
.m-splash {
  position: absolute;
  inset: 0;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.m-splash img {
  width: 200px;
  height: auto;
  display: block;
  animation: splash-breathe 2s ease-in-out infinite;
}
.m-splash.active { opacity: 1; visibility: visible; }
@keyframes splash-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.72; }
}
