
:root {
  --primary-color: #0078D7; /* Blue tone */
  --secondary-color: #005A9E; /* Darker blue */
  --accent-color: #00A4EF; /* Lighter blue */
  --slogan-accent: #1c6ea4;
  --background-color: #F3F9FF; /* Light background */
  --text-color: #333333; /* Neutral text */
  --accent-dark: var(--text-color);
  --container-max: 1240px;
  --header-offset: 175px;
  --card: #ffffff;
  --muted: #5b6777;
  --accent: var(--accent-color);
  --ring: rgba(0, 164, 239, 0.35);
}

html.app-is-booting {
  overflow-y: hidden;
}

html.app-is-booting body > :not(#appBootScreen) {
  visibility: hidden;
}

.app-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(circle at 20% 20%, rgba(0, 164, 239, 0.22), rgba(6, 18, 34, 0.96) 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
}

html.app-is-booting .app-boot-screen {
  opacity: 1;
  pointer-events: auto;
}

.app-boot-card {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 19, 36, 0.8);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.5);
  padding: 18px 18px 16px;
}

.app-boot-logo {
  display: block;
  width: 132px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
}

.app-boot-title {
  color: #f8fbff;
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 800;
  line-height: 1.2;
}

.app-boot-subtitle {
  margin-top: 6px;
  color: rgba(226, 238, 252, 0.92);
  font-size: clamp(13px, 2.1vw, 16px);
  font-weight: 500;
}

.app-boot-skeleton {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.app-boot-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(127, 211, 255, 0.16), rgba(127, 211, 255, 0.42), rgba(127, 211, 255, 0.16));
  background-size: 280% 100%;
  animation: bootShimmer 1.35s ease-in-out infinite;
}

.app-boot-line--long { width: 94%; }
.app-boot-line--mid { width: 72%; }
.app-boot-line--short { width: 56%; }

@keyframes bootShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Company requisites formatting (rendered by JS) */
.company-requisites-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.35;
}

.company-requisites-lines .req-line {
  line-height: 1.35;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope/static/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope/static/Manrope-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope/static/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope/static/Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope/static/Manrope-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', Inter, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background-color: #F3F9FF;
  color: var(--text-color);
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem;
}

/* Header styles */
header.site-header {
  background-color: #dfeefa;
  background-size: cover;
  background-position: center;
  color: #123b5e;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-bottom: 0;
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 20px 12px;
  column-gap: 18px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.header-slogan {
  text-align: center;
  color: var(--slogan-accent);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  min-width: 0;
}

.header-slogan-title {
  font-size: clamp(12px, 2.2vw, 22px);
  color: var(--slogan-accent);
}

.header-slogan-sub {
  font-size: clamp(11px, 1.8vw, 18px);
  opacity: 0.98;
  color: var(--slogan-accent);
}

.header-contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.header-phone {
  color: #0b2a2a;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(18px, 2.6vw, 30px);
  letter-spacing: 0.2px;
}

.header-phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-city {
  color: rgba(17, 74, 112, 0.95);
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 22px);
}

.header-messengers {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

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

.header-messenger-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-max-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  width: 32px;
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 90, 158, 0.2);
  text-decoration: none;
}

.header-max-link:hover {
  background: rgba(255, 255, 255, 1);
}

.header-max-link img {
  width: 26px;
  height: 26px;
  display: block;
}

.header-messenger-phone {
  color: rgba(17, 74, 112, 0.98);
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.header-messenger-phone:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-messenger-note {
  color: rgba(17, 74, 112, 0.82);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.messenger {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 90, 158, 0.2);
}

.messenger:hover {
  background: rgba(255, 255, 255, 1);
}

.messenger img {
  display: block;
}

/* Logo styles */
.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 28px;
}

.logo .mark {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 6px;
  color: #067;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.logo img {
  height: clamp(92px, 9vw, 150px);
  width: auto;
}

/* Navigation styles */
.header-nav {
  padding: 12px 20px;
  background: rgba(246, 251, 255, 0.9);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0, 90, 158, 0.14);
  border-bottom: 1px solid rgba(0, 90, 158, 0.14);
  width: 100%;
  max-width: none;
  margin: 0;
}

.header-nav-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.header-nav a {
  color: #123b5e;
  text-decoration: none;
  margin-left: 0;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  opacity: 0.98;
  transition: opacity 0.15s ease, text-decoration-color 0.15s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Burger button */
.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  background: rgba(255, 255, 255, 0.75);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.menu-icon {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(11, 42, 42, 0.95);
  border-radius: 2px;
}

.menu-icon::before {
  top: 0;
  box-shadow: 0 5px 0 rgba(11, 42, 42, 0.95);
}

.menu-icon::after {
  bottom: 0;
}

/* Mobile menu overlay (sheet) */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 1200;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  width: min(360px, 86vw);
  background: #fff;
  color: var(--text-color);
  padding: 14px;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.45);
  transform: translateX(-8px);
  transition: transform 0.18s ease;
}

.mobile-menu-overlay.is-open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-menu-title {
  font-weight: 900;
  font-size: 18px;
}

.mobile-menu-close {
  border: 1px solid rgba(2, 6, 23, 0.12);
  background: rgba(2, 6, 23, 0.04);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.mobile-menu-links {
  display: grid;
  gap: 8px;
}

.mobile-menu-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 800;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 90, 158, 0.10);
  background: rgba(0, 164, 239, 0.05);
}

.mobile-menu-links a:active {
  transform: translateY(1px);
}

.header-nav a:hover {
  opacity: 1;
  color: #0078d7;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Hero section styles */
.hero {
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  margin-top: 0;
}

/* Card styles */
.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  border: 1px solid rgba(0, 90, 158, 0.08);
}

/* Heading and text styles */
h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.lead {
  color: var(--muted);
  margin-bottom: 12px;
}

/* Features section styles */
.features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feature {
  background: #eef6f4;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
}

/* Price table styles */
.price-row {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 70px;
  align-items: baseline;
  justify-content: start;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

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

.price-mark {
  font-weight: 700;
}

.price-amount {
  font-weight: 700;
}

/* New "sheet" price (JSON-driven) */
.price-sheet {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 12px;
  padding: 14px;
}

.price-sheet-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.10);
  margin-bottom: 12px;
}

.price-sheet-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.price-sheet-date {
  font-weight: 800;
  color: var(--muted);
  font-size: 14px;
}

.price-sheet-note {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
}

.price-sheet-right {
  text-align: right;
  display: grid;
  gap: 6px;
}

.price-sheet-contact a {
  display: inline-block;
  font-weight: 900;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.1;
}

.price-sheet-site {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.price-section {
  margin-top: 12px;
}

.price-section-title {
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 6px;
}

.price-section-subtitle {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
}

.price-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
}

.price-table {
  width: max-content;
  display: inline-table;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  vertical-align: middle;
}

.price-table th.price-head,
.price-table td.price-cell {
  padding-left: 6px;
  padding-right: 6px;
  text-align: right;
}

.price-table th:last-child,
.price-table td:last-child {
  border-right: none;
}

.price-table th {
  background: linear-gradient(180deg, rgba(0, 164, 239, 0.10), rgba(0, 120, 215, 0.05));
  font-weight: 900;
  color: #0b2b49;
  text-align: left;
  white-space: nowrap;
}

.price-table tbody tr:nth-child(even) {
  background: rgba(17, 24, 39, 0.02);
}

.price-table tbody tr:hover {
  background: rgba(0, 120, 215, 0.06);
}

.price-cell {
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

/* About page secondary info */
.about-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.about-secondary-block {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 12px;
  padding: 14px;
}

.about-secondary-block--wide {
  grid-column: 1 / -1;
}

.about-secondary-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.about-secondary-list {
  margin: 0 0 0 18px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .about-secondary-grid {
    grid-template-columns: 1fr;
  }

  .about-secondary-block--wide {
    grid-column: auto;
  }
}

/* Main Contacts extra lines (from JSON) */
.contact-line {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed rgba(17, 24, 39, 0.12);
}

.contact-values {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: 4px;
  font-weight: 800;
}

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

.contact-values a:hover {
  text-decoration: underline;
}

.contact-sep {
  color: var(--muted);
  font-weight: 700;
}

/* Calculator styles */
label {
  display: block;
  font-size: 13px;
  margin: 8px 0 6px;
}

.foundation-tabs-label {
  display: block;
  font-size: 13px;
  margin: 8px 0 6px;
  font-weight: 800;
}

.foundation-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.foundation-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.foundation-tab.is-active {
  background: linear-gradient(180deg, rgba(0, 164, 239, 0.16), rgba(0, 120, 215, 0.10));
  border-color: rgba(0, 120, 215, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 164, 239, 0.18);
}

.foundation-tab:focus {
  outline: none;
}

.foundation-tab:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* If a select with id foundationType exists (legacy), keep it usable */
select#foundationType {
  font-size: clamp(16px, 3.6vw, 18px);
  font-weight: 900;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 44px 14px 12px;
  height: 54px;
  min-height: 54px;
  line-height: 1.2;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(17, 24, 39, 0.8) 50%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18) !important;
  background: rgba(239, 68, 68, 0.04);
}

.calc-result {
  font-size: 20px;
  font-weight: 800;
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 164, 239, 0.10), rgba(0, 120, 215, 0.06));
  border: 1px solid rgba(0, 90, 158, 0.12);
  border-radius: 10px;
}

/* Layout sections */
main {
  max-width: var(--container-max);
  margin: 18px auto;
  padding: 0 20px;
  padding-top: var(--header-offset);
}

section {
  margin-bottom: 18px;
}

section[id] {
  scroll-margin-top: calc(var(--header-offset) + 10px);
}

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

.contacts .row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Footer styles */
footer {
  padding: 18px 20px;
  background: #0b1220;
  color: #fff;
}

footer a {
  color: #9ed4ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 14px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  :root {
    --header-offset: 220px;
  }

  header.site-header {
    padding-top: 8px;
  }

  .logo {
    margin-left: 10px;
  }

  .header-top {
    grid-template-columns: 1fr;
    row-gap: 10px;
    justify-items: start;
    padding: 10px 14px 10px;
  }

  .header-slogan {
    text-align: left;
    text-transform: none;
  }

  .header-contact-block {
    align-items: flex-start;
  }

  .header-nav {
    padding: 10px 14px;
    gap: 14px;
  }

  .card {
    padding: 14px;
    border-radius: 12px;
  }

  main {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Mobile navigation: burger + sheet; slogan stays but becomes compact */
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .header-nav { padding: 8px 12px; }
  .header-nav-inner { gap: 14px; }
  .header-nav a { font-size: 14px; }

  .header-top {
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    row-gap: 8px;
    padding: 8px 12px 10px;
    align-items: center;
  }

  .logo { margin-left: 0; }

  .header-slogan {
    grid-column: 1 / -1;
    text-align: left;
    text-transform: none;
    letter-spacing: 0.2px;
    text-shadow: none;
    background: rgba(248, 252, 255, 0.86);
    border: 1px solid rgba(0, 90, 158, 0.18);
    border-radius: 12px;
    padding: 8px 10px;
  }

  .header-slogan-title { font-size: 14px; }
  .header-slogan-sub { font-size: 12px; opacity: 0.92; }
}

/* Real mobile devices: hide slogan (looks noisy in column layout) */
@media (hover: none) and (pointer: coarse) and (max-width: 760px) {
  .header-slogan { display: none; }
}

/* Landscape phones: keep header short so content is visible */
@media (max-height: 520px) and (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .header-nav { padding: 6px 10px; }
  .header-nav-inner { gap: 12px; }
  .header-nav a { font-size: 13px; }
  .header-slogan { display: none; }

  header.site-header { padding-top: 6px; }
  .header-top { padding: 6px 10px 8px; row-gap: 6px; }
  .logo img { height: 46px; }
  .header-phone { font-size: 18px; }
  .header-city { display: none; }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --header-offset: 132px;
  }

  .logo img {
    height: 70px;
  }

  h1 {
    font-size: 22px;
  }

  .calc-result {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  header.site-header {
    padding-top: 6px;
  }

  .header-top {
    padding: 6px 10px 10px;
    row-gap: 8px;
  }

  .logo {
    margin-left: 0;
    gap: 8px;
  }

  .logo img {
    height: 48px;
  }

  .header-contact-block {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .header-phone {
    font-size: 16px;
    letter-spacing: 0;
    white-space: nowrap;
    line-height: 1;
    display: block;
  }

  .header-city {
    display: none;
  }

  .header-messengers {
    gap: 6px;
    justify-content: flex-end;
  }

  .header-max-link {
    min-width: 26px;
    height: 26px;
    width: 26px;
    border-radius: 7px;
  }

  .header-max-link img {
    width: 20px;
    height: 20px;
  }

  .header-messenger-phone {
    font-size: 13px;
  }

  .messenger {
    width: 26px;
    height: 26px;
  }

  .messenger img {
    width: 18px;
    height: 18px;
  }

  /* Price header (sales phone) */
  .price-sheet-contact a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-offset: 132px;
  }

  .logo img {
    height: 48px;
  }

  .header-phone {
    font-size: 15px;
    white-space: nowrap;
  }
}

/* Admin button styles */
.admin-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #111;
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.4);
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 4px 12px; /* Reduced padding for closer alignment */
  text-align: left;
}

td {
  white-space: nowrap;
}

.medium {
  font-size: 19px;
  color: var(--muted);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button,
a.button {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(0, 164, 239, 1), rgba(0, 120, 215, 1));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.15s ease;
}

.button:hover {
  background: #fff;
  color: var(--primary-color);
  border-color: grey;
  filter: none;
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  background: #ffffff;
  border: 2px solid rgba(2, 6, 23, 0.16);
  color: #111;
}

.button.secondary:hover {
  background: linear-gradient(180deg, rgba(0, 164, 239, 1), rgba(0, 120, 215, 1));
  color: #fff;
  border-color: grey;
}

/* Slider styles */
.gallery .slider {
  position: relative;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  height: 260px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

.slider-btn.prev {
  left: 8px;
}

.slider-btn.next {
  right: 8px;
}

.dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ddd;
}

.dots button.active {
  background: var(--accent);
}


/* Utilities and layout helpers (migrated from inline styles) */
.site-header--with-bg {
  background-image:
    linear-gradient(180deg, rgba(234, 245, 252, 0.95), rgba(220, 237, 248, 0.92)),
    url('../assets/documents/background.jpg');
}

.site-header--plain {
  background-image: linear-gradient(180deg, rgba(230, 241, 248, 0.95), rgba(219, 233, 243, 0.92));
}

body.is-menu-open {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.hero-cta-wrap {
  margin-top: 14px;
}

.top-company-phone {
  font-weight: 800;
  margin-bottom: 8px;
}

.top-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.top-company-phone-link {
  color: inherit;
  text-decoration: none;
  margin-bottom: 0;
}

.top-company-phone-link:hover {
  text-decoration: underline;
}

.max-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.max-contact-link img {
  width: 22px;
  height: 22px;
  display: block;
}

.top-company-address-link {
  color: inherit;
  text-decoration: underline;
}

.top-requisites-title {
  margin-top: 12px;
}

.price-table-offset {
  margin-top: 12px;
}

.calculator-wrap {
  max-width: 860px;
}

.actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.actions-row-wrap {
  flex-wrap: wrap;
}

.section-divider {
  margin: 14px 0;
}

.section-subtitle {
  margin: 0 0 8px;
}

.types-actions {
  margin-top: 10px;
}

.label-top-offset {
  margin-top: 12px;
}

.delivery-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.buyer-section-title {
  margin-top: 12px;
}

.submit-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.submit-status {
  align-self: center;
}

.type-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.type-kind {
  flex: 1;
}

.type-variant {
  flex: 1.2;
}

.type-volume {
  width: 110px;
}

.type-remove-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.tech-columns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-col {
  flex: 1;
  min-width: 220px;
}

.tech-person-name {
  margin: 6px 0;
}

.contact-phone-title {
  margin-top: 10px;
}

.contact-values-spaced {
  margin-top: 4px;
}

.main-contacts-extra {
  margin-top: 10px;
}

.map-frame {
  width: 100%;
  height: 160px;
  border: 0;
  border-radius: 8px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.68);
  padding: 20px;
  z-index: 1400;
  overflow-y: auto;
}

.admin-modal.is-open {
  display: grid;
  align-items: start;
}

.admin-modal-card {
  max-width: 980px;
  margin: 42px auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.3);
}

.admin-close-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  min-width: 42px;
  min-height: 42px;
}

.admin-head {
  padding-right: 56px;
}

.admin-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.admin-subtitle {
  margin-top: 8px;
}

.admin-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-grid-auth {
  margin-top: 10px;
}

.admin-col {
  flex: 1;
  min-width: 280px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.admin-action-top {
  margin-top: 10px;
}

.admin-divider {
  margin: 14px 0;
}

.admin-status {
  min-height: 18px;
  color: #0b3d91;
  font-weight: 700;
}

.admin-add-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-add-row input {
  flex: 1;
  min-width: 200px;
}

.admin-bottom-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-footer-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.admin-section {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.admin-section h4 {
  margin: 4px 0 10px;
}

#adminTable th {
  background: rgba(15, 23, 42, 0.05);
  font-weight: 900;
}

#adminTable th,
#adminTable td {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

#adminTable tr:last-child td {
  border-bottom: none;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-cell-input {
  width: 100%;
  min-width: 84px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 90, 158, 0.24);
  background: #fff;
}

.admin-edit,
.admin-save,
.admin-cancel,
.admin-del {
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
}

.admin-edit {
  border: 1px solid rgba(0, 90, 158, 0.35);
  color: #0b3d91;
}

.admin-edit:hover {
  background: rgba(0, 120, 215, 0.08);
}

.admin-save {
  border: 1px solid rgba(22, 163, 74, 0.38);
  color: #166534;
}

.admin-save:hover {
  background: rgba(34, 197, 94, 0.08);
}

.admin-cancel {
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #334155;
}

.admin-cancel:hover {
  background: rgba(148, 163, 184, 0.1);
}

.admin-del {
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

.admin-del:hover {
  background: rgba(239, 68, 68, 0.08);
}

.admin-import-input {
  display: none;
}

.admin-import-label {
  margin: 0;
}

@media (max-width: 900px) {
  .admin-modal {
    padding: 10px;
  }

  .admin-modal-card {
    margin: 8px auto 20px;
    padding: 16px;
    border-radius: 14px;
  }

  .admin-title {
    font-size: 22px;
  }

  .admin-col {
    min-width: 100%;
  }

  .admin-add-row input {
    min-width: 100%;
  }

  .admin-footer-row {
    justify-content: stretch;
  }

  .admin-footer-row .button {
    width: 100%;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.about-subtitle-top {
  margin-top: 0;
}

.about-list {
  margin: 8px 0 0 18px;
  line-height: 1.6;
}

.about-short-card {
  padding: 14px;
}

.about-strong {
  font-weight: 800;
}

.spacer-10 {
  height: 10px;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
