:root {
  --bg: #eef5fb;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-blue: #e9f3ff;
  --line: #d8e3ef;
  --line-strong: #bfd0e2;
  --text: #16263a;
  --muted: #66788c;
  --primary: #1167d8;
  --primary-strong: #0755bb;
  --primary-deep: #0b2f75;
  --primary-dark: #071f5f;
  --cyan: #16b9d4;
  --green: #13915f;
  --amber: #b77905;
  --red: #ba3c42;
  --site-width: 1500px;
  --text-h1: 64px;
  --text-h2: 44px;
  --text-h3: 28px;
  --text-body: 18px;
  --text-small: 14px;
  --text-button: 15px;
  --shadow-sm: 0 8px 22px rgba(22, 50, 86, 0.08);
  --shadow-md: 0 18px 46px rgba(18, 54, 102, 0.16);
  --radius: 8px;
}


* {
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  body {
    zoom: 0.85;
  :root {
    --site-width: 1200px;
    --text-h1: 51px;
    --text-h2: 35px;
    --text-h3: 22px;
    --text-body: 15px;
    --text-button: 13px;
    --shadow-sm: 0 6px 18px rgba(22, 50, 86, 0.07);
    --shadow-md: 0 14px 36px rgba(18, 54, 102, 0.14);
  }

  .page-shell {
    width: min(var(--site-width), calc(100% - 96px));
    padding-top: 18px;
  }

  .site-header,
  .top-nav {
    padding-right: 20px;
    padding-left: 20px;
  }

  .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 21px;
  }

  .top-nav .nav-btn {
    font-size: 15px;
  }
 }
}

html {
  height: 100%;
  min-height: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Manrope, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--text-body);
  color: var(--text);
  background:
    linear-gradient(180deg, #dbeeff 0, #eef5fb 340px, #f7fbff 100%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 103, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 103, 216, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 560px);
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  flex: 1 0 auto;
  width: min(var(--site-width), calc(100% - 48px));
  min-height: auto;
  margin: 0 auto;
  padding: 24px 0 52px;
}

.site-top-panel,
.hero-copy,
.auth-card,
.info-section,
.buy-section,
.services-section,
.application-section,
.profile-section,
.consultant-chat-section,
.reviews-section,
.page-panel,
.operator-toolbar,
.operator-settings,
.operator-workspace,
.operator-thread-head,
.operator-reply-form {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.site-top-panel {
  position: sticky;
  top: 10px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 14px 18px;
}

.site-top-panel .site-header {
  display: contents;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 0;
  padding: 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.logo-mark {
  display: inline-flex;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.logo-mark.logo-image {
  object-fit: contain;
  padding: 6px;
  background: none;
  box-shadow: none;
}

.logo-title,
.logo-subtitle,
.form-note,
.status-message,
.section-heading p,
.hero-copy p,
.support-head h2,
.support-head p,
.support-status,
.operator-toolbar h1,
.operator-toolbar p,
.operator-thread-head h2,
.operator-thread-head p {
  margin: 0;
}

.logo-title {
  overflow-wrap: anywhere;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.logo-subtitle {
  display: none;
}

.session-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  order: 3;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.top-nav {
  flex: 1 1 auto;
  order: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 0;
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-deep);
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 50, 88, 0.08);
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.mobile-menu-auth,
.mobile-menu-links {
  display: grid;
  gap: 8px;
}

.mobile-menu-auth {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, var(--surface-blue));
}

.mobile-menu-user {
  display: block;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(26, 52, 86, 0.12);
  border-radius: 8px;
  color: var(--primary-deep);
  background: #eef5ff;
  font-weight: 800;
}

.mobile-menu-links {
  padding: 8px;
}

.mobile-menu-link {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #284765;
  text-decoration: none;
  font-weight: 750;
}

.mobile-menu-link:hover {
  background: #f4f8fd;
}

.mobile-menu-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 9px 20px rgba(17, 103, 216, 0.16);
}

.nav-left,
.nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-left {
  margin-right: auto;
}

.nav-right {
  margin-left: auto;
}

.nav-btn,
.tab-btn,
.operator-type-tab,
.operator-tab,
.operator-request-tab,
.primary-btn,
.secondary-btn,
.service-btn,
.danger-btn,
.support-close,
.attach-btn {
  min-height: 46px;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.nav-btn,
.tab-btn,
.operator-type-tab,
.operator-tab,
.operator-request-tab,
.secondary-btn,
.service-btn {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  color: #284765;
  background: transparent;
}

.nav-btn:hover,
.tab-btn:hover,
.operator-type-tab:hover,
.operator-tab:hover,
.operator-request-tab:hover,
.secondary-btn:hover,
.service-btn:hover {
  border-color: var(--line);
  color: var(--primary);
  background: #f4f8fd;
}

.nav-btn.active,
.tab-btn.active,
.operator-type-tab.active,
.operator-tab.active,
.operator-request-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 9px 20px rgba(17, 103, 216, 0.22);
}

.nav-buy-highlight {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 10px 24px rgba(22, 185, 212, 0.22);
}

.nav-buy-highlight:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #12a8c4, var(--primary-strong));
}

.link-btn,
.side-link {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(360px, 0.72fr);
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 42px;
  color: #fff;
  border-color: rgba(80, 145, 225, 0.42);
  background:
    linear-gradient(135deg, rgba(20, 198, 225, 0.25), transparent 38%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 54%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-md);
}

.hero-copy::before,
.hero-copy::after {
  display: none;
}

.hero-example-image {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 260px;
  height: 170px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow:
    0 18px 44px rgba(0, 17, 64, 0.24);
  pointer-events: none;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.auth-form h2,
.error-panel h1,
.legal-panel h1 {
  margin: 0;
  color: var(--text);
}

.hero-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 48px;
  line-height: 1.08;
}

.hero-copy p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.65;
}

.hero-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  max-width: 760px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(22, 185, 212, 0.16);
}

.hero-actions,
.buy-actions,
.side-links,
.auth-tabs,
.modal-actions,
.support-actions,
.chat-send-actions,
.operator-toolbar-actions,
.operator-type-tabs,
.operator-application-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.guest-actions {
  gap: 12px;
}

.guest-actions .primary-btn,
.guest-actions .secondary-btn {
  min-height: 54px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 850;
}

.guest-actions .primary-btn {
  background: linear-gradient(135deg, #25a0ff, #0b56d8);
  box-shadow:
    0 14px 30px rgba(20, 118, 235, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.guest-actions .primary-btn:hover {
  background: linear-gradient(135deg, #4cb4ff, #1267ef);
}

.guest-actions .secondary-btn {
  border-color: rgba(57, 142, 255, 0.55);
  color: #f8fbff;
  background: rgba(31, 76, 151, 0.72);
  box-shadow:
    0 10px 24px rgba(6, 24, 60, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.guest-actions .secondary-btn:hover {
  border-color: rgba(117, 188, 255, 0.9);
  color: #fff;
  background: rgba(40, 95, 181, 0.86);
  transform: translateY(-1px);
}

.buy-actions.guest-actions .secondary-btn {
  color: #14315c;
  border-color: rgba(17, 103, 216, 0.36);
  background: #eef6ff;
}

.buy-actions.guest-actions .secondary-btn:hover {
  color: #0b56d8;
  border-color: rgba(17, 103, 216, 0.56);
  background: #e1efff;
}

.hero .secondary-btn {
  color: #eaf5ff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero .secondary-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.hero .guest-actions .secondary-btn {
  border-color: rgba(57, 142, 255, 0.62);
  color: #f8fbff;
  background: rgba(31, 76, 151, 0.76);
}

.hero .guest-actions .secondary-btn:hover {
  border-color: rgba(117, 188, 255, 0.95);
  color: #fff;
  background: rgba(40, 95, 181, 0.9);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 10px 24px rgba(17, 103, 216, 0.22);
  font-weight: 750;
}

.primary-btn:hover {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-dark));
  transform: translateY(-1px);
}

.secondary-btn {
  padding: 10px 14px;
  border-color: var(--line);
  color: #284765;
  background: #fff;
  box-shadow: 0 4px 12px rgba(28, 58, 94, 0.05);
}

.danger-btn {
  padding: 10px 14px;
  border: 1px solid transparent;
  color: #fff;
  background: linear-gradient(135deg, #dc5c62, var(--red));
}

.auth-card {
  padding: 24px;
}

.hero-side-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  overflow: hidden;
  min-height: 440px;
  padding: 26px;
  border-color: rgba(19, 108, 224, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0 28%, rgba(231, 242, 255, 0.98) 100%),
    linear-gradient(135deg, rgba(22, 185, 212, 0.22), rgba(17, 103, 216, 0.18));
  box-shadow: var(--shadow-md);
}

.hero-side-card::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(135deg, #7fdbea, var(--primary));
  box-shadow: 0 18px 36px rgba(17, 103, 216, 0.18);
}

.hero-side-card::after {
  content: "";
  position: absolute;
  top: 49px;
  right: 39px;
  width: 50px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 18px 0 rgba(255, 255, 255, 0.9),
    0 36px 0 rgba(255, 255, 255, 0.72);
}

.news-title {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(17, 103, 216, 0.16);
  border-radius: 8px;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(17, 103, 216, 0.08);
  font-size: 26px;
}

.news-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(22, 185, 212, 0.16);
}

.hero-side-text,
.price-card p,
.about-card p,
.buy-card p,
.profile-card p,
.service-card p,
.legal-panel p,
.error-panel p,
.modal-summary p {
  color: var(--muted);
  line-height: 1.55;
}

.news-lead {
  position: relative;
  z-index: 1;
  max-width: 330px;
  color: #112c50;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.42;
}

.news-note,
.form-note,
.page-links,
.support-status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.news-note {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 103, 216, 0.14);
}

.hero-side-card .side-links {
  position: relative;
  z-index: 1;
}

.hero-side-card .side-link {
  width: 100%;
  justify-content: center;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 12px 26px rgba(17, 103, 216, 0.24);
  font-weight: 800;
}

.hero-side-card .side-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #11a7c2, var(--primary-strong));
  transform: translateY(-1px);
}

.news-feature {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 22px 18px;
  border: 1px solid rgba(17, 103, 216, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 185, 212, 0.13), rgba(17, 103, 216, 0.1)),
    rgba(255, 255, 255, 0.54);
}

.news-feature span {
  color: var(--primary-deep);
  font-size: 56px;
  font-weight: 800;
  line-height: 0.95;
}

.news-feature strong {
  color: #183554;
  font-size: 18px;
  font-weight: 800;
}

.info-section,
.buy-section,
.services-section,
.application-section,
.profile-section,
.consultant-chat-section {
  margin-top: 18px;
  padding: 26px;
}

.reviews-section {
  margin-top: 18px;
  padding: 26px;
}

.page-main {
  display: flex;
  justify-content: center;
}

.page-panel {
  width: 100%;
  margin-top: 18px;
  padding: 28px;
}

.narrow-panel {
  max-width: 540px;
}

.legal-panel {
  max-width: 860px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2,
.operator-toolbar h1,
.operator-thread-head h2 {
  font-size: 28px;
  line-height: 1.18;
}

.section-heading p,
.operator-toolbar p,
.operator-thread-head p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.price-grid,
.about-grid,
.profile-applications {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.price-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.price-card,
.about-card,
.profile-card,
.buy-card,
.profile-summary,
.service-card,
.total-box,
.service-picker,
.service-type-picker,
.service-type-extra,
.profile-application-chat,
.application-chat-box,
.modal-window,
.consultant-chat-page,
.operator-application-detail,
.operator-photo-card,
.support-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(20, 50, 88, 0.05);
}

.price-card,
.about-card,
.profile-card {
  padding: 18px;
}

.price-card {
  min-height: 100%;
  padding: 18px 16px;
}

.price-card,
.service-card,
.profile-card {
  position: relative;
  overflow: hidden;
}

.price-card::before,
.service-card::before,
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.price-card h3,
.about-card h3,
.buy-card h3,
.profile-card h3,
.service-card h3,
.questions-card h2,
.legal-panel h2 {
  margin: 0 0 10px;
  color: var(--primary-deep);
}

.price-card h3 {
  font-size: 16px;
  line-height: 1.25;
}

.price-card p,
.about-card p,
.buy-card p,
.profile-card p,
.service-card p {
  margin: 0 0 12px;
}

.price-value,
.service-price,
.total-final strong {
  color: var(--primary);
  font-weight: 850;
}

.price-value {
  font-size: 22px;
}

.catalog-intro {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(17, 103, 216, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--surface-blue));
}

.catalog-intro h3 {
  margin: 0 0 8px;
  color: var(--primary-deep);
  font-size: 22px;
  line-height: 1.2;
}

.catalog-intro p {
  max-width: 1300px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.buy-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, var(--surface-blue));
}

.reviews-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.reviews-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.reviews-arrow {
  display: inline-flex;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 10px 22px rgba(17, 103, 216, 0.18);
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.reviews-arrow:hover {
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  transform: translateY(-1px);
}

.reviews-carousel {
  overflow: hidden;
}

.reviews-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.reviews-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.review-slide {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
}

.review-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: 0 12px 28px rgba(20, 50, 88, 0.08);
}

.auth-form,
.application-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label,
.form-field,
fieldset label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #2f4358;
  font-size: 14px;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

textarea {
  resize: vertical;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #9fb7d0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(17, 103, 216, 0.14);
}

.date-picker {
  position: relative;
  display: block;
  width: 100%;
}

.date-picker-trigger {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 12px 46px 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.98));
  text-align: left;
  touch-action: manipulation;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.date-picker-trigger::before,
.date-picker-trigger::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.date-picker-trigger::before {
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  transform: translateY(-50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2L2 6a2 2 0 0 1 2-2h3V2Zm13 8H4v10h16V10ZM4 8h16V6H4v2Zm3 5h3v3H7v-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2L2 6a2 2 0 0 1 2-2h3V2Zm13 8H4v10h16V10ZM4 8h16V6H4v2Zm3 5h3v3H7v-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.date-picker-trigger::after {
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.date-picker-trigger:hover {
  border-color: #9fb7d0;
}

.date-picker-trigger:focus,
.date-picker.is-open .date-picker-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(17, 103, 216, 0.14);
}

.date-picker-trigger.has-value {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(232, 244, 255, 0.98));
}

.date-picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 150;
  display: grid;
  width: min(356px, calc(100vw - 32px));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17, 103, 216, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
  box-shadow: 0 18px 46px rgba(18, 54, 102, 0.2);
}

.date-picker-head,
.date-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.date-picker-head strong {
  color: var(--primary-deep);
  font-size: 15px;
  font-weight: 850;
  text-transform: capitalize;
}

.date-picker-jump {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(90px, 0.65fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(17, 103, 216, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #eef7ff);
}

.date-picker-jump-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.date-picker-jump select,
.date-picker-jump input {
  min-height: 38px;
  padding: 8px 10px;
  border-color: rgba(191, 208, 226, 0.95);
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}

.date-picker-jump input {
  text-align: center;
}

.date-picker-nav {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  color: var(--primary-deep);
}

.date-picker-nav::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m14.7 6.7-1.4-1.4L6.6 12l6.7 6.7 1.4-1.4-4.3-4.3H20v-2h-9.6l4.3-4.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m14.7 6.7-1.4-1.4L6.6 12l6.7 6.7 1.4-1.4-4.3-4.3H20v-2h-9.6l4.3-4.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.date-picker-nav[data-date-picker-next]::before {
  transform: rotate(180deg);
}

.date-picker-nav:hover,
.date-picker-actions button:hover {
  border-color: rgba(17, 103, 216, 0.28);
  color: var(--primary);
  background: #eef6ff;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.date-picker-grid span,
.date-picker-day {
  display: inline-flex;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
}

.date-picker-grid span {
  color: var(--muted);
  font-weight: 850;
}

.date-picker-day {
  border: 1px solid transparent;
  cursor: pointer;
  color: #223a55;
  background: transparent;
  font-weight: 750;
}

.date-picker-day:hover {
  border-color: rgba(17, 103, 216, 0.24);
  background: #eef6ff;
}

.date-picker-day.is-muted {
  color: #8da0b4;
}

.date-picker-day.is-today {
  border-color: rgba(22, 185, 212, 0.6);
  color: var(--primary-deep);
  background: rgba(22, 185, 212, 0.1);
}

.date-picker-day.is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 8px 18px rgba(17, 103, 216, 0.24);
}

.date-picker-actions {
  padding-top: 2px;
}

.date-picker-actions button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: #284765;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

input[type="file"] {
  padding: 10px;
  color: var(--muted);
  background: var(--surface-soft);
}

.custom-file-control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.98));
  box-shadow: 0 8px 18px rgba(20, 50, 88, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.custom-file-control:hover {
  border-color: #9fb7d0;
}

.custom-file-control:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(17, 103, 216, 0.14);
}

.custom-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.custom-file-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 8px 18px rgba(17, 103, 216, 0.2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.custom-file-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-file-control.has-file {
  border-color: rgba(19, 145, 95, 0.42);
  background: linear-gradient(135deg, #fff, #effbf4);
}

.custom-file-control.has-file .custom-file-button {
  background: linear-gradient(135deg, var(--green), var(--primary));
}

.custom-file-control.has-file .custom-file-name {
  color: var(--text);
}

.custom-file-control.is-disabled {
  opacity: 0.58;
}

.status-message {
  min-height: 20px;
  color: var(--green);
  font-size: 14px;
}

.page-links a {
  font-weight: 700;
}

.application-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.application-help {
  display: flex;
  min-width: 250px;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.application-help p {
  color: var(--primary-deep);
  font-weight: 800;
}

.application-help .secondary-btn {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 12px 28px rgba(17, 103, 216, 0.24);
  font-weight: 800;
}

.application-help .secondary-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #11a7c2, var(--primary-strong));
  transform: translateY(-1px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.service-type-picker,
.service-picker {
  margin: 0;
  padding: 16px;
  background: var(--surface-soft);
}

.service-type-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-type-picker legend,
.service-picker legend {
  padding: 0 8px;
  color: var(--primary-deep);
  font-weight: 800;
}

.service-type-picker label,
.inline-choice,
.service-picker label {
  flex-direction: row;
  align-items: center;
}

.service-type-picker label {
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card {
  display: flex;
  min-height: 224px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.service-card.selected {
  border-color: rgba(17, 103, 216, 0.55);
  background: linear-gradient(180deg, #fff, #edf6ff);
  box-shadow: 0 12px 30px rgba(17, 103, 216, 0.14);
}

.service-card.selected .service-btn {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.service-picker label {
  gap: 10px;
  margin-bottom: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
}

.service-picker label:last-child {
  margin-bottom: 0;
}

.service-picker label span {
  flex: 1;
  min-width: 0;
}

.service-picker label strong {
  white-space: nowrap;
  color: var(--primary);
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.photo-choice,
.total-details,
.total-final {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-type-extra {
  gap: 12px;
  padding: 16px;
  border-color: #f0d392;
  background: #fff9e8;
}

.service-type-extra p,
.discount-line {
  margin: 0;
  color: var(--amber);
  font-weight: 800;
}

.lock-banner,
.support-closed-card {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #f0d392;
  border-radius: 8px;
  color: #8a5a06;
  background: #fff9e8;
}

.application-form.is-locked {
  opacity: 0.58;
  pointer-events: none;
}

.total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #fff, #eef7ff);
}

.savings-line {
  color: var(--green);
  font-weight: 800;
}

.total-final {
  align-items: flex-end;
}

.total-final strong {
  font-size: 26px;
}

.submit-btn {
  align-self: flex-start;
}

.profile-summary {
  margin-bottom: 14px;
  padding: 15px 16px;
  color: var(--primary-deep);
  background: var(--surface-blue);
  font-weight: 800;
}

.profile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-size: 12px;
  font-weight: 800;
}

.profile-card.empty {
  grid-column: 1 / -1;
}

.profile-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.55fr);
  gap: 18px;
  align-items: start;
}

.profile-workspace .profile-applications {
  grid-template-columns: 1fr;
}

.profile-application-chat {
  display: flex;
  min-height: 416px;
  flex-direction: column;
  padding: 16px;
  background: var(--surface-soft);
}

.profile-chat-head {
  margin-bottom: 12px;
}

.profile-chat-head h2,
.profile-chat-head p {
  margin: 0;
}

.profile-chat-head h2 {
  color: var(--primary-deep);
}

.profile-chat-head p {
  margin-top: 5px;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 21, 42, 0.56);
  backdrop-filter: blur(8px);
}

.modal-window {
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.modal-window h2 {
  margin: 0 0 14px;
  color: var(--primary-deep);
}

.modal-head h2 {
  margin-bottom: 0;
}

.application-result-modal {
  max-width: 430px;
  text-align: center;
}

.application-result-modal h2 {
  margin-bottom: 18px;
  line-height: 1.25;
}

.application-result-modal .modal-actions {
  justify-content: center;
}

.modal-close-btn {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-deep);
  background: var(--surface-soft);
  font-size: 24px;
  line-height: 1;
}

.modal-close-btn:hover {
  border-color: var(--line-strong);
  background: #e9f3ff;
}

.modal-summary .modal-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--primary-deep);
  font-size: 18px;
}

.modal-summary .modal-saving {
  padding: 10px 12px;
  border: 1px solid #bae6ca;
  border-radius: 8px;
  color: var(--green);
  background: #effbf4;
  font-weight: 800;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.application-guide-modal {
  width: min(900px, 100%);
}

.application-guide-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
}

.application-guide-modal .modal-head {
  position: sticky;
  top: -24px;
  z-index: 3;
  margin: -24px -24px 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.application-guide-actions {
  display: none;
  margin-top: 16px;
}

.application-guide-content h3 {
  margin: 0 0 12px;
  color: var(--primary-deep);
  font-size: 20px;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.guide-list div,
.example-request {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.guide-list dt {
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 800;
}

.guide-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.example-request {
  background: #eef5ff;
}

.example-request p {
  margin: 0 0 9px;
  color: #2f4358;
  font-size: 14px;
  line-height: 1.45;
}

.example-request p:last-child {
  margin-bottom: 0;
}

.example-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0;
}

.example-photo-grid figure {
  margin: 0;
}

.example-photo-grid img {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.example-photo-grid figure {
  display: grid;
  justify-items: center;
}

.example-photo-grid figcaption {
  margin-top: 5px;
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.support-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  font-family: Manrope, "Segoe UI", Roboto, Arial, sans-serif;
}

.support-toggle {
  position: relative;
  min-height: 46px;
  cursor: pointer;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 18px 40px rgba(17, 103, 216, 0.25);
  font: inherit;
  font-weight: 800;
}

.support-dot {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 6px 14px rgba(186, 60, 66, 0.26);
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.nav-support-dot {
  top: -10px;
  right: -8px;
}

.support-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  display: flex;
  width: min(400px, calc(100vw - 28px));
  height: min(700px, calc(100vh - 96px));
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.support-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, var(--surface-blue));
}

.support-head h2 {
  color: var(--primary-deep);
  font-size: 18px;
}

.support-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.support-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.support-messages,
.operator-messages,
.application-chat-messages {
  scrollbar-color: #aac2dc transparent;
}

.support-messages {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background: #f1f6fc;
}

.support-empty {
  margin: auto;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.support-message {
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  line-height: 1.42;
  word-break: break-word;
}

.support-message.client {
  align-self: flex-end;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.support-message.support {
  align-self: flex-start;
}

.support-message-meta,
.operator-delivery-status {
  display: block;
  margin-top: 5px;
  color: inherit;
  opacity: 0.68;
  font-size: 11px;
}

.operator-delivery-status {
  text-align: right;
}

.message-attachment {
  display: block;
  margin-top: 8px;
  cursor: zoom-in;
  padding: 0;
  border: 0;
  background: transparent;
}

.message-attachment img {
  display: block;
  width: min(180px, 100%);
  max-height: 160px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  background: #fff;
}

.support-form {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.support-form textarea {
  min-height: 78px;
  max-height: 160px;
}

.support-actions {
  justify-content: space-between;
  margin-top: 10px;
}

.chat-send-actions {
  margin-left: auto;
}

.chat-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attach-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--primary);
  background: #fff;
  font-size: 18px;
  line-height: 1;
}

.attach-btn.has-file {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
}

.consultant-chat-page {
  display: flex;
  height: min(720px, calc(100dvh - 190px));
  min-height: 420px;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.consultant-page-head {
  flex: 0 0 auto;
}

.consultant-chat-main,
.consultant-chat-main .consultant-chat-section {
  width: 100%;
}

.consultant-page-messages {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
}

.consultant-page-form {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 42px;
  grid-template-areas:
    "attach input send"
    "status status status";
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #eef3f8;
}

.consultant-page-form textarea {
  grid-area: input;
  min-height: 36px;
  max-height: 96px;
  resize: none;
  overflow-y: auto;
  padding: 7px 13px;
  border-color: #d9e3ee;
  border-radius: 18px;
  background: #fff;
  line-height: 20px;
}

.consultant-page-form textarea::placeholder {
  color: #8a96a3;
  opacity: 1;
}

.consultant-page-form .support-actions,
.consultant-page-form .chat-send-actions {
  display: contents;
}

.consultant-page-form .support-status {
  grid-area: status;
  margin: 0 4px;
  min-height: 0;
}

.consultant-page-form .attach-btn {
  grid-area: attach;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: transparent;
  font-size: 0;
}

.consultant-page-form .attach-btn::before {
  content: "";
  width: 26px;
  height: 26px;
  background: #7b8794;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.4 11.6 12 21a6 6 0 0 1-8.5-8.5l9.6-9.6a4.2 4.2 0 0 1 5.9 5.9l-9.7 9.7a2.4 2.4 0 0 1-3.4-3.4l8.7-8.7 1.4 1.4-8.7 8.7a.4.4 0 0 0 .6.6l9.7-9.7a2.2 2.2 0 1 0-3.1-3.1l-9.6 9.6a4 4 0 0 0 5.7 5.7l9.4-9.4 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.4 11.6 12 21a6 6 0 0 1-8.5-8.5l9.6-9.6a4.2 4.2 0 0 1 5.9 5.9l-9.7 9.7a2.4 2.4 0 0 1-3.4-3.4l8.7-8.7 1.4 1.4-8.7 8.7a.4.4 0 0 0 .6.6l9.7-9.7a2.2 2.2 0 1 0-3.1-3.1l-9.6 9.6a4 4 0 0 0 5.7 5.7l9.4-9.4 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.consultant-page-form .attach-btn.has-file {
  background: #d8eaff;
}

.consultant-page-form .attach-btn.has-file::before {
  background: var(--primary);
}

.consultant-page-form .chat-send-actions .primary-btn {
  grid-area: send;
  position: relative;
  display: inline-flex;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: #1688ff;
  box-shadow: 0 8px 18px rgba(17, 103, 216, 0.22);
  font-size: 0;
}

.consultant-page-form .chat-send-actions .primary-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 23px;
  height: 23px;
  background: #fff;
  transform: translate(-50%, -50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 20V7.8l-5.6 5.6L4 12l8-8 8 8-1.4 1.4L13 7.8V20h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 20V7.8l-5.6 5.6L4 12l8-8 8 8-1.4 1.4L13 7.8V20h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.consultant-page-form .chat-send-actions .primary-btn:disabled {
  opacity: 0.55;
}

.image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 21, 42, 0.78);
  backdrop-filter: blur(8px);
}

.image-preview-overlay img {
  max-width: min(960px, 96vw);
  max-height: 88vh;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

.image-preview-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.support-closed-card p {
  margin: 0 0 10px;
  color: #8a5a06;
  line-height: 1.4;
}

.operator-page {
  margin-top: 18px;
}

.operator-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.operator-toolbar-actions,
.operator-type-tabs {
  justify-content: flex-end;
}

.operator-filter {
  width: 190px;
}

.operator-settings {
  margin-top: 16px;
  padding: 18px;
}

.operator-settings-head,
.operator-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operator-settings-head h2,
.operator-settings-head p {
  margin: 0;
}

.operator-settings-head h2 {
  font-size: 20px;
}

.operator-settings-head p {
  margin-top: 4px;
  color: var(--muted);
}

.operator-link-field {
  margin-top: 14px;
}

.operator-referral-display,
.operator-registered-count {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #2f4358;
  font-size: 14px;
  font-weight: 650;
}

.operator-referral-display strong,
.operator-registered-count strong {
  display: block;
  min-height: 44px;
  padding: 12px 13px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(26, 52, 86, 0.12);
  border-radius: 8px;
  color: #14315c;
  background: #eef5ff;
  font-weight: 750;
}

.operator-registered-count strong {
  width: fit-content;
  min-width: 64px;
  text-align: center;
}

.operator-settings-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.operator-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 0;
  height: min(720px, calc(100vh - 180px));
  min-height: 620px;
  margin-top: 16px;
  overflow: hidden;
}

.operator-sidebar {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f1f6fc;
}

.operator-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

#operatorRequestsWorkspace .operator-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.operator-clients-head {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #14315c;
}

.operator-clients-head input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
}

.operator-chats {
  flex: 1;
  overflow-y: auto;
}

.operator-chat-item {
  width: 100%;
  cursor: pointer;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  font: inherit;
  text-align: left;
}

.operator-chat-item:hover {
  background: #e7f1fc;
}

.operator-chat-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.operator-chat-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.operator-chat-item p {
  margin: 7px 0 0;
  color: inherit;
  opacity: 0.78;
  line-height: 1.35;
}

#operatorApplications .operator-chat-item {
  padding: 9px 10px;
}

#operatorApplications .operator-chat-title {
  gap: 6px;
  font-size: 14px;
  line-height: 1.2;
}

#operatorApplications .operator-chat-item p {
  margin-top: 4px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#operatorClients .operator-chat-item {
  padding: 11px 12px;
}

.operator-thread {
  display: flex;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #f1f6fc;
}

.operator-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 14px;
  padding: 14px;
}

.operator-messages {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 14px;
  overflow-y: auto;
}

.operator-reply-form {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 42px;
  grid-template-areas:
    "attach input send"
    "status status status";
  align-items: center;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 10px;
  background: #eef3f8;
}

.operator-reply-form textarea {
  grid-area: input;
  min-height: 36px;
  max-height: 96px;
  resize: none;
  overflow-y: auto;
  padding: 7px 13px;
  border-color: #d9e3ee;
  border-radius: 18px;
  background: #fff;
  line-height: 20px;
}

.operator-reply-form textarea::placeholder {
  color: #8a96a3;
  opacity: 1;
}

.operator-reply-form .support-actions,
.operator-reply-form .chat-send-actions {
  display: contents;
}

.operator-reply-form .support-status {
  grid-area: status;
  margin: 0 4px;
  min-height: 0;
}

.operator-reply-form .attach-btn {
  grid-area: attach;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: transparent;
  font-size: 0;
}

.operator-reply-form .attach-btn::before {
  content: "";
  width: 26px;
  height: 26px;
  background: #7b8794;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.4 11.6 12 21a6 6 0 0 1-8.5-8.5l9.6-9.6a4.2 4.2 0 0 1 5.9 5.9l-9.7 9.7a2.4 2.4 0 0 1-3.4-3.4l8.7-8.7 1.4 1.4-8.7 8.7a.4.4 0 0 0 .6.6l9.7-9.7a2.2 2.2 0 1 0-3.1-3.1l-9.6 9.6a4 4 0 0 0 5.7 5.7l9.4-9.4 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.4 11.6 12 21a6 6 0 0 1-8.5-8.5l9.6-9.6a4.2 4.2 0 0 1 5.9 5.9l-9.7 9.7a2.4 2.4 0 0 1-3.4-3.4l8.7-8.7 1.4 1.4-8.7 8.7a.4.4 0 0 0 .6.6l9.7-9.7a2.2 2.2 0 1 0-3.1-3.1l-9.6 9.6a4 4 0 0 0 5.7 5.7l9.4-9.4 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.operator-reply-form .attach-btn.has-file {
  background: #d8eaff;
}

.operator-reply-form .attach-btn.has-file::before {
  background: var(--primary);
}

.operator-reply-form .chat-send-actions .primary-btn {
  grid-area: send;
  position: relative;
  display: inline-flex;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: #1688ff;
  box-shadow: 0 8px 18px rgba(17, 103, 216, 0.22);
  font-size: 0;
}

.operator-reply-form .chat-send-actions .primary-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 23px;
  height: 23px;
  background: #fff;
  transform: translate(-50%, -50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 20V7.8l-5.6 5.6L4 12l8-8 8 8-1.4 1.4L13 7.8V20h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 20V7.8l-5.6 5.6L4 12l8-8 8 8-1.4 1.4L13 7.8V20h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.operator-reply-form .chat-send-actions .primary-btn:disabled {
  opacity: 0.55;
}

.operator-application-status select {
  width: 170px;
}

.operator-application-detail {
  flex: 1;
  min-height: 0;
  margin: 0 14px 14px;
  padding: 16px;
  overflow-y: auto;
}

.operator-application-detail p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.operator-application-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.operator-photo-card {
  overflow: hidden;
  background: #fff;
}

.operator-photo-preview {
  display: block;
  width: 100%;
  cursor: zoom-in;
  padding: 0;
  border: 0;
  background: #fff;
}

.operator-photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.operator-photo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-size: 14px;
}

.operator-photo-actions span {
  color: var(--primary-deep);
  font-weight: 800;
}

.operator-photo-card-text {
  display: flex;
  min-height: 168px;
  flex-direction: column;
}

.operator-photo-placeholder {
  display: flex;
  flex: 1;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px;
  color: var(--primary-deep);
  background: #fff9e8;
  text-align: center;
}

.operator-photo-placeholder span {
  color: var(--amber);
  font-size: 13px;
}

.application-chat-box {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

.application-chat-messages {
  display: flex;
  flex: 1;
  min-height: 180px;
  max-height: 260px;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  overflow-y: auto;
}

.application-chat-form textarea {
  min-height: 72px;
  max-height: 130px;
}

.site-footer-wrap {
  flex-shrink: 0;
  margin-top: auto;
  position: sticky;
  top: 100vh;
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 10px max(24px, calc((100vw - var(--site-width)) / 2));
  color: #dbeafe;
  background: #08265f;
  font-size: 13px;
  line-height: 1.25;
}

:focus-visible {
  outline: 3px solid rgba(22, 185, 212, 0.55);
  outline-offset: 3px;
}

h1,
.hero-copy h1,
.section-heading h1,
.operator-toolbar h1,
.error-panel h1,
.legal-panel h1 {
  font-size: var(--text-h1);
}

h2,
.section-heading h2,
.questions-card h2,
.profile-chat-head h2,
.operator-thread-head h2,
.support-head h2,
.modal-window h2,
.news-title,
.legal-panel h2 {
  font-size: var(--text-h2);
}

h3,
.price-card h3,
.about-card h3,
.buy-card h3,
.profile-card h3,
.service-card h3,
.catalog-intro h3 {
  font-size: var(--text-h3);
}

p,
li,
label,
input,
textarea,
select,
.hero-copy p,
.section-heading p,
.price-card p,
.about-card p,
.buy-card p,
.profile-card p,
.service-card p,
.legal-panel p,
.error-panel p,
.modal-summary p,
.news-lead,
.custom-file-name {
  font-size: var(--text-body);
}

button,
.primary-btn,
.secondary-btn,
.danger-btn,
.nav-btn,
.tab-btn,
.service-btn,
.operator-type-tab,
.operator-tab,
.operator-request-tab,
.support-toggle,
.attach-btn,
.custom-file-button {
  font-size: var(--text-button);
}

.top-nav .nav-btn {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.logo-subtitle,
.session-box,
.form-note,
.page-links,
.status-message,
.support-status,
.support-head p,
.support-message-meta,
.operator-delivery-status,
.profile-status,
.operator-photo-placeholder span,
.site-footer,
.footer-links {
  font-size: var(--text-small);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 28px, var(--site-width));
  }

  .hero,
  .profile-workspace {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
  }

  .price-grid,
  .about-grid,
  .profile-applications,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-slide {
    flex-basis: calc((100% - 32px) / 3);
  }

  .buy-card,
  .total-box,
  .application-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .total-final,
  .application-help {
    align-items: flex-start;
    text-align: left;
  }

  .application-help {
    min-width: 0;
  }

  .application-guide-content {
    grid-template-columns: 1fr;
  }

  .operator-toolbar,
  .operator-workspace {
    grid-template-columns: 1fr;
  }

  .operator-workspace {
    height: auto;
    min-height: 0;
  }

  #operatorChatWorkspace .operator-thread {
    height: min(560px, calc(100dvh - 170px));
    min-height: 0;
  }

  .operator-sidebar {
    max-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .operator-thread {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, var(--site-width));
    padding-top: 14px;
    padding-bottom: 30px;
  }

  .site-header,
  .top-nav,
  .session-box {
    align-items: stretch;
  }

  .site-header,
  .top-nav,
  .operator-toolbar,
  .operator-settings-head,
  .operator-thread-head {
    flex-direction: column;
  }

  .site-header {
    display: flex;
  }

  .session-box,
  .nav-left,
  .nav-right,
  .operator-toolbar-actions,
  .operator-type-tabs,
  .operator-filter,
  .operator-settings-actions,
  .hero-actions,
  .buy-actions,
  .side-links,
  .auth-tabs,
  .support-actions,
  .chat-send-actions {
    width: 100%;
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    margin: 0;
  }

  .nav-btn,
  .primary-btn,
  .secondary-btn,
  .tab-btn,
  .operator-type-tab,
  .operator-tab,
  .operator-request-tab {
    width: 100%;
  }

  .hero-copy,
  .info-section,
  .buy-section,
  .services-section,
  .application-section,
  .profile-section,
  .consultant-chat-section,
  .reviews-section,
  .page-panel {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .section-heading h1,
  h1,
  .operator-toolbar h1,
  .error-panel h1,
  .legal-panel h1 {
    font-size: 42px;
  }

  .section-heading h2,
  h2,
  .operator-thread-head h2 {
    font-size: 32px;
  }

  h3,
  .price-card h3,
  .about-card h3,
  .buy-card h3,
  .profile-card h3,
  .service-card h3,
  .catalog-intro h3 {
    font-size: 24px;
  }

  .hero-copy::before,
  .hero-copy::after,
  .hero-example-image {
    display: none;
  }

  .price-grid,
  .about-grid,
  .profile-applications,
  .service-grid,
  .form-columns {
    grid-template-columns: 1fr;
  }

  .service-picker label {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .service-picker label strong {
    width: 100%;
    padding-left: 26px;
  }

  .custom-file-control {
    grid-template-columns: 1fr;
  }

  .custom-file-button {
    width: 100%;
  }

  .support-widget {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .support-toggle {
    width: 100%;
  }

  .support-panel {
    right: 0;
    bottom: 58px;
    width: 100%;
    height: min(700px, calc(100vh - 96px));
  }

  .site-footer,
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .reviews-heading {
    flex-direction: column;
  }

  .reviews-controls {
    width: 100%;
  }

  .reviews-arrow {
    flex: 1;
  }

  .review-slide {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --text-h1: 29px;
    --text-h2: 23px;
    --text-h3: 18px;
    --text-body: 14px;
    --text-small: 12px;
    --text-button: 13px;
  }

  html {
    scroll-padding-top: 12px;
  }

  body {
    background:
      linear-gradient(180deg, #dbeeff 0, #eef5fb 260px, #f7fbff 100%),
      var(--bg);
  }

  body::before {
    background-size: 34px 34px;
    opacity: 0.75;
  }

  .page-shell {
    width: calc(100% - 14px);
    padding-top: 7px;
    padding-bottom: 78px;
  }

  .site-top-panel {
    position: relative;
    top: auto;
    display: block;
    padding: 8px;
    border-color: rgba(255, 255, 255, 0.78);
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .logo-block {
    gap: 8px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .logo-title {
    max-width: 46vw;
    font-size: 16px;
    line-height: 1.15;
  }

  .session-box {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
  }

  #sessionText {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .session-box .secondary-btn {
    width: auto;
    min-height: 36px;
    padding: 7px 10px;
  }

  .top-nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 10px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-left,
  .nav-right {
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
  }

  .nav-btn,
  .top-nav .nav-btn {
    width: auto;
    min-height: 34px;
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    gap: 10px;
    margin-top: 10px;
  }

  .hero-copy,
  .info-section,
  .buy-section,
  .services-section,
  .application-section,
  .profile-section,
  .consultant-chat-section,
  .reviews-section,
  .page-panel,
  .operator-toolbar,
  .operator-settings {
    padding: 12px;
  }

  .hero-copy {
    min-height: 0;
  }

  .hero-copy h1,
  .section-heading h1,
  h1,
  .operator-toolbar h1,
  .error-panel h1,
  .legal-panel h1 {
    font-size: var(--text-h1);
    line-height: 1.1;
  }

  .section-heading h2,
  h2,
  .operator-thread-head h2,
  .questions-card h2 {
    font-size: var(--text-h2);
    line-height: 1.15;
  }

  h3,
  .price-card h3,
  .about-card h3,
  .buy-card h3,
  .profile-card h3,
  .service-card h3,
  .catalog-intro h3 {
    font-size: var(--text-h3);
    line-height: 1.2;
  }

  .hero-copy p,
  .section-heading p,
  .price-card p,
  .about-card p,
  .buy-card p,
  .profile-card p,
  .service-card p,
  .legal-panel p,
  .error-panel p,
  .modal-summary p,
  .news-lead {
    line-height: 1.42;
  }

  .hero-points {
    gap: 6px;
    margin-top: 12px;
  }

  .hero-points li {
    line-height: 1.35;
  }

  .hero-actions,
  .buy-actions,
  .auth-tabs,
  .modal-actions,
  .operator-toolbar-actions,
  .operator-type-tabs,
  .operator-settings-actions {
    gap: 7px;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn,
  .buy-actions .primary-btn,
  .buy-actions .secondary-btn,
  .page-panel .primary-btn,
  .page-panel .secondary-btn {
    width: 100%;
  }

  .hero-side-card {
    min-height: 0;
    padding: 12px;
    gap: 9px;
  }

  .hero-side-card::before,
  .hero-side-card::after {
    display: none;
  }

  .news-title {
    font-size: 18px;
  }

  .news-lead {
    max-width: none;
    font-size: 15px;
  }

  .news-feature {
    padding: 11px;
  }

  .news-feature span {
    font-size: 34px;
  }

  .price-grid,
  .about-grid,
  .profile-applications,
  .service-grid,
  .form-columns {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .price-card,
  .about-card,
  .profile-card,
  .buy-card,
  .catalog-intro {
    padding: 11px;
  }

  .reviews-section {
    overflow: hidden;
  }

  .reviews-track {
    gap: 10px;
  }

  .review-slide {
    flex-basis: 100%;
  }

  input,
  textarea,
  select {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .date-picker-trigger {
    min-height: 42px;
    padding: 9px 42px 9px 10px;
    font-size: 14px;
  }

  .date-picker-popover {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 72px));
    left: 8px;
    width: auto;
    max-height: calc(100dvh - 92px);
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    padding: 12px;
  }

  .date-picker-grid {
    gap: 4px;
  }

  .date-picker-jump {
    grid-template-columns: 1fr 92px;
    gap: 6px;
    padding: 8px;
  }

  .date-picker-jump select,
  .date-picker-jump input {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 13px;
  }

  .date-picker-day,
  .date-picker-grid span {
    font-size: 12px;
  }

  textarea {
    min-height: 88px;
  }

  .service-type-picker,
  .service-picker,
  .service-type-extra,
  .total-box {
    padding: 10px;
  }

  .service-type-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .service-type-picker legend,
  .service-picker legend {
    margin-bottom: 6px;
  }

  .service-type-picker label {
    min-width: 0;
    justify-content: center;
    padding: 9px 7px;
    text-align: center;
  }

  .service-picker label,
  .inline-choice {
    align-items: flex-start;
  }

  .service-picker label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    padding: 9px;
  }

  .service-picker label span,
  .service-picker label strong {
    grid-column: 2;
    width: auto;
    padding-left: 0;
  }

  .service-picker label strong {
    white-space: normal;
  }

  .custom-file-control {
    gap: 7px;
    min-height: 46px;
  }

  .custom-file-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .application-help,
  .application-help .secondary-btn,
  .operator-filter {
    width: 100%;
  }

  .total-box {
    position: sticky;
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 58px));
    z-index: 9;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 0 -4px;
    padding: 8px 10px;
    border-color: rgba(17, 103, 216, 0.2);
    box-shadow: 0 16px 34px rgba(10, 37, 74, 0.2);
  }

  .total-details,
  .total-final {
    width: auto;
    gap: 2px;
  }

  .total-details {
    min-width: 0;
    font-size: 12px;
    line-height: 1.25;
  }

  .total-details span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .savings-line {
    display: none;
  }

  .total-final {
    align-items: flex-end;
    text-align: right;
  }

  .total-final span {
    font-size: 11px;
    line-height: 1.1;
  }

  .total-final strong {
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .submit-btn {
    width: 100%;
    align-self: stretch;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 6px;
  }

  .modal-window {
    width: 100%;
    max-height: calc(100dvh - 12px);
    padding: 12px;
  }

  .application-guide-modal .modal-head {
    top: -12px;
    margin: -12px -12px 10px;
    padding: 9px 12px;
  }

  .application-guide-modal .modal-head h2 {
    font-size: 19px;
    line-height: 1.15;
  }

  .application-guide-actions {
    position: sticky;
    bottom: -12px;
    z-index: 3;
    display: block;
    margin: 12px -12px -12px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
  }

  .application-guide-actions .secondary-btn {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .primary-btn,
  .modal-actions .secondary-btn {
    width: 100%;
  }

  .application-guide-content {
    gap: 9px;
  }

  .guide-list {
    gap: 6px;
  }

  .example-photo-grid img {
    max-width: 100%;
  }

  .support-widget {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
  }

  .support-toggle {
    min-height: 42px;
    padding: 9px 12px;
  }

  .support-panel {
    position: fixed;
    inset: auto 8px max(62px, calc(env(safe-area-inset-bottom) + 62px)) auto;
    width: min(360px, calc(100vw - 16px));
    height: min(560px, calc(100dvh - 144px));
    max-height: calc(100dvh - 144px);
  }

  .support-head,
  .support-form,
  .operator-reply-form {
    padding: 9px;
  }

  .support-messages,
  .operator-messages {
    padding: 9px;
  }

  .support-message {
    max-width: 92%;
  }

  .support-widget .support-form {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 38px;
    grid-template-areas:
      "attach input send"
      "status status status";
    align-items: center;
    gap: 7px;
    padding: 8px;
    background: #eef3f8;
  }

  .support-widget .support-form textarea {
    grid-area: input;
    min-height: 34px;
    max-height: 84px;
    resize: none;
    overflow-y: auto;
    padding: 7px 12px;
    border-color: #d9e3ee;
    border-radius: 17px;
    background: #fff;
    line-height: 18px;
  }

  .support-widget .support-form textarea::placeholder {
    color: #8a96a3;
    opacity: 1;
  }

  .support-widget .support-actions,
  .support-widget .chat-send-actions {
    display: contents;
  }

  .support-widget .support-status {
    grid-area: status;
    margin: 0 4px;
    min-height: 0;
  }

  .support-widget .attach-btn {
    grid-area: attach;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    color: transparent;
    background: transparent;
    font-size: 0;
  }

  .support-widget .attach-btn::before {
    content: "";
    width: 24px;
    height: 24px;
    background: #7b8794;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.4 11.6 12 21a6 6 0 0 1-8.5-8.5l9.6-9.6a4.2 4.2 0 0 1 5.9 5.9l-9.7 9.7a2.4 2.4 0 0 1-3.4-3.4l8.7-8.7 1.4 1.4-8.7 8.7a.4.4 0 0 0 .6.6l9.7-9.7a2.2 2.2 0 1 0-3.1-3.1l-9.6 9.6a4 4 0 0 0 5.7 5.7l9.4-9.4 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.4 11.6 12 21a6 6 0 0 1-8.5-8.5l9.6-9.6a4.2 4.2 0 0 1 5.9 5.9l-9.7 9.7a2.4 2.4 0 0 1-3.4-3.4l8.7-8.7 1.4 1.4-8.7 8.7a.4.4 0 0 0 .6.6l9.7-9.7a2.2 2.2 0 1 0-3.1-3.1l-9.6 9.6a4 4 0 0 0 5.7 5.7l9.4-9.4 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .support-widget .attach-btn.has-file {
    background: #d8eaff;
  }

  .support-widget .attach-btn.has-file::before {
    background: var(--primary);
  }

  .support-widget .chat-send-actions .primary-btn {
    grid-area: send;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 999px;
    background: #1688ff;
    box-shadow: 0 8px 18px rgba(17, 103, 216, 0.22);
    font-size: 0;
  }

  .support-widget .chat-send-actions .primary-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    background: #fff;
    transform: translate(-50%, -50%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 20V7.8l-5.6 5.6L4 12l8-8 8 8-1.4 1.4L13 7.8V20h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 20V7.8l-5.6 5.6L4 12l8-8 8 8-1.4 1.4L13 7.8V20h-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .support-widget .chat-send-actions .primary-btn:disabled {
    opacity: 0.55;
  }

  .support-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-send-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 7px;
    margin-left: 0;
  }

  .chat-send-actions .primary-btn {
    width: 100%;
  }

  .attach-btn {
    width: 40px;
    height: 40px;
  }

  .consultant-page-messages {
    min-height: 0;
    height: auto;
  }

  .operator-toolbar-actions,
  .operator-type-tabs {
    justify-content: stretch;
  }

  .operator-type-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operator-workspace {
    margin-top: 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .operator-sidebar,
  .operator-thread {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #f1f6fc;
    box-shadow: 0 8px 20px rgba(20, 50, 88, 0.05);
  }

  .operator-sidebar {
    max-height: 240px;
    margin-bottom: 10px;
  }

  .operator-tabs {
    gap: 6px;
    padding: 8px;
  }

  #operatorRequestsWorkspace .operator-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operator-tab,
  .operator-request-tab,
  .operator-type-tab {
    min-height: 36px;
    padding: 7px;
    font-size: 12px;
  }

  .operator-chat-item {
    padding: 8px 9px;
  }

  #operatorApplications .operator-chat-item {
    padding: 7px 8px;
  }

  #operatorApplications .operator-chat-title {
    font-size: 13px;
  }

  #operatorApplications .operator-chat-item p {
    margin-top: 3px;
    font-size: 11px;
  }

  .operator-chat-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .operator-thread {
    min-height: 0;
  }

  #operatorChatWorkspace .operator-thread {
    height: min(540px, calc(100dvh - 154px));
  }

  .operator-thread-head {
    margin: 0;
    padding: 10px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }

  .operator-close-chat-btn,
  #operatorCloseChatBtn,
  .operator-application-status,
  .operator-application-status select,
  .operator-application-status .primary-btn {
    width: 100%;
  }

  .operator-application-status {
    display: grid;
    grid-template-columns: 1fr;
  }

  .operator-messages {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 12px;
    overflow-y: auto;
  }

  .operator-reply-form,
  .operator-application-detail {
    margin: 0;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  .operator-application-photos {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 6px;
    padding: 10px 8px;
  }

  .site-footer {
    padding: 9px 10px;
  }
}

@media (max-width: 420px) {
  :root {
    --text-h1: 26px;
    --text-h2: 21px;
    --text-h3: 17px;
    --text-body: 13px;
  }

  .page-shell {
    width: calc(100% - 10px);
  }

  .site-top-panel {
    padding: 7px;
  }

  .logo-title {
    max-width: 40vw;
    font-size: 14px;
  }

  #sessionText {
    max-width: 70px;
  }

  .hero-copy,
  .info-section,
  .buy-section,
  .services-section,
  .application-section,
  .profile-section,
  .consultant-chat-section,
  .reviews-section,
  .page-panel,
  .operator-toolbar,
  .operator-settings {
    padding: 10px;
  }

  .primary-btn,
  .secondary-btn,
  .danger-btn,
  .service-btn {
    min-height: 40px;
    padding: 8px 10px;
  }

  .service-type-picker {
    grid-template-columns: 1fr;
  }

  .modal-window {
    padding: 10px;
  }

  .application-guide-modal .modal-head {
    top: -10px;
    margin: -10px -10px 9px;
    padding: 8px 10px;
  }

  .application-guide-actions {
    bottom: -10px;
    margin: 10px -10px -10px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .total-box {
    bottom: max(54px, calc(env(safe-area-inset-bottom) + 54px));
    padding: 7px 9px;
  }

  .total-details {
    font-size: 11px;
  }

  .total-final strong {
    font-size: 17px;
  }

  .support-panel {
    inset: auto 6px max(58px, calc(env(safe-area-inset-bottom) + 58px)) auto;
    width: min(350px, calc(100vw - 12px));
    height: min(540px, calc(100dvh - 132px));
    max-height: calc(100dvh - 132px);
  }

  .consultant-page-messages {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 640px) {
  .site-top-panel {
    position: sticky;
    top: 8px;
    z-index: 90;
    overflow: visible;
  }

  .site-header {
    display: flex;
  }

  .site-top-panel .site-header {
    display: flex;
  }

  .site-header .session-box,
  .top-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 36px;
    height: 36px;
    gap: 4px;
  }

  .mobile-menu-toggle span {
    width: 18px;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }

  .mobile-menu-auth {
    padding: 9px;
  }

  .mobile-menu-links {
    padding: 6px;
    gap: 6px;
  }

  .mobile-menu-user,
  .mobile-menu-link {
    min-height: 38px;
    padding: 9px 10px;
  }

  .mobile-menu:not(.hidden) {
    display: block;
  }

  .mobile-menu-auth .primary-btn,
  .mobile-menu-auth .secondary-btn {
    width: 100%;
  }

  .mobile-menu-link .support-dot {
    position: static;
    flex: 0 0 auto;
    min-width: 22px;
    height: 22px;
    border-width: 0;
    line-height: 22px;
  }
}

@media (max-width: 420px) {
  .mobile-menu {
    max-height: calc(100dvh - 68px);
  }

  .mobile-menu-auth {
    grid-template-columns: 1fr;
  }
}
