/* ========================================
   ШРИФТ
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* ========================================
   БАЗОВЫЕ НАСТРОЙКИ
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;

  color: #111827;
  background: #f8fafc;

  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

a {
  color: inherit;
}


/* ========================================
   КОНТЕЙНЕР
   ======================================== */

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* ========================================
   HEADER
   ======================================== */

.header {
  background: #f8fafc;
  color: #111827;
  border-bottom: 1px solid #e2e8f0;
}

.header-inner {
  min-height: 68px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo {
  color: #111827;
  text-decoration: none;

  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;

  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: #334155;
  text-decoration: none;

  font-size: 15px;
  font-weight: 500;

  transition: color .2s;
}

.nav a:hover,
.nav a.active {
  color: #2563eb;
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 2px;

  font-size: 14px;
}

.contacts a {
  color: #475569;
  text-decoration: none;

  transition: color .2s;
}

.contacts a:hover {
  color: #2563eb;
}

.contacts a:first-child {
  color: #111827;

  font-size: 16px;
  font-weight: 700;
}


/* ========================================
   HERO
   ======================================== */

.hero {
  text-align: center;

  padding: 40px 20px 44px;

  background: #f8fafc;
}

.hero h1 {
  color: #111827;

  font-size: clamp(32px, 3.7vw, 38px);
  line-height: 1.17;

  font-weight: 800;
  letter-spacing: -0.4px;

  margin-bottom: 14px;
}

.hero p {
  max-width: none;

  white-space: nowrap;

  margin: 0 auto;

  color: #475569;

  font-size: 17px;
  line-height: 1.6;
}

.hero-button {
  display: inline-block;

  margin-top: 24px;
  padding: 11px 24px;

  background: #2563eb;

  border-radius: 7px;

  color: #ffffff;
  text-decoration: none;

  font-weight: 700;

  transition: background .2s, transform .2s;
}

.hero-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.hero-small {
  padding: 32px 20px 38px;
}

.hero-small h1 {
  font-size: clamp(30px, 3.7vw, 40px);
}


/* ========================================
   SERVICES
   ======================================== */

.services {
  padding: 38px 0 42px;

  background: #f8fafc;

  border-top: 1px solid #e2e8f0;
}

.services h2 {
  color: #111827;

  text-align: center;

  font-size: 29px;
  line-height: 1.25;
  font-weight: 700;

  margin-bottom: 25px;
}

.grid {
  display: grid;

  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.card {
  background: #ffffff;

  border: 1px solid #e2e8f0;
  border-radius: 10px;

  overflow: hidden;

  box-shadow: 0 2px 6px rgba(15, 23, 42, .03);

  transition:
    transform .2s,
    box-shadow .2s,
    border-color .2s;
}

.card:hover {
  transform: translateY(-2px);

  border-color: #cbd5e1;

  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.card-inner {
  position: relative;

  aspect-ratio: 1.35 / 1;

  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.card-overlay {
  position: absolute;
  inset: 0;

  background: rgba(15, 23, 42, .88);

  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 14px;

  opacity: 0;

  transition: opacity .25s;
}

.card-inner:hover .card-overlay {
  opacity: 1;
}

.card-overlay p {
  color: #ffffff;

  font-size: 14px;
  line-height: 1.65;
}

.card h3 {
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 8px;

  color: #111827;

  text-align: center;

  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}


/* ========================================
   CTA
   ======================================== */

.cta {
  margin-top: 50px;

  padding: 32px 20px;

  background: #f8fafc;

  color: #111827;

  text-align: center;

  border-top: 1px solid #e2e8f0;
}

.cta h2 {
  color: #111827;

  font-size: 26px;
  line-height: 1.3;

  font-weight: 700;

  margin-bottom: 6px;
}

.cta p {
  color: #475569;

  font-size: 16px;
}

.cta a {
  display: inline-block;

  margin-top: 9px;

  color: #2563eb;
  text-decoration: none;

  font-size: 22px;
  font-weight: 700;

  transition: color .2s;
}

.cta a:hover {
  color: #1d4ed8;
}


/* ========================================
   ABOUT — О КОМПАНИИ
   ======================================== */

.about-text {
  width: 100%;
  max-width: 820px;

  margin: 0 auto;

  color: #334155;

  font-size: 16px;
  line-height: 1.65;

  text-align: left;
}

.about-text h2 {
  color: #111827;

  font-size: 28px;
  line-height: 1.25;

  font-weight: 700;

  margin-top: 38px;
  margin-bottom: 20px;

  text-align: center;
}

.about-text p {
  max-width: 780px;

  margin-bottom: 14px;
}


/* ========================================
   ПРЕИМУЩЕСТВА
   ======================================== */

.about-features {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px 35px;

  max-width: 780px;

  margin: 24px 0 30px;

  padding: 18px 20px;

  background: #ffffff;

  border: 1px solid #e2e8f0;
  border-radius: 10px;

  box-shadow: 0 2px 6px rgba(15, 23, 42, .03);
}

.about-features div {
  color: #334155;

  font-size: 15px;
  line-height: 1.5;

  text-align: left;
}

.about-features strong {
  display: inline-block;

  color: #2563eb;

  margin-right: 7px;
}


/* ========================================
   РЕКВИЗИТЫ И КОНТАКТЫ
   ======================================== */

.about-details {
  max-width: 820px;

  margin: 30px auto 0;

  padding-top: 25px;

  border-top: 1px solid #e2e8f0;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  text-align: center;
}

.about-details-column {
  color: #334155;

  font-size: 15px;
  line-height: 1.6;

  text-align: center;
}

.about-details-column h3 {
  margin-bottom: 12px;

  color: #111827;

  font-size: 19px;
  font-weight: 700;

  text-align: center;
}

.about-details-column p {
  margin-bottom: 5px;
}

.about-details-column strong {
  color: #111827;
}

.about-details-column a {
  color: #2563eb;

  text-decoration: none;

  font-weight: 600;

  transition: color .2s;
}

.about-details-column a:hover {
  color: #1d4ed8;
}

/* ========================================
   ПРАЙС-ЛИСТ
   ======================================== */

.pricing {
  padding: 38px 0 42px;

  background: #f8fafc;

  border-top: 1px solid #e2e8f0;
}

.section-title {
  color: #111827;

  text-align: center;

  font-size: 29px;
  line-height: 1.3;

  font-weight: 700;

  margin-bottom: 24px;
}

.price-list {
  max-width: 880px;

  margin: 0 auto;

  background: #ffffff;

  border: 1px solid #e2e8f0;
  border-radius: 10px;

  overflow: hidden;

  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.price-item {
  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 11px 21px;

  border-bottom: 1px solid #e2e8f0;

  color: #334155;

  font-size: 16px;
  line-height: 1.45;
}

.price-item:last-child {
  border-bottom: none;
}

.price-item strong {
  color: #2563eb;

  font-size: 16px;

  white-space: nowrap;
}


/* ========================================
   АБОНЕНТСКОЕ ОБСЛУЖИВАНИЕ
   ======================================== */

.price-card {
  max-width: 880px;

  margin: 22px auto 0;

  padding: 25px;

  background: #ffffff;

  border: 1px solid #dbeafe;
  border-radius: 12px;

  text-align: center;

  box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}

.price-card h2 {
  color: #111827;

  font-size: 25px;
  line-height: 1.3;

  margin-bottom: 6px;
}

.price-card .price {
  color: #2563eb;

  font-size: 28px;
  font-weight: 700;

  margin: 6px 0 10px;
}

.price-description {
  max-width: 660px;

  margin: 0 auto 15px;

  color: #64748b;

  font-size: 15px;
  line-height: 1.55;
}

.price-card ul {
  list-style: none;

  display: flex;
  flex-wrap: wrap;

  justify-content: center;

  gap: 6px 22px;

  margin: 12px 0 18px;
}

.price-card li {
  color: #334155;

  font-size: 15px;
}

.price-button {
  display: inline-block;

  padding: 10px 22px;

  background: #2563eb;

  color: #ffffff;

  border-radius: 7px;

  text-decoration: none;

  font-size: 15px;
  font-weight: 700;

  transition: background .2s, transform .2s;
}

.price-button:hover {
  background: #1d4ed8;

  transform: translateY(-1px);
}


/* ========================================
   ПРИМЕЧАНИЕ
   ======================================== */

.price-note {
  max-width: 880px;

  margin: 16px auto 0;

  color: #64748b;

  text-align: center;

  font-size: 14px;
  line-height: 1.55;
}


/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 18px 20px;

  background: #1f2937;

  color: #cbd5e1;

  text-align: center;

  font-size: 13px;

  border-top: 1px solid #374151;
}


/* ========================================
   ПЛАНШЕТ
   ======================================== */

@media (max-width: 1000px) {

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-details {
    max-width: 700px;
    gap: 35px;
  }

}


/* ========================================
   АДАПТИВ
   ======================================== */

@media (max-width: 900px) {

  .header-inner {
    flex-wrap: wrap;

    justify-content: center;

    padding: 15px 0;
  }

  .contacts {
    align-items: center;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ======================================== */

@media (max-width: 650px) {

  .container {
    width: min(100% - 24px, 1180px);
  }


  /* HEADER */

  .logo {
    font-size: 23px;
  }

  .nav {
    order: 3;

    width: 100%;

    justify-content: center;

    gap: 17px;
  }

  .nav a {
    font-size: 14px;
  }

  .contacts {
    display: none;
  }


  /* HERO */

  .hero {
    padding: 32px 10px 36px;
  }

  .hero h1 {
    font-size: 29px;
    line-height: 1.2;
  }

  .hero p {
    white-space: normal;

    font-size: 15px;
    line-height: 1.55;
  }

  .hero-small {
    padding: 30px 10px 34px;
  }

  .hero-small h1 {
    font-size: 28px;
  }


  /* SERVICES */

  .services {
    padding: 30px 0 34px;
  }

  .services h2 {
    font-size: 27px;

    margin-bottom: 22px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;

    gap: 11px;
  }

  .card h3 {
    min-height: 52px;

    padding: 9px 6px;

    font-size: 15px;
  }

  .card-overlay {
    display: none;
  }


  /* CTA */

  .cta {
    margin-top: 35px;

    padding: 30px 15px;
  }

  .cta h2 {
    font-size: 24px;
  }

  .cta p {
    font-size: 15px;
  }

  .cta a {
    font-size: 21px;
  }


  /* ABOUT */

  .about-company {
    padding: 30px 0 34px;
  }

  .about-text {
    font-size: 16px;
    line-height: 1.6;
  }

  .about-text h2 {
    font-size: 27px;
  }

  .about-features {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .about-features div {
    font-size: 15px;
  }


  /* РЕКВИЗИТЫ И КОНТАКТЫ */

  .about-details {
    grid-template-columns: 1fr;

    gap: 22px;

    margin-top: 24px;

    text-align: center;
  }

  .about-details-column {
    font-size: 15px;
  }

  .about-details-column h3 {
    font-size: 19px;

    margin-bottom: 9px;
  }


  /* PRICING */

  .pricing {
    padding: 30px 0 35px;
  }

  .section-title {
    font-size: 27px;
  }

  .price-item {
    align-items: flex-start;

    padding: 11px 13px;

    font-size: 15px;
  }

  .price-item strong {
    font-size: 15px;

    text-align: right;
  }

  .price-card {
    padding: 22px 15px;
  }

  .price-card h2 {
    font-size: 23px;
  }

  .price-card .price {
    font-size: 25px;
  }

  .price-card ul {
    display: block;
  }

  .price-card li {
    margin: 5px 0;

    font-size: 14px;
  }

  .price-note {
    font-size: 13px;
  }


  /* FOOTER */

  .footer {
    padding: 13px 12px;

    font-size: 12px;
  }

}


/* ========================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ======================================== */

@media (max-width: 420px) {

  .grid {
    grid-template-columns: 1fr;
  }

  .card-inner {
    aspect-ratio: 1.8 / 1;
  }

  .nav {
    gap: 11px;
  }

  .nav a {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-small h1 {
    font-size: 26px;
  }

  .services h2,
  .section-title {
    font-size: 25px;
  }

  .cta h2 {
    font-size: 23px;
  }

}