/* ==========================================================================
   NewKey — Pricing page
   Только стили содержимого страницы.
   Шапка, меню, locale UI, footer и общие базовые компоненты должны идти
   из common.css, подключенного перед этим файлом.
   ========================================================================== */

:root {
  --bg: #e9f0f4;
  --bg2: #f4f7f9;
  --ink: #173148;
  --muted: #627987;
  --line: #d8e2e8;
  --blue: #288eff;
  --purple: #2f2963;
  --green: #189b63;
  --white: #fff;
  --shadow: 0 22px 60px rgba(37, 66, 83, .13);
}

body{margin:0;background:var(--bg2);color:var(--ink);font-family:Rubik,Arial,sans-serif;font-weight:300; padding-top: 92px;}

.container{width:min(1320px,calc(100% - 48px));margin-inline:auto}

.site-header {background: #e9f0f4;box-shadow: 0 1px 0 rgba(27, 58, 78, .06);}

.fixed-brand {opacity: 1; transform: none;}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 30px;
  background: linear-gradient(135deg, #edf3f7, #dfeaf1);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.eyebrow,
.section-head > span {
  display: block;
  margin-bottom: 12px;
  color: #39718f;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto;
  color: #173148;
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 300;
}

.hero p {
  max-width: 680px;
  margin: 14px auto 0;
  color: #58707e;
  font-size: 16px;
  line-height: 1.55;
}

.billing {
  width: max-content;
  margin: 20px auto 0;
  padding: 4px;
  display: flex;
  
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(46, 78, 98, .11);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 34px rgba(44, 77, 97, .1);
}

[dir="rtl"] .billing {direction: rtl;}

.billing button {
  height: 42px;
  padding: 0 25px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #657a88;
  cursor: pointer;
}

.billing button.is-active {
  background: #fff;
  color: #173148;
  box-shadow: 0 5px 16px rgba(44, 77, 97, .14);
  font-weight: 500;
}

.save-chip {
  margin-inline: 8px 10px;
  padding: 7px 12px;
  border-radius: 20px;
  background: #e1f5e9;
  color: #168a55;
  font-size: 12px;
  font-weight: 500;
}

/* ==========================================================================
   Decorative patterns
   ========================================================================== */

.pattern {
  position: absolute;
  pointer-events: none;
  overflow: hidden;
  opacity: .45;
}

.pattern svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pattern .nk-tile {
  fill: rgba(40, 142, 255, .16);
  transition: fill .5s ease, filter .5s ease;
}

.pattern .nk-tile.is-lit {
  fill: rgba(40, 142, 255, .6);
  filter: drop-shadow(0 0 7px rgba(40, 142, 255, .4));
}

.pattern--hero {
  inset: 10px -80px auto auto;
  width: min(900px, 68vw);
  height: 120px;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

/* ==========================================================================
   Pricing plans
   ========================================================================== */

.plans-section {
  padding: 36px 0 44px;
}

.section-head {
  max-width: 660px;
  margin-bottom: 30px;
}

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

.section-head h2 {
  margin: 0;
  color: #173148;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -.035em;
}

.section-head p {
  margin: 10px 0 0;
  color: #69808e;
  font-size: 14px;
  line-height: 1.6;
}

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

[dir="rtl"] .plans-grid {direction: rtl;}

.plan-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #dce5ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(41, 69, 86, .08);
  overflow: hidden;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.plan-card--business {
  border: 2px solid var(--blue);
  box-shadow: 0 20px 55px rgba(40, 142, 255, .17);
}

.plan-card--premium {
  border-color: #4e4692;
}

.plan-badge {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 50%;
  transform: translate(50%, -1px);
  padding: 7px 19px;
  border-radius: 0 0 15px 15px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.plan-card--premium .plan-badge {
  background: var(--purple);
}

.plan-media {
  height: 180px;
  margin: 0;
  padding: 28px 14px 0;
  display: grid;
  place-items: end center;
  background: linear-gradient(180deg, #f8fafc, #f2f5f8);
  overflow: hidden;
}

.plan-media img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.plan-body {
  padding: 24px 22px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.plan-name {
  margin: 0;
  font-size: 23px;
  font-weight: 500;
}

.plan-price {
  min-height: 78px;
  margin-top: 14px;
}

.plan-price strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.035em;
}

.plan-price strong[hidden] {display: none;}

.plan-price strong .plan-vat {font-size: 0.5em;}

.plan-price small {
  display: block;
  margin-top: 8px;
  color: #71838f;
  font-size: 13px;
}

.plan-price small[hidden] {display: none;}

.plan-year {
  display: block;
  margin-top: 6px;
  color: #8a99a2;
  font-size: 12px;
}

.plan-price .plan-year[hidden] {display: none;}

.annual-only {
  display: inline-flex;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 12px;
  background: #eef0fb;
  color: #4a4383;
  font-size: 10px;
  font-weight: 500;
}

.plan-position {
  min-height: 45px;
  margin: 14px 0 16px;
  color: #596f7d;
  font-size: 14px;
  line-height: 1.55;
}

.plan-features {
  margin: 0 0 20px;
  padding: 16px 0 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid #e8edf0;
  list-style: none;
}

.plan-features li {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 8px;
  align-items: start;
  color: #405866;
  font-size: 13.5px;
  line-height: 1.48;
}

.plan-features svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
}

.plan-addon {
  margin: 0 0 14px;
  padding: 11px;
  border-radius: 8px;
  background: #f3f7fa;
  color: #536a78;
  font-size: 12.5px;
}

.plan-addon b {
  display: block;
  color: #213c4b;
  font-size: 13px;
}

.team-box {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f1f0f9;
}

.team-box strong {
  font-size: 11px;
}

.team-box div {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.team-box span {
  padding: 5px 7px;
  border-radius: 12px;
  background: #fff;
  color: #554e7d;
  font-size: 9px;
}

.plan-action {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 43px;
  margin-top: auto;
  border: 1px solid #d4dfe5;
  border-radius: 7px;
  background: #fff;
  color: #284250;
  cursor: pointer;
  font-weight: 500;
}

.plan-action:hover {
  border-color: var(--blue);
  color: #146cc2;
}

.plan-card--business .plan-action,
.plan-card--premium .plan-action {
  border-color: transparent;
  background: var(--purple);
  color: #fff;
}

.plan-card--business .plan-action:hover,
.plan-card--premium .plan-action:hover {
  background: var(--blue);
}

.plan-action:disabled {
  cursor: default;
  background: #eff3f5;
  color: #82929b;
}

.pricing-notes {
  margin-top: 22px;
  text-align: center;
  color: #7b8d97;
  font-size: 13px;
}

.pricing-notes p {
  margin: 5px;
}

/* ==========================================================================
   Digital sales offer
   ========================================================================== */

.sales-banner {
  position: relative;
  min-height: 174px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 26px;
  border: 1px solid rgba(55, 87, 105, .15);
  border-radius: 14px;
  background: linear-gradient(112deg, #fff 0%, #f2f6fb 52%, #ebeaf7 100%);
  box-shadow: 0 18px 48px rgba(39, 68, 85, .11);
  overflow: hidden;
}

.sales-banner::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--purple);
}

.sales-banner figure {
  height: 174px;
  margin: 0;
  padding: 14px 12px 0;
  display: grid;
  place-items: end center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, .45),
    rgba(234, 240, 246, .75)
  );
  overflow: hidden;
}

.sales-banner figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.sales-banner__content > span {
  color: #615990;
  font-size: 12px;
  font-weight: 500;
}

.sales-banner__content h2 {
  margin: 7px 0 8px;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -.025em;
}

.sales-banner__content p {
  max-width: 650px;
  margin: 0;
  color: #536c7a;
  font-size: 14px;
  line-height: 1.55;
}

.sales-banner__tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sales-banner__tags span {
  padding: 6px 9px;
  border-radius: 14px;
  background: #fff;
  color: #514b78;
  font-size: 11px;
  box-shadow: 0 4px 12px rgba(40, 55, 80, .07);
}

.sales-banner__offer {
  padding-inline-end: 22px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.sales-banner__offer strong {
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
}

.sales-banner__offer strong span {font-size: 0.5em;}

.sales-banner__offer > span {
  margin-top: 6px;
  color: #556d7b;
  font-size: 13px;
}

.sales-banner__offer small {
  margin-top: 5px;
  color: #7a8c96;
  font-size: 12px;
}

.sales-banner__offer #sales-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 40px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-weight: 500;
}

.sales-banner__offer #sales-cta:hover {
  background: var(--blue);
}

/* ==========================================================================
   Comparison
   ========================================================================== */

.comparison-section {
  padding: 72px 0;
  background: #fff;
}

.compare-toggle {
  width: 100%;
  height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dce5ea;
  border-radius: 9px;
  background: #f7fafb;
  color: #284250;
  cursor: pointer;
}

.compare-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform .25s;
}

.compare-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.comparison-panel {
  margin-top: 12px;
}

.comparison-panel[hidden] {
  display: none;
}

.table-scroll {
  overflow: auto;
  border: 1px solid #dce5ea;
  border-radius: 10px;
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 13px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #e8eef1;
  border-inline-start: 1px solid #edf1f3;
  text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 260px;
  text-align: right;
  background: #fff;
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f1f6f8;
  font-weight: 500;
}

.comparison-table thead th:first-child {
  z-index: 5;
  background: #eaf1f4;
}

.comparison-table .group-row th {
  padding: 13px;
  background: #e8f0f4;
  color: #24495f;
  font-size: 14px;
}

.comparison-table .group-row th:first-child {
  position: static;
}

.comparison-table .yes {
  color: #148c59;
  font-size: 17px;
}

.comparison-table .no {
  color: #b8c3c9;
}

.comparison-table .cell-text {
  color: #46606f;
}

.feature-info {
  width: 18px;
  height: 18px;
  margin-inline-start: 5px;
  border: 1px solid #c7d4da;
  border-radius: 50%;
  background: #fff;
  color: #6f8490;
  font-size: 10px;
  cursor: help;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 76px;
  background: linear-gradient(140deg, #e9f0f4, #dfeaf1);
}

.pattern--services {
  inset: 22px auto auto -120px;
  width: 760px;
  height: 105px;
  opacity: .3;
  mask-image: linear-gradient(90deg, #000 0%, transparent 85%);
}

.services-section .container {
  position: relative;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 11px;
  background: rgba(255, 255, 255, .73);
  box-shadow: 0 14px 35px rgba(42, 72, 90, .08);
  backdrop-filter: blur(8px);
}

.service-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 18px;
}

.service-card h3 {
  min-height: 44px;
  margin: 16px 0 6px;
  font-size: 17px;
  font-weight: 500;
}

.service-card p {
  min-height: 38px;
  margin: 0;
  color: #667d8a;
  font-size: 13.5px;
  line-height: 1.5;
}

.service-price {
  display: block;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 500;
}

.service-card .service-action {
    display: inline-block;
  margin-top: 15px;
  padding: 0;
  border: 0;
  background: none;
  color: #1476ce;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}

.service-card .service-action:after {content: '→';}

[dir="rtl"] .service-card .service-action:after {content: '←';}

.services-note {
  margin: 22px 0 0;
  color: #667d8a;
  font-size: 13px;
  line-height: 1.55;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section {
  padding: 80px 0;
  background: #fff;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) 1.3fr;
  gap: 70px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid #dbe5e9;
}

.faq-item {
  border-bottom: 1px solid #dbe5e9;
}

.faq-question {
  width: 100%;
  min-height: 62px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: none;
  color: #243e4d;
  text-align: right;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
}

.faq-question i {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}

.faq-question i::before,
.faq-question i::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 4px;
  width: 12px;
  height: 1px;
  background: #53707f;
}

.faq-question i::after {
  transform: rotate(90deg);
  transition: transform .2s;
}

.faq-question[aria-expanded="true"] i::after {
  transform: rotate(0);
}

.faq-answer {
  padding: 0 0 18px;
  color: #6a808d;
  font-size: 14px;
  line-height: 1.7;
}

.faq-answer[hidden] {
  display: none;
}

/* ==========================================================================
   Bottom CTA
   ========================================================================== */

.bottom-cta {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background: #19283a;
  color: #fff;
}

.pattern--cta {
  inset: auto -50px -10px auto;
  width: 720px;
  height: 110px;
  opacity: .32;
}

.bottom-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.bottom-cta h2 {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 300;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-layout {
    gap: 40px;
  }

  .sales-banner {
    grid-template-columns: 210px 1fr 190px;
  }
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .plan-media {
    height: 220px;
  }

  .sales-banner {
    grid-template-columns: 180px 1fr;
  }

  .sales-banner__offer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
  }

  .sales-banner__offer #sales-cta {
    grid-column: 3;
    grid-row: 1 / 4;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 30px 0 28px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 14px;
  }

  .billing {
    margin-top: 18px;
  }

  .billing button {
    height: 40px;
    padding-inline: 18px;
  }

  .save-chip {
    margin-inline: 4px 6px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .pattern--hero {
    width: 680px;
    height: 95px;
    right: -260px;
  }

  .plans-section {
    padding: 38px 0 42px;
  }

  .sales-banner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 28px;
  }

  .sales-banner figure {
    height: 150px;
  }

  .sales-banner__content {
    padding: 20px 18px 14px;
  }

  .sales-banner__content h2 {
    font-size: 25px;
  }

  .sales-banner__content p {
    font-size: 14px;
  }

  .sales-banner__offer {
    grid-column: auto;
    display: flex;
    padding: 0 18px 20px;
  }

  .sales-banner__offer #sales-cta {
    width: 100%;
    grid-column: auto;
    grid-row: auto;
  }

  .plan-media {
    height: 190px;
  }

  .plan-position {
    min-height: 0;
  }

  .plan-features li {
    font-size: 14px;
  }

  .comparison-section,
  .services-section,
  .faq-section {
    padding: 48px 0;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    min-width: 210px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: 29px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card h3,
  .service-card p {
    min-height: 0;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bottom-cta {
    padding: 42px 0;
  }

  .bottom-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-cta h2 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pattern .nk-tile {
    transition: none;
  }

  .plan-card {
    transition: none;
  }
}
