:root {
  --text: #000;
  --muted: #555;
  --line: #e2e2e2;
  --accent: #ff8562;
  --footer: #ededed;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: #fff;
  padding: 8px 12px;
}

/* Header */
.header {
  width: 100%;
  background: #fff;
}

.header__top {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 12px 40px;
  gap: 16px;
}

.logo {
  margin-right: auto;
  flex: 0 0 auto;
}

.logo img {
  width: 150px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 35px;
  border-radius: 100px;
  font-size: 18px;
  color: #fff;
  background: #000;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  background: #222;
}

.header__line {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: 0;
}

.header__nav {
  padding: 0 40px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 18px 0;
}

.nav-list a {
  display: inline-block;
  padding: 0 35px 0 0;
  color: #000;
  font-size: 18px;
}

.nav-list li:last-child a {
  padding-right: 0;
}

.nav-list a:hover {
  opacity: 0.7;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.burger span {
  display: block;
  height: 3px;
  margin: 5px 8px;
  background: #000;
}

.mobile-nav {
  display: none;
  padding: 0 24px 24px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #000;
  font-size: 18px;
  border-bottom: 1px solid var(--line);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 900px;
  padding: 0 24px;
  font-size: clamp(28px, 4.5vw, 58px);
  line-height: 1.35;
  letter-spacing: 1px;
  font-weight: 700;
}

.hero__arrow {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  color: #dbdbdb;
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* Sections */
.intro {
  padding: 60px 0;
  font-size: 20px;
  line-height: 1.55;
}

.intro strong {
  font-size: 24px;
}

.about {
  padding: 80px 0 40px;
}

.about h2,
.services h2,
.contact h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 30px);
}

.about p {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.55;
}

.services {
  padding: 80px 0;
}

.services h2 {
  text-align: center;
  margin-bottom: 60px;
}

.service {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 24px;
  align-items: start;
  margin-bottom: 56px;
}

.service:last-of-type {
  margin-bottom: 0;
}

.service__num {
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  color: rgba(200, 200, 200, 0.8);
  user-select: none;
}

.service__body h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.service__body p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.5;
}

.service img {
  grid-column: 2;
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

/* Contact */
.contact {
  padding: 40px 0 100px;
}

.contact h2 {
  text-align: center;
  margin-bottom: 48px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #000;
  font: inherit;
  color: #000;
  background: #fff;
}

.form-group textarea {
  min-height: 102px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #000;
  opacity: 0.5;
}

.form-error {
  color: #c0392b;
  font-size: 14px;
  margin-top: 6px;
  display: none;
}

.form-group.is-invalid .form-error {
  display: block;
}

.form-success {
  display: none;
  padding: 16px;
  margin-bottom: 20px;
  background: #eef8ee;
  border: 1px solid #b7dfb9;
}

.form-success.is-visible {
  display: block;
}

.form-fail {
  display: none;
  padding: 16px;
  margin-bottom: 20px;
  background: #fdeeee;
  border: 1px solid #e0b4b4;
}

.form-fail.is-visible {
  display: block;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-submit {
  display: block;
  margin: 30px auto 10px;
  min-width: 180px;
  height: 50px;
  border-radius: 30px;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.form-submit:hover {
  background: #222;
}

.form-note {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.footer {
  padding: 80px 0;
  background: var(--footer);
  text-align: center;
}

.footer h2 {
  margin: 0 0 24px;
  font-size: 30px;
}

.footer p {
  margin: 0;
  font-size: 20px;
  opacity: 0.6;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .header__top {
    padding: 12px 20px;
  }

  .header__nav,
  .header__shop {
    display: none;
  }

  .burger {
    display: block;
  }

  .service {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .service img {
    grid-column: 1 / -1;
    max-width: 100%;
    max-height: 240px;
  }

  .service__num {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .header__top {
    padding: 10px 16px;
  }

  .logo img {
    width: 120px;
  }

  .container {
    padding: 0 16px;
  }

  .intro,
  .about p,
  .service__body p {
    font-size: 16px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service__num {
    font-size: 48px;
  }

  .form-submit {
    width: 100%;
  }

  .footer {
    padding: 56px 0;
  }
}
