:root {
  --bg: #f5f7fb;
  --ink: #18202b;
  --muted: #647180;
  --line: #dfe5ed;
  --brand: #174f7a;
  --brand-dark: #0e2d47;
  --accent: #f2a24a;
  --green: #2f8d68;
  --red: #b74747;
  --surface: #ffffff;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(24, 32, 43, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  width: 118px;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  font-weight: 700;
}

.brand-text {
  max-width: 230px;
  color: var(--muted);
  font-size: 14px;
}

.site-header .brand-text {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.main-nav a,
.callback-link,
.auth-link {
  text-decoration: none;
}

.auth-link {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--brand);
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.callback-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  color: var(--brand);
  background: transparent;
  border: 1px solid #a9bfd0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.callback-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 8px 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  min-height: 650px;
  padding: 92px 32px 48px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 31, 50, .94), rgba(18, 63, 96, .76)),
    url("../img/hero-pattern.svg"),
    var(--brand-dark);
  background-size: cover;
}

.hero-content,
.section {
  max-width: 1180px;
  width: 100%;
  margin-inline: auto;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 58px;
  line-height: 1.04;
  font-weight: 700;
}

.hero-copy {
  max-width: 750px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button-primary {
  color: #fff;
  border-color: #df8b33;
  background: #f2a24a;
}

.button-primary:hover { background: #df8b33; }

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
}

.button-outline {
  color: var(--brand);
  border-color: #c7d6e2;
  background: #fff;
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .18);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 24px;
  background: rgba(7, 25, 42, .75);
}

.hero-panel strong {
  display: block;
  font-size: 32px;
}

.hero-panel span { color: rgba(255, 255, 255, .78); }

.section { padding: 76px 32px; }

.section h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.18;
}

.section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head p:not(.eyebrow),
.section p {
  color: var(--muted);
}

.muted {
  max-width: none;
  background: #ebf0f5;
}

.muted > * {
  max-width: 1180px;
  margin-inline: auto;
}

.product-grid,
.feature-grid,
.review-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.feature-item,
.form-card,
.contact-card,
.review-grid blockquote,
.stats-grid article,
.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(24, 32, 43, .14);
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 18px;
  border-radius: 6px;
  background: transparent;
}

.product-image-logo {
  height: 220px;
  padding: 6px;
  background: transparent;
}

.product-image-wmt {
  height: 180px;
  padding-left: 0;
  padding-right: 0;
}

.product-card-plain {
  border-top: 4px solid #2f8d68;
}

.product-card-accent {
  border-top: 4px solid #1147D7;
}

.product-card-dark {
  color: var(--ink);
  border-top: 4px solid #6d5df6;
}

.product-card-dark p{
  color: var(--muted);
}

.product-card-dark .button-outline {
  color: var(--brand);
  border-color: #c7d6e2;
  background: #fff;
}

.product-tag {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.product-card h3,
.feature-item h3,
.stats-grid h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.product-card p,
.feature-item p,
.review-grid p,
.stats-grid p {
  color: var(--muted);
}

.product-points {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.product-points li::marker {
  color: var(--brand);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px;
}

.feature-item h3,
.feature-item p {
  grid-column: 2;
}

.info-icon,
.stat-icon {
  display: block;
  width: 56px;
  height: 56px;
  padding: 12px;
  border-radius: 8px;
  background: #eaf3fa;
  object-fit: contain;
}

.application-band {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 36px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #285c6c 60%, #6f7638);
  border-radius: 0;
  max-width: none;
  padding-inline: max(32px, calc((100vw - 1180px) / 2 + 32px));
}

.application-band h2,
.application-band p { color: #fff; }

.application-copy {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.logo-slider {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
}

.logo-slider-viewport {
  overflow: hidden;
}

.logo-slider-track {
  display: flex;
  gap: 14px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding: 3px;
}

.logo-slider-track::-webkit-scrollbar { display: none; }

.logo-slider-track img {
  flex: 0 0 calc((100% - 42px) / 4);
  height: 88px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.slider-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.logo-grid img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.platforms img { height: 108px; }

.review-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; }

.center-action {
  display: flex;
  justify-content: center;
}

.products-more {
  margin-top: 26px;
}

.review-grid blockquote {
  margin: 0;
  padding: 22px;
}

.review-grid cite {
  display: block;
  margin-top: 16px;
  color: var(--brand);
  font-style: normal;
  font-weight: 700;
}

.team-section {
  max-width: none;
  background: #fff;
}

.team-section .section-head,
.team-section .stats-grid {
  max-width: 1180px;
  margin-inline: auto;
}

.stats-grid article {
  padding: 26px;
}

.stats-grid strong {
  display: block;
  margin: 18px 0 4px;
  color: var(--brand);
  font-size: 34px;
}

.guarantee-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: center;
  color: var(--ink);
  background: #eef2f6;
  max-width: none;
  padding-inline: max(32px, calc((100vw - 1180px) / 2 + 32px));
}

.guarantee-photo img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
  background: transparent;
}

.guarantee-copy h2,
.guarantee-copy p { color: var(--ink); }

.guarantee-copy p {
  color: var(--muted);
}

.guarantee-copy strong {
  font-style: italic;
}

.quote-section {
  padding: 54px 32px;
  background: #fff;
}

.usage-section {
  max-width: none;
  color: #fff;
  background: var(--brand-dark);
}

.usage-section .section-head,
.usage-section .logo-grid {
  max-width: 1180px;
  margin-inline: auto;
}

.usage-section h2,
.usage-section .eyebrow {
  color: #fff;
}

.usage-section .platforms img {
  border-color: rgba(255,255,255,.18);
}

.quote-section blockquote {
  max-width: 960px;
  margin: 0 auto;
  color: var(--brand);
  font-size: 24px;
  line-height: 1.4;
}

.quote-section cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  font-style: normal;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr);
  gap: 38px;
  align-items: start;
}

.form-card,
.modal-form,
.feedback-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea { resize: vertical; }

.site-footer {
  width: 100%;
  color: #dce8f2;
  background: var(--brand-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr .75fr .9fr .9fr;
  gap: 34px;
  max-width: 1180px;
  margin-inline: auto;
  padding: 38px 32px 30px;
}

.footer-logo {
  width: 112px;
  margin-bottom: 10px;
}

.footer-slogan {
  max-width: 260px;
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.45;
}

.footer-legal,
.footer-note,
.social-links {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 32px;
}

.footer-inner .social-links {
  max-width: none;
  margin: 0;
  padding: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
}

.social-links {
  display: grid;
  gap: 10px;
  align-content: start;
  margin-top: 0;
  padding: 0;
  color: #fff;
  font-size: 13px;
}

.social-links h3,
.footer-contacts h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
}

.social-links img {
  width: 18px;
  height: 18px;
}

.footer-note {
  padding-top: 12px;
  padding-bottom: 22px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  line-height: 1.45;
}

.contact-line {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 10px 0;
}

.contact-line img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-inner nav,
.footer-contacts {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contacts img {
  width: 17px;
  height: 17px;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
}

.mobile-menu-title {
  display: none;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.article-figure {
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.article-figure img {
  width: 100%;
  border-radius: 6px;
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.form-note {
  font-size: 14px;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.product-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-detail-image {
  height: 260px;
  margin-inline: auto;
}

.product-content-page {
  max-width: 1040px;
}

.product-main-figure {
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}

.legacy-product-content {
  display: grid;
  gap: 22px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
}

.legacy-product-content .container {
  width: 100%;
}

.legacy-product-content .row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legacy-product-content [class*="col-sm-"] {
  flex: 1 1 280px;
  min-width: 0;
}

.legacy-product-content p {
  margin: 0 0 14px;
  color: var(--ink);
}

.legacy-product-content span {
  line-height: inherit;
}

.legacy-product-content h1,
.legacy-product-content h2,
.legacy-product-content h3 {
  margin: 28px 0 14px;
  line-height: 1.2;
}

.legacy-product-content h1 {
  color: var(--brand);
  font-size: 30px;
}

.legacy-product-content h2 {
  font-size: 26px;
}

.legacy-product-content h3 {
  font-size: 22px;
}

.legacy-product-content img,
.legacy-product-content video,
.legacy-product-content iframe {
  max-width: 100%;
  height: auto;
}

.legacy-product-content img[style*="float"] {
  float: none !important;
  margin: 8px auto 18px !important;
}

.legacy-product-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.legacy-product-content picture img,
.legacy-product-content .img-responsive {
  margin-inline: auto;
}

.legacy-product-content .btn,
.legacy-product-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #df8b33;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.legacy-product-content hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.legacy-product-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.legacy-product-content tbody {
  display: table;
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.legacy-product-content td,
.legacy-product-content th {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

.legacy-product-content tr:first-child td,
.legacy-product-content td[colspan] {
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}

.legacy-product-content tr:first-child td {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--brand-dark);
  text-transform: uppercase;
  font-size: 13px;
}

.legacy-product-content tr:nth-child(even):not(:first-child) td:not([colspan]) {
  background: #f8fafc;
}

.legacy-product-content table td:nth-child(1) {
  width: 22%;
  font-weight: 700;
}

.legacy-product-content table td:nth-child(2) {
  width: 48%;
}

.legacy-product-content table td:nth-child(3) {
  width: 16%;
  text-align: center;
}

.legacy-product-content table td:nth-child(4) {
  width: 14%;
  text-align: center;
  color: var(--muted);
}

.legacy-product-content table a[href*="../soft/freesoft"],
.legacy-product-content table a[href*="octopus-ultima-trader"],
.legacy-product-content table a[href*="uchebnik-po-tehnicheskomu-analizu"] {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid #c7d6e2;
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legacy-product-content table a[href*="../soft/freesoft"] {
  color: #fff;
  border-color: #df8b33;
  background: var(--accent);
}

.legacy-product-content table a span {
  color: inherit !important;
}

.legacy-product-content .ccm-custom-style-main-1827 {
  margin: 28px 0;
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: var(--shadow);
}

.legacy-product-content .ccm-custom-style-main-1827 h2,
.legacy-product-content .ccm-custom-style-main-1827 span,
.legacy-product-content .ccm-custom-style-main-1827 p {
  color: #fff !important;
}

.legacy-product-content .ccm-custom-style-main-1827 .btn {
  border-color: #df8b33;
  background: var(--accent);
}

.legacy-product-content .ccm-custom-style-main184-14755,
.legacy-product-content .ccm-custom-style-main-1827 {
  max-width: 100%;
}

.legacy-product-content .recovered-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 10px;
}

.legacy-product-content .recovered-reviews-grid > div {
  display: flex;
}

.legacy-product-content .review-text {
  height: 100%;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.legacy-product-content .review-text p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.legacy-product-content .review-author {
  display: block;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

.legacy-product-content .recovered-all-reviews {
  display: flex;
  justify-content: center;
  margin: 16px 0 0;
}

.legacy-product-content .recovered-all-reviews a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #c7d6e2;
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.legacy-source-block {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.legacy-source-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.share-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.share-widget a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.review-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.review-filter a,
.review-product {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.review-filter a {
  color: var(--brand);
  background: #fff;
}

.review-filter a.is-active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.review-product {
  color: var(--brand);
  background: #eef4f8;
}

.table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--brand);
  background: #eef4f8;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 32px;
  align-items: start;
}

.payment-main,
.payment-aside,
.payment-card,
.payment-notes article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.payment-main,
.payment-aside,
.payment-card {
  padding: 26px;
}

.payment-main h2,
.payment-aside h2,
.payment-card h2 {
  margin-top: 0;
}

.payment-qr {
  display: grid;
  place-items: center;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.payment-qr img {
  width: min(360px, 100%);
}

.payment-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.payment-notes article {
  padding: 20px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.payment-form {
  margin-top: 20px;
}

.payment-tariff img {
  max-height: 540px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .product-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.is-open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 28, .62);
}

.modal-dialog {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  margin: 9vh auto;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-dialog h2 { margin: 0 34px 18px 0; }

.auth-dialog {
  width: min(540px, calc(100vw - 32px));
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.is-active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.auth-panel {
  display: none;
  padding: 0;
  box-shadow: none;
  border: 0;
}

.auth-panel.is-active {
  display: grid;
}

.social-auth {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.social-auth span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.social-auth div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-auth a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.social-auth img {
  width: 18px;
  height: 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
}

.page-hero {
  padding: 70px 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #2e6874);
}

.page-hero-inner {
  max-width: 1180px;
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: 44px;
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.86);
  font-size: 19px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card { padding: 24px; }

.contact-card h2,
.article-card h2 { margin-top: 0; }

.contact-card a,
.contact-line {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.contact-line img {
  flex: 0 0 auto;
}

.contact-visual {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  padding: 24px;
}

.article-card a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.content-page {
  max-width: 900px;
  margin-inline: auto;
}

.content-page h2 { margin-top: 34px; }

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.pagination .current {
  color: #fff;
  background: var(--brand);
}

@media (max-width: 1000px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 18px;
    z-index: 150;
  }

  .nav-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 0;
  }

  .nav-toggle span {
    display: block;
    width: 21px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
    transition: transform .18s ease, opacity .18s ease;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: #fff;
    box-shadow: none;
    transform: none;
    transition: max-height .22s ease, padding-top .22s ease, border-top-color .22s ease;
  }

  .main-nav.is-open {
    max-height: 520px;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }

  .mobile-menu-title {
    display: block;
    order: 2;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .auth-link {
    order: 1;
    margin-bottom: 18px;
  }

  .main-nav a {
    order: 3;
  }

  .callback-link {
    order: 4;
    margin-top: 18px;
  }

  .main-nav a,
  .main-nav button {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .split,
  .application-band,
  .guarantee-section,
  .contact-visual {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-catalog,
  .feature-grid,
  .review-grid.compact,
  .legacy-product-content .recovered-reviews-grid,
  .stats-grid,
  .contact-grid,
  .article-list,
  .payment-layout,
  .payment-notes {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner > nav {
    display: none;
  }

  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .logo-slider {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .logo-slider-track img {
    flex-basis: 72%;
    height: 82px;
  }

  .slider-button {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: auto;
    padding: 64px 18px 30px;
  }

  .hero h1,
  .page-hero h1 { font-size: 38px; }

  .section,
  .page-hero,
  .quote-section {
    padding: 54px 18px;
  }

  .application-band,
  .guarantee-section {
    padding-inline: 18px;
  }

  .feature-item {
    grid-template-columns: 1fr;
  }

  .feature-item h3,
  .feature-item p {
    grid-column: auto;
  }

  .footer-inner,
  .footer-legal,
  .footer-note,
  .social-links {
    padding-inline: 18px;
  }

  .social-links {
    display: grid;
    padding-left: 0;
    margin-left: 0;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .legacy-product-content .recovered-reviews-grid {
    grid-template-columns: 1fr;
  }
}

.form-note span.required,
label span.required{
  color: red;
  display: contents;
}
