@import url(./casco_type.css);
@import url(./companies.css);

:root {
  --main-color: #644cfa;
}

html {
  background-color: #f5f7fc !important;
}

body {
  background: #f5f7fc !important;
}

#casco-calculator section[data-section="section-1"] {
  padding-top: 0;
}

#casco-calculator > .casco_header {
  padding-top: 50px;
  box-sizing: border-box;
}

#casco-calculator > div:not(.agent_wrapper):not(.page_container_2) {
  padding-top: 50px;
}

#casco-calculator
  .agent_wrapper:not(.agent_wrapper__hidden)
  + script
  + .casco_header {
  padding-top: 20px;
}

#casco-calculator[data-page="2"]
  .agent_wrapper:not(.agent_wrapper__hidden)
  + script
  + .casco_header {
  padding-top: 40px;
}

#casco-calculator
  .agent_wrapper:not(.agent_wrapper__hidden)
  + script
  + .casco_header
  + div,
#casco-calculator
  .agent_wrapper:not(.agent_wrapper__hidden)
  + script
  + .casco_header
  + div
  + div:not(.page_container_2),
#casco-calculator
  .agent_wrapper:not(.agent_wrapper__hidden)
  + script
  + .casco_header
  + div
  + div
  + div {
  padding-top: 20px;
}

.upper-description-bar.upper-description-bar--casco {
  padding-top: 0;
  padding-bottom: 12px;
  margin-top: var(--agent-frame, 95px);
}

.upper-description-bar.upper-description-bar--casco h1 {
  color: #374957;
  font-size: 24px;
  padding: 0;
  background-color: transparent;
  text-transform: none;
}

.upper-description-bar.upper-description-bar--casco .h1-short-desc {
  max-width: 980px;
  margin: 10px auto 0;
  padding: 0 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #374957cc;
}

@media (max-width: 768px) {
  .upper-description-bar.upper-description-bar--casco h1 {
    font-size: 20px;
    padding: 10px 0;
  }

  .upper-description-bar.upper-description-bar--casco .h1-short-desc {
    font-size: 13px;
    margin-top: 8px;
  }
}

#casco-calculator #agentNameBlock {
  margin-top: 20px;
}

#casco-calculator #agentNameBlock .agentNameBlock_wrapper {
  width: fit-content;
  height: auto;
  padding: 10px 15px;
  background-color: #f4edd3;
  border: 0;
}

#casco-calculator #agentNameBlock img {
  width: 16px;
  height: 16px;
  padding: 0;
}

#casco-calculator #agentNameBlock p {
  margin-left: 10px;
  padding: 0;
  font-size: 13px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #374957;
}

.hidden {
  display: none;
}

#casco-calculator[data-page="2"] > .agent_wrapper.agent_wrapper--bottom,
#casco-calculator[data-page="3"] > .agent_wrapper.agent_wrapper--bottom {
  display: none;
}

.casco_calculator[data-page="1"] .casco_header {
  width: 300px;
}

.casco_calculator[data-page="1"]::after {
  width: 330px;
}

.casco_calculator[data-page="2"] .casco_header {
  width: 206px;
}

.casco_calculator[data-page="2"]::after {
  width: 236px;
}

.casco_calculator[data-page="3"] .casco_header {
  width: 306px;
}

.casco_calculator[data-page="3"]::after {
  width: 336px;
}

.casco_calculator {
  width: 1242px;
  max-width: 100%;
  min-height: calc(100vh - 250px);
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  justify-items: center;
  align-content: start;
  margin: 0 auto;
  box-sizing: border-box;
}

.casco_calculator > .casco_header {
  grid-column: 2;
}

.casco_calculator > .page_container_1,
.casco_calculator > .page_container_2,
.casco_calculator > .page_container_3 {
  grid-column: 3;
}

#casco-calculator[data-page="1"] > .casco_header {
  display: none;
}

#casco-calculator[data-page="1"] > .page_container_1 {
  grid-column: 2 / 4;
}

.casco_calculator > *:not(.agent_wrapper) {
  justify-self: center;
}

.casco_calculator .agent_wrapper {
  grid-column: 1 / -1;
}

.casco_calculator::after {
  content: "";
  height: 1px;
}

.casco_header {
  width: 300px;
  max-width: 100%;
  margin-right: 30px;
  text-align: left;
  display: flex;
  align-items: flex-start;
}

.casco_calculator .calculator_header {
  display: flex;
  align-items: center;
}

.casco_calculator .calculator_header_text {
  display: none;
  flex-direction: column;
}

#casco-calculator[data-page="2"] .calculator_header_text,
#casco-calculator[data-page="3"] .calculator_header_text {
  display: flex;
}

#casco-calculator[data-page="1"] .calculator_header {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#casco-calculator[data-page="1"] .calculator_header p {
  display: block;
}

.casco_calculator .calculator_header h1,
.casco_calculator .calculator_header h2 {
  text-transform: initial;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #374957;
  background: transparent !important;
  text-align: left;
}

.casco_calculator .calculator_header p {
  font-size: 14px;
  line-height: 1.5;
  color: #374957cc;
  margin-top: 10px;
  display: none;
}

.casco_calculator .calculator_header svg {
  display: none;
  flex-shrink: 0;
}

.casco_calculator .calculator_header.back h1,
.casco_calculator .calculator_header.back svg {
  cursor: pointer;
}

.casco_calculator .calculator_header.back svg {
  display: inline;
  margin-right: 10px;
}

.calculator_wrapper {
  font-family: "Open Sans", sans-serif;
  width: 582px;
  margin: 0 auto;
}

.calculator_wrapper.accord {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.terms-accord {
  margin: 25px 0 50px auto;
  text-align: center;
  font-size: 13px;
  width: 50%;
}

.page_container_1 {
  counter-reset: section;
}

.page_container_4 {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator_wrapper .calculator_header h1 {
  font-family: "Open Sans", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 34px;
  line-height: 47px;
  text-align: center;
  color: #374957;
}

.header_navigation_panel_text {
  border: 1px solid rgba(55, 73, 87, 0.5);
  border-radius: 40px;
  font-size: 17px;
  line-height: 22px;
  color: rgba(55, 73, 87, 0.5);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.active_header_panel .header_navigation_panel_text {
  border: 1px solid var(--main-color);
  color: var(--main-color);
}

.header_navigation_panel_block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}

.active_header_panel .header_navigation_title {
  color: #374957;
}

.header_navigation_title {
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  text-align: center;
  margin-top: 12px;
  text-transform: uppercase;
  color: rgba(55, 73, 87, 0.6);
}

.header_navigation_panel_container {
  margin-top: 20px;
  display: flex;
  width: 414px;
  margin-right: auto;
  margin-left: auto;
}

.header_navigation_panel_container > *:nth-child(1) {
  width: 84px;
  margin-right: 3px;
}

.header_navigation_panel_container > *:nth-child(2) {
  width: 84px;
  margin-right: 3px;
}

.header_navigation_panel_container > *:nth-child(3) {
  width: 56px;
  margin-right: 17px;
}

.header_navigation_panel_container > *:nth-child(4) {
  margin-right: 16px;
}

.header_navigation_panel_container > *:nth-child(5) {
  width: 51px;
}

.header_navigation_line {
  width: 71px;
  height: 40px;
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.header_navigation_line img {
  display: none;
}

.page_hidden {
  display: none;
}

.button_navigation {
  margin: 25px 0 50px auto;
  display: flex;
  align-items: center;
  background: rgba(68, 176, 94, 0.5);
  border-radius: 5px;
  padding: 7px 23px;
  border: none;
  transition: 0.2s;
}

.button_navigation span {
  font-weight: 600;
  font-size: 18px;
  line-height: 36px;
  color: #ffffff;
  margin-right: 10px;
}

.button_navigation_active {
  background: #29cf51;
}

.button_navigation_active:hover {
  background: #379b4e;
}
.button_navigation[disabled="true"] {
  opacity: 0.5;
}

.category_cards.active.button--loading::after {
  border-top-color: #644cfabf;
  bottom: auto;
  top: 20px;
}

.button--loading {
  position: relative;
}

.button--loading .button__text {
  visibility: hidden;
  opacity: 0;
}

.button--loading::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 4px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

.block_title {
  font-weight: bold;
  font-size: 20px;
  line-height: 32px;
  color: #374957;
  display: flex;
  align-items: center;
  /* opacity: 0.5; */
}

.block_name_title {
  margin-top: 70px;
}

.block_title::before {
  counter-increment: section;
  content: counter(section);
  font-weight: normal;
  font-size: 16px;
  line-height: 16px;
  color: #374957;
  border: 1px solid #bdbdbd;
  box-sizing: border-box;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  margin-right: 15px;
  flex-shrink: 0;
}

.block_title.success::before {
  content: url(../casco/icons/title-success.svg);
  background-color: #29cf51;
  border-color: transparent;
  font-size: 18px;
}

.disable {
  opacity: 0.5;
  cursor: no-drop;
}

.disable * {
  pointer-events: none;
}

/* маркер вопроса (появляется только на тач) */
.rtp-tooltip-trigger {
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 1;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e1e1e1;
}

/* пузырь */
.rtp-tooltip-bubble {
  width: fit-content;
  position: absolute;
  max-width: 280px;
  z-index: 1000;
  background-color: #1e72e3;
  color: #ffffff;
  border-radius: 5px;
  padding: 15px 20px 15px 15px;
  box-shadow: rgba(55, 73, 87, 0.1);
}
.rtp-tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}
.rtp-tooltip-bubble[data-pos="top"] .rtp-tooltip-arrow {
  bottom: -16px;
  left: calc(50% - 8px);
  border-top-color: #2f6dfd;
}
.rtp-tooltip-bubble[data-pos="bottom"] .rtp-tooltip-arrow {
  top: -16px;
  left: calc(50% - 8px);
  border-bottom-color: #2f6dfd;
}
.rtp-tooltip-bubble[data-pos="left"] .rtp-tooltip-arrow {
  right: -16px;
  top: calc(50% - 8px);
  border-left-color: #2f6dfd;
}
.rtp-tooltip-bubble[data-pos="right"] .rtp-tooltip-arrow {
  left: -16px;
  top: calc(50% - 8px);
  border-right-color: #2f6dfd;
}

/* popup */
.rtp-tooltip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
  display: grid;
  place-items: center;
  justify-content: center;
  padding: 20px;
}
.rtp-tooltip-popup {
  width: 365px;
  max-width: calc(100% - 30px);
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 15px 35px 20px 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  position: relative;
}
.rtp-tooltip-popup .rtp-tooltip-close {
  width: 15px;
  height: 15px;
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background-color: transparent;
}

.rtp-tooltip-popup .rtp-tooltip-close::before,
.rtp-tooltip-popup .rtp-tooltip-close::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  background: currentColor;
  top: 50%;
  left: 0;
}

.rtp-tooltip-popup .rtp-tooltip-close::before {
  transform: translateY(-50%) rotate(-45deg);
}

.rtp-tooltip-popup .rtp-tooltip-close::after {
  transform: translateY(-50%) rotate(45deg);
}

.drop_down_message {
  color: rgba(100, 76, 250, 0.8);
  font-size: 13px;
  line-height: 1;
  margin-top: 5px;
}

.rapidasig-casco--icons {
  display: none;
}

.calc_casco .how-section {
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid #e2e8f2;
  border-left: 5px solid #2563eb;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
  padding: 34px 30px;
}

.calc_casco .how-section .container {
  max-width: 760px;
}

.calc_casco .how-section h2 {
  text-transform: none;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #243648;
}

.calc_casco .how-section p {
  font-size: 1.18rem;
  line-height: 1.5;
  color: #2f4357;
  margin: 0;
}

@media screen and (max-width: 700px) {
  .calc_casco .how-section {
    padding: 24px 18px;
    border-left-width: 4px;
  }

  .calc_casco .how-section h2 {
    font-size: 1.55rem;
    margin-bottom: 12px;
  }

  .calc_casco .how-section p {
    font-size: 1.03rem;
    line-height: 1.45;
  }
}

@media screen and (max-width: 1300px) {
  #casco-calculator > .casco_header,
  #casco-calculator > div:not(.agent_wrapper) {
    padding-top: 20px;
  }

  .upper-description-bar.upper-description-bar--casco {
    padding-top: 0;
  }

  .casco_calculator {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .casco_calculator::after {
    content: none;
  }

  .casco_calculator[data-page="1"] .casco_header {
    width: 582px;
    margin-right: 0;
  }

  .casco_calculator[data-page="2"] .casco_header {
    width: 770px;
    margin-right: 0;
    justify-content: center;
  }

  .casco_calculator[data-page="3"] .casco_header {
    width: 570px;
    margin-right: 0;
  }

  .page_container_2,
  .page_container_2 section {
    width: 100%;
  }

  .page_container_3,
  .page_container_3 section {
    width: 100%;
  }

  .casco_calculator .casco_header h1 {
    padding: 0;
  }
}

@media screen and (max-width: 862px) {
  .upper-description-bar.upper-description-bar--casco {
    padding-top: 0;
  }
}

@media screen and (max-width: 767px) {
  .casco_calculator {
    min-height: calc(100vh - 50px);
  }
  .upper-description-bar.upper-description-bar--casco {
    margin-top: var(--agent-frame-responsive, 55px);
  }
}

@media screen and (max-width: 599px) {
  .block_title {
    font-size: 18px;
    line-height: 20px;
  }

  .casco_header {
    padding: 20px 20px 0 20px;
  }
}

@media screen and (max-width: 450px) {
  #casco-calculator #agentNameBlock {
    flex-direction: column;
  }

  #casco-calculator #agentNameBlock {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    flex-direction: column;
  }
}

@media only screen and (max-width: 350px) {
  .calculator_wrapper.accord {
    flex-direction: column;
  }

  .calculator_wrapper .terms-accord {
    width: 100%;
    margin: 10px 0;
  }

  .button_navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    margin-bottom: 20px;
  }

  .offer-card__icons
    ul
    > li:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)) {
    display: none;
  }

  .offer-card__price .offer-card__cta {
    width: 130px;
    min-width: 130px;
  }
}
