/* =========================================================
   РаботаЕсть — landing page styles
   Palette: ink #17181A, paper #FAFAF9, red #E31E24, red-deep #B4151A
   Type: Manrope (display) + Inter (body)
========================================================= */

:root{
  --ink: #17181A;
  --ink-soft: #6B6C70;
  --paper: #FAFAF9;
  --paper-alt: #F1F1EF;
  --card: #FFFFFF;
  --line: #E7E6E3;
  --red: #E31E24;
  --red-deep: #B4151A;
  --red-tint: #FDECEC;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(23,24,26,0.14);
  --container: 1120px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }
ul, ol{ margin: 0; padding: 0; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a{ color: inherit; }

/* focus visibility */
a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}

.btn-primary{
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(227,30,36,0.55);
}
.btn-primary:hover{
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -10px rgba(227,30,36,0.6);
}

.btn-header{
  background: var(--ink);
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
}
.btn-header:hover{
  background: var(--red);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,250,249,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo{
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
}

.brand-name{
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-name .accent{ color: var(--red); }

/* ---------- Hero ---------- */
.hero{
  padding: 76px 0 64px;
}

.hero-inner{
  max-width: 760px;
  text-align: left;
}

.eyebrow{
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-tint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title{
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 22px;
}

.swoosh-wrap{
  position: relative;
  display: inline-block;
  color: var(--red);
}

.swoosh{
  position: absolute;
  left: -2%;
  bottom: -0.3em;
  width: 104%;
  height: auto;
  color: var(--red);
  pointer-events: none;
}

.hero-sub{
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 14px;
}

.hero-note{
  font-size: 12.5px;
  color: #A6A7AB;
  max-width: 520px;
  margin-bottom: 30px;
}

/* ---------- Section titles ---------- */
.section-title{
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 36px;
}

/* ---------- Features ---------- */
.features{
  padding: 24px 0 72px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-tint);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg{ width: 26px; height: 26px; }

.card h3{
  font-size: 18px;
  margin-bottom: 10px;
}

.card p{
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Steps ---------- */
.steps{
  padding: 24px 0 76px;
}

.steps-list{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--paper-alt);
  border-radius: var(--radius);
}

.step-num{
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3{
  font-size: 17px;
  margin-bottom: 6px;
}

.step p{
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---------- CTA ---------- */
.cta{
  padding: 60px 0 90px;
}

.cta-inner{
  background: var(--ink);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta h2{
  color: #fff;
  font-size: clamp(24px, 3.4vw, 34px);
  max-width: 520px;
}

.cta p{
  color: #C7C8CC;
  font-size: 16px;
  max-width: 460px;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-logo-sm{
  height: 28px;
  width: 28px;
}

.brand-footer .brand-name{ font-size: 16px; }

.footer-links{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.link-btn{
  background: none;
  border: none;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover{ color: var(--red); }

.footer-copy{
  font-size: 13px;
  color: #A6A7AB;
}

.demo-notice{
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #B4B5B9;
}

/* ---------- Privacy Policy Panel ---------- */
.policy-overlay{
  position: fixed;
  inset: 0;
  background: rgba(23,24,26,0.5);
  backdrop-filter: blur(2px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.policy-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.policy-panel{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(480px, 100%);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 50px -20px rgba(0,0,0,0.3);
}

.policy-overlay.is-open .policy-panel{
  transform: translateX(0);
}

.policy-header{
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}

.policy-header h2{
  font-size: 19px;
  font-weight: 800;
}

.policy-close{
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.policy-close svg{ width: 18px; height: 18px; }
.policy-close:hover{
  background: var(--red);
  color: #fff;
  transform: rotate(90deg);
}

.policy-body{
  padding: 8px 24px 40px;
  overflow-y: auto;
  flex: 1;
}

.policy-body h3{
  font-size: 15.5px;
  margin-top: 26px;
  margin-bottom: 10px;
  color: var(--red);
}

.policy-body p{
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.policy-body ul{
  margin: 0 0 12px 0;
  padding-left: 20px;
}
.policy-body li{
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.policy-generated{
  margin-top: 26px;
  font-size: 12.5px;
  color: #A6A7AB;
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .steps-list{ grid-template-columns: 1fr; }
  .cta-inner{ padding: 44px 26px; }
}

@media (max-width: 560px){
  .header-inner{ height: 66px; }
  .brand-name{ font-size: 16px; }
  .brand-logo{ height: 32px; width: 32px; }
  .hero{ padding: 48px 0 44px; }
  .hero-sub{ font-size: 16px; }
  .btn-primary{ width: 100%; }
  .hero-inner .btn-primary{ width: auto; }
  .policy-panel{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
