/* =========================================================
   ОСАГО-БОТ — styles.css
   Главная страница / хаб
   ========================================================= */

/* ---------- Base reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img,
svg,
iframe,
table {
  display: block;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* ---------- Variables ---------- */
:root {
  --bg: #f3f6fa;
  --bg-soft: #f8fafc;
  --white: #ffffff;

  --text: #0f172a;
  --text-2: #1e293b;
  --text-soft: #475467;
  --muted: #667085;

  --line: #dbe3ec;
  --line-2: #e6edf5;

  --primary: #ff7250;
  --primary-hover: #f26340;
  --primary-soft: #fff1ec;

  --accent: #155eef;
  --accent-soft: #eef4ff;

  --success: #12b76a;
  --success-soft: #ecfdf3;

  --warning-soft: #fff8eb;

  --shadow-xs: 0 2px 8px rgba(16, 24, 40, 0.03);
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 14px 36px rgba(16, 24, 40, 0.07);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --container: 1160px;
}

/* ---------- Base ---------- */
body {
  min-width: 320px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(21, 94, 239, 0.04), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(255, 114, 80, 0.16);
}

.container {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
}

main {
  display: block;
}

.clr {
  clear: both;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 800;
}

h2 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.14;
  font-weight: 800;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--text-soft);
}

.section-subtitle,
.hero-subtitle,
.hero-calc__subtitle,
.note,
.hero-calc-note,
.page-updated {
  color: var(--muted);
}

/* ---------- Generic blocks ---------- */
.panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.panel h2 {
  margin-bottom: 10px;
}

.panel p+p {
  margin-top: 10px;
}

.note {
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.03);
  backdrop-filter: blur(8px);
}

.header-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link svg {
  width: 190px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
}

.header-nav a:hover {
  color: var(--text);
  border-color: #cfd8e3;
  background: #ffffff;
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 16px 0 10px;
}

.hero-panel {
  max-width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-copy {
  padding: 22px 22px 14px;
}

.hero-copy h1 {
  max-width: 860px;
  margin-bottom: 10px;
}

.hero-subtitle {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.6;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.trust-badge span:last-child {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  color: #334155;
}

.trust-badge__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #ff8061;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.hero-facts {
  margin-top: 20px;
}

.hero-calc {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.hero-calc__title {
  margin: 0 0 4px;
  text-align: center;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
}

.hero-calc__subtitle {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

.calc-trust-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.calc-trust-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.calc-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.calculator-frame {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}

.calculator-frame iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  min-height: 540px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.hero-calc-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, var(--primary) 0%, #f76844 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(255, 114, 80, 0.14);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-hover) 0%, #ea5e3b 100%);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.panel-cta {
  margin-top: 16px;
}

/* ---------- Intro ---------- */
.compare-intro {
  padding: 10px 0 6px;
}

.compare-intro .panel {
  text-align: center;
}

.compare-intro p {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Logos ---------- */
.logos-section {
  padding: 14px 0;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  min-width: 0;
}

.logos-grid img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}

/* ---------- Content ---------- */
.content-section {
  padding: 14px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
}

.content-grid .panel {
  height: 100%;
}

/* ---------- Steps list ---------- */
.steps-list {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 16px 0 14px;
  padding: 0;
}

.steps-list li {
  list-style: none;
  position: relative;
  min-height: 58px;
  padding: 14px 14px 14px 56px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  color: var(--text-soft);
  font-weight: 500;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--accent) 0%, #f76844 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Simple list ---------- */
.simple-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 16px 0 14px;
  padding: 0;
}

.simple-list li {
  list-style: none;
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  margin: 0;
}

.simple-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Table ---------- */
.mini-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #fff;
}

.mini-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.mini-table th,
.mini-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-2);
  word-break: break-word;
  overflow-wrap: break-word;
}

.mini-table thead th {
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.mini-table tbody tr:last-child td {
  border-bottom: 0;
}

.mini-table tbody td:first-child {
  width: 34%;
  font-weight: 700;
  color: var(--text);
}

.mini-table tbody td:last-child {
  color: var(--text-soft);
}

/* ---------- Calc process ---------- */
.calc-process {
  width: 100%;
  max-width: 760px;
  margin: 20px auto 0;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  color: var(--text-soft);
  text-align: left;
}

.calc-process h3 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
  color: var(--text);
}

.calc-process__list {
  list-style: none;
  counter-reset: calcstep;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
}

.calc-process__list li {
  list-style: none;
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.55;
  color: var(--text-soft);
}

.calc-process__list li::before {
  content: counter(calcstep) ".";
  counter-increment: calcstep;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #334155;
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: 14px 0;
}

.faq-panel {
  padding-bottom: 18px;
}

.faq-item {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.faq-item+.faq-item {
  margin-top: 12px;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 16px 48px 16px 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
}

.faq-item[open] summary {
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
  border-bottom: 1px solid var(--line-2);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 14px 16px 16px;
}

.faq-answer p {
  color: var(--text-soft);
}

/* ---------- Trust ---------- */
.trust-section {
  padding: 14px 0 28px;
}

.page-updated {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Doc pages ---------- */
.doc-page {
  padding: 32px 0 56px;
}

.doc-section .panel {
  max-width: 920px;
  margin: 0 auto;
}

.doc-panel h1 {
  margin-bottom: 12px;
}

.doc-content {
  margin-top: 24px;
}

.doc-content h2 {
  margin: 28px 0 12px;
}

.doc-content p {
  margin: 0 0 14px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
#footer {
  display: block;
  width: 100%;
}

.foot_down {
  display: block;
  width: 100%;
  background: #121212;
  padding: 30px 0 24px;
  color: hsla(0, 0%, 100%, 0.66);
}

.foot_wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.foot_logo {
  float: left;
  line-height: 1;
  letter-spacing: 1.2px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  max-width: 220px;
  margin-bottom: 16px;
}

.foot_logo span {
  color: #ff7250;
}

.foot_soc {
  float: right;
  text-align: right;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 16px;
}

.foot_soc span {
  color: #ff7250;
}

.foot_menu {
  float: left;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.foot_menu a {
  float: left;
  color: #aeb9cc;
  margin-right: 18px;
  margin-bottom: 10px;
}

.foot_menu a:hover {
  color: #ffffff;
}

.foot_info {
  display: block;
  width: 100%;
  clear: both;
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.foot_cop {
  float: left;
  font-size: 13px;
  line-height: 1.7;
}

.foot_cop_2 {
  float: right;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .logos-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .panel {
    padding: 20px;
  }

  .hero-copy {
    padding: 20px 18px 14px;
  }

  .hero-calc {
    padding: 14px 16px 16px;
  }

  .logos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logo-link svg {
    width: 170px;
  }
}

@media (max-width: 768px) {
  .calculator-frame iframe {
    min-height: 620px;
  }

  .mini-table {
    font-size: 14px;
  }

  .mini-table th,
  .mini-table td {
    padding: 10px 8px;
  }

  .calc-process {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .calc-process h3 {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 18px));
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .header-row {
    min-height: 58px;
  }

  .logo-link svg {
    width: 170px;
  }

  .header-nav a {
    font-size: 12px;
    padding: 7px 12px;
  }

  .hero-section {
    padding: 12px 0 8px;
  }

  .hero-panel {
    border-radius: 16px;
  }

  .hero-copy {
    padding: 16px 14px 12px;
  }

  .hero-copy h1 {
    font-size: 23px;
    line-height: 1.12;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.55;
  }

  .trust-badges {
    gap: 6px;
    margin-top: 12px;
  }

  .trust-badge {
    min-height: 34px;
    padding: 7px 10px;
  }

  .trust-badge span:last-child {
    font-size: 12px;
  }

  .hero-calc {
    padding: 12px;
  }

  .hero-calc__title {
    font-size: 16px;
  }

  .hero-calc__subtitle {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .calculator-frame {
    padding: 6px;
    border-radius: 12px;
  }

  .calculator-frame iframe {
    min-height: 470px;
    border-radius: 10px;
  }

  .panel,
  .compare-intro .panel,
  .logos-section .panel,
  .content-section .panel,
  .faq-section .panel,
  .trust-section .panel {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .logos-grid img {
    height: 68px;
    padding: 12px;
    border-radius: 14px;
  }

  .steps-list li {
    padding: 13px 12px 13px 52px;
  }

  .steps-list li::before {
    left: 12px;
    top: 12px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 15px 44px 15px 14px;
  }

  .faq-item summary::after {
    right: 12px;
    top: 13px;
  }

  .faq-answer {
    padding: 12px 14px 14px;
  }

  .foot_down {
    padding: 24px 0 20px;
  }

  .foot_soc {
    display: none;
  }

  .foot_logo {
    width: 100%;
    font-size: 24px;
    margin-bottom: 10px;
  }

  .foot_info {
    font-size: 13px;
    padding-top: 12px;
  }

  .foot_cop,
  .foot_cop_2 {
    float: left;
    width: 100%;
    color: #aeb9cc;
  }

  .foot_cop {
    padding-bottom: 8px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 22px;
  }

  .btn-primary {
    width: 100%;
  }

  .trust-badge {
    width: 100%;
    justify-content: flex-start;
  }

  .steps-list li {
    padding-left: 50px;
  }

  .steps-list li::before {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .calc-process__list li {
    padding-left: 24px;
  }
}


/* ---------- Benefits ---------- */
.benefits-section {
  padding: 14px 0;
}

.benefits-section .section-subtitle {
  max-width: 820px;
  margin-bottom: 18px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  min-width: 0;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--shadow-xs);
}

.benefit-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--accent) 0%, #f76844 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.benefit-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.benefit-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-card {
    padding: 16px;
    border-radius: 16px;
  }

  .benefit-card h3 {
    font-size: 17px;
  }
}