/* =========================================================
   KS / Пошив одежды оптом
   Файл: garment-b2b.css
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #f5f1ea;
  --bg-soft: #f9f6f1;
  --surface: rgba(255,255,255,0.76);
  --surface-strong: #fffdf9;
  --surface-dark: #10201e;
  --surface-dark-2: #153633;
  --text: #151515;
  --muted: #615f59;
  --line: rgba(21, 21, 21, 0.10);
  --line-strong: rgba(21, 21, 21, 0.16);
  --primary: #17675f;
  --primary-2: #0f4b46;
  --primary-soft: #dbe9e6;
  --accent: #c78a52;
  --success: #2b7a6f;
  --white: #ffffff;

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --radius-xl: 44px;
  --radius-pill: 999px;

  --shadow-sm: 0 8px 22px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 24px 60px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 32px 80px rgba(17, 17, 17, 0.12);

  --container: 1240px;
  --transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
}

[hidden] {
  display: none !important;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(23, 103, 95, 0.08), transparent 28%),
    radial-gradient(circle at 100% 12%, rgba(199, 138, 82, 0.10), transparent 22%),
    linear-gradient(180deg, #faf6f0 0%, #f3efe8 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(17,17,17,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 241, 234, 0.7);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.topbar__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  position: relative;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.brand::after {
  content: "";
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, rgba(23,103,95,0.8), transparent);
  transform: translateY(-50%);
}

.topnav {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
}

.topnav a {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.topnav a:hover {
  color: var(--text);
}

.topnav a:hover::after {
  transform: scaleX(1);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 14px 30px rgba(16, 75, 70, 0.20);
}

.btn--primary:hover {
  box-shadow: 0 18px 36px rgba(16, 75, 70, 0.28);
}

.btn--secondary {
  color: var(--white);
  background: linear-gradient(135deg, #171717 0%, #2a2a2a 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.btn--ghost {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(17,17,17,0.08);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.85);
}

.btn--block {
  width: 100%;
}

.hero {
  position: relative;
  padding: 84px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 30px 0 auto;
  height: 420px;
  background:
    radial-gradient(circle at 20% 10%, rgba(23,103,95,0.12), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(199,138,82,0.10), transparent 22%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--space-8);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-4);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(218, 232, 229, 0.9);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(23,103,95,0.08);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.hero h1,
.section-head h2,
.partner-box h2,
.final-cta__inner h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero h1 {
  max-width: 10ch;
  margin-bottom: var(--space-5);
  font-size: clamp(44px, 8vw, 104px);
}

.hero h1 .accent-serif,
.section-head .accent-serif {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}

.hero__text {
  max-width: 58ch;
  margin: 0 0 var(--space-6);
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.62;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.hero__points li {
  position: relative;
  padding-left: 22px;
}

.hero__points li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(23,103,95,0.10);
}

.hero__media {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 38px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.12), transparent 26%),
    linear-gradient(160deg, #0b1616 0%, #0d2623 40%, #13524d 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.06), transparent 28%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 24px
    );
  pointer-events: none;
}

.hero-card__label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.hero-card strong {
  display: block;
  margin-bottom: var(--space-4);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-card p {
  max-width: 32ch;
  margin: 0;
  color: rgba(255,255,255,0.76);
}

.thread-art {
  margin-top: 18px;
  padding: 22px;
  border-radius: 32px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.thread-art__svg {
  width: 100%;
}

.thread-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: drawThread 4.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.needle-group,
.pattern-grid,
.fabric-chip {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeLift 800ms ease forwards;
}

.needle-group { animation-delay: .6s; }
.pattern-grid { animation-delay: 1.1s; }
.fabric-chip { animation-delay: 1.5s; }

.needle-stroke {
  stroke: #f7efe3;
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
}

.needle-eye {
  fill: rgba(247,239,227,0.15);
  stroke: #f7efe3;
  stroke-width: 3;
}

.pattern-card {
  fill: rgba(255,255,255,0.07);
  stroke: rgba(255,255,255,0.18);
}

.pattern-line {
  stroke: rgba(255,255,255,0.6);
  stroke-width: 4;
  stroke-linecap: round;
}

.fabric-card {
  fill: rgba(255,255,255,0.08);
  stroke: rgba(255,255,255,0.18);
}

.fabric-wave {
  fill: none;
  stroke: rgba(255,255,255,0.72);
  stroke-width: 3;
  stroke-linecap: round;
}

.facts {
  padding: 8px 0 32px;
}

.facts__grid,
.cards-grid,
.steps-grid,
.media-grid,
.contacts-grid {
  display: grid;
  gap: 18px;
}

.facts__grid {
  grid-template-columns: repeat(4, 1fr);
}

.fact,
.card,
.step,
.faq-item,
.samples-placeholder,
.media-card,
.final-cta__inner,
.popup__dialog {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,253,249,0.94));
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: var(--shadow-sm);
}

.fact::before,
.card::before,
.step::before,
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(23,103,95,0.24), rgba(199,138,82,0.12), transparent);
}

.fact {
  border-radius: 28px;
  padding: 24px;
}

.fact strong {
  display: block;
  margin-bottom: 6px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.fact span {
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: 72px 0;
}

.section--muted {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.10)),
    rgba(236, 232, 225, 0.65);
  border-top: 1px solid rgba(17,17,17,0.04);
  border-bottom: 1px solid rgba(17,17,17,0.04);
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 62px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

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

.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  min-height: 220px;
  padding: 26px;
  border-radius: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.step:hover,
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(23,103,95,0.18);
}

.card h3,
.step h3,
.faq-item h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.card p,
.step p,
.faq-item p,
.popup__text,
.form-success p,
.partner-box p {
  margin: 0;
  color: var(--muted);
}

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

.step {
  border-radius: 30px;
  padding: 28px;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(23,103,95,0.14), rgba(199,138,82,0.12));
  box-shadow: inset 0 0 0 1px rgba(23,103,95,0.08);
}

.samples-placeholder,
.media-card {
  min-height: 250px;
  border-radius: 30px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

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

.partner-box {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.10), transparent 22%),
    linear-gradient(135deg, #0f1d1c 0%, #143532 44%, #1e6a61 100%);
  border-radius: 40px;
  padding: 42px;
  box-shadow: var(--shadow-lg);
}

.partner-box::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 68%);
}

.partner-box__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.partner-box h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 60px);
}

.partner-box__list {
  margin: 0 0 28px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,0.86);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 24px 26px;
  border-radius: 24px;
}

.final-cta__inner {
  border-radius: 36px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.final-cta__inner h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
}

.final-cta__inner p {
  max-width: 60ch;
}

.final-cta__actions {
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.popup[hidden] {
  display: none;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 12, 0.52);
  backdrop-filter: blur(7px);
}

.popup__dialog {
  width: min(560px, calc(100% - 20px));
  margin: 5vh auto 0;
  padding: 28px;
  border-radius: 34px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(17,17,17,0.05);
  transition: background var(--transition), transform var(--transition);
}

.popup__close:hover {
  background: rgba(17,17,17,0.09);
  transform: rotate(90deg);
}

.popup__dialog h2 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.popup__text {
  margin: 0 0 24px;
  line-height: 1.62;
}

.lead-form,
.form-success {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(17,17,17,0.10);
  background: rgba(255,255,255,0.8);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.field input:focus {
  border-color: rgba(23,103,95,0.36);
  box-shadow: 0 0 0 4px rgba(23,103,95,0.10);
  transform: translateY(-1px);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.form-success h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.chat-placeholder {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
}

.chat-placeholder__button {
  min-height: 56px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: linear-gradient(135deg, #111 0%, #1d3f3b 100%);
  box-shadow: 0 18px 38px rgba(17,17,17,0.22);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes drawThread {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeLift {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .thread-line {
    stroke-dashoffset: 0 !important;
  }

  .needle-group,
  .pattern-grid,
  .fabric-chip,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1160px) {
  .hero__grid,
  .final-cta__inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .facts__grid,
  .cards-grid--3,
  .steps-grid,
  .media-grid,
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .topnav {
    display: none;
  }

  .final-cta__actions {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .topbar__inner {
    min-height: 70px;
    gap: 12px;
  }

  .topbar__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .brand::after {
    display: none;
  }

  .hero {
    padding: 52px 0 28px;
  }

  .hero h1 {
    font-size: clamp(36px, 14vw, 64px);
    max-width: 8ch;
  }

  .hero__text,
  .section-head p {
    font-size: 16px;
  }

  .hero-card,
  .thread-art,
  .partner-box,
  .final-cta__inner,
  .popup__dialog {
    border-radius: 28px;
  }

  .section {
    padding: 52px 0;
  }

  .facts__grid,
  .cards-grid--4,
  .cards-grid--3,
  .steps-grid,
  .media-grid,
  .contacts-grid,
  .final-cta__inner {
    grid-template-columns: 1fr;
  }

  .hero__cta,
  .topbar__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .btn--block {
    width: 100%;
  }

  .card,
  .step,
  .fact,
  .faq-item,
  .samples-placeholder,
  .media-card {
    min-height: auto;
    padding: 22px;
  }

  .popup__dialog {
    width: calc(100% - 12px);
    margin-top: 10px;
    padding: 22px;
  }

  .popup__dialog h2 {
    font-size: 34px;
  }

  .form-success h3 {
    font-size: 28px;
  }

  .chat-placeholder {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .chat-placeholder__button {
    width: 100%;
  }
}

.chat-modal[hidden] {
  display: none;
}

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 14, 0.55);
  backdrop-filter: blur(4px);
}

.chat-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  background: #0f1717;
  color: #f3f7f6;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.chat-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.chat-panel__header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,0.68);
}

.chat-panel__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.4;
  font-size: 14px;
}

.chat-msg--bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
}

.chat-msg--user {
  align-self: flex-end;
  background: #0f6d66;
}

.chat-msg--manager {
  align-self: flex-start;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.chat-msg__link {
  display: inline-block;
  margin-top: 8px;
  color: #5eead4;
  text-decoration: underline;
  word-break: break-all;
}

.chat-msg__file img {
  display: block;
  max-width: 180px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
}

.chat-panel__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.chat-panel__attach {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chat-panel__attach:hover {
  background: rgba(17, 130, 121, 0.25);
  border-color: #118279;
  color: #fff;
}

.chat-panel__input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.chat-panel__send {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #118279;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 640px) {
  .chat-panel {
    inset: auto 8px 8px 8px;
    width: auto;
    height: min(78vh, 640px);
    border-radius: 20px;
  }
}