/* ООО «КРОН» — лендинг. Тёмно-синий + золото, Inter */
:root {
  --navy-900: #0d1f42;
  --navy-800: #12295a;
  --navy-700: #1e3a6e;
  --gold: #f5b921;
  --gold-dark: #d99a00;
  --ink: #1a2333;
  --paper: #f6f8fc;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 32px; text-align: center; }
h3 { font-weight: 700; }
.micro { font-size: 13px; opacity: .65; margin-top: 10px; }
.badge { display: inline-block; background: rgba(245,185,33,.14); color: var(--gold); border: 1px solid rgba(245,185,33,.4); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px; }

/* Buttons */
.btn { display: inline-block; border: none; cursor: pointer; font-family: inherit; font-weight: 700; border-radius: 10px; transition: transform .15s, box-shadow .15s; text-decoration: none; text-align: center; }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-900); box-shadow: 0 6px 20px rgba(245,185,33,.35); padding: 16px 34px; font-size: 17px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 40px; font-size: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245,185,33,.45); }

/* Sticky bar */
.sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(13,31,66,.96); color: #fff; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 20px; backdrop-filter: blur(6px); }
.sticky-bar__label { font-size: 14px; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #24447e 0%, var(--navy-800) 45%, var(--navy-900) 100%); color: #fff; padding: 90px 0 110px; }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero__sub { font-size: 19px; color: #c6d3ec; margin: 22px 0 34px; max-width: 560px; }
.hero__svg { width: 100%; max-width: 420px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }

/* Sections */
.section { padding: 84px 0; }
.section--dark { background: var(--navy-900); color: #fff; }
.section--dark h2 { color: #fff; }
.section--accent-bg { background: var(--paper); }

/* Pains */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.pain-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 28px; }
.pain-card h3 { color: #ffd76a; margin-bottom: 10px; }
.pain-card p { color: #b9c6de; font-size: 15px; }
.pain-card__icon { font-size: 28px; display: block; margin-bottom: 14px; }
.solution { margin-top: 44px; text-align: center; font-size: 22px; font-weight: 600; color: var(--gold); max-width: 800px; margin-left: auto; margin-right: auto; }

/* Features */
.feature-card { background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 4px 24px rgba(13,31,66,.08); position: relative; overflow: hidden; }
.feature-card__num { font-size: 56px; font-weight: 800; color: rgba(245,185,33,.25); position: absolute; top: 8px; right: 18px; line-height: 1; }
.feature-card h3 { margin-bottom: 12px; color: var(--navy-800); }
.feature-card p { font-size: 15px; color: #46536b; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; counter-reset: s; }
.step { background: #fff; border-radius: 14px; padding: 28px 24px; border-top: 4px solid var(--gold); box-shadow: 0 4px 18px rgba(13,31,66,.07); }
.step__num { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800); color: var(--gold); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step p { font-size: 14px; color: #46536b; margin-top: 8px; }

/* Calculator */
.calc { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 8px 30px rgba(13,31,66,.1); }
.calc h3 { margin-bottom: 22px; color: var(--navy-800); }
.calc__row { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr auto; gap: 16px; align-items: end; }
.calc label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: #46536b; gap: 6px; }
.calc input, .calc select { padding: 12px 14px; border: 1.5px solid #d5dcea; border-radius: 8px; font-size: 15px; font-family: inherit; }
.calc__result { margin-top: 22px; padding: 18px 22px; background: rgba(245,185,33,.12); border-left: 4px solid var(--gold); border-radius: 8px; font-size: 18px; font-weight: 700; color: var(--navy-900); }

/* Cases */
.cases-intro { max-width: 780px; margin: 0 auto 10px; text-align: center; color: #46536b; font-size: 16.5px; }
.cases-intro p { margin-bottom: 14px; }
.case { background: #fff; border: 1px solid #e2e8f4; border-radius: 14px; padding: 22px 26px; }
.case summary { font-weight: 700; cursor: pointer; color: var(--navy-800); list-style-position: inside; }
.case[open] summary { margin-bottom: 14px; }
.case p { font-size: 14.5px; margin-bottom: 8px; }

/* Trust */
.trust__list { list-style: none; max-width: 760px; margin: 0 auto 40px; }
.trust__list li { padding: 14px 0 14px 36px; position: relative; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 17px; color: #c6d3ec; }
.trust__list li::before { content: '✔'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.trust__list strong { color: #fff; }
.requisites { text-align: center; font-size: 14px; color: #8fa2c5; }
.requisites h4 { color: var(--gold); margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* Form */
.form-wrap { max-width: 620px; text-align: center; }
.form-wrap__sub { color: #46536b; margin-bottom: 30px; }
#leadForm input, #leadForm textarea, #callForm input { width: 100%; padding: 15px 18px; margin-bottom: 14px; border: 1.5px solid #d5dcea; border-radius: 10px; font-size: 16px; font-family: inherit; }
#leadForm input:focus, #leadForm textarea:focus { outline: none; border-color: var(--gold); }
#formStatus.ok, #callStatus.ok { color: #1a8a4a; font-weight: 600; }
#formStatus.err, #callStatus.err { color: #c0392b; font-weight: 600; }

/* Footer */
.footer { background: var(--navy-900); color: #8fa2c5; padding: 30px 0 70px; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(13,31,66,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__box { background: #fff; border-radius: 16px; padding: 36px; max-width: 420px; width: 100%; position: relative; }
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 28px; cursor: pointer; color: #8896ad; }

/* Chat widget */
.chat-widget { position: fixed; bottom: 70px; right: 24px; z-index: 95; }
.chat-widget__btn { width: 58px; height: 58px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); font-size: 24px; cursor: pointer; box-shadow: 0 8px 24px rgba(245,185,33,.45); }
.chat-widget__panel { position: absolute; bottom: 70px; right: 0; width: 340px; height: 440px; background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(13,31,66,.25); display: flex; flex-direction: column; overflow: hidden; }
.chat-widget__panel[hidden] { display: none; }
.chat-widget__head { background: var(--navy-800); color: #fff; padding: 14px 18px; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: space-between; }
.chat-widget__min { background: none; border: none; color: #c6d3ec; font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px; }
.chat-widget__min:hover { color: var(--gold); }
.chat-widget__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.msg--bot { background: var(--paper); align-self: flex-start; }
.msg--user { background: var(--navy-700); color: #fff; align-self: flex-end; }
.chat-widget__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e6ebf5; }
.chat-widget__form input { flex: 1; border: 1.5px solid #d5dcea; border-radius: 8px; padding: 10px 12px; font-family: inherit; }

@media (max-width: 900px) {
  .hero__inner, .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .calc__row { grid-template-columns: 1fr; }
  .sticky-bar__label { display: none; }
}
