@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f3f6fb;
  color: #1f2933;
  font-size: 18px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0;
  height: 120px;
  gap: 24px;
}

.header__logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-picture {
  height: 100px;
  width: auto;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__logo-image {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #111827;
  animation: logo-spin-horizontal 8s linear infinite;
}

@keyframes logo-spin-horizontal {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.header__logo-title {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.header__logo-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin-top: 2px;
  font-weight: 500;
  text-align: center;
  width: 100%;
}

.header__company-name {
  font-size: 28px;
  font-weight: 700;
  color: #1f2933;
  margin-left: 12px;
}

.header__menu-toggle {
 display: none;
 align-items: center;
 justify-content: center;
 width:40px;
 height:40px;
 border: none;
 border-radius:8px;
 background-color: #f3f4f6;
 color: #111827;
 font-size:24px;
 line-height:1;
 cursor: pointer;
}

.header__nav {
 display: flex;
 gap:24px;
 font-weight:500;
}

.header__link {
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #f59e0b;
  transition: width 0.2s ease;
}

.header__link:hover::after {
  width: 100%;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  font-size: 14px;
}

.header__phone {
  font-weight: 600;
  color: #b91c1c;
}

.header__email {
  color: #4b5563;
}

.hero {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)),
    url("../img1/Шапка.jpg") center / cover no-repeat;
  color: #ffffff;
  padding: 80px 0 72px;
}

.hero__inner {
  display: flex;
  justify-content: center;
}

.hero__content {
  max-width: 640px;
  text-align: center;
}

.hero__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 16px;
  color: #e5e7eb;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  border: none;
  background-color: #f59e0b;
  color: #111827;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  background-color: #fbbf24;
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.3);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: #ffffff;
  color: #111827;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 32px;
}

.services .section-subtitle {
  color: #e5e7eb;
}

.services {
  padding: 64px 0;
  background-color: #1f2933;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.card__image {
  height: 190px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 20px 20px 22px;
}

.card__title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card__text {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.card__gallery {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.card__gallery img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.about {
  padding: 56px 0 64px;
}

.about__inner {
  display: flex;
  justify-content: center;
}

.about__text {
  max-width: 640px;
  text-align: center;
  color: #4b5563;
  line-height: 1.7;
}

.about__text p + p {
  margin-top: 12px;
}

.about__contacts {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about__phone,
.about__email {
  font-weight: 500;
  color: #1f2933;
}

.about__phone:hover,
.about__email:hover {
  color: #f59e0b;
}

.contacts {
  padding: 56px 0 72px;
}

.contacts__inner {
  display: flex;
  justify-content: center;
}

.contacts__content {
  max-width: 640px;
  text-align: center;
  background-color: #111827;
  color: #f9fafb;
  border-radius: 24px;
  padding: 40px 24px 32px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.contacts__subtitle {
  margin-top: 8px;
  margin-bottom: 24px;
  color: #e5e7eb;
}

.contacts__details {
  margin-bottom: 24px;
  color: #e5e7eb;
  line-height: 1.8;
}

.contacts__details a {
  color: #f59e0b;
}

.contacts__details a:hover {
  color: #fbbf24;
}

.contacts__items {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.contacts__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.contacts__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f59e0b;
}

.contacts__icon--phone::before {
  content: "☎";
}

.contacts__icon--mail::before {
  content: "✉";
}

.contacts__label {
  font-size: 15px;
}

.contacts__btn {
  margin-top: 8px;
}

.footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px 0 20px;
  background-color: #ffffff;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

.footer__link {
  font-weight: 500;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header__inner {
    height: auto;
    min-height: 90px;
    padding: 10px 0;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

 .header__menu-toggle {
 display: inline-flex;
 margin-left: auto;
 }

 .header__nav {
 display: none;
 width: 100%;
 flex-direction: column;
 align-items: center;
 gap: 12px;
 font-size:16px;
 padding: 12px 8px;
 }

 body.menu-open .header__nav {
 display: flex;
 }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contacts__content {
    width: 100%;
    padding-inline: 16px;
  }

 .contacts__items {
 flex-direction: column;
 align-items: flex-start;
 gap: 12px;
 }

 .contacts__item {
 width: 100%;
 }

 .footer__inner {
 flex-direction: column;
 text-align: center;
 }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 12px;
  }

  .header {
    position: static;
  }

 .header__menu-toggle {
 width:36px;
 height:36px;
 font-size:22px;
 }

 .header__nav {
 font-size:14px;
 gap:10px;
 }

 .header__link {
 padding: 6px 0;
 }

  .hero {
    padding: 48px 0 44px;
  }

  .hero__title {
    font-size: 22px;
  }

  .hero__subtitle {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .services {
    padding: 36px 0;
  }

  .card__image {
    height: 160px;
  }

  .card {
    border-radius: 14px;
  }

  .card__body {
    padding: 14px;
  }

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

  .card__gallery img {
    height: 120px;
  }

  .about {
    padding: 40px 0;
  }

  .contacts {
    padding: 36px 0 44px;
  }

 .contacts__content {
 border-radius:16px;
 padding:24px14px20px;
 }

 .contacts__label {
 font-size:14px;
 word-break: break-word;
 }
}
