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

html {
  color-scheme: only light;
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background: #f6f5f5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.header__inner {
  display: flex;
  align-items: center;
  min-height: 62px;
}

.header__logo {
  width: 75px;
}

/* Hero */
.hero {
  padding: 24px 0 48px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero__title {
  margin: 0 0 12px;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
}

.hero__subtitle {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 480px;
}

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

.hero__phone {
  width: min(384px, 100%);
}

/* Store buttons — natural width, never stretched */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 200px;
  max-width: 220px;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  background: #188700;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(24, 135, 0, 0.22);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 auto;
}

.store-btn:hover {
  background: #147500;
  box-shadow: 0 4px 14px rgba(24, 135, 0, 0.28);
  color: #fff;
}

.store-btn__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-btn__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-btn__label {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

.store-btn__name {
  font-size: 16px;
  font-weight: 700;
}

/* Features */
.features {
  padding: 0 0 40px;
}

.features--business {
  padding-bottom: 64px;
}

.section-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

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

.features__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  min-height: 180px;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.feature-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.feature-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

/* iPhone banner */
.iphone-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.iphone-banner--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.iphone-banner__inner {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 44px 16px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border-left: 4px solid #188700;
}

.iphone-banner__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.iphone-banner__text {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.iphone-banner__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.iphone-banner__close:hover {
  background: #f0f0f0;
  color: #000;
}

/* Tablet */
@media (max-width: 959px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__media {
    order: -1;
  }

  .hero__phone {
    width: min(280px, 70vw);
  }

  .hero__content {
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .features__grid,
  .features__grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 639px) {
  .header__inner {
    min-height: 48px;
  }

  .hero {
    padding: 16px 0 32px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__phone {
    width: min(224px, 70vw);
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .store-btn {
    width: 100%;
    max-width: 300px;
    min-width: 0;
  }

  .features__grid,
  .features__grid--3 {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .section-title {
    font-size: 22px;
    text-align: center;
  }
}
