:root {
  --n6d-fix-ink: #172038;
  --n6d-fix-muted: #5b6476;
  --n6d-fix-accent: #8f1620;
  --n6d-fix-gold: #b68a35;
  --n6d-fix-surface: #f7f5f1;
}

body.n6d-service-ads-v2 .n6d-ads2-section {
  padding-block: clamp(52px, 6vw, 92px) !important;
}

.n6d-ads2 h2:empty,
.n6d-ads2-section h2:empty,
.n6d-ads2 h2[aria-hidden="true"],
.n6d-ads2-section h2[aria-hidden="true"] {
  display: none !important;
}

.single-n6d_project h1 {
  font-size: clamp(2rem, 4.6vw, 4.7rem);
  line-height: 1.08;
  text-wrap: balance;
}

.addtoany_list a[title*="Tumblr"],
.addtoany_list a[title*="Viber"],
.addtoany_list a[title*="VK"],
.addtoany_list a[title*="Reddit"] {
  display: none !important;
}

.n6d-fix-modal[hidden] { display: none !important; }
.n6d-fix-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 20px; }
.n6d-fix-modal__backdrop { position: absolute; inset: 0; background: rgb(7 12 25 / 72%); backdrop-filter: blur(4px); }
.n6d-fix-modal__dialog { position: relative; width: min(620px, 100%); max-height: min(92vh, 820px); overflow: auto; padding: clamp(24px, 4vw, 42px); border-radius: 20px; background: #fff; color: var(--n6d-fix-ink); box-shadow: 0 28px 80px rgb(0 0 0 / 32%); }
.n6d-fix-modal__dialog h2 { margin: 4px 0 10px; font-size: clamp(1.55rem, 4vw, 2.25rem); line-height: 1.15; }
.n6d-fix-modal__dialog > p:not(.n6d-fix-kicker) { color: var(--n6d-fix-muted); }
.n6d-fix-modal__close { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 999px; background: #f1f2f5; color: #1d2638; font-size: 28px; line-height: 1; cursor: pointer; }
.n6d-fix-modal-open { overflow: hidden; }

.n6d-fix-kicker { margin: 0 0 6px; color: var(--n6d-fix-accent); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.n6d-fix-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.n6d-fix-lead-form { display: grid; gap: 14px; margin-top: 22px; }
.n6d-fix-lead-form label { display: grid; gap: 6px; color: #273149; font-size: .92rem; font-weight: 700; }
.n6d-fix-lead-form input:not([type="checkbox"]),
.n6d-fix-lead-form select,
.n6d-fix-lead-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd0da; border-radius: 9px; background: #fff; color: #172038; font: inherit; }
.n6d-fix-lead-form textarea { min-height: 88px; resize: vertical; }
.n6d-fix-lead-form input:focus,
.n6d-fix-lead-form select:focus,
.n6d-fix-lead-form textarea:focus { outline: 3px solid rgb(143 22 32 / 20%); border-color: var(--n6d-fix-accent); }
.n6d-fix-consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; line-height: 1.45; }
.n6d-fix-consent input { margin-top: 4px; }
.n6d-fix-hp { position: fixed !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.n6d-fix-submit,
.n6d-fix-open-modal { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 9px; background: var(--n6d-fix-accent); color: #fff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.n6d-fix-submit:hover,
.n6d-fix-open-modal:hover { background: #701019; color: #fff; }
.n6d-fix-submit:focus-visible,
.n6d-fix-open-modal:focus-visible,
.n6d-fix-modal__close:focus-visible { outline: 3px solid #e8bd63; outline-offset: 3px; }
.n6d-fix-submit:disabled { cursor: wait; opacity: .65; }
.n6d-fix-form-status { min-height: 1.5em; margin: 0; color: #9a1d27; font-weight: 700; }
.n6d-fix-form-status.is-success { color: #116a3a; }

.n6d-fix-price { max-width: 1180px; margin-inline: auto; color: var(--n6d-fix-ink); }
.n6d-fix-price__intro { max-width: 820px; margin: 0 auto clamp(30px, 5vw, 56px); text-align: center; color: var(--n6d-fix-muted); font-size: 1.08rem; line-height: 1.75; }
.n6d-fix-price__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.n6d-fix-price__grid article { padding: clamp(24px, 3vw, 36px); border: 1px solid #e1ddd5; border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgb(25 31 48 / 7%); }
.n6d-fix-price__grid h2 { margin: 7px 0 16px; font-size: 1.42rem; line-height: 1.25; }
.n6d-fix-price__rate { min-height: 3em; color: var(--n6d-fix-accent); font-weight: 800; }
.n6d-fix-price__grid ul { margin: 20px 0 0; padding-left: 20px; color: var(--n6d-fix-muted); }
.n6d-fix-price__grid li { margin: 9px 0; }
.n6d-fix-price__notes { max-width: 840px; margin: clamp(48px, 7vw, 82px) auto; text-align: center; }
.n6d-fix-price__notes p { color: var(--n6d-fix-muted); line-height: 1.75; }
.n6d-fix-price__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 44px); border-radius: 18px; background: var(--n6d-fix-surface); }
.n6d-fix-price__cta h2 { margin: 5px 0; }
.n6d-fix-price__cta p:last-child { margin-bottom: 0; color: var(--n6d-fix-muted); }
.n6d-fix-price__cta .n6d-fix-open-modal { flex: 0 0 auto; }

@media (max-width: 780px) {
  body.n6d-service-ads-v2 .n6d-ads2-section { padding-block: 48px !important; }
  .n6d-fix-price__grid { grid-template-columns: 1fr; }
  .n6d-fix-price__cta { align-items: stretch; flex-direction: column; }
  .n6d-fix-form-grid { grid-template-columns: 1fr; }
  .n6d-fix-modal { padding: 10px; }
  .n6d-fix-modal__dialog { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .n6d-fix-modal *, .n6d-fix-price * { scroll-behavior: auto !important; transition: none !important; }
}
