:root {
  --article-heading-color: #111827;
  --article-heading-font: 'Space Grotesk', sans-serif;
  --article-heading-line-height: 1.3;
  --article-heading-scale: 1;
  --article-meta-color: #6b7280;
  --article-paragraph-spacing: 2rem;
  --article-link-color: #111111;
  --article-link-hover-color: #000000;
  --article-code-bg: #f3f4f6;
  --article-code-text: #111827;
  --article-blockquote-bg: #f9fafb;
  --article-blockquote-border: #111111;
  --article-blockquote-text: #1f2937;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  color: var(--article-heading-color);
  font-family: var(--article-heading-font);
  line-height: var(--article-heading-line-height);
}

article h1 { font-size: calc(2.25rem * var(--article-heading-scale)); }
article h2 { font-size: calc(1.875rem * var(--article-heading-scale)); }
article h3 { font-size: calc(1.5rem * var(--article-heading-scale)); }
article h4 { font-size: calc(1.25rem * var(--article-heading-scale)); }
article h5 { font-size: calc(1.125rem * var(--article-heading-scale)); }
article h6 { font-size: calc(1rem * var(--article-heading-scale)); }

article p + p {
  margin-top: var(--article-paragraph-spacing);
}

article a {
  color: var(--article-link-color);
  transition: color 0.2s;
}

article a:hover {
  color: var(--article-link-hover-color);
}

article code {
  background-color: var(--article-code-bg);
  color: var(--article-code-text);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

article pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
}

article blockquote {
  background-color: var(--article-blockquote-bg);
  border-left: 4px solid var(--article-blockquote-border);
  color: var(--article-blockquote-text);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

article .meta-text,
article .article-meta,
article time {
  color: var(--article-meta-color);
}

.article-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2.5rem;
    align-items: stretch;
  }

  .article-sidebar {
    display: block;
  }

  .article-sidebar-inner {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }

  .article-sidebar-inner > * {
    flex-shrink: 0;
  }
}

.sidebar-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sidebar-point + .sidebar-point {
  margin-top: 1rem;
}

.sidebar-point-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgb(239, 246, 255);
  color: rgb(30, 58, 138);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profit-calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, #1e3a8a var(--calc-fill, 0%), #e5e7eb var(--calc-fill, 0%));
  outline: none;
  cursor: pointer;
}

.profit-calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e3a8a;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.profit-calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #1e3a8a;
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.form_errors { color: red; }
form .hidden { display: none !important; }

.iti { width: 100% !important; }
.iti__country-name { color: #000; }
.iti__search-input { color: #000 !important; }
.iti--allow-dropdown input.iti__tel-input,
.iti--allow-dropdown input.iti__tel-input[type="tel"],
.iti--allow-dropdown input.iti__tel-input[type="text"] {
  padding-left: 104px !important;
}

.leadform > div > input { padding-left: 15px; }
input.iti__tel-input[type=tel] { padding-left: 92px; }

.form-error {
  color: red;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.main-footer {
  background: #f8f8f8;
  color: #333;
  padding: 25px 0;
  border-top: 1px solid #e0e0e0;
}

.main-footer a {
  color: #555;
  text-decoration: underline;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  padding: 2rem;
}

.modal.modal-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  padding: 2rem;
  position: relative;
  margin-top: 4rem;
}

.modal-content.legal-modal-content { max-width: 760px; }

.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-content h3 {
  margin-top: 1rem;
  font-weight: 600;
}

.modal-content p,
.modal-content li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}

.modal-content ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.modal-content a { color: #111111; }
.modal-content a:hover { text-decoration: underline; }

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.modal-close:hover { color: #000; }

.contact-modal-content {
  max-width: 920px;
}

.contact-modal-intro {
  margin-bottom: 1.25rem;
}

.contact-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-info-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.contact-info-card h3,
.contact-modal-form-wrap h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.contact-company-name {
  font-size: 1.05rem !important;
  font-weight: 700;
  color: #111827 !important;
  margin-bottom: 0.85rem !important;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.contact-map-wrap {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
  aspect-ratio: 16 / 10;
}

.contact-map {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-modal-form-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.contact-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #374151;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: #111827;
  background: #fff;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.contact-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.contact-submit-btn {
  margin-top: 0.25rem;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.contact-submit-btn:hover { background: #000; }
.contact-submit-btn:disabled { opacity: 0.65; cursor: wait; }

.contact-form-status {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.contact-form-status.is-success { color: #047857; }
.contact-form-status.is-error { color: #b91c1c; }

@media (max-width: 768px) {
  .contact-modal-grid {
    grid-template-columns: 1fr;
  }

  .contact-modal-content {
    margin-top: 1.5rem;
  }
}
