@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --red: #c8102e;
  --red-dark: #950b20;
  --black: #111318;
  --dark: #1c2028;
  --muted: #69707d;
  --line: #e7e9ee;
  --bg: #f5f6f8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--dark);
  background: var(--bg);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 38px;
  color: #d9dde5;
  background: var(--black);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.topbar a {
  color: #25d366;
  font-weight: 800;
}

.topbar a:hover {
  color: #7ff0aa;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25d366;
  font-weight: 900;
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
}

.topbar .container {
  min-height: 38px;
}

.topbar .container > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.topbar .container > span:last-child {
  gap: 8px;
}

.topbar .container,
.nav .container,
.hero-grid,
.contact-grid,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 82px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav .container {
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  width: 195px;
  flex: 0 0 195px;
  padding: 0;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-logo {
  width: 172px;
  height: 62px;
  display: block;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  white-space: nowrap;
}

.menu a.active {
  color: var(--red);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, #e5394f 0%, #c8102e 54%, #8d0b1e 100%);
  box-shadow:
    0 8px 18px rgba(141, 11, 30, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, #ee4358 0%, #d11835 54%, #991026 100%);
  box-shadow:
    0 10px 22px rgba(141, 11, 30, 0.22),
    0 0 10px rgba(209, 24, 53, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.menu .button {
  min-height: 38px;
  padding: 0 18px;
  font-size: 12px;
}

.button.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.button.whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #25b765, #179b55 48%, #0f6f3d);
  box-shadow:
    0 14px 28px rgba(23, 155, 85, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button.whatsapp:hover {
  background: linear-gradient(135deg, #2bc66f, #1aa95d 48%, #0f7c42);
  box-shadow:
    0 18px 34px rgba(23, 155, 85, 0.30),
    0 0 18px rgba(37, 211, 102, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button.is-success {
  background: linear-gradient(135deg, #2bc66f, #16934f 55%, #0f6f3d);
  box-shadow:
    0 18px 34px rgba(22, 147, 79, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button.is-success:hover {
  transform: none;
  background: linear-gradient(135deg, #2bc66f, #16934f 55%, #0f6f3d);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 72px 0 92px;
  min-height: 720px;
  background:
    radial-gradient(circle at 20% 5%, rgba(200, 16, 46, 0.4), transparent 28%),
    linear-gradient(135deg, #101217, #2a2d35);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.85fr);
  position: relative;
  z-index: 2;
  align-items: center;
  gap: 72px;
  min-height: 600px;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #101217;
}

.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s ease;
}

.hero-video-bg video:first-child,
.hero-video-bg video.is-active {
  opacity: 0.62;
}

.hero-video-bg.is-rotating video:first-child:not(.is-active) {
  opacity: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.94), rgba(7, 8, 11, 0.54), rgba(7, 8, 11, 0.9)),
    radial-gradient(circle at 18% 16%, rgba(200, 16, 46, 0.3), transparent 28%);
}

.hero-content {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 49, 91, 0.26);
  border-radius: 999px;
  color: #ff315b;
  background: rgba(200, 16, 46, 0.2);
  font-family: "Inter", Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel {
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: 28px 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 6, 9, 0.56);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.tag {
  display: inline-block;
  color: #ff315b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel > .tag {
  display: block;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
  margin: 22px 0 18px;
  font-family: "Barlow", "Inter", Arial, sans-serif;
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: none;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}

h1 .accent {
  display: block;
  color: #f12a4f;
  font-weight: 800;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
}

h3,
h4 {
  margin: 0 0 10px;
}

.lead {
  max-width: 680px;
  color: #dce0e8;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.72;
}

.hero-note {
  max-width: 650px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 40, 84, 0.62);
  color: #bbc1cc;
  font-size: 12px;
  font-style: italic;
  line-height: 1.68;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.panel-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  margin-bottom: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  background: transparent;
}

.panel-item p {
  margin: 0;
  color: #aeb4c0;
  font-size: 12px;
  line-height: 1.55;
}

.panel-item h3 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}

.panel-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  border: 1px solid rgba(255, 49, 91, 0.22);
  border-radius: 8px;
  color: #ff315b;
  background: rgba(200, 16, 46, 0.18);
}

.panel-icon svg {
  width: 18px;
  height: 18px;
}

.section {
  padding: 76px 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.gallery-grid {
  gap: 16px;
  align-items: stretch;
}

.gallery-grid .service-card {
  height: 300px;
  display: flex;
  flex-direction: column;
}

.gallery-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.breadcrumb {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: #7c8490;
  font-size: 12px;
}

.breadcrumb strong {
  color: #262b34;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.9fr);
  gap: 54px;
  align-items: center;
}

.about-copy h2 {
  max-width: 680px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}

.about-copy h2 .accent {
  color: var(--red);
}

.about-copy p {
  max-width: 720px;
  color: #68707d;
  line-height: 1.72;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-value {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.about-value-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--red);
  background: rgba(200, 16, 46, 0.08);
  border-radius: 8px;
}

.about-value h3 {
  font-size: 15px;
}

.about-value p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 19, 24, 0.08);
}

.stat-number {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stat-card h3 {
  font-size: 15px;
}

.stat-card p {
  margin: 0;
  color: #69717d;
  font-size: 12px;
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.standard-card {
  position: relative;
  min-height: 190px;
  padding: 32px;
  overflow: hidden;
}

.standard-card::after {
  content: attr(data-step);
  position: absolute;
  top: 20px;
  right: 28px;
  color: rgba(17, 19, 24, 0.05);
  font-size: 48px;
  font-weight: 900;
}

.machinery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
  margin-top: 56px;
}

.card,
.form-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 46px rgba(17, 19, 24, 0.08);
}

.card {
  padding: 28px;
}

.service-card {
  overflow: hidden;
  padding: 0;
}

.service-image {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(ellipse at center 78%, rgba(200, 16, 46, 0.1), transparent 44%),
    linear-gradient(180deg, #fbfcfd, #f1f3f6);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
}

.service-image img,
.service-image video {
  width: 100%;
  height: 100%;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.service-image img {
  box-sizing: border-box;
  object-fit: contain;
  padding: 26px;
  filter: drop-shadow(0 14px 18px rgba(17, 19, 24, 0.16));
}

.service-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101217;
}

.service-card-media-only .service-image {
  height: 360px;
  border-bottom: 0;
  background: #101217;
}

.service-card-media-only .service-image video {
  object-fit: cover;
}

.service-image:hover img,
.service-image:hover video {
  transform: scale(1.04);
}

.gallery-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 19, 24, 0.72);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.22);
}

.service-body {
  padding: 28px;
}

.gallery-grid .service-image {
  height: 300px;
  flex: 1 1 auto;
  overflow: hidden;
  touch-action: manipulation;
}

.gallery-grid-3 .service-image {
  height: 230px;
}

.gallery-grid-5 .service-image {
  height: 165px;
}

.gallery-grid-6 .service-image {
  height: 145px;
}

.gallery-grid .service-body {
  flex: 1;
  min-height: 0;
  padding: 14px 16px;
  overflow: hidden;
}

.gallery-grid .service-body h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.18;
}

.gallery-grid .service-body p {
  font-size: 12px;
  line-height: 1.45;
}

.gallery-card-media-only,
.gallery-card-media-only .service-image {
  width: 100%;
  background: #101217;
}

.gallery-card-media-only .service-image {
  height: 300px !important;
  border-bottom: 0;
}

.gallery-grid-4 .gallery-card-media-only .service-image {
  min-height: 0;
  height: 300px !important;
}

.gallery-card-media-only .service-image img {
  object-fit: cover;
  padding: 0;
}

.gallery-card-media-only .service-image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 0;
  background: #101217;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-card-media-only .service-image img {
  filter: none;
}

.service-label {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-shell {
  display: block;
}

.calculator-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calculator-select-wrap {
  display: none;
}

.calculator-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  color: #252b34;
  background: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(17, 19, 24, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.calculator-tabs button:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 16, 46, 0.30);
  box-shadow: 0 14px 30px rgba(17, 19, 24, 0.09);
}

.calculator-tabs button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #4f5866;
  background: #f4f5f7;
  font-size: 13px;
  font-weight: 1000;
}

.calculator-tabs button strong {
  min-width: 0;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.25;
}

.calculator-tabs button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calculator-tabs button.active {
  color: #fff;
  border-color: #20242b;
  background: linear-gradient(135deg, #3a414c, #20242b);
  box-shadow: 0 12px 26px rgba(17, 19, 24, 0.18);
}

.calculator-tabs button.active span {
  color: #20242b;
  background: #fff;
}

.calculator-tabs button.active small {
  color: rgba(255, 255, 255, 0.78);
}

.calculator-counter {
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 16, 46, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7f9, #ffffff);
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.07);
}

.calculator-counter-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 0;
  margin-top: 16px;
  padding: 9px 13px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(17, 19, 24, 0.06);
}

.calculator-counter-inline span,
.calculator-counter-inline small {
  font-size: 10px;
}

.calculator-counter-inline strong {
  margin: 0;
  font-size: 13px;
}

.calculator-counter-inline b {
  font-size: 18px;
}

.calculator-counter span,
.calculator-counter small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.calculator-counter strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 5px;
  color: #151820;
  font-size: 15px;
  font-weight: 1000;
}

.calculator-counter b {
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.calculator-assurance {
  flex: 1;
  margin-top: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 19, 24, 0.08);
}

.calculator-assurance strong {
  display: block;
  margin-bottom: 5px;
  color: #252b34;
  font-size: 14px;
}

.calculator-assurance p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.calculator-card-top {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
}

.calculator-meta {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
}

.calculator-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(17, 19, 24, 0.12);
}

.calculator-stats {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #e2e6ec;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(17, 19, 24, 0.05), transparent 24%),
    linear-gradient(135deg, #ffffff, #f7f8fb);
  box-shadow: 0 18px 44px rgba(17, 19, 24, 0.10);
}

.calculator-stats h3 {
  margin: 0 0 16px;
  color: #20242b;
  font-size: 22px;
  font-weight: 800;
}

.calculator-stats h3 strong {
  color: #20242b;
  font-size: 26px;
  font-weight: 1000;
}

.calculator-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.calculator-stat-card {
  position: relative;
  min-height: 92px;
  padding: 16px 16px 14px 48px;
  border: 1px solid #e2e6ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.calculator-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 34px;
  background: #c7ced8;
}

.stat-dot {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 65% 65%, #fff 0 20%, transparent 22%),
    linear-gradient(135deg, #62d88a, #138a45);
  box-shadow: 0 0 0 5px rgba(19, 138, 69, 0.13);
}

.calculator-stat-card small {
  display: block;
  color: #596272;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.calculator-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #151820;
  font-size: 25px;
  line-height: 1;
}

.calc-panel {
  display: none;
}

.calc-panel.active {
  display: block;
}

.calc-panel {
  padding: 26px 30px 30px;
}

.calc-panel > h3 {
  margin: -26px -30px 0;
  padding: 24px 30px 4px;
  border-bottom: 0;
  color: #151820;
  font-size: 22px;
}

.calc-panel > .small {
  margin: 0 -30px 24px;
  padding: 0 30px 22px;
  border-bottom: 1px solid var(--line);
}

.thread-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 0;
}

.calc-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
}

#calc-weight .calc-workspace {
  grid-template-columns: minmax(440px, 1fr) 220px 280px;
  align-items: start;
}

.calc-input-panel .form-grid {
  grid-template-columns: 1fr;
}

.thread-input-panel,
.thread-result-panel,
.calc-input-panel,
.calc-result-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.thread-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid #e3e6ec;
  border-radius: 14px;
  background: #f1f2f5;
}

.thread-type-tabs button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: #6b7280;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

.thread-type-tabs button.active {
  color: #151820;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.08);
}

.whitworth-series-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 6px;
  border: 1px solid rgba(19, 160, 111, 0.18);
  border-radius: 14px;
  background: #f4fbf8;
}

.whitworth-series-tabs.is-hidden {
  display: none;
}

.whitworth-series-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: #35765b;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 1000;
  cursor: pointer;
}

.whitworth-series-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #18b981, #118455);
  box-shadow: 0 10px 20px rgba(17, 132, 85, 0.18);
}

.thread-standard-list,
.thread-input-grid {
  margin-top: 16px;
}

.thread-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.thread-standard-list.is-hidden {
  display: none;
}

.thread-standard-list {
  padding: 16px;
  border: 1px solid #e3e6ec;
  border-radius: 16px;
  background: #f8f9fb;
}

.thread-standard-list select {
  min-height: 50px;
  border-radius: 12px;
  background: #fff;
  font-weight: 900;
}

.thread-help {
  display: block;
  margin-top: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.calc-subtitle {
  margin: 0 0 14px;
  color: #151820;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thread-results {
  grid-template-columns: 1fr;
  gap: 12px;
}

.thread-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.thread-result-panel .calc-results {
  margin-top: 0;
}

.calc-result-panel .calc-results {
  margin-top: 0;
}

.side-results {
  grid-template-columns: 1fr;
}

.weight-summary-panel {
  padding: 16px;
  border: 1px solid #e3e6ec;
  border-radius: 18px;
  background: #fff;
}

.weight-summary-panel .calc-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.weight-summary-panel .calc-results div {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.weight-summary-panel .calc-results div + div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.weight-summary-panel .calc-results span {
  color: #6b7280;
  font-size: 11px;
}

.weight-summary-panel .calc-results strong {
  color: #118455;
  font-size: 38px;
}

.weight-summary-panel .calc-results div + div strong {
  color: #13a06f;
}

.material-summary {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #6b7280;
  font-size: 11px;
  line-height: 1.6;
}

.material-summary strong {
  color: #151820;
}

.weight-history {
  align-self: stretch;
  padding: 16px;
  border: 1px solid #e3e6ec;
  border-radius: 18px;
  background: #fff;
}

.weight-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.weight-history-head h4 {
  margin: 0;
  color: #151820;
  font-size: 13px;
  font-weight: 1000;
}

.weight-history-head button {
  border: 1px solid #d8dde7;
  border-radius: 999px;
  background: #fff;
  color: #525866;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
}

.weight-history-head button:hover {
  border-color: #118455;
  color: #118455;
}

.weight-history-empty {
  color: #8a91a0;
  font-size: 12px;
  line-height: 1.5;
}

.weight-history ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weight-history li {
  padding: 10px;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.weight-history li strong,
.weight-history li span {
  display: block;
}

.weight-history li strong {
  color: #118455;
  font-size: 13px;
}

.weight-history li span {
  margin-top: 4px;
  color: #525866;
  font-size: 11px;
  line-height: 1.45;
}

.weight-top-tabs {
  grid-column: 1 / -1;
}

.weight-top-tabs > span {
  display: block;
  margin-bottom: 8px;
  color: #151820;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.calc-feature-field {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f7f8fb);
}

.calc-feature-field label {
  color: #151820;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.calc-feature-field select {
  min-height: 60px;
  padding: 0 18px;
  border: 2px solid #d9dde5;
  border-radius: 14px;
  color: #151820;
  background: #fff;
  font-size: 16px;
  font-weight: 900;
}

.calc-shape-field {
  align-content: start;
}

.shape-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e3e6ec;
  border-radius: 14px;
  background: #f1f2f5;
  overflow-x: visible;
}

.shape-select {
  display: none;
}

.shape-tabs button {
  flex: 1 1 0;
  min-height: 54px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: #6b7280;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.shape-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 132, 85, 0.35);
}

.shape-tabs button.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(135deg, #1fb878, #118455);
  box-shadow: 0 14px 28px rgba(17, 132, 85, 0.20);
}

.weight-dim.is-hidden {
  display: none;
}

.calc-button {
  margin-top: 18px;
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #3a414c, #20242b);
  box-shadow: 0 10px 22px rgba(17, 19, 24, 0.16);
}

.calc-button:hover {
  background: linear-gradient(135deg, #434b58, #242932);
  box-shadow: 0 14px 28px rgba(17, 19, 24, 0.20);
}

.calc-inline-alert {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 16, 46, 0.20);
  border-radius: 12px;
  color: #b20d28;
  background: #fff2f5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.calc-inline-alert.show {
  display: block;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.calc-results.thread-results {
  grid-template-columns: 1fr;
  gap: 12px;
}

.calc-results.side-results {
  grid-template-columns: 1fr;
}

.calc-results div {
  min-width: 0;
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(23, 142, 91, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(31, 184, 120, 0.16), transparent 38%),
    linear-gradient(180deg, #f4fff9, #eefaf4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.calc-results span,
.calc-results small {
  display: block;
  color: #35765b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: normal;
}

.calc-results strong {
  display: block;
  margin: 8px 0 2px;
  color: #118455;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.05;
  white-space: nowrap;
}

.machine-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.machine-image {
  position: relative;
  height: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 44px;
  background:
    linear-gradient(180deg, #fbfcfd, #f1f3f6);
  border-bottom: 1px solid var(--line);
}

.machine-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--red);
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.12);
}

.machine-badge svg {
  width: 17px;
  height: 17px;
}

.machine-image::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 28px;
  height: 18px;
  border-radius: 999px;
  background: rgba(38, 170, 255, 0.68);
  filter: blur(18px);
  opacity: 0.38;
  transform: scaleX(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.machine-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: 14px;
  border: 1px solid rgba(38, 170, 255, 0);
  box-shadow:
    0 0 0 rgba(38, 170, 255, 0),
    inset 0 0 0 rgba(38, 170, 255, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.machine-card > * {
  position: relative;
  z-index: 1;
}

.machine-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(17, 19, 24, 0.18));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.machine-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 170, 255, 0.36);
  box-shadow:
    0 18px 52px rgba(17, 19, 24, 0.12),
    0 18px 42px rgba(38, 170, 255, 0.18);
}

.machine-card:hover::before {
  border-color: rgba(38, 170, 255, 0.72);
  box-shadow:
    0 0 22px rgba(38, 170, 255, 0.42),
    0 0 48px rgba(38, 170, 255, 0.22),
    inset 0 0 20px rgba(38, 170, 255, 0.1);
  opacity: 1;
}

.machine-card:hover .machine-image::after {
  opacity: 0.95;
  transform: scaleX(1.08);
}

.machine-card:hover .machine-image img {
  transform: scale(1.07);
  filter:
    drop-shadow(0 18px 22px rgba(17, 19, 24, 0.22))
    drop-shadow(0 16px 24px rgba(38, 170, 255, 0.26));
}

.machine-body {
  padding: 30px;
}

.machine-type {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.machine-body h3 {
  margin-bottom: 12px;
  color: #151820;
  font-size: 27px;
  line-height: 1.05;
}

.machine-body p {
  font-size: 14px;
}

.machine-status {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #68707d;
  font-size: 12px;
}

.machine-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-pink {
  color: var(--red);
}

.status-green {
  color: #13a06f;
}

.card p,
.info-card p,
.small {
  color: var(--muted);
  line-height: 1.65;
}

.contact-grid {
  align-items: flex-start;
}

.contact-info {
  flex: 0 0 360px;
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 24px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.map-card {
  overflow: hidden;
  padding: 0;
}

.map-card h3,
.map-card p {
  padding: 0 24px;
}

.map-card h3 {
  margin-top: 24px;
}

.map-card p {
  margin-bottom: 24px;
}

.map-frame {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
  filter: saturate(0.95) contrast(1.04);
}

.form-card {
  flex: 1;
  min-height: 620px;
  padding: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.native-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-input-ui {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 48px;
  padding: 6px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  color: #20242b;
  background: #fff;
}

.file-input-button {
  position: relative;
  overflow: hidden;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #cfd5dd;
  border-radius: 8px;
  color: #20242b;
  background: #f1f3f6;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.file-input-button::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.45), transparent);
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

.file-input-ui:hover .file-input-button,
.file-input-ui:focus-within .file-input-button {
  border-color: rgba(200, 16, 46, 0.45);
  color: var(--red);
  background: #fff7f9;
  box-shadow: 0 0 18px rgba(200, 16, 46, 0.22);
}

.file-input-ui:hover .file-input-button::after,
.file-input-ui:focus-within .file-input-button::after {
  opacity: 1;
  animation: fileInputGlow 1.15s linear infinite;
}

.file-input-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.file-input-preview {
  display: none;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #101217;
}

.file-input-preview.has-preview,
.file-input-preview:has(img),
.file-input-preview:has(video) {
  display: block;
  margin-top: 6px;
}

.file-input-preview img,
.file-input-preview video {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #101217;
}

.admin-upload-progress {
  --admin-upload-progress: 0%;
  position: relative;
  display: none;
  width: 100%;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(43, 198, 111, 0.22), rgba(19, 138, 69, 0.16)) 0 0 / var(--admin-upload-progress) 100% no-repeat,
    #f7f8fa;
  color: #2f3540;
  font-size: 12px;
  font-weight: 900;
  transition: background-size 0.18s ease;
}

.admin-upload-progress.is-active {
  display: block;
}

@keyframes fileInputGlow {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.field.full {
  grid-column: 1 / -1;
}

.upload-progress {
  --upload-progress: 0%;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #f7f8fa;
  color: #3a414c;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.upload-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--upload-progress);
  background: linear-gradient(135deg, rgba(43, 198, 111, 0.22), rgba(19, 138, 69, 0.16));
  transition: width 0.18s ease;
}

.upload-progress span,
.upload-progress strong {
  position: relative;
  z-index: 1;
}

.upload-progress span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress strong {
  color: #138a45;
}

.selected-files {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.selected-file-item {
  padding: 9px 11px;
  border: 1px solid #e1e5eb;
  border-radius: 10px;
  background: #fff;
  color: #2f3540;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.field.full .button + .button {
  margin-left: 10px;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quote-actions .button {
  margin-left: 0;
}

.quote-actions .button:first-child {
  flex: 1 1 240px;
}

.quote-actions .button.whatsapp {
  flex: 0 1 230px;
}

label {
  font-size: 14px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d7dbe3;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 190px;
  resize: vertical;
}

.admin-content textarea {
  min-height: 160px;
}

.admin-content .admin-page-form textarea {
  min-height: 180px;
}

.admin-content .admin-page-form input[name^="panel_"] {
  min-height: 52px;
}

.flash {
  padding: 14px 16px;
  margin: 18px 0;
  border-radius: 12px;
  font-weight: 800;
}

.flash.success {
  color: #0f5132;
  background: #d1e7dd;
}

.flash.error {
  color: #842029;
  background: #f8d7da;
}

.admin-layout {
  display: grid;
  gap: 24px;
}

.admin-section-toggle {
  display: none;
}

.admin-sidebar {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 19, 24, 0.07);
}

.admin-sidebar a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(17, 19, 24, 0.22);
  border-radius: 12px;
  color: #2a303a;
  background: transparent;
  font-weight: 900;
  font-size: 13px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 19, 24, 0.04),
    0 2px 7px rgba(17, 19, 24, 0.08);
}

.admin-sidebar a.active,
.admin-sidebar a.active {
  color: #fff;
  background: linear-gradient(135deg, #3a414c, #20242b);
  box-shadow: 0 10px 22px rgba(17, 19, 24, 0.16);
}

.admin-sidebar a:hover {
  transform: translateY(-1px);
  color: #20242b;
  background: transparent;
  border-color: rgba(17, 19, 24, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 19, 24, 0.06),
    0 8px 22px rgba(17, 19, 24, 0.14);
}

.admin-content {
  min-width: 0;
}

.admin-form {
  min-height: 0;
  margin-bottom: 24px;
}

.admin-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 19, 24, 0.06);
}

.admin-page-tabs button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(17, 19, 24, 0.22);
  border-radius: 13px;
  color: #2a303a;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 19, 24, 0.04),
    0 2px 7px rgba(17, 19, 24, 0.08);
}

.admin-page-tabs button:hover {
  transform: translateY(-1px);
  color: #20242b;
  border-color: rgba(17, 19, 24, 0.38);
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 19, 24, 0.06),
    0 8px 22px rgba(17, 19, 24, 0.14);
}

.admin-page-tabs button.active {
  color: #fff;
  border-color: #20242b;
  background: linear-gradient(135deg, #3a414c, #20242b);
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.18);
}

.admin-page-form {
  display: none;
}

.admin-page-form.active {
  display: grid;
}

.admin-page-title {
  padding: 16px 18px;
  border: 1px solid rgba(200, 16, 46, 0.12);
  border-radius: 16px;
  background: #fff7f9;
}

.admin-page-title h2 {
  margin: 6px 0 6px;
  color: #151820;
  font-size: 24px;
}

.admin-page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-list {
  margin-top: 22px;
}

.admin-media-preview {
  padding: 14px;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #f7f8fa;
}

.admin-media-preview span {
  display: block;
  margin-bottom: 10px;
  color: #2f3742;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-media-preview small {
  display: inline-block;
  margin: -2px 0 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #4f5866;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 800;
}

.admin-media-preview img,
.admin-media-preview video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  background: #101217;
}

.gallery-layout-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 19, 24, 0.06);
}

.gallery-layout-form label {
  margin: 0;
  color: #151820;
  font-weight: 1000;
}

.gallery-layout-form select {
  width: auto;
  min-width: 180px;
}

.gallery-layout-form .button {
  min-height: 42px;
  padding: 0 18px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(17, 19, 24, 0.08);
}

.admin-stat-card span,
.admin-stat-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-stat-card strong {
  display: block;
  margin: 8px 0;
  color: var(--red);
  font-size: 38px;
  line-height: 1;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-actions a,
.admin-actions button {
  border: 0;
  padding: 0;
  color: #2f3540;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-actions a:hover,
.admin-actions button:hover {
  color: var(--red);
}

.admin-page .button:not(.whatsapp) {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #3a414c, #20242b);
  box-shadow: 0 10px 22px rgba(17, 19, 24, 0.16);
}

.admin-page .button:not(.whatsapp)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.52) 45%, transparent 72%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.admin-page .button:not(.whatsapp):hover {
  background: linear-gradient(135deg, #454e5c, #252b34);
  box-shadow: 0 14px 28px rgba(17, 19, 24, 0.20);
}

.admin-page .button:not(.whatsapp):hover::after {
  opacity: 1;
  animation: adminButtonShine 1.15s ease;
}

.admin-page .button.admin-feedback-pending {
  opacity: 0.85;
  pointer-events: none;
}

.admin-page .button.admin-feedback-success,
.admin-page .button.admin-feedback-success:hover {
  color: #fff;
  background: linear-gradient(135deg, #7be69c, #35be68 55%, #1f9a55);
  box-shadow: 0 14px 28px rgba(53, 190, 104, 0.24);
}

.admin-page .button.light {
  color: #2f3540;
  border-color: #dfe3e8;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.06);
}

.admin-page .button.light:hover {
  color: #fff;
  background: linear-gradient(135deg, #3a414c, #20242b);
}

.admin-page .button.light.admin-feedback-success,
.admin-page .button.light.admin-feedback-success:hover {
  color: #fff;
  background: linear-gradient(135deg, #7be69c, #35be68 55%, #1f9a55);
  box-shadow: 0 14px 28px rgba(53, 190, 104, 0.24);
}

@keyframes adminButtonShine {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.admin-sidebar a::after {
  display: none;
}

.footer {
  margin-top: auto;
  padding: 56px 0 28px;
  color: #606875;
  background: #f1f2f4;
  border-top: 1px solid #e0e3e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.95fr 1.15fr;
  align-items: flex-start;
  gap: 64px;
  padding-bottom: 44px;
  border-bottom: 1px solid #dfe3e8;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--red);
  font-family: "Barlow Condensed", "Inter", Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.footer-logo-img {
  width: 130px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.footer h4 {
  margin: 0 0 18px;
  color: #20242b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 11px;
  font-size: 13px;
  font-weight: 500;
}

.footer-links a {
  color: #68707d;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact span {
  min-width: 42px;
  color: #2f3540;
  font-weight: 900;
}

.footer-contact a,
.info-card a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover,
.info-card a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 12px;
  color: #737b87;
}

.footer-visitor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(200, 16, 46, 0.14);
  border-radius: 999px;
  color: #4f5866;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.05);
}

.footer-visitor strong {
  color: var(--red);
  font-weight: 1000;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(6px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1240px, 94vw);
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 19, 24, 0.78);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-media {
  display: grid;
  place-items: center;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  background: #0f1218;
}

.gallery-lightbox-media img,
.gallery-lightbox-media video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox-media video {
  width: 100%;
  height: auto;
}

.gallery-lightbox-caption {
  padding: 20px 24px 24px;
}

.gallery-lightbox-caption h3 {
  margin: 0 0 8px;
  color: #151820;
  font-size: 22px;
}

.gallery-lightbox-caption p {
  margin: 0;
  color: var(--muted);
}

.admin-shell {
  padding: 48px 0;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.admin-content .table-wrap table {
  min-width: 1080px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef1f5;
  font-size: 13px;
  text-transform: uppercase;
}

.admin-text-cell {
  min-width: 260px;
  max-width: 420px;
  color: #4f5866;
  font-size: 13px;
  line-height: 1.55;
  white-space: normal;
}

.quote-note-cell {
  min-width: 360px;
  max-width: 560px;
  color: #3f4754;
  font-size: 13px;
  line-height: 1.65;
  white-space: normal;
}

.quote-date-cell {
  min-width: 160px;
  white-space: nowrap;
}

.quote-name-cell {
  min-width: 150px;
  white-space: nowrap;
}

.quote-inbox {
  display: grid;
  grid-template-columns: minmax(340px, 0.52fr) minmax(420px, 1fr);
  gap: 18px;
  align-items: start;
}

.quote-list,
.quote-detail {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.06);
}

.quote-list {
  overflow: hidden;
}

.quote-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.quote-list-scroll {
  max-height: 640px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.quote-search label {
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: #151820;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-search input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 14px;
}

.quote-bulk-delete-form {
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
}

.quote-bulk-delete-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  min-height: 46px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.quote-bulk-delete-button:disabled {
  color: #8a94a3;
  background: #e7ebf1;
  cursor: not-allowed;
}

.quote-search-empty {
  display: none;
  padding: 14px;
  color: #69707d;
  font-size: 13px;
  line-height: 1.5;
}

.quote-list-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.quote-list-item:last-of-type {
  border-bottom: 0;
}

.quote-select {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.quote-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.quote-list button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px 14px;
  border: 0;
  background: #fff;
  color: #252b34;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.quote-list button:hover,
.quote-list button.active {
  background: #f5f7fa;
}

.quote-list button.active {
  box-shadow: inset 4px 0 0 var(--red);
}

.quote-list button strong {
  color: #151820;
  font-size: 15px;
}

.quote-list button span,
.quote-list-date {
  color: #69707d;
  font-size: 12px;
  line-height: 1.35;
}

.quote-detail {
  display: none;
  padding: 24px;
}

.quote-detail.active {
  display: block;
}

.quote-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.quote-detail-head h2 {
  margin: 6px 0 4px;
  color: #151820;
  font-size: 28px;
}

.quote-detail-head p {
  margin: 0;
  color: #4f5866;
  font-weight: 800;
}

.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 16, 22, 0.48);
}

.admin-confirm-card {
  width: min(440px, 100%);
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.admin-confirm-card h3 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 22px;
}

.admin-confirm-card p {
  margin: 0;
  color: #4f5866;
  line-height: 1.55;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.button.danger {
  background: var(--red);
  color: #fff;
}

.quote-mail-status {
  align-self: start;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 1000;
  white-space: nowrap;
}

.quote-mail-status.sent {
  color: #118455;
  background: #eaf8f1;
}

.quote-mail-status.failed {
  color: #9f1024;
  background: #fff0f2;
}

.quote-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.quote-contact-grid div,
.quote-note-box,
.quote-file-box {
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px;
}

.quote-contact-grid small,
.quote-note-box small,
.quote-file-box small {
  display: block;
  margin-bottom: 7px;
  color: #69707d;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-contact-grid a,
.quote-file-box a {
  color: #151820;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.quote-note-box {
  min-height: 180px;
  margin-top: 12px;
  background: #fff;
}

.quote-note-box p {
  margin: 0;
  color: #252b34;
  font-size: 14px;
  line-height: 1.75;
  white-space: normal;
}

.quote-file-box span {
  font-size: 15px;
}

.quote-file-box {
  margin-top: 12px;
}

.quote-delete-form {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.quote-delete-form button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(159, 16, 36, 0.24);
  border-radius: 12px;
  color: #9f1024;
  background: #fff0f2;
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.quote-delete-form button:hover {
  transform: translateY(-1px);
  background: #ffe4e8;
  box-shadow: 0 10px 24px rgba(159, 16, 36, 0.14);
}

@media (max-width: 880px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 24px, 480px);
    margin-left: auto;
    margin-right: auto;
  }

  .topbar .container,
  .hero-grid,
  .contact-grid,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    min-height: 66px;
  }

  .nav .container {
    position: relative;
    min-height: 66px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .brand {
    width: 145px;
    flex: 0 0 145px;
  }

  .brand-logo {
    width: 138px;
    height: 50px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 46px;
    height: 42px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(17, 19, 24, 0.18);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(17, 19, 24, 0.08);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #20242b;
    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);
  }

  .menu {
    position: absolute;
    top: calc(100% - 4px);
    left: 18px;
    right: 18px;
    z-index: 10;
    display: none;
    flex: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(17, 19, 24, 0.16);
  }

  .menu.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .menu a,
  .menu .button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-radius: 12px;
  }

  .menu a:not(.button) {
    background: #f6f7f9;
  }

  .hero {
    min-height: auto;
    padding: 56px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .hero-panel {
    max-width: none;
    justify-self: stretch;
  }

  .services,
  .machinery-grid,
  .about-hero,
  .about-values,
  .stats-grid,
  .standards-grid,
  .form-grid,
  .calculator-tabs,
  .calc-workspace,
  .thread-workspace,
  .thread-input-grid,
  .calc-results,
  .calculator-stats-grid,
  .admin-stats-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  #calc-weight .calc-workspace {
    grid-template-columns: 1fr;
  }

  .quote-inbox,
  .quote-contact-grid {
    grid-template-columns: 1fr;
  }

  .quote-search {
    grid-template-columns: 1fr;
  }

  .quote-bulk-delete-form {
    justify-content: stretch;
  }

  .quote-bulk-delete-button {
    width: 100%;
  }

  .quote-detail-head {
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
  }

  .contact-info {
    flex-basis: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .calculator-meta {
    flex-direction: column;
  }

  .calculator-section {
    padding: 42px 0;
  }

  .calculator-container {
    display: grid;
    justify-items: center;
    width: min(100% - 20px, 460px);
    padding: 0;
    overflow: hidden;
  }

  .calculator-container .section-heading,
  .calculator-container .calculator-stats {
    width: 100%;
    max-width: 440px;
  }

  .calculator-container .section-heading {
    margin-bottom: 24px;
  }

  .calculator-shell {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
  }

  .calculator-card {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border-radius: 18px;
  }

  .calculator-card-top {
    padding: 12px;
    margin-bottom: 14px;
  }

  .calculator-select-wrap {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f7f8fb;
  }

  .calculator-select-wrap label {
    color: #151820;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .calculator-select-wrap select {
    width: 100%;
    min-height: 64px;
    padding: 0 18px;
    border: 2px solid #cfd5dd;
    border-radius: 18px;
    color: #151820;
    background: linear-gradient(180deg, #fff, #f4f6f8);
    font-size: 18px;
    font-weight: 1000;
    box-shadow:
      0 10px 22px rgba(17, 19, 24, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .calculator-tabs {
    display: none;
  }

  .calc-panel h3 {
    font-size: 22px;
    line-height: 1.2;
  }

  .calc-panel {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    overflow: hidden;
  }

  .calc-panel > h3 {
    margin: 0;
    padding: 0;
  }

  .calc-panel > .small {
    margin: 8px 0 14px;
    padding: 0 0 14px;
  }

  .thread-input-panel,
  .thread-result-panel,
  .calc-input-panel,
  .calc-result-panel,
  .weight-history {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px;
    border-radius: 16px;
  }

  #calc-weight .calc-workspace {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 12px;
  }

  #calc-weight .calc-input-panel {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  #calc-weight .form-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 12px;
  }

  #calc-weight .form-grid > *,
  #calc-weight .weight-top-tabs,
  #calc-weight .field,
  #calc-weight .calc-feature-field {
    width: min(100%, 330px) !important;
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #calc-weight input,
  #calc-weight select,
  #calc-weight button {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  #calc-weight .field label,
  #calc-weight .weight-top-tabs > span,
  #calc-weight .calc-feature-field label {
    width: 100%;
    display: block;
    margin: 0 0 8px;
    color: #252b34;
    background: transparent;
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
  }

  .calculator-select-wrap label {
    min-height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #118455;
    background: #eaf8f1;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
  }

  .thread-type-tabs,
  .whitworth-series-tabs {
    grid-template-columns: 1fr;
  }

  .weight-top-tabs {
    gap: 10px;
  }

  .shape-tabs {
    display: none;
  }

  .shape-select {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 0 44px;
    border: 2px solid #cfd5dd;
    border-radius: 16px;
    color: #151820;
    appearance: none;
    background:
      linear-gradient(45deg, transparent 50%, #4f5866 50%) right 18px center / 7px 7px no-repeat,
      linear-gradient(135deg, #4f5866 50%, transparent 50%) right 12px center / 7px 7px no-repeat,
      linear-gradient(180deg, #fff, #f4f6f8);
    font-size: 15px;
    font-weight: 1000;
    text-align: center;
    text-align-last: center;
    box-shadow:
      0 8px 18px rgba(17, 19, 24, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .calc-feature-field {
    padding: 12px;
    display: grid;
    justify-items: center;
    box-shadow: 0 10px 24px rgba(17, 19, 24, 0.06);
  }

  .calc-feature-field select,
  input,
  textarea {
    font-size: 16px;
  }

  #calc-weight .calc-feature-field select,
  #calc-weight input {
    min-height: 56px;
    border-width: 2px;
    border-radius: 16px;
    text-align: center;
    text-align-last: center;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(17, 19, 24, 0.05);
  }

  #calc-weight .calc-feature-field select {
    padding-left: 44px;
    padding-right: 44px;
    appearance: none;
    border-color: #cfd5dd;
    background:
      linear-gradient(45deg, transparent 50%, #4f5866 50%) right 18px center / 7px 7px no-repeat,
      linear-gradient(135deg, #4f5866 50%, transparent 50%) right 12px center / 7px 7px no-repeat,
      linear-gradient(180deg, #fff, #f4f6f8);
  }

  #calc-weight .calc-button {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .calc-results.side-results {
    grid-template-columns: 1fr;
  }

  .calc-results.thread-results {
    grid-template-columns: 1fr;
  }

  .calc-results div {
    min-height: 84px;
    padding: 12px;
  }

  .calc-results strong {
    font-size: clamp(22px, 7vw, 30px);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .weight-summary-panel .calc-results strong {
    font-size: clamp(24px, 8vw, 30px);
  }

  #calc-weight .thread-note {
    display: none;
  }

  .material-summary {
    margin-top: 10px;
    font-size: 12px;
  }

  .weight-history ul {
    max-height: 260px;
    overflow-y: auto;
  }

  .weight-history li strong,
  .weight-history li span,
  .material-summary,
  .material-summary strong {
    overflow-wrap: anywhere;
  }

  .calculator-stats {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px;
  }

  .admin-page .container {
    width: min(100% - 24px, var(--container));
  }

  .admin-shell {
    padding: 24px 0 36px;
  }

  .admin-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .admin-head h1 {
    font-size: 26px !important;
    line-height: 1.15;
  }

  .admin-head .button {
    width: 100%;
  }

  .admin-sidebar,
  .admin-page-tabs {
    padding: 8px;
    border-radius: 14px;
  }

  .admin-section-toggle {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(17, 19, 24, 0.18);
    border-radius: 14px;
    color: #20242b;
    background: #fff;
    font: inherit;
    font-weight: 1000;
    box-shadow: 0 10px 26px rgba(17, 19, 24, 0.08);
    cursor: pointer;
  }

  .admin-section-toggle span {
    display: grid;
    gap: 4px;
  }

  .admin-section-toggle i {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #20242b;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .admin-section-toggle.is-open i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .admin-section-toggle.is-open i:nth-child(2) {
    opacity: 0;
  }

  .admin-section-toggle.is-open i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .admin-sidebar {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-sidebar.is-open {
    display: grid;
  }

  .admin-page-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .admin-sidebar a,
  .admin-page-tabs button {
    flex: 0 0 auto;
    min-height: 46px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .admin-stat-card,
  .form-card {
    padding: 18px;
    border-radius: 18px;
  }

  .form-card {
    min-height: 0;
  }

  .admin-page-title {
    padding: 14px;
  }

  .admin-page-title h2 {
    font-size: 20px;
  }

  .admin-content .admin-page-form textarea,
  .admin-content textarea {
    min-height: 220px;
  }

  .table-wrap {
    margin: 0 -4px;
    border-radius: 14px;
  }

  .admin-content .table-wrap table {
    min-width: 760px;
  }

  th,
  td {
    padding: 11px;
    font-size: 13px;
  }

  .file-input-ui {
    align-items: stretch;
    flex-direction: column;
    padding: 8px;
  }

  .file-input-button {
    width: 100%;
    min-height: 44px;
  }

  .file-input-name {
    width: 100%;
    text-align: center;
  }

  .quote-list-scroll {
    max-height: 360px;
  }

  .quote-delete-form {
    justify-content: stretch;
  }

  .quote-delete-form button {
    width: 100%;
  }

  .gallery-lightbox {
    padding: 10px;
  }

  .gallery-lightbox-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .gallery-lightbox-media {
    border-radius: 18px 18px 0 0;
  }

  .gallery-lightbox-media img,
  .gallery-lightbox-media video {
    max-height: calc(100vh - 150px);
  }

  .gallery-lightbox-caption {
    padding: 14px 16px 16px;
  }
}
