/* Tariffs page — /tarife/ and /ru/tarify/ — scoped lm-tariffs-* */

body.lm-tariffs-active .site-content,
body.lm-tariffs-active .elementor-section-wrap,
body.lm-tariffs-active .elementor-widget-shortcode {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body .lm-tariffs-page {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  background: #f3f7fc;
  color: #0b2447;
}

@media (min-width: 1025px) {
  body .lm-tariffs-page {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

body .lm-tariffs-page *,
body .lm-tariffs-page *::before,
body .lm-tariffs-page *::after {
  box-sizing: border-box;
}

.lm-tariffs-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.lm-tariffs-hero {
  padding: 48px 0 56px;
  background:
    linear-gradient(135deg, rgba(246, 249, 253, 0.98) 0%, rgba(232, 241, 252, 0.92) 55%, rgba(219, 232, 246, 0.78) 100%),
    var(--lm-tariffs-hero-image, none);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(11, 36, 71, 0.08);
}

.lm-tariffs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.lm-tariffs-eyebrow {
  margin: 0 0 10px;
  color: #0b3a75;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lm-tariffs-hero__title {
  margin: 0 0 14px;
  color: #082342;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.lm-tariffs-hero__text {
  margin: 0 0 22px;
  max-width: 620px;
  color: #5d6d83;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  font-weight: 500;
}

.lm-tariffs-hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 16px;
  align-items: center;
}

.lm-tariffs-hero__image-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 36, 71, 0.12);
  background: #dbe8f6;
}

.lm-tariffs-hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lm-tariffs-hero__notice {
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(11, 36, 71, 0.08);
  box-shadow: 0 14px 34px rgba(11, 36, 71, 0.08);
}

.lm-tariffs-hero__notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(34, 168, 99, 0.12);
  color: #16a34a;
}

.lm-tariffs-hero__notice-title {
  margin: 0 0 8px;
  color: #082342;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.lm-tariffs-hero__notice-text {
  margin: 0;
  color: #5d6d83;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

/* Buttons */
.lm-tariffs-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lm-tariffs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm-tariffs-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.lm-tariffs-btn--gold {
  background: linear-gradient(135deg, #ffd34d 0%, #f6b900 100%);
  color: #082342;
  box-shadow: 0 12px 28px rgba(246, 185, 0, 0.24);
}

.lm-tariffs-btn--blue {
  background: #082f63;
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 47, 99, 0.2);
}

.lm-tariffs-btn--white {
  background: #fff;
  color: #082f63;
  border: 1px solid rgba(8, 47, 99, 0.12);
  box-shadow: 0 10px 24px rgba(8, 47, 99, 0.07);
}

/* Plans */
.lm-tariffs-plans {
  padding: 44px 0 36px;
  background: #fff;
}

.lm-tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.lm-tariffs-plan {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11, 36, 71, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.lm-tariffs-plan--standard {
  border-top: 4px solid #16a34a;
}

.lm-tariffs-plan--pro {
  border-top: 4px solid #2563eb;
}

.lm-tariffs-plan--pro-max {
  border-top: 4px solid #f97316;
}

.lm-tariffs-plan__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.lm-tariffs-plan--standard .lm-tariffs-plan__badge {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.lm-tariffs-plan--pro .lm-tariffs-plan__badge {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.lm-tariffs-plan--pro-max .lm-tariffs-plan__badge {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
}

.lm-tariffs-plan__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #fff;
}

.lm-tariffs-plan--standard .lm-tariffs-plan__icon {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.lm-tariffs-plan--pro .lm-tariffs-plan__icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.lm-tariffs-plan--pro-max .lm-tariffs-plan__icon {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.lm-tariffs-plan__title {
  margin: 0 0 10px;
  color: #082342;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.lm-tariffs-plan--standard .lm-tariffs-plan__feature--price {
  color: #15803d;
  font-weight: 800;
}

.lm-tariffs-plan--standard .lm-tariffs-plan__feature--price:nth-last-child(2) {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 163, 74, 0.16);
}

.lm-tariffs-plan--standard .lm-tariffs-plan__feature--price .lm-tariffs-plan__check {
  background: rgba(22, 163, 74, 0.18);
  color: #15803d;
}

.lm-tariffs-plan__description {
  margin: 0 0 18px;
  color: #5d6d83;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.lm-tariffs-plan__features {
  flex: 1 1 auto;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.lm-tariffs-plan__feature--free {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  color: #15803d;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.lm-tariffs-plan__feature--free span {
  display: block;
}

.lm-tariffs-plan__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.lm-tariffs-plan__feature:last-child {
  margin-bottom: 0;
}

.lm-tariffs-plan__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
}

.lm-tariffs-plan--standard .lm-tariffs-plan__check {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.lm-tariffs-plan--pro .lm-tariffs-plan__check {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.lm-tariffs-plan--pro-max .lm-tariffs-plan__check {
  background: rgba(249, 115, 22, 0.14);
  color: #ea580c;
}

.lm-tariffs-plan__footer {
  margin-top: auto;
  padding-top: 8px;
}

.lm-tariffs-plan__status {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.lm-tariffs-plan--standard .lm-tariffs-plan__status {
  color: #15803d;
}

.lm-tariffs-plan--pro .lm-tariffs-plan__status,
.lm-tariffs-plan--pro-max .lm-tariffs-plan__status {
  color: #64748b;
}

.lm-tariffs-plan__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.22);
  transition: transform 0.2s ease;
}

.lm-tariffs-plan__cta:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.lm-tariffs-plan__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: #eef2f7;
  border: 1px dashed rgba(100, 116, 139, 0.35);
  color: #64748b;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.lm-tariffs-plan--pro .lm-tariffs-plan__pill {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}

.lm-tariffs-plan--pro-max .lm-tariffs-plan__pill {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.24);
  color: #c2410c;
}

/* Info blocks */
.lm-tariffs-info {
  padding: 36px 0;
  background: #f3f7fc;
}

.lm-tariffs-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lm-tariffs-info-card {
  padding: 24px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11, 36, 71, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.lm-tariffs-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(11, 58, 117, 0.08);
  color: #0b3a75;
}

.lm-tariffs-info-card__title {
  margin: 0 0 12px;
  color: #082342;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.lm-tariffs-info-card__text {
  margin: 0 0 12px;
  color: #5d6d83;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

.lm-tariffs-info-card__text:last-child {
  margin-bottom: 0;
}

.lm-tariffs-now-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.lm-tariffs-now-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.lm-tariffs-now-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(11, 58, 117, 0.08);
  color: #0b3a75;
}

/* News notice */
.lm-tariffs-notice {
  padding: 0 0 36px;
  background: #f3f7fc;
}

.lm-tariffs-notice__box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(11, 58, 117, 0.12);
  box-shadow: 0 8px 22px rgba(11, 36, 71, 0.04);
}

.lm-tariffs-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(11, 58, 117, 0.08);
  color: #0b3a75;
}

.lm-tariffs-notice__title {
  margin: 0 0 10px;
  color: #082342;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.lm-tariffs-notice__text,
.lm-tariffs-notice__extra {
  margin: 0 0 10px;
  color: #5d6d83;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

.lm-tariffs-notice__extra {
  margin-bottom: 0;
}

/* Final CTA */
.lm-tariffs-cta {
  padding: 0 0 52px;
  background: #f3f7fc;
}

.lm-tariffs-cta__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px 22px;
  align-items: center;
  padding: 24px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef5fd 0%, #e3eefb 100%);
  border: 1px solid rgba(11, 58, 117, 0.1);
  box-shadow: 0 12px 30px rgba(11, 36, 71, 0.06);
}

.lm-tariffs-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lm-tariffs-cta__title {
  margin: 0 0 8px;
  color: #082342;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 900;
}

.lm-tariffs-cta__text {
  margin: 0;
  color: #5d6d83;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

.lm-tariffs-btn-group--final {
  justify-content: flex-end;
}

/* Tablet */
@media (max-width: 1024px) {
  .lm-tariffs-hero__grid {
    grid-template-columns: 1fr;
  }

  .lm-tariffs-hero__visual {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  }

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

  .lm-tariffs-grid .lm-tariffs-plan--pro-max {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    justify-self: center;
  }

  .lm-tariffs-cta__grid {
    grid-template-columns: auto 1fr;
  }

  .lm-tariffs-btn-group--final {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .lm-tariffs-hero {
    padding: 34px 0 40px;
  }

  .lm-tariffs-hero__visual {
    grid-template-columns: 1fr;
  }

  .lm-tariffs-grid,
  .lm-tariffs-info__grid,
  .lm-tariffs-now-grid {
    grid-template-columns: 1fr;
  }

  .lm-tariffs-grid .lm-tariffs-plan--pro-max {
    max-width: none;
  }

  .lm-tariffs-btn-group,
  .lm-tariffs-btn-group--hero,
  .lm-tariffs-btn-group--final {
    flex-direction: column;
    align-items: stretch;
  }

  .lm-tariffs-btn {
    width: 100%;
  }

  .lm-tariffs-notice__box {
    flex-direction: column;
  }

  .lm-tariffs-cta__grid {
    grid-template-columns: 1fr;
  }

  .lm-tariffs-cta__icon {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .lm-tariffs-inner {
    padding: 0 16px;
  }

  .lm-tariffs-plan,
  .lm-tariffs-info-card,
  .lm-tariffs-notice__box,
  .lm-tariffs-cta__grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lm-tariffs-hero__title {
    font-size: 30px;
  }
}
