/* ============================================================
   MY PACKET — MODERN REDESIGN v3
   Brand: КАСП ПЛЮС · Crimson Red + Kraft + Dark
   ============================================================ */

:root {
  --red:         #C41E3A;
  --red-hover:   #A01830;
  --red-glow:    rgba(196, 30, 58, 0.12);
  --red-border:  rgba(196, 30, 58, 0.25);

  --dark:        #0D0D0D;
  --dark-2:      #161616;
  --dark-3:      #202020;
  --dark-4:      #2C2C2C;
  --dark-line:   rgba(255, 255, 255, 0.08);
  --dark-muted:  rgba(255, 255, 255, 0.50);

  --bg:          #F7F3EC;
  --bg-white:    #FFFFFF;
  --ink:         #111111;
  --muted:       #6B6B6B;
  --line:        rgba(15, 15, 15, 0.09);

  --kraft:       #C8975A;
  --kraft-lt:    #E8C99A;
  --kraft-bg:    rgba(200, 151, 90, 0.09);

  --font-sans:   "Manrope", system-ui, sans-serif;
  --font-serif:  "Instrument Serif", Georgia, serif;

  --w:           1200px;
  --r-xs:        6px;
  --r-sm:        10px;
  --r:           14px;
  --r-lg:        20px;
  --r-xl:        28px;

  --sh-sm:       0 2px 8px rgba(0,0,0,0.07);
  --sh:          0 8px 28px rgba(0,0,0,0.10);
  --sh-lg:       0 24px 60px rgba(0,0,0,0.14);
  --sh-red:      0 8px 28px rgba(196,30,58,0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  text-wrap: pretty;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--red); text-underline-offset: .2em; }
a:hover { color: var(--red-hover); }

.container {
  width: min(100% - 2rem, var(--w));
  margin-inline: auto;
}

/* ===== SKIP LINK ===== */
.skip-link { position: absolute; left: -9999px; top: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 200;
  padding: .6rem 1rem;
  background: var(--dark); color: #fff;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   HEADER — КАСП ПЛЮС: двухъярусная шапка + красная полоса меню
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  transition: box-shadow .25s;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

.header-top {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: .78rem;
}
.header-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .9rem;
  min-height: 2.35rem;
  padding-block: .35rem;
}
.header-top__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
}
.header-top__phones a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.header-top__phones a:hover { color: var(--red); }
.header-top__label { color: var(--muted); font-weight: 600; }
.header-top__sep { color: rgba(0,0,0,0.18); }
.header-top__mail {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}
.header-top__mail:hover { color: var(--red-hover); }
.header-top__parent {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.header-top__parent:hover { color: var(--red); }

.header-main {
  background: var(--dark-2);
  border-bottom: 1px solid var(--dark-line);
}
.header-main__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

/* Logo block — KASP+PLUS wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo--kasp { align-items: flex-start; }
.logo__wordmark {
  display: flex;
  align-items: baseline;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo__kasp { color: #fff; }
.logo__plus { color: var(--red); margin-left: 1px; }
.logo__sub {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  padding-top: .1rem;
}
.logo__sub-line {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.logo__sub-muted {
  font-size: .7rem;
  color: rgba(255,255,255,0.28);
  max-width: 12rem;
  line-height: 1.25;
}

.header-main__cta {
  display: none;
  gap: .45rem;
  align-items: center;
  flex-shrink: 0;
}

.nav-strip-wrap {
  background: var(--red);
  border-bottom: 2px solid rgba(0,0,0,0.12);
}
.nav-strip__inner {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
  min-height: 2.65rem;
}
.nav-strip__inner a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .55rem .75rem;
  border-radius: var(--r-xs);
  transition: background .15s, color .15s;
}
.nav-strip__inner a:hover {
  background: rgba(0,0,0,0.12);
  color: #fff;
}

.menu-toggle {
  appearance: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: .26rem;
  padding-inline: .55rem;
  cursor: pointer;
}
.menu-toggle span {
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--dark-line);
  padding: .85rem 1rem 1.25rem;
  background: var(--dark-2);
  display: grid;
  gap: .15rem;
}
.mobile-nav a {
  text-decoration: none;
  color: var(--dark-muted);
  padding: .6rem .6rem;
  border-radius: var(--r-sm);
  font-size: .93rem;
  display: block;
  transition: color .15s, background .15s;
}
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  padding: .68rem 1.3rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: scale(.975); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; box-shadow: var(--sh-red); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.8); }
.btn--ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.32); color: #fff; }
.btn--outline-dark { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline-dark:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.2); color: var(--ink); }
.btn--sm { padding: .45rem .9rem; font-size: .82rem; }
.btn--lg { padding: .85rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ===========================
   SECTION COMMON
   =========================== */
.section { padding: 5rem 0; }
.section--tight { padding-block: 3.5rem; }
.section--dark { background: var(--dark); }
.section--dark-2 { background: var(--dark-2); }
.section--white { background: var(--bg-white); }

.section__tag--dark {
  background: rgba(196, 30, 58, 0.18);
  color: #ffb3c0;
  border: 1px solid rgba(196, 30, 58, 0.35);
}
.section__title {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .9rem;
}
.section__title--white { color: #fff; }
.section__subtitle {
  color: var(--muted);
  max-width: 66ch;
  font-size: 1.03rem;
  line-height: 1.68;
  margin-bottom: 0;
}
.section__subtitle--white { color: var(--dark-muted); max-width: 62ch; }
.section__subtitle--calc {
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===========================
   HERO
   =========================== */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(196,30,58,0.14) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 45%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(200,151,90,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .32rem .88rem;
  background: rgba(196,30,58,0.13);
  border: 1px solid rgba(196,30,58,0.22);
  color: #ff8898;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.hero__tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: blink 2.4s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  line-height: 1.06;
  color: #fff;
  margin-bottom: 1.3rem;
  letter-spacing: -.01em;
}
.hero__title em { font-style: italic; color: var(--kraft-lt); }
.hero__lead {
  color: var(--dark-muted);
  font-size: 1.07rem;
  line-height: 1.72;
  max-width: 52ch;
  margin-bottom: .5rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.9rem 0 2rem;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--dark-line);
}
.hero__stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
}
.hero__stat-num span { color: var(--red); }
.hero__stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,0.38);
  margin-top: .25rem;
}
.hero__visual { display: grid; place-items: center; min-height: 280px; }

/* Bag illustration */
.bag-illu {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 3/4;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.45));
}
.bag-illu__body {
  position: absolute;
  inset: 14% 8%;
  border-radius: 18px 18px 22px 22px;
  background: linear-gradient(145deg, #dfc09a 0%, #b07843 100%);
  box-shadow:
    inset -6px 0 22px rgba(0,0,0,0.18),
    inset 4px 0 12px rgba(255,255,255,0.10);
}
.bag-illu__shine {
  position: absolute;
  top: 17%; left: 12%;
  right: 60%; height: 38%;
  background: linear-gradient(160deg, rgba(255,255,255,0.13), transparent);
  border-radius: 10px;
  pointer-events: none;
}
.bag-illu__front {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .14em;
  color: rgba(38,65,39,0.65);
  display: flex;
  align-items: center;
  gap: 1px;
}
.bag-illu__brand-p { color: var(--red); font-weight: 900; letter-spacing: 0; }
.bag-illu__fold {
  position: absolute;
  left: 8%; right: 8%;
  top: 14%;
  height: 5px;
  background: rgba(0,0,0,0.1);
  border-radius: 0 0 4px 4px;
}
.bag-illu__handle {
  position: absolute;
  top: 3%;
  width: 28%;
  height: 21%;
  border: 6px solid rgba(120,78,30,0.75);
  border-bottom: 0;
  border-radius: 60px 60px 0 0;
}
.bag-illu__handle--l { left: 20%; }
.bag-illu__handle--r { right: 20%; }
.bag-illu__shadow {
  position: absolute;
  left: 12%; right: 12%; bottom: -3%;
  height: 14px;
  background: rgba(0,0,0,0.28);
  filter: blur(13px);
  border-radius: 50%;
}

/* ===========================
   TYPES / CARDS GRID
   =========================== */
.types-section { padding: 5rem 0; background: var(--bg-white); }
.type-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.5rem;
}
.type-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.35rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.type-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.type-card:hover { border-color: var(--red-border); box-shadow: var(--sh); transform: translateY(-2px); }
.type-card:hover::after { transform: scaleX(1); }
.type-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: var(--red-glow);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.type-card h3 { font-size: .97rem; font-weight: 700; margin-bottom: .38rem; line-height: 1.35; }
.type-card p { font-size: .86rem; color: var(--muted); line-height: 1.56; }

/* ===========================
   FOR WHOM
   =========================== */
.audience-section { background: var(--dark); padding: 4.5rem 0; }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}
.tag-cloud__item {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.15rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
  cursor: default;
}
.tag-cloud__item:hover {
  background: rgba(196,30,58,0.14);
  border-color: var(--red-border);
  color: #fff;
}

/* ===========================
   ADVANTAGES
   =========================== */
.advantages-section { padding: 5rem 0; background: var(--bg); }
.advantages-grid { display: grid; gap: 2.5rem; }
.adv-col p { color: var(--muted); font-size: 1.02rem; line-height: 1.72; margin-top: .9rem; }
.check-list { list-style: none; display: grid; gap: .72rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .96rem;
  line-height: 1.4;
}
.check-list li::before {
  content: '';
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
  margin-top: .12rem;
}

/* ===========================
   MATERIALS
   =========================== */
.materials-section { padding: 5rem 0; background: var(--bg-white); }
.material-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}
.material-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  transition: border-color .2s, box-shadow .2s;
}
.material-card:hover { border-color: var(--red-border); box-shadow: var(--sh-sm); }
.material-card h3 { font-size: .95rem; font-weight: 700; }
.material-card p { font-size: .84rem; color: var(--muted); margin-top: .28rem; }

/* ===========================
   CALCULATOR — INNOVATIVE
   =========================== */
.calculator-section {
  background: var(--dark);
  padding: 3.75rem 0 4rem;
}
.calc-wrap {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
  position: relative;
}

.calc-main {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
  min-width: 0;
}
@media (min-width: 880px) {
  .calc-main {
    grid-template-columns: 1.28fr 1fr;
    gap: 1rem;
  }
}

/* Panel base */
.calc-panel {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: grid;
  gap: 1.75rem;
}

/* Компактная панель: плотнее сетка, меньше радиус */
.calc-panel--compact {
  padding: 0.95rem 1rem 1rem;
  gap: 0.85rem;
  border-radius: var(--r-lg);
}
.calc-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}
.calc-split {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 520px) {
  .calc-split {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
    align-items: start;
  }
}

.calc-group {
  display: grid;
  gap: .75rem;
}
.calc-group-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: -0.05rem;
}

/* Visual selector buttons */
.vis-select {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.vis-select--compact {
  gap: 0.3rem;
}
.vis-select__btn {
  padding: .48rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.11);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.vis-select--compact .vis-select__btn {
  padding: 0.32rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
}
.vis-select__btn:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.22); }
.vis-select__btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* Dimension sliders */
.dim-sliders { display: grid; gap: 1.1rem; }
.dim-sliders--tight { gap: 0.45rem; }
.dim-sliders--dims {
  gap: 0.55rem 0.65rem;
}
@media (min-width: 480px) {
  .dim-sliders--dims {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.dim-slider { display: grid; gap: .28rem; }
.dim-slider__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dim-slider__name { font-size: .72rem; color: rgba(255,255,255,0.48); font-weight: 600; }
.dim-slider__val {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
  border-radius: var(--r-xs);
  padding: .1rem .42rem;
  font-feature-settings: "tnum";
  min-width: 3.25rem;
  text-align: right;
}

/* Range — только в калькуляторе */
.calc-panel input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
}
.calc-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
}
.calc-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: 2px solid var(--dark-2);
  box-shadow: 0 1px 8px rgba(196,30,58,0.45);
  transition: transform .1s, box-shadow .1s;
  margin-top: -5.5px;
}
.calc-panel input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 12px rgba(196,30,58,0.55);
}
.calc-panel input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: 2px solid var(--dark-2);
  box-shadow: 0 1px 8px rgba(196,30,58,0.45);
}
.calc-panel input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
}

/* Color swatches */
.color-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.color-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: transform .15s, outline-color .15s;
  flex-shrink: 0;
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.is-active { outline-color: #fff; transform: scale(1.08); }
.color-swatch--custom {
  background: conic-gradient(red 0deg, yellow 60deg, #00cc44 120deg, cyan 180deg, blue 240deg, magenta 300deg, red 360deg);
  position: relative;
  overflow: hidden;
}
.color-swatch--custom input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
}
.color-swatch-row--compact {
  gap: 0.35rem;
}
.color-swatch-row--compact .color-swatch {
  width: 1.65rem;
  height: 1.65rem;
  border-width: 2px;
}

/* Logo upload (inside calculator) */
.calc-upload {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border: 1.5px dashed rgba(255,255,255,0.15);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.calc-upload:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.02); }
.calc-upload__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  flex-shrink: 0;
}
.calc-upload__text { font-size: .84rem; color: rgba(255,255,255,0.5); line-height: 1.4; }
.calc-upload__text strong { color: rgba(255,255,255,0.8); font-weight: 600; display: block; }
.calc-upload__input { display: none; }
.calc-upload--compact {
  padding: 0.45rem 0.65rem;
  gap: 0.45rem;
  border-radius: var(--r-sm);
}
.calc-upload--compact .calc-upload__icon {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.85rem;
  border-radius: 6px;
}
.calc-upload--compact .calc-upload__text {
  font-size: 0.76rem;
  line-height: 1.35;
}
.calc-upload--compact .calc-upload__text strong {
  font-size: 0.78rem;
}

/* 3D Preview container */
.calc-preview {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-xl);
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: grid;
}
.preview-canvas {
  width: 100%;
  min-height: 360px;
  position: relative;
}
.preview-canvas canvas { width: 100% !important; height: 100% !important; }
.preview-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.28);
  padding: 2rem;
  font-size: .9rem;
  line-height: 1.6;
}
.calc-preview--compact {
  min-height: 280px;
  border-radius: var(--r-lg);
}
.preview-canvas--compact {
  min-height: 280px;
}
.preview-fallback--compact {
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Превью в двухколоночном блоке: выше формы на мобилке, слева на широких */
.calc-main > .calc-preview {
  order: -1;
  display: flex;
  flex-direction: column;
  min-height: min(48vh, 400px);
  border-radius: var(--r-lg);
}
.calc-main .preview-canvas {
  flex: 1 1 auto;
  min-height: min(48vh, 400px);
}
@media (min-width: 880px) {
  .calc-main > .calc-preview {
    order: 0;
    min-height: clamp(360px, 58vh, 620px);
  }
  .calc-main .preview-canvas {
    min-height: 0;
  }
}

/* Summary */
.calc-summary {
  background: linear-gradient(145deg, #1e1010, #1a1010);
  border: 1px solid rgba(196,30,58,0.15);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.summary__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.summary__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
  transition: color .3s;
}
.summary__price.is-updating { color: var(--kraft-lt); }
.summary__unit {
  font-size: .84rem;
  color: rgba(255,255,255,0.35);
  margin-top: .35rem;
}
.summary__hint {
  font-size: .83rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.55;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.summary__list {
  display: grid;
  gap: .5rem;
}
.summary__list p {
  font-size: .85rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.summary__list strong { color: rgba(255,255,255,0.8); font-weight: 600; }

/* Верхняя полоса: цена + детали + CTA в ряд */
.calc-summary--bar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-lg);
}
.calc-summary--bar .summary-bar__price {
  flex: 0 0 auto;
  min-width: 9.5rem;
}
.calc-summary--bar .summary__label {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}
.calc-summary--bar .summary__price {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  margin: 0.15rem 0 0;
}
.calc-summary--bar .summary__unit {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
}
.summary__list--bar {
  flex: 1 1 220px;
  max-width: 22rem;
  margin: 0;
  gap: 0.25rem;
  padding-inline: 0.35rem;
  border-inline: 1px solid rgba(255,255,255,0.07);
}
.summary__list--bar p {
  font-size: 0.74rem;
  gap: 0.65rem;
}
.summary-bar__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  flex: 1 1 200px;
  min-width: min(100%, 17rem);
  margin-left: auto;
}
.summary__hint--bar {
  border-top: none;
  padding-top: 0;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.42;
}
.summary-bar__cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .summary-bar__foot {
    flex: 0 1 17rem;
    align-items: flex-end;
  }
  .summary-bar__cta {
    min-width: 11rem;
  }
}
@media (max-width: 719px) {
  .summary__list--bar {
    border-inline: none;
    padding-inline: 0;
    border-block: 1px solid rgba(255,255,255,0.07);
    padding-block: 0.45rem;
    max-width: none;
    flex: 1 1 100%;
  }
  .summary-bar__foot {
    margin-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .summary__hint--bar {
    flex: 1 1 12rem;
    min-width: min(100%, 18rem);
  }
}

.calc-summary--compact {
  padding: 1rem 1.1rem;
  gap: 0.65rem;
  border-radius: var(--r-lg);
}
.calc-summary--compact .summary__label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}
.calc-summary--compact .summary__price {
  font-size: 1.85rem;
}
.calc-summary--compact .summary__unit {
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.calc-summary--compact .summary__hint {
  font-size: 0.75rem;
  line-height: 1.45;
  padding-top: 0.5rem;
}
.calc-summary--compact .summary__list {
  gap: 0.32rem;
}
.calc-summary--compact .summary__list p {
  font-size: 0.78rem;
}
.calc-summary--compact .btn {
  padding: 0.62rem 1rem;
  font-size: 0.84rem;
  margin-top: 0.15rem;
}

/* Hidden real form inside calc */
.calc-hidden-form {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.field-error {
  font-size: .83rem;
  color: #ff7979;
  margin-top: .2rem;
  padding: .45rem .75rem;
  background: rgba(255,80,80,0.08);
  border-radius: var(--r-xs);
}

/* ===========================
   ORDER STEPS
   =========================== */
.steps-section { background: var(--bg-white); padding: 5rem 0; }
.steps-grid {
  display: grid;
  gap: .9rem;
  margin-top: 2.5rem;
}
.step-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s, box-shadow .2s;
}
.step-item:hover { border-color: var(--red-border); box-shadow: var(--sh-sm); }
.step-num {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .88rem;
}
.step-body strong { display: block; font-weight: 700; font-size: .96rem; margin-bottom: .28rem; }
.step-body span { font-size: .87rem; color: var(--muted); }

/* ===========================
   ARTWORK
   =========================== */
.artwork-section {
  background: var(--dark);
  padding: 4rem 0;
}
.artwork-list {
  list-style: none;
  display: grid;
  gap: .62rem;
  margin-top: 1.75rem;
}
.artwork-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .94rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.artwork-list li::before {
  content: '→';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ===========================
   FAQ
   =========================== */
.faq-section { padding: 5rem 0; background: var(--bg); }
.faq-list {
  display: grid;
  gap: .55rem;
  margin-top: 2.5rem;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-white);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-list details:hover { border-color: var(--red-border); }
.faq-list details[open] { border-color: var(--red-border); box-shadow: var(--sh-sm); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .96rem;
  padding: 1.1rem 1.25rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--red);
  flex-shrink: 0;
  transition: transform .2s;
  line-height: 1;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.68;
}

/* ===========================
   LEAD FORM
   =========================== */
.lead-form-section { background: var(--dark); padding: 5.5rem 0; }
.lead-layout { display: grid; gap: 2.5rem; }
.lead-copy h2 { color: #fff; }
.lead-copy p { color: var(--dark-muted); font-size: 1.02rem; line-height: 1.72; margin-top: .85rem; }

.lead-form {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: grid;
  gap: .85rem;
}

label {
  display: grid;
  gap: .35rem;
  font-size: .86rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

input:not([type="range"]):not([type="color"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  font: inherit;
  font-size: .92rem;
  padding: .72rem .88rem;
  transition: border-color .15s, background .15s;
  outline: none;
}
input:not([type="range"]):not([type="color"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  background: rgba(255,255,255,0.06);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.22); }
select option { background: #1a1a1a; color: #fff; }
textarea { resize: vertical; }

/* File input style */
input[type="file"] {
  width: 100%;
  border: 1.5px dashed rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  font: inherit;
  font-size: .88rem;
  padding: .65rem .88rem;
  cursor: pointer;
}

.lead-form__wide { grid-column: 1 / -1; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

[data-form-message]:not([hidden]) {
  padding: .65rem .9rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  background: rgba(255,100,100,0.1);
  border: 1px solid rgba(255,100,100,0.22);
  color: #ff8c8c;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-line);
  padding: 4.5rem 0 1.75rem;
}
.site-footer__grid { display: grid; gap: 2.5rem; }
.logo--footer .logo__kasp { color: rgba(255,255,255,0.92); }
.logo--footer .logo__plus { color: #ff6b7a; }
.logo--footer .logo__sub-line { color: rgba(255,255,255,0.4); }
.logo--footer .logo__sub-muted { color: rgba(255,255,255,0.28); }

.site-footer__lead {
  margin-top: 1rem;
  color: rgba(255,255,255,0.35);
  font-size: .88rem;
  line-height: 1.7;
  max-width: 32ch;
}

.site-footer__socials {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.social-btn {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
  letter-spacing: .01em;
}
.social-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

.site-footer__title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.1rem;
}
.site-footer__list {
  list-style: none;
  display: grid;
  gap: .55rem;
}
.site-footer__list a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s;
}
.site-footer__list a:hover { color: #fff; }
.site-footer__list li:not(:has(a)) { color: rgba(255,255,255,0.35); font-size: .88rem; }

.site-footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dark-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  font-size: .83rem;
  color: rgba(255,255,255,0.25);
}
.site-footer__bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.site-footer__bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===========================
   LEGAL
   =========================== */
.legal h1, .legal h2 { margin-bottom: .8rem; }
.legal p, .legal ul { margin-bottom: 1rem; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 720px) {
  .header-top__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-top__parent { margin-left: 0; }
  .header-main__row { min-height: 3.85rem; }
  .logo__wordmark { font-size: 1.15rem; }
  .logo__sub-muted { display: none; }
}

@media (min-width: 560px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .material-grid { grid-template-columns: repeat(3, 1fr); }
  .lead-form { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 4rem;
  }
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
  }
  .lead-layout {
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
    gap: 4rem;
  }
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .menu-toggle,
  .mobile-nav { display: none !important; }
  .header-main__cta { display: inline-flex; }
  .nav-strip__inner { display: flex; }

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

  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}
