/* KNK Platform 1.35.1 — compact module pricing and contact launcher. */
.module-showcase article {
  display: flex;
  min-height: 270px;
  flex-direction: column;
}

.module-showcase article footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 7px 16px;
  width: 100%;
  margin-top: auto;
  padding: 19px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.module-showcase article footer::before {
  content: "Стоимость подключения";
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-showcase article footer s {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  opacity: .72;
}

.module-showcase article footer b {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.messenger {
  right: 22px;
  bottom: 22px;
}

.messenger-main {
  position: relative;
  display: grid;
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 32%, transparent);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.messenger-main:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 19px 42px color-mix(in srgb, var(--accent) 40%, transparent);
}

.messenger-main::before {
  width: 22px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 7px;
  content: "";
}

.messenger-main::after {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: 7px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: skewY(-28deg);
}

.messenger.open .messenger-main::before {
  width: auto;
  height: auto;
  border: 0;
  content: "×";
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.messenger.open .messenger-main::after {
  display: none;
}

.messenger-list {
  right: 0;
  bottom: 70px;
  display: grid;
  width: 258px;
  min-width: 258px;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--ink) 18%, transparent);
  backdrop-filter: blur(18px);
}

.messenger-list::before {
  content: "Как вам удобно?";
  padding: 4px 5px 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.messenger-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 10px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 80%, var(--bg));
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.messenger-list a:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--paper));
  transform: translateX(-3px);
}

.messenger-list a::before {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.messenger-list a::after {
  grid-column: 2;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.messenger-list a[data-contact="telegram"]::before { content: "↗"; }
.messenger-list a[data-contact="telegram"]::after { content: "Быстрый ответ в чате"; }
.messenger-list a[data-contact="max"]::before { content: "M"; }
.messenger-list a[data-contact="max"]::after { content: "Написать через MAX"; }
.messenger-list a[data-contact="email"]::before { content: "@"; }
.messenger-list a[data-contact="email"]::after { content: "Отправить письмо"; }

@media (max-width: 720px) {
  .module-showcase article { min-height: 235px; }
  .messenger { right: 14px; bottom: 14px; }
  .messenger-main { width: 52px; min-width: 52px; height: 52px; min-height: 52px; }
  .messenger-main::after { left: 15px; bottom: 13px; }
  .messenger-list { bottom: 63px; width: min(258px, calc(100vw - 28px)); min-width: 0; }
}

/* KNK industry UI tune 2026-10-02 */
@media (min-width:1021px){
  .hero{padding-top:88px;padding-bottom:72px}
  .hero-grid{grid-template-columns:minmax(0,.88fr) minmax(560px,1.12fr);gap:54px;align-items:center}
  .hero-copy{max-width:690px}
  .hero h1{font-size:clamp(56px,5vw,82px);line-height:.94;letter-spacing:-.055em}
  .hero h1 em{font-size:.9em}
  .product-demo{width:min(100%,760px);justify-self:end;transform:none}
}
.demo-row{grid-template-columns:minmax(78px,92px) minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important}
.demo-row>i{min-width:0;white-space:normal;line-height:1.05}
.demo-row>span{min-width:0}
.demo-row>span b{display:block;line-height:1.15;overflow-wrap:anywhere}
.demo-row>span small{display:block;line-height:1.35;margin-top:4px}
.demo-row>em{white-space:nowrap;justify-self:end;text-align:right}
.messenger{right:22px;bottom:22px}
.messenger-main{min-width:222px;height:auto!important;padding:10px 14px 10px 10px!important;border-radius:20px!important;display:flex!important;align-items:center;justify-content:flex-start;gap:11px;border:1px solid color-mix(in srgb,var(--accent) 18%,#fff)!important;background:color-mix(in srgb,var(--paper) 94%,#fff)!important;color:var(--ink)!important;box-shadow:0 18px 45px rgba(24,28,30,.16)!important;backdrop-filter:blur(16px)}
.messenger-main .messenger-spark{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;font-size:18px;flex:0 0 40px}
.messenger-main .messenger-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.messenger-main .messenger-copy b{font-size:13px;font-weight:800}
.messenger-main .messenger-copy small{font-size:10px;color:var(--muted);margin-top:4px;font-weight:600}
.messenger-list{right:0;bottom:72px;min-width:222px;padding:9px!important;border-radius:16px!important;background:color-mix(in srgb,var(--paper) 96%,#fff)!important;border:1px solid color-mix(in srgb,var(--accent) 16%,#fff)!important;box-shadow:0 18px 42px rgba(24,28,30,.14)!important}
.messenger-list a{border-radius:11px;padding:11px 12px!important}
@media(max-width:720px){
  .messenger{right:14px;bottom:14px}
  .messenger-main{min-width:0;padding:8px!important;border-radius:16px!important}
  .messenger-main .messenger-copy{display:none}
  .messenger-main .messenger-spark{width:42px;height:42px;border-radius:13px}
  .messenger-list{min-width:200px;bottom:66px}
}

/* KNK cafe/domiki hero + demo fix 2026-10-02 */
@media (min-width:1021px){
  .hero{min-height:690px;padding-top:74px;padding-bottom:64px}
  .hero-grid{grid-template-columns:minmax(0,.82fr) minmax(600px,1.18fr);gap:44px;align-items:center}
  .hero-copy{max-width:610px}
  .hero h1{max-width:610px;font-size:clamp(48px,4.1vw,68px);line-height:.98;letter-spacing:-.055em}
  .hero h1 em{font-size:.92em}
  .hero-lead{max-width:600px;font-size:16px;line-height:1.65}
  .product-demo{width:min(100%,730px);justify-self:end;transform:none}
}
.demo-row{grid-template-columns:auto minmax(0,1fr) auto!important;gap:12px!important}
.demo-row>i{display:flex!important;align-items:center;justify-content:center;width:auto!important;min-width:76px;height:auto!important;min-height:42px;padding:0 10px;white-space:nowrap!important;line-height:1!important}
.demo-row>span b{font-size:14px;line-height:1.2}
.demo-row>em{padding-left:6px}
.messenger-main::before,.messenger-main::after{display:none!important;content:none!important}
.messenger.open .messenger-main::before,.messenger.open .messenger-main::after{display:none!important;content:none!important}

/* KNK mobile module prices 2026-10-12 */
.messenger-main::before,.messenger-main::after{display:none!important;content:none!important}
@media(max-width:720px){
  .module-showcase{grid-template-columns:1fr!important}
  .module-showcase article{min-width:0!important;height:auto!important;min-height:0!important}
  .module-showcase article footer{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;justify-content:flex-start!important;gap:5px 10px!important;width:100%!important}
  .module-showcase article footer::before{flex:0 0 100%!important}
  .module-showcase article footer del,.module-showcase article footer b{max-width:100%!important;white-space:nowrap!important;justify-self:start!important}
  .module-options{grid-template-columns:1fr!important}
  .module-options label{min-width:0!important}
  .module-options label>span:last-child{min-width:0!important}
  .module-options label em{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;justify-content:flex-start!important;gap:4px 8px!important;max-width:100%!important;white-space:normal!important}
  .module-options label em del,.module-options label em b{white-space:nowrap!important}
}
