:root {
  color-scheme: light;
  --ink: #191713;
  --muted: #716759;
  --paper: #f4ead8;
  --ivory: #fffaf0;
  --milk: rgba(255, 250, 240, .88);
  --charcoal: #23231f;
  --brass: #9b7432;
  --gold: #c6a35b;
  --moss: #657654;
  --line: rgba(57, 45, 26, .18);
  --shadow: 0 24px 70px rgba(55, 42, 23, .18);
  --hero-image: url("/assets/generated/telacim-hero.png");
  --panel-image: url("/assets/generated/telacim-ui-panel-dark.png");
  --topbar-image: url("/assets/generated/telacim-ui-topbar.png");
  --btn-gold: url("/assets/generated/telacim-ui-button-gold.png");
  --btn-dark: url("/assets/generated/telacim-ui-button-dark.png");
  --btn-cream: url("/assets/generated/telacim-ui-button-cream.png");
  --btn-moss: url("/assets/generated/telacim-ui-button-moss.png");
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(244,234,216,.96), rgba(238,226,205,.98) 52%, rgba(248,242,230,.98)),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background:
    repeating-linear-gradient(90deg, rgba(57,45,26,.035) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 1px, transparent 1px 12px);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: "Fraunces", Georgia, serif; letter-spacing: 0; }

.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(27,24,20,.96), rgba(63,58,44,.88) 46%, rgba(249,242,228,.94)),
    var(--hero-image) center / cover no-repeat;
  animation: intro-shell 4.1s ease forwards;
}

.brand-intro-grain {
  position: absolute;
  inset: -12%;
  opacity: .38;
  background:
    repeating-linear-gradient(90deg, rgba(255,250,240,.13) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(0deg, rgba(198,163,91,.14) 0 1px, transparent 1px 18px);
  transform: rotate(-4deg) scale(1.08);
  animation: intro-weave 3.2s ease-out forwards;
}

.brand-intro-card {
  position: relative;
  width: min(560px, calc(100vw - 34px));
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(255,250,240,.42);
  border-radius: 10px;
  background: rgba(255, 250, 240, .80);
  box-shadow: 0 38px 120px rgba(12, 10, 8, .38);
  backdrop-filter: blur(18px);
  animation: intro-card 3.5s cubic-bezier(.2,.8,.2,1) forwards;
}

.intro-main-logo {
  width: min(340px, 70vw);
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(54, 42, 20, .20));
}

.intro-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.intro-partners img,
.footer-powered img {
  width: 104px;
  height: 58px;
  object-fit: contain;
  border: 1px solid rgba(69, 51, 24, .14);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(52, 39, 18, .12);
}

.brand-intro-card span {
  color: #83642e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

@keyframes intro-shell {
  0%, 72% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes intro-card {
  0% { opacity: 0; transform: translateY(26px) scale(.96); filter: blur(10px); }
  18%, 70% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-22px) scale(1.03); filter: blur(7px); }
}

@keyframes intro-weave {
  from { transform: rotate(-4deg) translateX(-40px) scale(1.08); }
  to { transform: rotate(-4deg) translateX(40px) scale(1.08); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(210px, .9fr) auto auto minmax(60px, .7fr);
  gap: 12px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, .96);
  box-shadow: 0 10px 28px rgba(48, 38, 21, .08);
  backdrop-filter: blur(18px);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background:
    linear-gradient(90deg, rgba(255,250,240,.95), rgba(255,250,240,.72), rgba(255,250,240,.95)),
    var(--topbar-image) center / cover no-repeat;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: url("/assets/generated/telacim-monogram-dark.png") center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(39, 31, 18, .20);
}

.brand-name {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.brand b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #221f18;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand small {
  margin-top: 3px;
  color: #85632b;
  font-size: 12px;
  font-weight: 800;
}

.partner-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid rgba(134, 96, 40, .18);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255,250,240,.78), rgba(255,250,240,.78)),
    var(--btn-cream) center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.48), 0 12px 24px rgba(48, 38, 21, .08);
}

.partner-lockup span {
  color: #8a682f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.partner-lockup img {
  width: 58px;
  height: 30px;
  object-fit: contain;
  border: 1px solid rgba(70, 52, 25, .12);
  border-radius: 7px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 9px 18px rgba(52, 39, 18, .08);
}

.top-partners {
  justify-self: start;
}

.hero-partners {
  margin-top: 12px;
  padding: 6px 8px;
}

.hero-partners img {
  width: 70px;
  height: 36px;
}

.teda-experience {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(155, 116, 50, .30);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,250,240,.88), rgba(255,250,240,.58)),
    var(--btn-cream) center / 100% 100% no-repeat;
  box-shadow: 0 18px 44px rgba(65, 48, 21, .13), inset 0 0 0 1px rgba(255,255,255,.55);
}

.teda-experience img {
  width: 92px;
  height: 58px;
  object-fit: contain;
  border: 1px solid rgba(70, 52, 25, .12);
  border-radius: 8px;
  padding: 7px;
  background: #fff;
}

.teda-experience div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.teda-experience span {
  color: #7d5d25;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.teda-experience strong {
  display: block;
  color: #171511;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: .86;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(134, 96, 40, .22);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255,250,240,.70), rgba(255,250,240,.70)),
    var(--btn-cream) center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.50), 0 10px 22px rgba(55,42,23,.09);
}

.nav a {
  min-width: 74px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #5f574b;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.nav a.active {
  color: var(--ivory);
  background:
    linear-gradient(rgba(28,25,20,.34), rgba(28,25,20,.34)),
    var(--btn-dark) center / 100% 100% no-repeat;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(134, 96, 40, .22);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255,250,240,.72), rgba(255,250,240,.72)),
    var(--btn-cream) center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 10px 22px rgba(55,42,23,.08);
}

.lang-switch button {
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.lang-switch button.active {
  background:
    linear-gradient(rgba(28,25,20,.18), rgba(28,25,20,.18)),
    var(--btn-gold) center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(64, 47, 20, .30);
}

.flag {
  display: block;
  width: 25px;
  height: 17px;
  overflow: hidden;
  border-radius: 3px;
  background: center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(35, 28, 16, .22);
}

.flag-tr {
  background-image: url("/assets/flags/tr.svg");
}

.flag-en {
  background-image: url("/assets/flags/en.svg");
}

.flag-de {
  background-image: url("/assets/flags/de.svg");
}

.flag-ru {
  background-image: url("/assets/flags/ru.svg");
}

.solid-btn,
.glass-btn,
.icon-btn,
.whatsapp-top {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 900;
}

.solid-btn,
.whatsapp-top {
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(28,25,20,.36), rgba(91,101,67,.28)),
    var(--btn-gold) center / 100% 100% no-repeat,
    linear-gradient(135deg, #26231d, #8d692f 58%, #6c7b54);
  box-shadow: 0 14px 28px rgba(85, 62, 25, .22);
}

.glass-btn,
.icon-btn {
  color: #25221c;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,250,240,.62), rgba(255,250,240,.62)),
    var(--btn-cream) center / 100% 100% no-repeat;
}

.large { min-height: 54px; padding-inline: 22px; }
.solid-btn:hover, .glass-btn:hover, .icon-btn:hover, .whatsapp-top:hover { transform: translateY(-1px); }

.screen, .section, footer {
  width: min(1220px, calc(100vw - 32px));
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(330px, .44fr);
  align-items: end;
  gap: clamp(22px, 5vw, 64px);
  padding: clamp(72px, 9vw, 122px) clamp(18px, 4vw, 46px) clamp(42px, 6vw, 74px);
  overflow: hidden;
  border-right: 1px solid rgba(155,116,50,.32);
  border-left: 1px solid rgba(155,116,50,.32);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 20px 0 0;
  z-index: -2;
  background: var(--hero-image) 62% center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 20px 0 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246,237,220,.99) 0%, rgba(246,237,220,.94) 43%, rgba(246,237,220,.30) 67%, rgba(26,24,21,.18) 100%),
    linear-gradient(0deg, rgba(35,31,24,.34), transparent 38%);
}

.hero-copy {
  max-width: 600px;
  min-width: 0;
  padding: 22px 0 10px;
}

.eyebrow {
  display: inline-flex;
  color: var(--brass);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1 {
  margin-top: 16px;
  max-width: 700px;
  font-size: clamp(54px, 7vw, 108px);
  line-height: .9;
}

h2 {
  max-width: 850px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .95;
}

h3 { font-size: 18px; }

.hero-copy p {
  max-width: 520px;
  margin-top: 18px;
  color: #50483c;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.order-orbit,
.order-form,
.admin-card,
.admin-login,
.metrics article,
.auth-modal,
.contact-strip,
.catalog-card {
  border: 1px solid rgba(88, 67, 31, .22);
  border-radius: 8px;
  background: var(--milk);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.order-orbit {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: var(--ivory);
  background:
    linear-gradient(140deg, rgba(32,31,27,.82), rgba(31,38,28,.74)),
    var(--panel-image) center / cover no-repeat;
}

.order-orbit::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(224,196,126,.38);
  border-radius: 6px;
  pointer-events: none;
}

.orbit-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,250,240,.76);
  font-size: 13px;
}

.orbit-head b { color: #f3d58b; }

.orbit-options {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.orbit-chip {
  min-height: 78px;
  border: 1px solid rgba(255,250,240,.24);
  border-radius: 8px;
  color: var(--ivory);
  background:
    linear-gradient(rgba(24,23,20,.50), rgba(24,23,20,.50)),
    var(--btn-dark) center / 100% 100% no-repeat;
  cursor: pointer;
  font-weight: 900;
}

.orbit-chip.active {
  color: #211f19;
  background:
    linear-gradient(rgba(255,246,217,.24), rgba(255,246,217,.24)),
    var(--btn-gold) center / 100% 100% no-repeat;
}

.micro-flow {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: rgba(255,250,240,.78);
  font-size: 12px;
}

.micro-flow i {
  height: 1px;
  background: linear-gradient(90deg, #f0d58e, rgba(240,213,142,0));
}

.order-orbit p {
  position: relative;
  margin-top: 18px;
  color: rgba(255,250,240,.88);
  line-height: 1.58;
}

.section { padding-block: 84px; }

.section-head {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 24px;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(90deg, rgba(255,250,240,.92), rgba(255,250,240,.72)),
    url("/assets/generated/telacim-ui-panel-light.png") center / cover no-repeat;
}

.contact-strip h2 {
  font-size: clamp(34px, 4vw, 58px);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.catalog-section {
  padding-top: 52px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  overflow: hidden;
  background: rgba(255,250,240,.84);
}

.catalog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.03 / 1;
  object-fit: cover;
}

.catalog-card div {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.catalog-card b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.catalog-card button {
  min-height: 38px;
  border: 1px solid rgba(95,76,42,.22);
  border-radius: 7px;
  padding-inline: 14px;
  color: var(--ivory);
  background:
    linear-gradient(rgba(38,35,29,.28), rgba(38,35,29,.28)),
    var(--btn-moss) center / 100% 100% no-repeat;
  font-weight: 900;
  cursor: pointer;
}

.order-panel { padding-bottom: 112px; }

.order-form {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2vw, 22px);
}

.order-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background: url("/assets/generated/telacim-ui-panel-light.png") right bottom / 52% auto no-repeat;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  border: 1px solid rgba(65, 51, 29, .20);
  border-radius: 7px;
  background: rgba(255,255,255,.76);
  padding: 10px 12px;
  outline: none;
}

select option {
  color: #181713;
  background: #fffaf0;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(155,116,50,.72);
  box-shadow: 0 0 0 3px rgba(198,163,91,.14);
}

.wide { grid-column: span 2; }

.mail-ready {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(65, 51, 29, .18);
  border-radius: 8px;
  background: rgba(255,255,255,.58);
}

.mail-ready-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(65, 51, 29, .16);
}

.mail-ready-head span {
  color: var(--brass);
  font-weight: 900;
}

.mail-preview {
  min-height: 230px;
  border: 0;
  border-radius: 0;
  background: rgba(255,250,240,.76);
  color: #28241d;
  line-height: 1.62;
}

.order-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(65, 51, 29, .18);
  border-radius: 7px;
  background: rgba(255,255,255,.52);
}

.order-preview b {
  color: #7d5d25;
}

.form-status {
  min-height: 24px;
  margin-top: 10px;
  color: #735421;
  font-weight: 800;
}

.ai-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
}

.ai-fab {
  width: 76px;
  height: 76px;
  position: relative;
  display: grid;
  place-items: center;
  border: 2px solid rgba(235, 207, 132, .92);
  border-radius: 22px;
  background: rgba(255,250,240,.94);
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(31,27,20,.34), 0 0 0 5px rgba(255,250,240,.52);
}

.ai-fab img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  border-radius: 18px;
}

.ai-fab span {
  position: relative;
  top: 25px;
  color: #fff8e8;
  font-size: 11px;
  font-weight: 950;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 92px;
  width: min(390px, calc(100vw - 24px));
  max-height: min(620px, calc(100dvh - 136px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(218,180,94,.36);
  border-radius: 14px;
  color: var(--ivory);
  background:
    linear-gradient(145deg, rgba(23,22,19,.93), rgba(37,42,30,.91)),
    url("/assets/generated/telacim-ui-panel-dark.png") center / cover no-repeat;
  box-shadow: 0 30px 90px rgba(20,17,12,.36);
}

.ai-widget.open .ai-panel {
  display: grid;
  grid-template-rows: auto minmax(140px, 1fr) auto auto;
}

.ai-head {
  min-height: 74px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(255,250,240,.16);
}

.ai-head img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.ai-head b {
  display: block;
  color: #f7d98c;
}

.ai-head span {
  display: block;
  margin-top: 3px;
  color: rgba(255,250,240,.70);
  font-size: 12px;
}

.ai-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,250,240,.18);
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.ai-messages {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow-y: auto;
  padding: 12px;
}

.ai-msg {
  width: fit-content;
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.45;
}

.ai-msg.bot {
  color: #fff8e8;
  background: rgba(255,250,240,.10);
}

.ai-msg.user {
  justify-self: end;
  color: #221f18;
  background:
    linear-gradient(rgba(255,245,208,.40), rgba(255,245,208,.40)),
    var(--btn-gold) center / 100% 100% no-repeat;
}

.ai-quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 10px;
}

.ai-quick button {
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,250,240,.18);
  border-radius: 999px;
  color: rgba(255,250,240,.88);
  background: rgba(255,255,255,.08);
  padding-inline: 12px;
  cursor: pointer;
}

.ai-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255,250,240,.16);
  background: rgba(12,12,10,.28);
}

.ai-input input {
  min-height: 44px;
  color: var(--ivory);
  border-color: rgba(255,250,240,.18);
  background: rgba(255,255,255,.10);
}

.ai-input input::placeholder { color: rgba(255,250,240,.58); }

.ai-input button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #221f18;
  background:
    linear-gradient(rgba(255,245,208,.35), rgba(255,245,208,.35)),
    var(--btn-gold) center / 100% 100% no-repeat;
  font-weight: 950;
  cursor: pointer;
}

.whatsapp-fab {
  position: fixed;
  left: 18px;
  bottom: 24px;
  z-index: 90;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(35,31,24,.18), rgba(72,95,61,.22)),
    var(--btn-moss) center / 100% 100% no-repeat;
  box-shadow: 0 18px 36px rgba(38,48,30,.22);
  font-weight: 950;
}

.is-admin-route .ai-widget,
.is-admin-route .whatsapp-fab {
  display: none;
}

.admin { padding-block: 74px 100px; }
.hidden { display: none !important; }
.admin-login { padding: clamp(18px, 3vw, 26px); }
.admin-login p { color: var(--muted); }

.admin-auth-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, .7fr) minmax(170px, .58fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-auth-copy {
  align-self: center;
}

.admin-auth-copy small {
  display: block;
  margin-top: 7px;
  color: #8a682f;
  font-weight: 900;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.metrics article {
  min-height: 118px;
  padding: 18px;
}

.metrics span { color: var(--muted); }
.metrics b { display: block; margin-top: 14px; font-size: 38px; }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-card { padding: 18px; }
.bar-list { display: grid; gap: 10px; margin-top: 14px; }

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36,34,29,.10);
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brass), var(--moss));
}

.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}

th { color: var(--ink); }

.crm-card {
  background:
    linear-gradient(145deg, rgba(255,250,240,.92), rgba(255,250,240,.72)),
    url("/assets/generated/telacim-ui-panel-light.png") right top / 58% auto no-repeat;
}

.crm-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crm-title-row b {
  color: #7a5a25;
  font-size: 13px;
  font-weight: 950;
}

.crm-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, .7fr) minmax(150px, .7fr) minmax(160px, .7fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(65, 51, 29, .14);
  border-radius: 8px;
  background: rgba(255,255,255,.46);
}

.crm-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.crm-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.crm-order {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(80, 62, 32, .18);
  border-radius: 10px;
  background: rgba(255,250,240,.78);
  box-shadow: 0 16px 34px rgba(56, 43, 23, .10);
}

.crm-order::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brass);
}

.crm-order.is-contacted::before { background: #657654; }
.crm-order.is-sample::before { background: #a2853f; }
.crm-order.is-completed::before { background: #2f6f59; }

.crm-order header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.crm-order small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.crm-order header b {
  display: block;
  margin-top: 4px;
  color: #7d5d25;
}

.crm-order header select {
  width: 150px;
  min-height: 40px;
  font-weight: 900;
}

.crm-order-main h4 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.crm-order-main p {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.crm-order dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.crm-order dl div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(65, 51, 29, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.48);
}

.crm-order dt {
  color: #8a682f;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-order dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #2a261e;
  font-weight: 850;
}

.crm-note {
  min-height: 48px;
  padding: 12px;
  border-left: 3px solid rgba(155,116,50,.55);
  border-radius: 7px;
  color: #51483b;
  background: rgba(255,255,255,.42);
  line-height: 1.5;
}

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

.crm-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(65, 51, 29, .15);
  border-radius: 8px;
  padding: 0 12px;
  color: #231f18;
  background: rgba(255,255,255,.58);
  font-weight: 900;
}

.auth-modal {
  width: min(440px, calc(100vw - 28px));
  color: var(--ink);
  background: #fffaf0;
  padding: 22px;
}

.auth-modal::backdrop {
  background: rgba(33, 29, 23, .54);
  backdrop-filter: blur(8px);
}

.auth-modal h2 {
  font-size: 34px;
  margin-bottom: 14px;
}

.close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tabs button {
  min-height: 40px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.62);
  cursor: pointer;
}

.auth-tabs button.active {
  color: var(--ivory);
  background: var(--charcoal);
}

.auth-modal form {
  display: grid;
  gap: 12px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 92px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.footer-powered {
  width: 100%;
  justify-content: center;
  margin-bottom: 6px;
  padding: 8px 10px;
}

.footer-powered span {
  font-size: 11px;
}

.footer-powered img {
  width: 82px;
  height: 40px;
  padding: 6px;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    position: sticky;
  }

  .brand {
    grid-column: 1;
    order: 1;
  }

  .top-partners {
    grid-column: 2;
    justify-self: end;
    order: 1;
  }

  .top-actions {
    position: static;
    width: auto;
    display: flex;
    justify-content: flex-start;
    order: 2;
    grid-column: 1 / -1;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(246,237,220,.88), rgba(246,237,220,.52) 62%, rgba(31,29,25,.38)),
      linear-gradient(90deg, rgba(246,237,220,.66), rgba(246,237,220,.08));
  }

  .contact-strip {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

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

  .metrics, .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-auth-form,
  .crm-toolbar,
  .crm-board {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .screen, .section, footer {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .brand b {
    max-width: 104px;
  }

  .brand small {
    display: none;
  }

  .top-partners {
    gap: 4px;
    padding: 4px;
  }

  .top-partners span {
    display: none;
  }

  .top-partners img {
    width: 42px;
    height: 26px;
    padding: 3px;
  }

  .nav a {
    min-width: 65px;
    padding-inline: 12px;
  }

  .lang-switch {
    width: auto;
    justify-content: space-between;
    gap: 3px;
    padding: 3px;
  }

  .lang-switch button {
    width: 29px;
    height: 30px;
  }

  .flag {
    width: 21px;
    height: 14px;
  }

  .brand-intro-card {
    gap: 18px;
    padding: 22px 18px;
  }

  .intro-main-logo {
    width: min(252px, 64vw);
  }

  .intro-partners img {
    width: 92px;
    height: 52px;
  }

  .hero-partners {
    margin-top: 10px;
  }

  .hero-partners img {
    width: 58px;
    height: 32px;
  }

  .teda-experience {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
  }

  .teda-experience img {
    width: 70px;
    height: 48px;
    padding: 5px;
  }

  .teda-experience span {
    font-size: 10px;
  }

  .teda-experience strong {
    font-size: 35px;
  }

  .hero {
    padding: 46px 16px 58px;
    border-left: 0;
    border-right: 0;
  }

  .hero::before,
  .hero::after {
    inset: 12px 0 0;
  }

  h1 {
    max-width: 330px;
    font-size: 44px;
    line-height: .96;
  }

  h2 {
    font-size: 38px;
  }

  .hero-copy p {
    max-width: 310px;
    font-size: 15px;
  }

  .hero-actions,
  .order-preview,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-orbit {
    max-width: 360px;
  }

  .catalog-grid,
  .metrics,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid,
  .crm-order dl {
    grid-template-columns: 1fr;
  }

  .catalog-card img {
    aspect-ratio: 1.28 / 1;
  }

  .wide {
    grid-column: auto;
  }

  .ai-widget {
    right: 12px;
    left: auto;
    bottom: 18px;
  }

  .ai-fab {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .ai-fab img {
    border-radius: 16px;
  }

  .ai-fab span {
    top: 20px;
    font-size: 10px;
  }

  .ai-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 92px;
    width: auto;
    max-height: calc(100dvh - 126px);
  }

  .whatsapp-fab {
    left: 12px;
    bottom: 20px;
    min-height: 44px;
    padding-inline: 14px;
  }
}
