/* style.css */
:root {
  --gap-sm: 0.5rem;
  --gap-md: 1rem;
  --gap-lg: 1.5rem;
  --clr-dark: #343a40;
  --clr-light: #f9f9f9;
  --gradient: linear-gradient(135deg, #db5db9 0%, #fabd62 100%);
  --transition: 0.3s ease;
  --font: "Inter", sans-serif;
}

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

html {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--clr-dark);
  background: var(--clr-light);
  line-height: 1.5;
}

/* Общие правила для всех img */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.header__nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 101;
}

/* Логотип */
.header__logo img {
  /* при необходимости задаём максимальную ширину через CSS */
  max-width: 170px;
  width: 100%; /* растягивается до максимума контейнера */
  height: auto;
}

.info-txt {
  text-align: center;
  margin: 15px 0;
  display: block;
}

/* Герой‑изображение */
.hero__image img {
  max-width: 80vw;
  width: 100%;
  height: auto;
}

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

.section-description {
  padding: 20px 0;
  font-size: 1.2rem;
  color: #5c5c5c;
}
/* Секции со скриншотами и карточками */
.install-img,
.benefit-card__icon,
.testimonial-avatar img {
  /* Все иконки и аватары тоже гибко масштабируются */
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.testimonial__inner,
.crm__inner,
.install-ios__inner,
.benefits__inner,
.hero__inner {
  margin: 50px auto;
  min-height: 500px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap-md) 0;
}
.header__menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gradient);
  cursor: pointer;
}
.header__nav {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
}
.header__nav.open {
  transform: translateX(0);
}
.header__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}
.header__nav a {
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  transition: color var(--transition);
}
.header__nav a:hover, .header__nav a:hover i {
  background: linear-gradient(135deg, #db5db9 0%, #fabd62 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (min-width: 768px) {
  .header__menu-toggle {
    display: none;
  }
  .header__nav {
    position: static;
    transform: none;
    background: transparent;
  }
  .header__nav ul {
    flex-direction: row;
    gap: var(--gap-md);
  }
  .header__nav a {
    color: var(--clr-dark);
    font-size: 1rem;
  }
}



/* Section titles */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--gap-md);
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
  text-align: center;
}

/* Descriptions */
.section-description {
  text-align: center;
  margin-bottom: var(--gap-md);
  color: #555;
}

/* Hero */
.hero {
  padding-top: 4rem;
  height: 100vh;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}
@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    text-align: left;
  }
}
.hero__text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--gap-md);
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
  text-align: center;
}
.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
@media (min-width: 480px) {
  .hero__buttons {
    flex-direction: row;
  }
}
.hero__image {
  margin-top: var(--gap-lg);
  width: 80%;
  max-width: 300px;
}
@media (min-width: 768px) {
  .hero__image {
    margin-top: 0;
    margin-left: var(--gap-lg);
  }
}

/* Benefits */
.benefits__grid {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.benefit-card {
  background: #fff;
  padding: var(--gap-md);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.benefit-card__icon {
  margin-bottom: var(--gap-sm);
  object-fit: contain;
}

/* iOS Installation */
.install-ios {
  padding: 4rem 0;
}
.install-grid {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .install-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.install-step {
  text-align: center;
}
.install-img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto var(--gap-md);
  display: block;
  border-radius: 0.5rem;
}

/* CRM */
.crm__inner {
  display: flex;
  flex-direction: column;
  text-align: center;
}
@media (min-width: 768px) {
  .crm__inner {
    align-items: center;
    text-align: left;
  }
}

/* Testimonials */
.testimonials-slider {
  display: flex;
  gap: var(--gap-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.testimonial-item {
  background: #fff;
  padding: var(--gap-md);
  border-radius: 0.5rem;
  min-width: 280px;
  scroll-snap-align: start;
  text-align: center;
}
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--gap-md);
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer Base Styles */
.footer {
  background: #111;
  color: #eee;
  padding: 3rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__col h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #ffffff;
}

.footer__logo img {
  max-width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

.footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-direction: column;
}

.footer__nav a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__col--contacts a,  .footer__col--info a{
color: #62b6fa;
}

/* при наведении использовать градиент для всех ссылок в футере */
.footer__nav a:hover,
.footer__social a:hover,
.footer__col--contacts a:hover,
.footer__col--info a:hover {
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.footer__col--info p,
.footer__col--contacts p {
  margin-bottom: 1rem;
  color: #ccc;
}

.footer__social a {
  display: inline-block;
  margin-right: 0.75rem;
  font-size: 1.2rem;
  color: #eee;
  transition: color 0.3s ease;
}


.footer__txt {
  margin-bottom: 2rem;
  color: #bbb;
  font-size: 0.9rem;
  text-align: center;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #777;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .footer__col {
    text-align: center;
  }
  .footer__nav ul {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer__columns {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .footer__nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer__logo img {
    max-width: 100px;
    margin: 0 auto 1rem;
  }
  .footer__bottom {
    font-size: 0.8rem;
    padding-top: 0.5rem;
  }
}


@media (max-width: 768px) {
  .header__logo img {
    width: 80px;
  }
  .hero__image img {
    max-width: 50vw;
    width: 100%;
    height: auto;
  }
  .testimonial__inner,
  .crm__inner,
  .install-ios__inner,
  .benefits__inner,
  .hero__inner {
    margin: 20px auto;
    min-height: 200px;
  }
  .hero__inner {
  height: auto;
  }
}
