/* =========================================
   /osago-sravnit/ — стиль на базе /online/
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #111827;
  background: #f5f7fb;
  overflow-x: hidden;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #111827;
  --muted: #5b6472;
  --line: #e5e7eb;
  --line-strong: #d7dde6;

  --primary: #ff7250;
  --primary-hover: #ef6240;
  --primary-soft: #fff2ed;

  --accent: #2563eb;
  --accent-soft: #eff6ff;

  --success: #10b981;
  --success-soft: #ecfdf5;

  --warn-soft: #fff7ed;
  --warn-line: #fed7aa;
  --warn-text: #9a3412;

  --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 14px 34px rgba(17, 24, 39, 0.08);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --container: 1180px;
}

/* =========================================
   LAYOUT
========================================= */
.header-wrap,
.hero_container,
.news_main_wrap,
.foot_wrap {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

main {
  display: block;
}

.clr {
  clear: both;
}

/* =========================================
   HEADER
========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-wrap-line-bg {
  display: none;
}

.header-wrap-bg {
  width: 100%;
}

.header-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  flex: 0 1 auto;
  min-width: 0;
}

.logo_link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.logo_link svg {
  display: block;
  width: clamp(180px, 28vw, 260px);
  height: auto;
}

.inset {
  display: flex;
  align-items: center;
}

.inset a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  transition: .2s ease;
}

.inset a:hover,
.inset a:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* =========================================
   HERO
========================================= */
.hero {
  padding: 24px 0 18px;
}

.hero_container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fff7f3 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.hero_container::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 114, 80, 0.05);
  pointer-events: none;
}

.hero_content {
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.hero_title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 37px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #111827;
  font-weight: 800;
}

.hero_description {
  max-width: 860px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero_features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero_feature {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.hero_action {
  margin-bottom: 18px;
}

.hero_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transition: .2s ease;
}

.hero_button:hover,
.hero_button:focus-visible {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero_trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.trust_item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.trust_item strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 4px;
}

/* =========================================
   MAIN CONTENT WRAP
========================================= */
.news_main_bg {
  padding: 18px 0 36px;
}

.news_main_wrap {
  background: transparent;
}

.n.full_text {
  width: 100%;
}

/* =========================================
   CONTENT CARDS
========================================= */
.section_box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 18px;
}

.section_box:last-child {
  margin-bottom: 0;
}

.section_box h2 {
  font-weight: 650;
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #111827;
}

.disclaimer {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 940px;
}

.soft_note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: #374151;
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================
   CALCULATOR
========================================= */
.wrap_osago {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

.wrap_osago iframe,
#ppdwi {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border: 0 !important;
  background: #fff;
  display: block;
  height: 650px;
}

/* =========================================
   MINI BLOCKS INSIDE SECTIONS
========================================= */
.simple_list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.simple_list li {
  list-style: none;
  position: relative;
  padding: 16px 18px 16px 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #1f2937;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}

.simple_list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.simple_list strong {
  color: #111827;
}

/* =========================================
   COMPANY GRID
========================================= */
.hub_links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub_btn {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  background-color: #DFE2E6;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

a.hub_btn:hover,
a.hub_btn:focus-visible {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

span.hub_btn {
  justify-content: flex-start;
}

/* =========================================
   FAQ
========================================= */
#faq .section_box,
.section_box#faq {
  background: var(--surface);
}

.faq_item + .faq_item {
  margin-top: 12px;
}

.faq_item {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.faq_item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: #111827;
  position: relative;
  user-select: none;
  background: #DFE2E6;
}

.faq_item summary::-webkit-details-marker {
  display: none;
}

.faq_item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--primary);
  font-weight: 500;
}

.faq_item[open] summary::after {
  content: "−";
}

.faq_q {
  display: block;
  padding-right: 28px;
}

.faq_a {
  padding: 18px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.faq_a p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq_a a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================
   FOOTER
========================================= */
#footer {
  margin-top: 26px;
  background: #121212;
  color: #fff;
}

.foot_down {
  width: 100%;
  background: #121212;
  padding: 30px 0;
  color: hsla(0,0%,100%,.6);
}

.foot_wrap {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.foot_logo {
  float: left;
  line-height: 1.1;
  letter-spacing: 2px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  max-width: 200px;
}

.foot_logo span {
  color: #ff7250;
}

.foot_soc {
  float: right;
  line-height: 1.1;
  text-align: right;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.foot_soc span {
  color: #ff7250;
}

.foot_menu {
  float: left;
  width: 100%;
  border-bottom: 1px solid #2b313a;
  margin-top: 22px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.foot_menu a {
  float: left;
  color: #aeb9cc;
  margin-right: 20px;
  margin-bottom: 15px;
  font-size: 14px;
}

.foot_menu a:hover {
  color: #06a8f2;
  text-decoration: none;
}

.foot_info {
  display: block;
  width: 100%;
  clear: both;
  padding-top: 12px;
  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;
}

/* =========================================
   ACCESSIBILITY
========================================= */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 114, 80, 0.22);
  outline-offset: 2px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1100px) {
  .hub_links,
  .hero_trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero_container,
  .section_box {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 820px) {
  .header {
    position: relative;
  }

  .header-wrap {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    text-align: center;
  }

  .hero_container {
    padding: 22px 20px 18px;
    border-radius: 20px;
  }

  .hub_links,
  .hero_trust {
    grid-template-columns: 1fr;
  }

  .section_box {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .wrap_osago {
    border-radius: 16px;
  }

  .wrap_osago iframe,
  #ppdwi {
    height: 760px;
  }

  .simple_list li {
    padding-left: 48px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .header-wrap,
  .hero_container,
  .news_main_wrap,
  .foot_wrap {
    width: min(var(--container), calc(100% - 20px));
  }

  .hero {
    padding-top: 18px;
  }

  .hero_container {
    padding: 18px 14px 14px;
  }

  .hero_title {
    font-size: 24px;
    line-height: 1.12;
  }

  .hero_description {
    font-size: 15px;
  }

  .section_box {
    padding: 18px 14px;
  }

  .section_box h2 {
    font-size: 22px;
  }

  .wrap_osago iframe,
  #ppdwi {
    height: 840px;
  }

  .hub_btn,
  .faq_item,
  .simple_list li {
    border-radius: 12px;
  }

  .simple_list li {
    padding: 16px 14px 16px 46px;
  }

  .simple_list li::before {
    left: 14px;
  }

  .faq_item summary,
  .faq_a {
    padding-left: 16px;
    padding-right: 16px;
  }

  .foot_wrap {
    width: min(var(--container), calc(100% - 20px));
  }

  .foot_soc {
    display: none;
  }

  .foot_info,
  .foot_cop,
  .foot_cop_2 {
    font-size: 13px;
  }

  .foot_cop {
    float: left;
    width: 100%;
    padding-bottom: 10px;
  }

  .foot_cop_2 {
    float: left;
    width: 100%;
    padding-top: 5px;
  }
}