:root {
  --primary: #e87a41;
  --primary-dark: #d66a32;
  --primary-soft: #fff3ec;
  --accent-800: #1a2238;
  --accent-700: #232d47;
  --text: #1f2430;
  --text-muted: #6b7280;
  --bg-50: #ffffff;
  --bg-100: #f5f6f8;
  --border: #e8ebf0;
  --shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --container: 1180px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-50);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

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

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

.btn--block {
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.logo:hover .logo__mark {
  transform: scale(1.05);
}

.logo__text {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo__text span {
  color: var(--primary);
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.header.is-scrolled .nav a {
  color: var(--text);
}

.nav a:hover {
  color: var(--primary);
}

.header .logo__text {
  color: #fff;
}

.header.is-scrolled .logo__text {
  color: var(--text);
}

.header__cta {
  margin-left: 8px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: background 0.2s ease;
}

.header.is-scrolled .burger span {
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 120px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 30, 0.55) 0%, rgba(10, 16, 30, 0.72) 55%, rgba(10, 16, 30, 0.85) 100%),
    radial-gradient(circle at 20% 20%, rgba(232, 122, 65, 0.18), transparent 35%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 760px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.calc-card {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.9s ease 0.15s both;
}

.calc-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.calc-form {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr auto;
  gap: 16px;
  align-items: end;
}

.calc-form label span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calc-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8f9fb;
  color: var(--text);
}

.calc-form input:focus,
.callback-form input:focus,
.callback-form textarea:focus,
.subscribe input:focus {
  outline: 2px solid rgba(232, 122, 65, 0.25);
  border-color: var(--primary);
}

.calc-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 600;
}

.section {
  padding: 96px 0;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section__head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section__head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.advantages {
  background: var(--bg-50);
}

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

.adv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

.adv-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.adv-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.adv-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.services {
  background: var(--bg-100);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
}

.service-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card__body {
  padding: 24px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
}

.about {
  background: var(--accent-800);
  color: #fff;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 20px;
}

.about p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.stat strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.about__media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 6px;
}

.contact-item p,
.contact-item a {
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--primary);
}

.muted {
  font-size: 0.92rem;
}

.callback-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.06);
}

.callback-form h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.callback-form input,
.callback-form textarea,
.subscribe input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8f9fb;
  margin-bottom: 14px;
}

.form-note {
  margin-top: 12px;
  color: #0f7a3d;
  font-size: 0.95rem;
}

.footer {
  background: var(--accent-800);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 72px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a:hover {
  color: var(--primary);
}

.footer__brand p {
  margin: 18px 0 20px;
  max-width: 360px;
}

.logo--light .logo__text {
  color: #fff;
}

.subscribe {
  display: flex;
  gap: 10px;
}

.subscribe input {
  margin-bottom: 0;
}

.footer__social-title {
  margin-top: 24px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
}

.socials a:hover {
  background: var(--primary);
}

.footer__bottom {
  margin-top: 48px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  background: var(--accent-800);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid,
  .contacts__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .calc-form {
    grid-template-columns: 1fr 1fr;
  }

  .calc-form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    color: var(--text);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero {
    padding-bottom: 80px;
  }

  .calc-card {
    padding: 20px;
  }

  .calc-form,
  .services__grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .subscribe {
    flex-direction: column;
  }
}
