:root {
  --bg: #f7f9fe;
  --surface: #ffffff;
  --text: #2a3447;
  --heading: #3b4f70;
  --muted: #606c80;
  --border: #e1e8f5;
  --accent: #5f7fb8;
  --accent-dark: #4f6fa8;
  --accent-soft: rgba(95, 127, 184, 0.16);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --header-bg: #e8eefb;
  --footer-bg: #dde6f8;
  --header-text: #2d4b84;
  --header-muted: #3d4f70;
  --header-hover: rgba(95, 127, 184, 0.14);
  --header-btn-border: rgba(45, 75, 132, 0.28);
  --header-btn-bg: rgba(255, 255, 255, 0.92);
  --header-btn-text: #2d4b84;
  --header-btn-hover-bg: rgba(95, 127, 184, 0.14);
  --header-btn-hover-text: #2d4b84;
  --header-btn-hover-border: rgba(95, 127, 184, 0.38);
  --scrollbar-thumb: rgba(95, 127, 184, 0.28);
  --scrollbar-thumb-hover: rgba(95, 127, 184, 0.42);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.25rem;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

html::-webkit-scrollbar-track {
  background: var(--bg);
}

html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 100px;
  border: 3px solid var(--bg);
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

.container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--heading);
}

h1 {
  font-size: clamp(1.9rem, 7vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

p {
  margin: 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

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

.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

.btn--outline:hover {
  color: #fff;
  background: var(--accent);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: auto;
  flex-wrap: wrap;
  padding: 0.75rem 0;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.header__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 52px;
  margin-right: 0;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 52px;
  object-fit: contain;
  mix-blend-mode: darken;
  transform: scale(1);
  transform-origin: left center;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--header-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.45rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  transform-origin: center;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.header-link:hover {
  background: var(--header-hover);
  transform: scale(1.02);
}

.header-link--current {
  color: var(--header-text);
  background: rgba(95, 127, 184, 0.1);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 rgba(95, 127, 184, 0.35);
  transform: scale(1.03);
  animation: header-link-current-in 0.22s ease-out;
}

.header-link--current:hover {
  background: rgba(95, 127, 184, 0.14);
  box-shadow: inset 0 -2px 0 rgba(95, 127, 184, 0.42);
  transform: scale(1.035);
}

@media (max-width: 719px) {
  .header-link--current,
  .header-link--current:hover {
    transform: none;
    animation: none;
  }
}

@keyframes header-link-current-in {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}

.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  line-height: 1.2;
  min-width: 0;
}

.header__geo {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--header-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0.92;
}

.header__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--header-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0.92;
}

.phone-link {
  color: var(--header-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  white-space: nowrap;
}

.header .btn--outline {
  border-color: var(--header-btn-border);
  color: var(--header-btn-text);
  background: var(--header-btn-bg);
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
}

.header .btn--outline:hover {
  border-color: var(--header-btn-hover-border);
  color: var(--header-btn-hover-text);
  background: var(--header-btn-hover-bg);
  box-shadow: 0 2px 10px rgba(45, 75, 132, 0.06);
}

.hero {
  padding: clamp(3.2rem, 6vw, 4.2rem) 0;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.8);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.84) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.1rem;
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 2rem 1.2rem;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: min(850px, 100%);
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  max-width: none;
  width: 100%;
  text-wrap: balance;
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

.hero p {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--header-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: center;
  text-wrap: pretty;
  letter-spacing: 0.003em;
}

.hero .btn--primary {
  margin-top: 0.45rem;
}

/* Вводные абзацы под h1/h2 (не затрагиваем privacy-doc — там свои цвета) */
main .section:not(.privacy-doc) .container > p {
  color: var(--header-muted);
  line-height: 1.6;
}

.services__grid,
.gallery__grid,
.prices-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.card,
.specific .container,
.contact-form,
.work-card,
.price-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.card {
  padding: 1.2rem;
}

.card p {
  color: var(--header-muted);
  line-height: 1.55;
}

.services .card {
  text-align: left;
}

.price {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.specific .container {
  padding: 1.5rem 1.2rem;
}

.work-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.work-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-card__label {
  padding: 0.85rem 1rem;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Portfolio Modal */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
}

.portfolio-modal__container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  padding: 2rem;
  z-index: 1001;
}

.portfolio-modal__close {
  position: absolute;
  top: -1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
  transition: color 0.2s ease;
}

.portfolio-modal__close:hover {
  color: var(--accent);
}

.portfolio-modal__track {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  overflow-x: auto;
  cursor: grab;
  /* Поля под тень: при overflow-x: auto браузер обрезает всё за пределами области прокрутки прямоугольником */
  padding: 1rem 1.75rem 2.75rem;
  scrollbar-width: none; /* Firefox */
}

.portfolio-modal__track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.portfolio-modal__track.is-dragging {
  cursor: grabbing;
}

.portfolio-modal__slide {
  flex-shrink: 0;
  line-height: 0;
}

.portfolio-modal__track img {
  height: 70vh;
  max-height: 700px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 0.5rem;
  clip-path: inset(0 round 0.5rem);
  -webkit-clip-path: inset(0 round 0.5rem);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  user-select: none;
  pointer-events: none;
}

.price-accordion {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.owner-tools {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.price-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.price-category__toggle {
  width: 100%;
  border: none;
  background: #fff;
  color: var(--heading);
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-category__toggle::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.price-category__toggle[aria-expanded="true"]::after {
  content: "-";
}

.price-list-wrap {
  border-top: 1px solid var(--border);
  overflow-x: auto;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0 1.1rem 1rem;
}

.price-list li {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 9.5rem 5.2rem 6rem;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list li span {
  min-width: 0;
  padding: 0.62rem 0.7rem;
}

.price-list li > span + span {
  border-left: 1px solid var(--border);
}

.price-list__head {
  font-weight: 700;
  color: var(--heading);
  background: #eef3fc;
}

.price-list li span:first-child {
  text-align: left;
}

.price-list li span:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}

.price-list__head span:nth-child(n + 2) {
  text-align: center;
}

.price-list li:not(.price-list__head) span:nth-child(2) {
  color: var(--accent);
  font-weight: 700;
}

.price-list li:not(.price-list__head) > span:first-child,
.price-list li:not(.price-list__head) > span:nth-child(3),
.price-list li:not(.price-list__head) > span:nth-child(4) {
  color: var(--header-muted);
  font-weight: 500;
}

.price-value__mobile {
  display: none;
}

.contact-form {
  padding: 1.25rem;
  margin-top: 1.1rem;
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--heading);
}

.contact-form input {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
}

.contact-form input::placeholder {
  color: rgba(61, 79, 112, 0.48);
  opacity: 1;
}

.contact-form input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 9999s ease-out;
}

.contact-form__consent {
  display: block;
}

.contact-form__consent-inner {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--heading);
}

.contact-form__consent input[type="checkbox"] {
  width: auto;
  height: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.contact-form__consent a {
  color: var(--header-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(45, 75, 132, 0.38);
  text-underline-offset: 0.15em;
}

.contact-form__consent a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent);
}

.contact-form__consent--error .contact-form__consent-inner {
  outline: 2px solid var(--accent-soft);
  outline-offset: 0.25rem;
  border-radius: 0.65rem;
  background: rgba(95, 127, 184, 0.06);
}

.form-toast {
  position: fixed;
  top: calc(7rem + env(safe-area-inset-top, 0px));
  bottom: auto;
  left: 50%;
  z-index: 45;
  max-width: min(26rem, calc(100% - 2rem));
  padding: 1rem 1.35rem;
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(95, 127, 184, 0.12);
  border-left: 4px solid var(--accent);
  cursor: pointer;
  transform: translate(-50%, calc(-100% - 1.25rem));
  opacity: 0;
  visibility: hidden;
  transition: transform 0.38s ease, opacity 0.38s ease, visibility 0.38s ease;
}

.form-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.form-toast--warning {
  border-left-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px rgba(95, 127, 184, 0.12);
}

.form-toast--success {
  border-left-color: #4a9078;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7f5 100%);
  border-color: rgba(74, 144, 120, 0.22);
  box-shadow: var(--shadow), 0 0 0 1px rgba(74, 144, 120, 0.1);
  color: var(--heading);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--footer-bg);
  padding: 1.2rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--header-muted);
}

.footer__copy {
  margin: 0;
  font-size: 0.95rem;
}

.footer__geo,
.footer__ip {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.footer__disclaimer {
  flex-basis: 100%;
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.footer__link {
  color: var(--header-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 75, 132, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__link:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.privacy-doc {
  padding-bottom: 3rem;
}

.privacy-doc h1 {
  margin-bottom: 1.25rem;
}

.privacy-doc h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.privacy-doc p,
.privacy-doc li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 0.65rem;
}

.privacy-doc ul {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.privacy-doc li {
  margin-bottom: 0.4rem;
}

.privacy-doc__lead {
  font-weight: 500;
}

.privacy-doc__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-doc a {
  color: var(--accent);
  font-weight: 600;
}

.logo-switcher {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.logo-switcher__toggle {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.switcher-tabs {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.switcher-tab {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text);
}

.switcher-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.switcher-panels {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.logo-switcher__list {
  display: none;
  flex-wrap: wrap;
  max-width: 90vw;
  max-height: 35vh;
  overflow-y: auto;
  gap: 0.35rem;
  padding: 0.6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.logo-switcher__list.is-active {
  display: flex;
}

.logo-switcher.is-collapsed .switcher-tabs,
.logo-switcher.is-collapsed .switcher-panels {
  display: none;
}

.logo-switcher__btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.logo-switcher__btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.floating-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.floating-call:hover {
  background: var(--accent-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Первый экран: без translateY — иначе при липкой шапке на время анимации видна полоска фона */
.hero.reveal {
  opacity: 0;
  transform: none;
  transition: opacity 0.6s ease;
}

.hero.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .header__inner {
    min-height: 5.5rem;
    padding: 1.2rem 0;
  }

  .header__left {
    width: auto;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .header__nav {
    display: flex;
    gap: 0.55rem;
    flex: initial;
  }

  .logo {
    height: 60px;
    margin-right: 150px;
  }

  .logo img {
    height: 60px;
    transform: scale(2.2);
  }

  .header-link {
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
  }

  .header__actions {
    width: auto;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header__contact {
    align-items: flex-end;
  }

  .phone-link {
    font-size: 1.1rem;
  }

  .header .btn--outline {
    font-size: 1.05rem;
    padding: 0.75rem 1.15rem;
  }

  .hero h1 {
    white-space: nowrap;
    line-height: 1.15;
  }

  .hero .container {
    padding: 2.4rem 2rem;
  }

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

  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header__actions {
    gap: 0.9rem;
  }

  .price-list li {
    grid-template-columns: minmax(300px, 1fr) 10rem 5.4rem 6.2rem;
    align-items: center;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }

  .contact-form > label:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .contact-form > label:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .contact-form > label.contact-form__consent {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
  }

  .contact-form > .btn--primary {
    grid-column: 3;
    grid-row: 1;
  }

  .floating-call {
    display: none;
  }

  .logo-switcher {
    left: auto;
    right: 1rem;
    align-items: flex-end;
  }

  .logo-switcher__list {
    max-width: 300px;
    max-height: 60vh;
    justify-content: flex-end;
  }

  .switcher-tabs {
    justify-content: flex-end;
  }

}

@media (max-width: 390px) {
  .logo {
    height: 50px;
  }

  .logo img {
    height: 50px;
    transform: scale(1);
  }

  .header__nav {
    gap: 0.25rem;
  }

  .header-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.3rem;
  }

  .header-link--current {
    transform: none;
    animation: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1120px, calc(100% - 2rem));
  }

  .section {
    padding: 2.45rem 0;
  }

  .header__inner {
    gap: 0.55rem;
    padding: 0.62rem 0;
  }

  .header__left {
    gap: 0.5rem;
  }

  .header__nav {
    gap: 0.2rem;
  }

  .header-link {
    min-height: 2.1rem;
    font-size: 0.88rem;
    padding: 0.34rem 0.22rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
  }

  .header__actions {
    gap: 0.45rem;
  }

  .phone-link {
    font-size: 0.98rem;
  }

  .header__meta,
  .header__geo {
    font-size: 0.74rem;
  }

  .header .btn--outline {
    padding: 0.52rem 0.82rem;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero .container {
    width: min(850px, calc(100% - 1.4rem));
    padding: 1.35rem 0.95rem;
    gap: 0.7rem;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.4vw, 1.95rem);
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .contact-form {
    padding: 1rem;
  }

  .price-list {
    padding: 0 0.75rem 0.75rem;
  }

  .price-category__toggle {
    font-size: 0.94rem;
    padding: 0.85rem 0.95rem;
  }

  .price-list li {
    grid-template-columns: minmax(0, 1fr) 5.1rem 3.6rem 3.9rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .price-list li span {
    border-left: none;
    padding: 0.46rem 0.3rem;
    font-size: 0.88rem;
  }

  .price-list li > span + span {
    border-left: 1px solid var(--border);
  }

  .price-list li span:first-child {
    text-align: left;
    white-space: normal;
  }

  .price-list li > span:nth-child(n + 2) {
    text-align: right;
    white-space: nowrap;
  }

  .price-list__head > span {
    white-space: nowrap;
  }

  .price-value__full {
    display: none;
  }

  .price-value__mobile {
    display: inline;
  }

  .price-list__head > span:nth-child(n + 2) {
    text-align: center;
    font-size: 0.82rem;
  }

  .price-list li:not(.price-list__head) span:nth-child(2) {
    color: var(--accent);
    font-weight: 700;
  }

  main {
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  }

  .floating-call {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    padding: 0.72rem 0.92rem;
    font-size: 0.94rem;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(1120px, calc(100% - 1.7rem));
  }

  .hero .container {
    width: min(850px, calc(100% - 1rem));
  }

  .price-list {
    padding: 0 0.55rem 0.65rem;
  }

  .price-list li span {
    padding: 0.44rem 0.24rem;
    font-size: 0.83rem;
  }

  .price-list__head > span {
    font-size: 0.74rem;
    letter-spacing: -0.01em;
  }

  .price-list li > span:nth-child(n + 2),
  .price-list__head > span:nth-child(n + 2) {
    text-align: center;
  }
}
