:root {
  --color-bg: #0f172a;
  --color-bg-light: #f1f5f9;
  --color-accent: #f97316;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --font-base: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  border-radius: 12px;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #0f172a;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease;
  text-align: center;
  width: auto;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
}

.button--ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.hero {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 40%),
              radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.12), transparent 45%),
              #fff;
  padding: clamp(60px, 12vw, 100px) 0;
}

.hero__content {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.hero__lead {
  max-width: 520px;
}

.hero__bullets {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text);
}

.hero__bullets li::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

.hero__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-muted);
}

.hero__image {
  position: relative;
  width: 100%;
}

.hero__image img {
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
  width: 100%;
}

.hero__caption {
  position: absolute;
  bottom: -18px;
  left: 20px;
  right: 20px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  font-size: 0.9rem;
  color: var(--color-muted);
}

section {
  padding: clamp(60px, 14vw, 90px) 0;
}

.benefits__grid,
.services__grid,
.portfolio__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .benefits__grid,
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .portfolio__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.card,
.service,
.case__body {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  height: 100%;
}

.service ul {
  margin: 16px 0;
  color: var(--color-muted);
  display: grid;
  gap: 8px;
}

.service ul li::marker {
  content: none;
}

.case {
  display: grid;
  gap: 16px;
}

.case__body p:last-child {
  margin-bottom: 0;
}

.process__timeline {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .process__timeline {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.step {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 16px;
  padding: 24px;
}

.step__number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 24px;
  margin: 0 clamp(2vw, 5%, 40px);
  padding: clamp(40px, 10vw, 64px) 0;
}

.cta__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .cta__content {
    grid-template-columns: 1fr 1fr;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  width: 100%;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
}

.form input,
.form textarea {
  width: 100%;
  min-width: 0; /* Prevents input expanding beyond container */
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  color: #000;
  box-sizing: border-box;
}

.form textarea {
  resize: vertical;
}

.form__consent {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.form__alt {
  text-align: center;
}

.form__alt a {
  color: #fff;
  font-weight: 600;
}

.footer {
  background: var(--color-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 36px 0;
}

.footer__content {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 600px) {
  .footer__content {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.footer__contacts,
.footer__legal {
  display: grid;
  gap: 8px;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
  }
  .hero__content {
    text-align: left;
    gap: 32px;
  }

  .hero__bullets {
    display: flex;
    flex-direction: column;
    margin: 24px 0;
  }

  .hero__cta {
    justify-content: flex-start;
  }

  .hero__contacts {
    align-items: flex-start;
  }

  .hero__image {
    order: -1;
  }

  .hero__caption {
    position: static;
    margin-top: 12px;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.1);
  }
  
  .cta {
    margin: 0;
    border-radius: 0;
    padding: 40px 0;
  }
  
  .button {
    width: 100%;
  }

  .form {
    padding: 20px;
  }
}