/* =============================================
   7LCLOUD Carbonio — kalkulator SaaS
   Styl zgodny z style.md design system
   Brand accent: #BC4650
   ============================================= */

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

:root {
  --bg:          #FAFAFA;
  --sheet-bg:    #FFFFFF;
  --row:         #FFFFFF;
  --row-alt:     #FBFBFD;
  --sum-bg:      #F5F5F7;
  --capsule-bg:  #F5F5F7;
  --text:        #1D1D1F;
  --muted:       #6E6E73;
  --header:      #1D1D1F;
  --capsule-text:#1D1D1F;
  --border:      #D2D2D7;
  --brand-blue:  #BC4650;
  --accent-red:  #FF3B30;
  --shadow:      0 12px 24px rgba(0,0,0,.08);
}

html {
  font-size: clamp(14px, 1.2vw + 0.2rem, 16px);
}

body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== PAGE ===== */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 20px;
}

/* ===== BANNER ===== */

.banner {
  padding-top: 16px;
  padding-bottom: 32px;
}

.banner__logo {
  width: clamp(160px, 30%, 280px);
  display: block;
  margin-bottom: 12px;
}

.banner p {
  font-size: clamp(13px, 1vw + 0.3rem, 15px);
  font-weight: 300;
  color: var(--muted);
}

/* ===== FEATURES BAR ===== */

.features-bar {
  padding-bottom: 20px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.features-bar__header {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 14px;
}

.features-bar__group {
  margin-bottom: 12px;
}

.features-bar__group:last-child {
  margin-bottom: 0;
}

.features-bar__group-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  margin-bottom: 8px;
}

.features-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
}

.features-bar__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text);
}

.features-bar__item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--brand-blue);
}


/* ===== TWO-COLUMN LAYOUT ===== */

.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 360px);
  gap: 24px;
  align-items: start;
}

/* ===== PANELS ===== */

.panel {
  background: var(--sheet-bg);
  border-radius: 18px;
  overflow: hidden;
}

.panel--main {
  box-shadow: 0 24px 48px rgba(0,0,0,.14);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.panel--side {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 16px;
  align-self: start;
}

/* ===== CONFIG SECTIONS ===== */

.config-section {
  padding: 12px 0;
}

.config-section:first-child {
  padding-top: 0;
}

.config-section + .config-section {
  border-top: 1px solid var(--border);
}

/* ===== SECTION LABEL ===== */

.sec-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ===== DIVIDER ===== */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* ===== PACKAGE CARDS ===== */

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sheet-bg);
  cursor: pointer;
  transition: border-color .18s ease;
}

.plan-card.active {
  border: 2px solid var(--brand-blue);
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.plan-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .18s ease, background .18s ease;
}

.plan-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .18s ease;
}

.plan-card.active .plan-radio {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.plan-card.active .plan-radio::after {
  opacity: 1;
}

.plan-info {
  flex: 1;
  min-width: 0;
}

.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.plan-storage {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.plan-desc {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 2px;
}

.plan-price-tag {
  flex-shrink: 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.plan-card.active .plan-price-tag {
  color: var(--brand-blue);
}

.plan-price-num {
  font-size: 28px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.plan-price-unit {
  font-size: 11px;
  font-weight: 300;
}

.plan-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-expand-btn {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.plan-expand-btn:hover,
.plan-expand-btn.open {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.plan-expand-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(188, 70, 80, 0.25);
}

.plan-expand-btn svg {
  transition: transform .22s ease;
}

.plan-expand-btn.open svg {
  transform: rotate(180deg);
}

/* ===== FEATURES PANEL ===== */

.features-panel {
  display: grid;
  grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  transition: grid-template-rows .22s ease, border-top-color .22s ease;
}

.features-panel.open {
  grid-template-rows: 1fr;
  border-top-color: var(--border);
}

.features-inner {
  overflow: hidden;
}

.features-content {
  padding: 12px 14px;
  background: var(--row-alt);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}

.feat-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 1px 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

.feat-row__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.feat-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.feat-icon--yes {
  background: #e6f4ea;
  color: #1e7e34;
}

.feat-icon--no {
  background: #f0f0f2;
  color: #a0a0a5;
}

.feat-icon--brand {
  background: #f9e8e9;
  color: #BC4650;
}


.feat-row.no {
  color: var(--muted);
}

/* ===== ACCOUNTS INPUT ===== */

.accounts-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.accounts-unit {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
}

.accounts-input {
  width: 70px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  outline: none;
  -moz-appearance: textfield;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.accounts-input::-webkit-inner-spin-button,
.accounts-input::-webkit-outer-spin-button {
  opacity: 0;
  transition: opacity .15s ease;
}

.accounts-input:hover::-webkit-inner-spin-button,
.accounts-input:hover::-webkit-outer-spin-button,
.accounts-input:focus::-webkit-inner-spin-button,
.accounts-input:focus::-webkit-outer-spin-button {
  opacity: 1;
}

.accounts-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(188, 70, 80, 0.15);
}

.accounts-hint {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

/* ===== SUMMARY ROWS ===== */

.sum-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sum-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.sum-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ===== TOTAL BLOCK ===== */

.total-block {
  background: var(--sum-bg);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.total-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 2px;
}

.total-val {
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.total-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  margin-top: 3px;
}

.total-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.price-note {
  font-size: 10px;
  color: var(--muted);
  font-weight: 300;
  white-space: nowrap;
}

/* ===== TRUST ROWS ===== */

.trust-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

.trust-row__icon {
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CONTACT FORM ===== */

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 20px 12px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-group input::placeholder {
  color: transparent;
}

.form-group label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 300;
  color: #AEAEB2;
  pointer-events: none;
  transition: top .15s ease, transform .15s ease, font-size .15s ease,
    font-weight .15s ease, color .15s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 8px;
  transform: translateY(0);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--muted);
}

.form-group input:focus + label {
  color: var(--brand-blue);
}

.form-group input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(188, 70, 80, 0.15);
}

.form-group input.invalid {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.18);
}

/* ===== CTA BUTTON ===== */

.btn-cta {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #151515;
  background: #151515;
  color: #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-cta:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(188, 70, 80, 0.25);
}

.btn-cta:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

.privacy-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--brand-blue);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.privacy-row label {
  cursor: pointer;
  line-height: 1.4;
}

.privacy-row a {
  color: var(--brand-blue);
  text-decoration: none;
}

.privacy-row a:hover {
  text-decoration: underline;
}

.privacy-row.invalid label {
  color: var(--accent-red);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-cta--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-cta--ghost:hover {
  background: var(--sum-bg);
  border-color: var(--border);
}

/* ===== MODAL ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--sheet-bg);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform .2s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.modal__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.modal__close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
}

.modal__close:hover {
  color: var(--text);
}

.modal__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== SUCCESS MESSAGE ===== */

.success-msg {
  background: #f0faf4;
  border: 1px solid #9de0bc;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  color: #1a7a40;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}

.success-msg.visible {
  display: block;
}

/* ===== FOOTER NOTE ===== */

.footer-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-weight: 300;
  line-height: 1.5;
}

.legal-note {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 20px;
  opacity: 0.75;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .panel-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  }
}

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

  .panel--side {
    position: static;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 20px 12px 36px;
  }

  .banner {
    padding-bottom: 20px;
  }
}
