:root {
  --color-primary: #ff4e4e;
  --color-secondary: #4a90e2;
  --color-background: #f0f5f9;
  --color-text: #333333;
  --color-dark-bg: #1a1a2e;
  --color-light-text: #ffffff;
  --font-heading: "Arial Black", sans-serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --spacing-large: 6rem;
  --spacing-medium: 3rem;
  --spacing-small: 1.5rem;
  --border-radius-base: 12px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-small);
}

a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-dark-bg);
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--spacing-medium);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header {
  background-color: var(--color-light-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-small) 0;
}

.logo__link {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: bold;
}

.logo__img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 78, 78, 0.5);
}

.logo__text {
  color: var(--color-dark-bg);
  transition: color 0.3s ease;
}

.logo__link:hover .logo__text {
  color: var(--color-primary);
}

.nav__list {
  display: flex;
  list-style: none;
}

.nav__item {
  margin-left: var(--spacing-small);
  position: relative;
}

.nav__link {
  display: block;
  padding: 10px 15px;
  color: var(--color-dark-bg);
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 8px;
}

.nav__link:hover {
  color: var(--color-light-text);
  background-color: var(--color-primary);
}

.dropdown {
  position: relative;
}

.dropdown__menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-light-text);
  list-style: none;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown__menu,
.dropdown.active .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__link {
  padding: 10px 15px;
  display: block;
  color: var(--color-dark-bg);
}

.dropdown__link:hover {
  background-color: var(--color-background);
  color: var(--color-primary);
  border-radius: var(--border-radius-base);
}

.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #7cb9e8 100%);
  color: var(--color-light-text);
  padding: var(--spacing-large) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero__title {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: var(--color-light-text);
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-medium);
  font-style: italic;
  font-weight: 300;
}

.hero__description {
  max-width: 800px;
  font-size: 1.15rem;
  margin-bottom: var(--spacing-medium);
}

.hero__visual {
  margin-top: var(--spacing-medium);
  perspective: 1000px;
}

.hero__img {
  max-width: 350px;
  border-radius: var(--border-radius-base);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero__img:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.cta-button {
  display: inline-block;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  margin-bottom: 10px;
}

.cta-button:hover {
  transform: translateY(-5px);
}

.cta-button__badge {
  height: 60px;
}

.cta-info {
  font-size: 0.9rem;
  opacity: 0.8;
}

.section {
  padding: var(--spacing-large) 0;
}

.section:nth-child(even) {
  background-color: var(--color-light-text);
}

.section:nth-child(odd) {
  background-color: var(--color-background);
}

.section__title {
  color: var(--color-primary);
  position: relative;
}

.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.divider {
  border: none;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0;
}

.content-block {
  display: flex;
  align-items: center;
  gap: var(--spacing-medium);
}

.content-block__text {
  flex: 1;
  padding: var(--spacing-small);
  text-align: left;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-base);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-block__text p {
  margin-bottom: var(--spacing-small);
}

.content-block__visual {
  flex: 0 0 350px;
}

.content-block__img {
  border-radius: var(--border-radius-base);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-medium);
  margin-top: var(--spacing-medium);
}

.features-list__item {
  background-color: var(--color-light-text);
  padding: var(--spacing-medium);
  border-radius: var(--border-radius-base);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border-top: 5px solid var(--color-primary);
}

.features-list__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.steps-list {
  list-style: none;
  max-width: 800px;
  margin: var(--spacing-medium) auto 0;
  counter-reset: step-counter;
}

.steps-list__item {
  display: flex;
  align-items: flex-start;
  background-color: var(--color-light-text);
  padding: var(--spacing-small);
  margin-bottom: var(--spacing-small);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--border-radius-base);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-number {
  counter-increment: step-counter;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  min-width: 40px;
  text-align: center;
  margin-right: 15px;
  padding-top: 5px;
}

.steps-list__item p {
  margin: 0;
  flex-grow: 1;
}

.gallery-section {
  background-color: var(--color-background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: var(--spacing-medium);
}

.gallery-grid__item {
  overflow: hidden;
  border-radius: var(--border-radius-base);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-grid__item:hover {
  transform: scale(1.03);
}

.gallery-grid__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

section.cta-final-section.section {
  background-color: var(--color-primary);
  color: var(--color-light-text);
  text-align: center;
  padding: var(--spacing-large) 0;
}

.cta-final-section__title {
  font-size: 3rem;
  color: var(--color-light-text);
  margin-bottom: var(--spacing-small);
}

.cta-final-section__title::after {
  background-color: var(--color-light-text);
}

.cta-final-section__text {
  max-width: 700px;
  margin: 0 auto var(--spacing-medium);
  font-size: 1.1rem;
}

.cta-final-section__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer {
  background-color: var(--color-dark-bg);
  color: var(--color-light-text);
  padding: var(--spacing-large) 0 var(--spacing-small);
  margin-top: auto;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-medium);
  padding-bottom: var(--spacing-medium);
}

.footer__column {
  flex: 1 1 200px;
}

.footer__title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-small);
  color: var(--color-primary);
  text-transform: uppercase;
}

.footer__list {
  list-style: none;
  padding: 0;
}

.footer__item {
  margin-bottom: 8px;
}

.footer__link,
.contact__info {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer__link:hover {
  color: var(--color-secondary);
}

.download-link__badge {
  height: 45px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-small);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__copyright,
.footer__made-by {
  margin: 5px 0;
}

@media (max-width: 1024px) {
  .content-block__visual {
    flex: 0 0 300px;
  }
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__img {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-large: 4rem;
    --spacing-medium: 2rem;
  }

  .header__container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .nav__list {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .nav__item {
    margin: 5px 10px;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }

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

  .content-block__visual {
    flex: 1 1 100%;
    max-width: 80%;
    order: -1;
    margin-bottom: var(--spacing-small);
  }

  .content-block__text {
    text-align: center;
  }

  .steps-list__item {
    align-items: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .footer__container {
    justify-content: space-around;
    gap: var(--spacing-medium) var(--spacing-small);
    text-align: center;
  }

  .footer__column {
    flex: 1 1 45%;
    margin-bottom: var(--spacing-small);
  }

  .footer__column--contact,
  .footer__column--download {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .nav__item {
    margin: 5px 5px;
  }

  .nav__link {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .footer__column {
    flex: 1 1 100%;
    text-align: center;
  }
}
