/* Сайт проката. Мотив — ценник-бирка: жёлтая бирка с отверстием. Остальное спокойно. */
:root {
  --ink: #14213d;
  --paper: #f5f7fa;
  --tint: #e9edf5;
  --cobalt: #2b4bff;
  --cobalt-d: #1d36d6;
  --tag: #ffd23f;
  --mist: #d7dee9;
  --slate: #5a6478;
  --white: #fff;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); color: var(--ink); background: var(--paper); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: .18em; }
a:hover { color: var(--cobalt-d); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.4rem; }
.narrow { max-width: 780px; }
.muted { color: var(--slate); }
.small { font-size: .85rem; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.04; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.15; font-weight: 500; margin-bottom: 1.4rem; }
h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 .4rem; font-weight: 600; }
p { margin: 0 0 .9rem; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 60ch; margin-top: 1rem; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1.2 var(--text); color: #fff; background: var(--cobalt); border: 2px solid var(--cobalt); border-radius: 12px; padding: .85rem 1.4rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--cobalt-d); border-color: var(--cobalt-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: #000; border-color: #000; }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; border-radius: 10px; }
.btn-wide { width: 100%; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--mist); }
.top-in { display: flex; align-items: center; gap: 1.6rem; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -.02em; }
.znak { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 1.3rem; margin-left: .6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--tag); }
.top-phone { margin-left: auto; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* главный экран */
.hero { padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: center; }
.hero-sub { font-size: 1.2rem; color: var(--slate); max-width: 34ch; margin: 1.4rem 0 1.2rem; }
.hero-points { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .45rem; }
.hero-points li { padding-left: 1.6rem; position: relative; }
.hero-points li::before { content: ''; position: absolute; left: 0; top: .48em; width: .7rem; height: .7rem; background: var(--tag); border: 2px solid var(--ink); border-radius: 50%; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* бирка-калькулятор — главный акцент сайта */
.calc-tag { position: relative; background: var(--tag); color: var(--ink); padding: 3.4rem 2rem 2rem; border-radius: 22px;
  clip-path: polygon(16% 0, 84% 0, 100% 11%, 100% 100%, 0 100%, 0 11%);
  transform: rotate(-2.2deg); transform-origin: 50% 0; display: grid; gap: .9rem; animation: swing 1.1s cubic-bezier(.3,1.5,.5,1) both .15s; }
.tag-hole { position: absolute; top: 1.15rem; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 2px 0 rgba(20,33,61,.25); }
@keyframes swing { 0% { transform: rotate(-9deg); } 100% { transform: rotate(-2.2deg); } }
.calc-tag h2 { font-size: 1.15rem; margin: 0; font-weight: 700; }
.calc-tag label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.calc-tag output { font-weight: 700; }
.calc-tag select { font: 500 1rem var(--text); padding: .7rem .8rem; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.calc-tag input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; margin: 0; }
.calc-scale { display: flex; justify-content: space-between; font-size: .78rem; margin-top: -.6rem; opacity: .7; }
.calc-sum { display: grid; gap: .1rem; padding: .6rem 0 .4rem; border-top: 2px dashed rgba(20,33,61,.35); }
.calc-total { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-rate { font-size: .95rem; }
.calc-tag :focus-visible { outline-color: var(--ink); }

/* секции */
.sect { padding: 5rem 0; }
.sect-tight { padding: 2.5rem 0 4.5rem; }
.sect-tint { background: var(--tint); }
.sect-ink { background: var(--ink); color: #e8ecf5; }
.sect-ink h2 { color: #fff; }
.sect-ink a { color: var(--tag); }
.sect-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sect-head h2 { margin: 0; }
.more { margin-top: 1.8rem; font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.split p { max-width: 46ch; font-size: 1.08rem; }

.cat-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-links a { color: var(--ink); text-decoration: none; padding: .45rem .9rem; border: 1.5px solid var(--mist); border-radius: 99px; font-weight: 500; font-size: .95rem; background: #fff; }
.cat-links a span { color: var(--slate); font-size: .85rem; }
.cat-links a:hover { border-color: var(--ink); }
.cat-links a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-links a[aria-current] span { color: var(--tag); }

/* карточки */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--mist); border-radius: 18px; overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--ink); color: var(--ink); }
.card-pic { aspect-ratio: 4 / 3; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .3rem; flex: 1; align-content: start; }
.card-body p { color: var(--slate); font-size: .95rem; margin: 0 0 .6rem; }
.card-price { display: grid; gap: .35rem; justify-items: start; margin-top: auto; }
.card-price .muted { font-size: .88rem; }
.card-note { font-size: .82rem; color: var(--slate); }

/* маленький ценник — тот же мотив бирки */
.tag { display: inline-flex; align-items: baseline; gap: .2rem; background: var(--tag); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: .3rem .8rem .3rem 1.25rem; border-radius: 0 8px 8px 0;
  clip-path: polygon(.7rem 0, 100% 0, 100% 100%, .7rem 100%, 0 50%);
  background-image: radial-gradient(circle at .78rem 50%, var(--paper) 0 .18rem, transparent .2rem); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag small { font-family: var(--text); font-weight: 500; font-size: .8rem; }
.card .tag { background-image: radial-gradient(circle at .78rem 50%, #fff 0 .18rem, transparent .2rem); }

/* сценарии */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2.2rem; }
.cases article { border-top: 2px solid var(--ink); padding-top: 1rem; }
.cases p { color: #39445a; margin: 0; }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #fff; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 1.3rem; left: 2.6rem; right: -1.6rem; height: 2px; background: var(--mist); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--slate); margin: 0; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--tag) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* вопросы */
.faq-short details { border-bottom: 1.5px solid var(--mist); }
.faq-short summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq-short summary::-webkit-details-marker { display: none; }
.faq-short summary::after { content: ''; position: absolute; right: .4rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center/100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 100% no-repeat; transition: transform .2s; }
.faq-short details[open] summary::after { transform: rotate(45deg); }
.faq-short details p { color: #39445a; max-width: 65ch; padding-bottom: 1rem; margin: 0; }

/* призыв */
.cta { padding: 4.5rem 0; background: #fff; border-top: 1px solid var(--mist); }
.cta-in { display: grid; justify-items: start; gap: .2rem; }
.cta h2 { margin-bottom: .6rem; }
.cta p { color: var(--slate); font-size: 1.08rem; margin-bottom: 1.4rem; }

/* внутренние страницы */
.page-top { padding: 2.6rem 0 1.2rem; }
.page-top .cat-links { margin-top: 1.6rem; }
.page-center { text-align: left; padding: 6rem 0; }
.page-center .btn { margin-top: 1rem; }
.crumbs { font-size: .9rem; color: var(--slate); margin-bottom: 1.2rem; }
.crumbs a { color: var(--slate); }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; color: #2b3650; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.empty { color: var(--slate); }

/* карточка товара */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; }
.product-pic { background: var(--tint); border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; position: sticky; top: 90px; }
.product-pic img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.tiers { width: 100%; border-collapse: collapse; margin: 1.6rem 0; }
.tiers caption { text-align: left; font-weight: 600; margin-bottom: .5rem; }
.tiers th, .tiers td { padding: .55rem 0; border-bottom: 1px solid var(--mist); text-align: left; font-weight: 500; }
.tiers td:last-child { text-align: right; font-size: .92rem; }
.book { background: #fff; border: 1.5px solid var(--mist); border-radius: 18px; padding: 1.3rem; display: grid; gap: .8rem; }
.book h2 { font-size: 1.1rem; margin: 0; font-weight: 700; }
.book-res { margin: 0; min-height: 2.6em; }
.book-res b { font-family: var(--display); font-size: 1.3rem; }
.product-more { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; }
.product-more h2 { font-size: 1.4rem; }
.mt { margin-top: 2rem; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin: 1.2rem 0 0; }
.specs dt { color: var(--slate); }
.specs dd { margin: 0; font-weight: 500; }
.checks.dark li::before { background-color: var(--tag); }

.contacts { display: grid; gap: 1.8rem; }
.contact-big { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ink); text-decoration: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: .7rem; }

/* формы */
label { display: grid; gap: .3rem; font-weight: 500; font-size: .95rem; }
input, select, textarea { font: 400 1rem var(--text); color: var(--ink); background: #fff; border: 1.5px solid var(--mist); border-radius: 10px; padding: .7rem .8rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(43,75,255,.18); }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--cobalt); flex: none; margin: .15rem 0 0; }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
label.check.small { font-size: .85rem; color: var(--slate); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #b3261e; margin: 0; font-size: .92rem; }

.modal { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); color: var(--ink); }
.modal::backdrop { background: rgba(20,33,61,.55); }
.lead-form, .lead-done { padding: 2rem 1.8rem 1.8rem; display: grid; gap: .85rem; position: relative; }
.lead-form h2, .lead-done h2 { font-size: 1.4rem; margin: 0; font-weight: 700; }
.lead-form > p { margin: 0; font-size: .95rem; }
.modal-x { position: absolute; top: .7rem; right: .8rem; width: 40px; height: 40px; border: 0; background: var(--tint); border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }

/* подвал */
.foot { background: var(--ink); color: #c4cde0; padding: 3.5rem 0 1.5rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot .logo { color: #fff; }
.foot-brand p { margin: .8rem 0 0; max-width: 30ch; }
.foot h2 { font-family: var(--text); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 2.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #8e9ab3; }

/* адаптив */
@media (max-width: 1040px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: .5rem 1.4rem 1rem; border-bottom: 1px solid var(--mist); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--tint); }
  .burger { display: block; }
  .top-phone { margin-left: auto; }
  .hero-in, .split, .product, .product-more { grid-template-columns: 1fr; gap: 2.6rem; }
  .product-pic { position: static; }
  .cases { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .calc-tag { max-width: 460px; }
}
@media (max-width: 620px) {
  html { font-size: 16px; }
  .top-in { gap: .8rem; height: 60px; }
  .nav { top: 60px; }
  .top-phone { display: none; }
  .top-cta { margin-left: auto; padding: .5rem .8rem; }
  .hero { padding: 2.4rem 0 3.5rem; }
  .sect { padding: 3.4rem 0; }
  .cases, .steps, .two, .foot-in { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .calc-tag { padding: 3.2rem 1.3rem 1.5rem; transform: rotate(-1deg); }
  @keyframes swing { 0% { transform: rotate(-6deg); } 100% { transform: rotate(-1deg); } }
  .specs { grid-template-columns: 1fr; gap: .1rem; }
  .specs dd { margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .calc-tag { animation: none; }
  * { transition: none !important; }
}

/* SEO-текст на страницах категорий */
.seo-text h2 { font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
.seo-text p { color: var(--ink); opacity: .85; line-height: 1.6; }
