.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-block { width: 100%; }

.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Cards */
.card-advantage {
  text-align: center;
  padding: 12px;
}

.card-advantage img {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.card-advantage h3 { color: #fff; }

.card-service {
  text-align: center;
  padding: 16px 12px 24px;
}

.card-service__media {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface);
}

.card-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-service h3 { color: #fff; margin-bottom: 6px; }

.card-service p {
  font-size: 13px;
  min-height: 2.6em;
}

.card-service__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.card-tech {
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  background: var(--color-bg-elevated);
}

.card-portfolio {
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
}

.card-portfolio img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.card-portfolio__body {
  padding: 12px 14px 16px;
}

.card-portfolio h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}

.card-portfolio .tags {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Forms */
.form-card {
  background: var(--color-form-bg);
  color: var(--color-form-text);
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.form-card h3 {
  color: var(--color-form-text);
  margin-bottom: 8px;
}

.form-card p {
  color: #666;
  font-size: 13px;
}

.form-card label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.form-card input[type="text"],
.form-card input[type="tel"],
.form-card input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 12px;
  background: #fff;
  color: #222;
}

.form-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: #666;
  margin: 8px 0 14px;
}

.form-consent a { color: var(--color-accent); }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #111 center / cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  width: min(100% - 32px, var(--container));
  margin: 40px auto;
}

.hero__content h1 { color: #fff; }

.hero__content .lead {
  color: #eee;
  font-size: 16px;
  margin-bottom: 18px;
}

.hero-bullets {
  margin: 0 0 24px;
}

.hero-bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #fff;
  margin-bottom: 10px;
}

.hero-bullets li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-accent) url("../assets/icons/check.svg") center / 12px no-repeat;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Dual path */
.dual-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-bg-elevated);
}

.dual-path__item {
  padding: 40px 32px;
  border: 1px solid var(--color-border);
}

.dual-path__item h3 { color: #fff; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}

.stats__item strong {
  display: block;
  font-size: 32px;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.stats__item span {
  color: var(--color-text-muted);
  font-size: 13px;
}

/* Carousel */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.carousel__track > * {
  flex: 0 0 min(280px, 80%);
  scroll-snap-align: start;
}

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: #fff;
  cursor: pointer;
}

/* Calc promo */
.calc-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-promo__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

.calc-promo__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Contacts */
.contacts-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contacts-block a { color: var(--color-accent); }

.map-placeholder {
  min-height: 240px;
  background: var(--color-surface) center / cover;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

/* Modal + cookie */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal.is-open { display: flex; }

.modal__dialog {
  background: #fff;
  color: #222;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 6px;
  padding: 24px;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #2a2a2a;
  color: #ddd;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.cookie-bar.is-hidden { display: none; }

.breadcrumbs {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 16px 0 0;
}

.breadcrumbs a { color: var(--color-text-muted); }

@media (max-width: 992px) {
  .hero__inner,
  .calc-promo,
  .contacts-block,
  .dual-path,
  .stats {
    grid-template-columns: 1fr;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 0; }
  .hero__inner { margin: 24px auto; }
}
