:root {
  --main-blue: #1b69bf;
  --light-gray: #f2f5f8;
  --border-color: #dbe2e9;
  --text-blue: #2e61a8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.container-head {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
}

.top-nav {
  background-color: var(--main-blue);
  height: 64px;
  color: white;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.right-section {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 25px;
}

.login-btn {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}

.search-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.sub-nav {
  background-color: var(--light-gray);
  height: 42px;
  border-bottom: 1px solid var(--border-color);
}

.menu-items {
  display: flex;
  list-style: none;
  height: 100%;
}

.menu-items li {
  border-right: 1px solid var(--border-color);
}

.menu-items li:first-child {
  border-left: 1px solid var(--border-color);
}

.menu-items a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  text-decoration: none;
  color: var(--text-blue);
  font-size: 13px;
  font-weight: 800;
  height: 100%;
  transition: background 0.2s;
}

.menu-items a:hover {
  background: #e8ecef;
}

.info-panel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--text-blue);
}

.info-panel .label {
  font-weight: 800;
  color: #1a4175;
}

.info-panel .date {
  color: #5579a6;
}

.weather {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: white;
  display: block;
}

@media (max-width: 1024px) {
  .sub-nav {
    display: none;
  }

  .search-icon {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .top-nav {
    height: 56px;
  }

  .logo-circle {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .brand-name {
    font-size: 19px;
  }

  .right-section {
    flex-direction: row;
  }
}

nav {
  display: flex !important;
}

.container-head-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 876px) {
  .sub-nav {
    display: none !important;
  }
}

.main-footer {
  background-color: #1b69bf;
  color: white;
  padding: 40px 0 30px;
  font-size: 13px;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-categories {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
}

.footer-categories a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  margin: 20px 0;
}

.footer-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-links a {
  color: white;
  text-decoration: none;
}

.info-links span {
  margin: 0 8px;
  opacity: 0.7;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-link {
  color: white;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-legal {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.legal-row {
  margin-bottom: 10px;
}

.legal-row a {
  color: white;
  text-decoration: none;
}

.legal-row span {
  margin: 0 5px;
}

.copyright-text {
  font-size: 12px;
  margin-top: 15px;
  opacity: 0.8;
  max-width: 900px;
  margin-left: auto;
  color: white !important;
  margin-right: auto;
}

.h2-head {
  font-size: 24px;
}

@media (max-width: 768px) {
  .footer-categories {
    display: none;
  }

  .footer-info-row {
    gap: 20px;
    text-align: center;
  }

  .info-links {
    font-size: 16px;
  }

  .legal-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .legal-row span {
    display: inline;
  }

  .copyright-text {
    padding: 0 10px;
  }

  @media (max-width: 714px) {
    .footer-categories {
      display: none !important;
    }

    .divider {
      display: none;
    }

    .footer-info-row {
      margin-bottom: 40px;
    }

    .footer-info-row {
      justify-content: space-around;
    }

    .info-links a {
      font-size: 13px;
    }
  }

  .h2-head {
    font-size: 18px;
  }
}

:root {
  --accent-blue: #007bff;
  --bg-light-blue: #f0f7ff;
}

.quote-container {
  margin: 40px auto;
}

.ramka {
  position: relative;
  background-color: var(--bg-light-blue);
  border-left: 5px solid var(--accent-blue);
  padding: 30px 40px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
  margin: 0;
}

.quote-mark {
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 80px;
  color: var(--accent-blue);
  opacity: 0.15;
  font-family: serif;
  line-height: 1;
}

.ramka p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.ramka cite {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-blue);
  font-style: normal;
  text-align: right;
}

@media (max-width: 768px) {
  .ramka {
    padding: 25px 30px;
  }

  .ramka p {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .ramka {
    padding: 20px 20px;
    border-left-width: 4px;
  }

  .ramka p {
    font-size: 16px;
    line-height: 1.5;
  }

  .quote-mark {
    font-size: 60px;
    top: -5px;
  }

  .ramka cite {
    font-size: 14px;
  }
}

p {
  font-weight: 400 !important;
  color: black !important;
}

.link-a {
  color: var(--accent-blue) !important;
}

:root {
  --accent-red: #e31e24;
  --bg-light-red: #fff5f5;
}

.quote-container {
  max-width: 850px;
  margin: 30px auto;
}

.ramka-red {
  position: relative;
  background-color: var(--bg-light-red);
  border-left: 6px solid var(--accent-red);
  padding: 40px 30px 30px 35px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(227, 30, 36, 0.08);
}

.status-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent-red);
  color: white;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0 0 4px 0;
}

.ramka-red p {
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .ramka-red {
    padding: 35px 25px 25px 25px;
  }

  .ramka-red p {
    font-size: 17px;
  }

  .calculator-result-row.highlight .calculator-result-value {
    font-size: 17px !important;
  }
}

@media (max-width: 480px) {
  .ramka-red {
    padding: 30px 20px 20px 15px;
    border-left-width: 5px;
  }

  .ramka-red p {
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
  }

  .status-badge {
    font-size: 10px;
    padding: 3px 10px;
  }
}

.comments-section {
  max-width: 900px;
  margin: 0 auto;
}

.header-c {
  border-bottom: 2px solid #4a90e2;
  width: fit-content;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.header-c h2 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.comment {
  display: flex;
  margin-bottom: 25px;
  padding-left: 10px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  margin-right: 12px;
  object-fit: cover;
}

.content {
  flex: 1;
}

.meta {
  font-size: 12px;
  color: #90949c;
  margin-bottom: 3px;
}

.name {
  color: #365899;
  font-weight: bold;
  cursor: pointer;
}

.name:hover {
  text-decoration: underline;
}

.text {
  font-size: 14px;
  line-height: 1.35;
  color: #1c1e21;
  margin: 0 0 5px 0;
}

.footer {
  font-size: 12px;
  color: #4267b2;
  cursor: pointer;
}

.footer:hover {
  text-decoration: underline;
}

.arrows {
  color: #ccd0d5;
  font-size: 10px;
  margin: 0 2px;
}

@media (max-width: 600px) {
  .avatar {
    width: 36px;
    height: 36px;
  }

  .text {
    font-size: 13px;
  }
}

.comment img {
  width: 48px !important;
  height: 48px !important;
}

@font-face {
  font-family: "SRG_SSR_Text_VF";
  src: url("/fonts/SRGSSRTypeVF_Text_W_Wght.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --t-body-bg: #f5f5f2;
  --t-a-color: #c91024;
  --t-a-color-hover: #8d0614;
  --t-a-color-active: #6a0b0c;

  --color-text-main: #22211d;
  --color-text-muted: #6b6960;
  --color-footer-bg: #fefefd;
  --color-border-soft: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.16);

  --layout-max-width: 1200px;
  --layout-page-max-width: 1440px;

  --gap: 16px;
  --transition-fast: 0.2s ease-in-out;
}

@media (min-width: 1024px) {
  :root {
    --gap: 24px;
  }
}

@media (max-width: 767px) {
  * {
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
    position: relative;
  }

  .main_wrapper,
  .StoryPage_storyPage__pageWrapper__XX6Kx,
  .StoryPage_storyPage__contentWrapper__9iCxC,
  .CardStoryPage_cardStoryPage__wrapper__HrNKt {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

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

html {
  overflow-x: hidden;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html,
body {
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body,
button,
input {
  margin: 0;
  font-family:
    "SRG_SSR_Text_VF",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-weight: 300;
  color: var(--color-text-main);
  background-color: var(--t-body-bg);
  width: 100%;
  max-width: 100%;
}

nav {
  display: inline;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  counter-reset: item;
}

h2,
h3 {
  font-weight: 500;
  font-variation-settings: "wght" 500;
}

a {
  color: var(--t-a-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--t-a-color-hover);
}

a:active {
  color: var(--t-a-color-active);
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-style: none;
}

button,
input {
  font-family: inherit;
}

*:focus {
  outline: none;
}

.main_wrapper {
  position: relative;
  padding-top: 30px;
  line-height: 1.5;
  background-color: #ffffff;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.StoryPage_storyPage__pageWrapper__XX6Kx {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--layout-page-max-width);
  margin: 0 auto 24px;
}

@media (min-width: 834px) {
  .StoryPage_storyPage__pageWrapper__XX6Kx {
    margin-bottom: 25px;
    padding: 0 16px 24px;
  }
}

@media screen and (min-width: 834px) {
  .StoryPage_storyPage__pageWrapper__XX6Kx {
    padding: 0 32px;
  }
}

.StoryPage_storyPage__contentWrapper__9iCxC,
.main_wrapper {
  position: relative;
}

@media (min-width: 540px) {
  .StoryPage_storyPage__contentWrapper__9iCxC {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }
}

@media screen and (max-width: 1024px) {
  .StoryPage_storyPage__contentWrapper__9iCxC {
    flex-direction: column !important;
  }
}

@media (min-width: 834px) {
  .StoryPage_storyPage__contentWrapper__9iCxC {
    flex-direction: row;
  }
}

.CardStoryPage_cardStoryPage__wrapper__HrNKt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  background-color: #fff;
}

@media (min-width: 0px) {
  .CardStoryPage_cardStoryPage__wrapper__HrNKt {
    height: fit-content;
  }
}

@media screen and (max-width: 1024px) {
  .CardStoryPage_cardStoryPage__wrapper__HrNKt {
    width: 100% !important;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

@media (min-width: 834px) {
  .CardStoryPage_cardStoryPage__wrapper__HrNKt {
    width: 70%;
    margin-right: 15px;
  }
}

@media (min-width: 1200px) {
  .CardStoryPage_cardStoryPage__wrapper__HrNKt {
    width: 70%;
    max-width: 1185px;
    margin-right: 15px;
  }
}

.StoryPageBody_spBody__bodyText__o0Kku::-webkit-scrollbar-vertical {
  width: 0;
}

.StoryPageBody_spBody__bodyText__o0Kku::-webkit-scrollbar-button:increment {
  display: none;
}

.StoryPageBody_spBody__bodyText__o0Kku::-webkit-scrollbar-horizontal {
  height: 11px;
  background-color: #f4f4f4;
}

.StoryPageBody_spBody__HTMLBodyText__FEUdL {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.StoryPageBody_spBody__HTMLBodyText__FEUdL img {
  display: block;
  width: 100%;
  height: auto;
}

.StoryPageBody_spBody__HTMLBodyText__FEUdL a {
  text-underline-position: under;
  color: #c91024;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 834px) {
  .StoryPageBody_spBody__HTMLBodyText__FEUdL {
    gap: 16px;
    font-size: 16px;
  }

  .StoryPageBody_spBody__HTMLBodyText__FEUdL a {
    line-height: 24px;
  }
}

@media (min-width: 1200px) {
  .StoryPageBody_spBody__HTMLBodyText__FEUdL {
    font-size: 18px;
  }
}

.footer {
  --t-footer: #22211d;
  --t-footer-bg: #fefefd;

  box-shadow:
    0 0 1px 0 rgba(0, 0, 0, 0.16),
    0 0 1px 0 rgba(0, 0, 0, 0.08);
  opacity: 1;
  color: var(--t-footer);
  background: var(--t-footer-bg);
  pointer-events: auto;
}

.StoryPageBody_spBody__HTMLBodyText__FEUdL a {
  color: red;
  font-weight: 700;
  text-decoration: none;
}

p {
  margin: 1rem 0;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 900px;
    padding: 0 30px;
  }
}

.article-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  margin: 25px 0 20px;
  color: #1a1a1a;
}

@media (max-width: 600px) {
  .article-title {
    font-size: 22px;
    margin: 20px 0 15px;
  }
}

@media (min-width: 768px) {
  .article-title {
    font-size: 30px;
  }
}

.article-lead {
  font-size: 17px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .article-lead {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.calculator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 30px 20px;
  margin: 30px 0;
  color: #fff;
}

.calculator-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

.calculator-slider-container {
  margin-bottom: 25px;
}

.calculator-value-display {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.calculator-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.calculator-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.8;
}

.calculator-results {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
}

.calculator-result-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-result-row:last-child {
  border-bottom: none;
}

.calculator-result-label {
  opacity: 0.9;
}

.calculator-result-value {
  font-weight: 700;
  font-size: 18px;
}

.calculator-result-row.highlight {
  background: rgba(255, 255, 255, 0.1);
  margin: 10px -20px -20px;
  padding: 15px 20px;
  border-radius: 0 0 12px 12px;
}

.calculator-result-row.highlight .calculator-result-value {
  color: #ffd700;
  font-size: 24px;
}

.form-section {
  background: #fff;
  border: 2px solid #d32f2f;
  border-radius: 16px;
  padding: 30px 20px;
  margin: 30px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .form-section {
    padding: 20px 15px;
    margin: 20px 0;
  }
}

.form-live-counter {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 20px;
}

.form-live-label {
  font-size: 13px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.form-live-pulse {
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.form-live-value {
  font-size: 42px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .form-live-value {
    font-size: 32px;
  }
}

.form-live-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 5px;
}

.form-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.form-stat {
  background: #f8f9fa;
  padding: 12px 10px;
  border-radius: 10px;
  text-align: center;
}

.form-stat-value {
  font-weight: 700;
  font-size: 16px;
  color: #1a237e;
}

.form-stat-label {
  font-size: 10px;
  color: #666;
}

.form-urgency {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.form-urgency strong {
  color: #d32f2f;
}

.form-guarantee {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.form-guarantee p {
  font-size: 14px;
  color: #2e7d32;
  margin: 0;
}

.comments-section {
  margin: 30px 0;
  padding-top: 30px;
  border-top: 1px solid #eee;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .comments-section {
    margin: 20px 0;
    padding-top: 20px;
  }
}

.comment {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
  border-bottom: none;
}

@media (max-width: 600px) {
  .form-stats {
    grid-template-columns: 1fr;
  }

  .calculator-results {
    padding: 15px;
  }

  .form-live-counter {
    padding: 15px;
  }

  .comment {
    flex-direction: column;
  }
}

@media (min-width: 601px) and (max-width: 1023px) {
  .container {
    max-width: 800px;
  }

  .form-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .calculator-result-row.highlight {
    margin: 0 !important;
    border-radius: 0;
  }
}
