/* ==========================================================================
   Nakrutkin — Landing Page Custom Styles
   Supplements Bootstrap 5.3 — only what Bootstrap cannot cover.
   ========================================================================== */

:root {
  --nk-blue-700: #0d62e8;
  --nk-blue-600: #1670f8;
  --nk-blue-500: #2d7cf8;
  --nk-blue-100: #eaf2ff;
  --nk-blue-50: #f6f9ff;
  --nk-red: #ef3e4a;
  --nk-red-soft: #fff1f2;
  --nk-text: #111a33;
  --nk-muted: #697386;
  --nk-line: #dfe6f1;
  --nk-shadow: 0 16px 42px rgba(27, 68, 133, .08);
  --nk-radius: 14px;
  --nk-radius-lg: 20px;
}

/* Base */
.nk-frontend {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--nk-text);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.nk-header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 230, 241, .78);
}

.nk-header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nk-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--nk-blue-700);
  text-decoration: none;
}

.nk-nav {
  gap: 28px;
  margin-left: auto;
  font-size: 16px;
  font-weight: 500;
}

.nk-nav a {
  color: #27324a;
  text-decoration: none;
}

.nk-nav a:hover {
  color: var(--nk-blue-700);
}

.nk-header__actions {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

/* Hero */
.nk-hero {
  padding-top: 72px;
}

.nk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nk-blue-700);
}

.nk-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nk-red);
  box-shadow: 0 0 0 5px var(--nk-red-soft);
  display: inline-block;
}

.nk-hero__title {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -.045em;
  margin-bottom: 22px;
}

.nk-hero__copy {
  font-size: 17px;
  line-height: 1.65;
  color: #4c5870;
  max-width: 700px;
  margin-bottom: 28px;
}

.nk-hero__notes {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--nk-muted);
  font-size: 15px;
}

.nk-hero__notes span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nk-dot {
  font-size: 6px;
  color: var(--nk-blue-500);
}

/* Hero Art (decorative) */
.nk-hero-art {
  min-height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/assets/cabinet/images/bg-hero-mobile.png') center right/contain no-repeat;
  min-height: 300px;
  width: 100%;
}

@media (min-width: 992px) {
  .nk-hero {
    background: url('/assets/cabinet/images/bg-hero.jpg') center/cover no-repeat;
  }
  .nk-hero-art {
    background: none;
    min-height: 260px;
  }
}

.nk-mini-browser {
  width: 218px;
  height: 170px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dbe5f5;
  border-radius: 18px;
  box-shadow: var(--nk-shadow);
  padding: 18px;
}

.nk-mini-browser__head {
  height: 10px;
  width: 86px;
  border-radius: 99px;
  background: #dae4f4;
  margin-bottom: 22px;
}

.nk-mini-browser__line {
  height: 8px;
  border-radius: 99px;
  background: #e6edf8;
  margin: 12px 0;
}

.nk-mini-chart {
  position: absolute;
  right: -38px;
  bottom: -28px;
  width: 112px;
  height: 92px;
  border: 1px solid #dbe5f5;
  border-radius: 16px;
  background: #fff;
  padding: 17px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(27, 68, 133, .08);
}

.nk-mini-chart span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #9dc2ff, #d8e6ff);
}

.nk-mini-chart span:nth-child(1) { height: 30%; }
.nk-mini-chart span:nth-child(2) { height: 52%; }
.nk-mini-chart span:nth-child(3) { height: 78%; }
.nk-mini-chart span:nth-child(4) { height: 100%; }

.nk-accent-pin {
  position: absolute;
  z-index: 3;
  left: 18px;
  top: 35px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5a5f, #df2838);
  box-shadow: 0 10px 20px rgba(239, 62, 74, .22);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

/* Service Cards — unified grid + cabinet-style card anatomy */
.nk-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1250px) {
  .nk-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .nk-services { grid-template-columns: 1fr; }
}

.nk-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--nk-line);
  border-radius: 15px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

a.nk-service-card--active {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.nk-service-card--active:hover {
  border-color: #4a93fd;
  background: #f8fbff;
  box-shadow: 0 6px 20px rgba(13, 98, 232, .10);
}
a.nk-service-card--active:focus-visible {
  outline: 2px solid var(--nk-blue-700);
  outline-offset: 2px;
}

.nk-service-card--soon {
  background: #fbfcfe;
  color: #8b95a5;
}

/* Card head: logo + info */
.nk-service-card__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

/* Logo container — flexible for both img logos and colored icon squares */
.nk-service-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.nk-service-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Frontend modifier: transparent PNG brand logos need no background */
.nk-service-card__logo--img {
  background: transparent;
}

/* Info block */
.nk-service-card__info { min-width: 0; }
.nk-service-card__name {
  color: #151f35;
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 3px;
}
.nk-service-card--soon .nk-service-card__name { color: #556174; }
.nk-service-card__desc {
  margin: 0;
  color: #758096;
  font-size: 13px;
  line-height: 1.45;
}

/* Card footer: status dot + action label */
.nk-service-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
}
.nk-service-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--home-v2-green, #22c55e);
}
.nk-service-card__status--soon { color: #8b95a5; }
.nk-service-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.nk-service-card__action {
  font-size: 12px;
  font-weight: 600;
  color: #a0b4d0;
  white-space: nowrap;
  transition: color .2s ease;
}
a.nk-service-card--active:hover .nk-service-card__action {
  color: var(--nk-blue-700);
}

/* Inside Cards */
.nk-inside-card {
  padding: 20px;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
  background: #fff;
  height: 100%;
}

.nk-inside-card__num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--nk-blue-50);
  border: 1px solid #dce8fb;
  color: var(--nk-blue-700);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 15px;
}

/* Section Title */
.nk-section-title {
  font-size: 30px;
  letter-spacing: -.03em;
}

/* Price Table */
.nk-price-wrap {
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(27, 68, 133, .035);
}

.nk-price-head th {
  background: #fafcff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .055em;
  color: #7a8598;
  font-weight: 650;
}

.nk-table-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}

.nk-table-logo--wide {
  width: 68px;
  height: auto;
  flex-basis: 68px;
}

/* About Box */
.nk-about-box {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 34px;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius-lg);
  padding: 30px;
  background: linear-gradient(135deg, #fff 0%, #fbfdff 100%);
}

.nk-about-mark {
  align-items: center;
  justify-content: center;
}

.nk-about-mark__icon {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: linear-gradient(145deg, #f2f7ff, #fff);
  border: 1px solid #dce7fa;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(29, 89, 170, .08);
}

/* FAQ */
.nk-faq {
  border: 1px solid var(--nk-line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}

.nk-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.nk-faq summary::-webkit-details-marker {
  display: none;
}

.nk-faq summary::after {
  content: "+";
  color: var(--nk-blue-700);
  font-size: 20px;
  line-height: 1;
}

.nk-faq[open] summary::after {
  content: "\2013";
}

.nk-faq p {
  margin: 12px 0 0;
  color: var(--nk-muted);
  font-size: 14px;
}

/* Final CTA */
.nk-final-cta {
  border: 1px solid #d9e6fb;
  border-radius: var(--nk-radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(110deg, #f7faff 0%, #edf4ff 72%, #fff7f7 100%);
}

/* Footer */
.nk-footer {
  padding: 34px 0 42px;
  color: #7d8798;
  font-size: 13px;
}

.nk-footer__inner {
  border-top: 1px solid var(--nk-line);
  padding-top: 24px;
  display: flex;
  gap: 26px;
  align-items: center;
}

.nk-footer__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nk-footer__links a {
  color: inherit;
  text-decoration: none;
}

.nk-footer__links a:hover {
  color: var(--nk-text);
}

/* Responsive overrides */
@media (max-width: 980px) {
  .nk-hero__title { font-size: 40px; }
}

@media (max-width: 720px) {
  .nk-header__inner { height: 64px; }
  .nk-header__actions .btn-outline-secondary { display: none; }
  .nk-hero { padding-top: 46px; }
  .nk-hero__title { font-size: 36px; }
  .nk-hero__copy { font-size: 16px; }
  .nk-section-title { font-size: 25px; }
  .nk-about-box { grid-template-columns: 1fr; }
  .nk-final-cta { flex-direction: column; align-items: flex-start; }
  .nk-final-cta .d-flex { width: 100%; }
  .nk-final-cta .btn { flex: 1; }
  .nk-footer__inner { flex-direction: column; align-items: flex-start; }
  .nk-footer__links { margin-left: 0; flex-wrap: wrap; }
}

/* ==========================================================================
   Promo code check — registration form
   ========================================================================== */

.nk-promo-check {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.nk-promo-input {
  flex: 1;
  min-width: 0;
}

.nk-promo-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.nk-promo-status {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.nk-promo-status--ok {
  color: #198754;
}

.nk-promo-status--ok .nk-promo-status-hint {
  color: var(--nk-muted);
  font-size: 13px;
}

.nk-promo-status--error {
  color: var(--nk-red);
}

@media (max-width: 575px) {
  .nk-promo-check {
    flex-direction: column;
  }

  .nk-promo-btn {
    width: 100%;
  }
}
