.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border: 0;
  border-radius: var(--radius-btn);
  font-size: 16px;
  line-height: 1;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: background var(--ease-snap), color var(--ease-snap);
}

.btn:hover {
  text-decoration: none;
  color: var(--text-on-dark);
}

.btn-coral {
  background: var(--coral);
}

.btn-coral:hover {
  background: var(--coral-hover);
}

.btn-teal {
  background: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-hover);
}

.btn-sm {
  padding: 12px 26px;
  font-size: 13px;
}

.btn-ghost {
  background: var(--bg-white);
  color: var(--text-strong);
  border: 1px solid var(--line);
  min-height: 70px;
  padding: 0 20px 0 30px;
  text-align: left;
}

.btn-ghost:hover {
  background: var(--bg-band);
  color: var(--text-strong);
}

.btn-bar {
  display: block;
  width: 100%;
  padding: 16px 0;
  background: var(--teal);
  color: #fff;
  text-align: center;
  font-size: 18px;
}

.btn-bar:hover {
  background: var(--teal-hover);
  color: #fff;
  text-decoration: none;
}

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

/* Promo + header */
.promo {
  height: var(--promo-h);
  background: var(--bg-ink);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.promo a {
  color: #fff;
}

.promo-short {
  display: none;
}

.header {
  position: fixed;
  top: var(--promo-offset, var(--promo-h));
  left: 0;
  right: 0;
  z-index: 11;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: 280px 1fr 210px;
  grid-template-rows: auto auto;
  align-items: center;
  height: var(--header-h);
  column-gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 8px 20px;
}

.header-inner > div:first-child {
  display: contents;
}

.header-inner .brand {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.header-inner .nav {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.header-inner .header-contacts {
  grid-column: 3;
  grid-row: 1;
}

.header-inner .header-quote {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

.brand {
  display: block;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 68px;
  width: auto;
}

.header-quote {
  margin-top: 0;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.nav-link,
.nav-toggle {
  background: none;
  border: 0;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-strong);
  text-decoration: none;
}

.nav-link,
.nav-toggle,
.header-contacts a,
.footer a {
  transition: color 0.2s linear;
}

.nav-link:hover,
.nav-toggle:hover {
  color: var(--teal);
  text-decoration: none;
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 0;
  z-index: 12;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s linear, transform 0.15s ease-out;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: var(--bg-band);
  color: var(--teal);
}

.header-contacts {
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
}

.header-contacts a {
  color: var(--text);
  display: block;
}

.header-contacts a:hover {
  color: var(--teal);
  text-decoration: none;
}

.header-mobile {
  display: none;
  position: fixed;
  top: var(--promo-offset, var(--promo-h));
  left: 0;
  right: 0;
  z-index: 12;
  height: 64px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.header-mobile a img {
  display: block;
  height: 36px;
  width: auto;
}

.burger {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text-strong);
}

.drawer {
  display: none;
  position: fixed;
  inset: calc(var(--promo-offset, var(--promo-h)) + 64px) 0 0;
  background: #fff;
  z-index: 12;
  overflow: auto;
  padding: 16px 20px 40px;
}

@media (max-width: 991px) {
  .drawer {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

.drawer a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-strong);
  text-decoration: none;
}

body.drawer-open {
  overflow: hidden;
}

/* Footer */
.footer {
  background: var(--bg-ink);
  color: #cfcfcf;
  padding: 36px 0 28px;
  font-size: 14px;
}

.footer a {
  color: #eee;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 24px;
}

.footer-hours {
  display: block;
  margin-top: 8px;
  color: #aaa;
}

/* Cards / hero / steps */
.hero {
  min-height: var(--hero-h);
  background: #1a1a1a center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-inner {
  padding: 48px 0;
  max-width: 720px;
}

.hero h1 {
  color: #fff;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0 24px;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-more {
  color: #fff;
  display: inline-block;
  margin-top: 16px;
}

.hero-more:hover {
  color: #fff;
}

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

.step {
  display: block;
  padding: 20px 12px;
  text-align: center;
  color: var(--text-strong);
  background: var(--bg-white);
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.step:hover {
  color: var(--teal);
  text-decoration: none;
}

.step-num {
  display: block;
  font-size: 20px;
  color: var(--teal);
  margin-bottom: 6px;
}

.ghost-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card-media {
  background: #fff;
  border-radius: var(--radius-card);
}

.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: filter 0.4s linear;
}

.card-media h3 {
  margin: 12px 12px 8px;
}

.card-media p {
  margin: 0 12px 16px;
}

.card-media a.title {
  color: var(--text-strong);
  transition: color 0.2s linear;
}

.card-media a.title:hover {
  color: var(--teal);
}

.card-media:hover img {
  filter: brightness(0.72);
}

.advantages {
  text-align: center;
}

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

.works-grid figure {
  margin: 0;
}

.works-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: filter 0.4s linear;
}

.works-grid figure:hover img {
  filter: brightness(0.72);
}

.works-grid figcaption {
  font-size: 13px;
  padding: 8px 0;
}

.logos-row,
.press-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  align-items: center;
  padding: 8px 0;
}

.logos-row img {
  height: 56px;
  width: auto;
  filter: grayscale(1);
  flex: 0 0 auto;
}

.hub-col {
  background: #fff;
  display: flex;
  flex-direction: column;
}

.hub-col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hub-col ul {
  margin: 12px 16px 16px;
  padding-left: 18px;
  flex: 1;
}

.modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s linear;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-panel {
  background: #fff;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  position: relative;
  transform: translateY(-25%);
  transition: transform 0.3s ease-out;
}

.modal.is-open .modal-panel {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
}

.form-field {
  display: block;
  margin-bottom: 12px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.crumbs {
  font-size: 13px;
  padding: 16px 0 0;
  color: #777;
}

.crumbs a {
  color: var(--link);
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-success {
  max-width: 960px;
  margin: 16px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--teal);
  background: #eef7fa;
}

.lead-chip {
  display: inline-block;
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 6px;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 1em;
}

.hero-sm {
  min-height: 433px;
}

@media (max-width: 767px) {
  .form-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 240px 1fr 180px;
  }

  .brand img {
    height: 56px;
  }

  .nav {
    gap: 12px;
  }

  .nav-link,
  .nav-toggle {
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  .header {
    display: none;
  }

  .header-mobile {
    display: flex;
  }

  .page {
    padding-top: calc(var(--promo-h) + 64px);
  }

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

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

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

@media (max-width: 767px) {
  .promo-full {
    display: none;
  }

  .promo-short {
    display: inline;
  }

  .header-inner {
    grid-template-columns: 1fr;
  }

  .ghost-row {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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