/* Шрифты Gilroy */
@font-face {
    font-family: 'Gilroy';
    src: url('../../reseller/fonts/Gilroy-ExtraBold.eot');
    src: local('Gilroy ExtraBold'), local('Gilroy-ExtraBold'),
        url('../../reseller/fonts/Gilroy-ExtraBold.eot?#iefix') format('embedded-opentype'),
        url('../../reseller/fonts/Gilroy-ExtraBold.woff') format('woff'),
        url('../../reseller/fonts/Gilroy-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../../reseller/fonts/Gilroy-SemiBold.eot');
    src: local('Gilroy SemiBold'), local('Gilroy-SemiBold'),
        url('../../reseller/fonts/Gilroy-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('../../reseller/fonts/Gilroy-SemiBold.woff') format('woff'),
        url('../../reseller/fonts/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../../reseller/fonts/Gilroy-Regular.eot');
    src: local('Gilroy Regular'), local('Gilroy-Regular'),
        url('../../reseller/fonts/Gilroy-Regular.eot?#iefix') format('embedded-opentype'),
        url('../../reseller/fonts/Gilroy-Regular.woff') format('woff'),
        url('../../reseller/fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../../reseller/fonts/Gilroy-Medium.eot');
    src: local('Gilroy Medium'), local('Gilroy-Medium'),
        url('../../reseller/fonts/Gilroy-Medium.eot?#iefix') format('embedded-opentype'),
        url('../../reseller/fonts/Gilroy-Medium.woff') format('woff'),
        url('../../reseller/fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../../reseller/fonts/Gilroy-Bold.eot');
    src: local('Gilroy Bold'), local('Gilroy-Bold'),
        url('../../reseller/fonts/Gilroy-Bold.eot?#iefix') format('embedded-opentype'),
        url('../../reseller/fonts/Gilroy-Bold.woff') format('woff'),
        url('../../reseller/fonts/Gilroy-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Базовые стили */
:root {
  --color-red: #FF5A5A;
  --color-text: #4F5665;
  --color-black: #0C0C0C;
}

*, *:after, *:before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Gilroy", sans-serif!important;
}

i.icon:before {
  font-family: 'Icons'!important;
}

body {
  color: var(--color-text);
  line-height: 1.6;
}

html {
  font-size: 16px;
}

h1, h2, h3, .ui.header {
  color: var(--color-black);
  font-weight: 600!important;
  line-height: 1.2;
}

h2.ui.section-title {
  font-size: 40px;
  margin-bottom: 55px;
}

h2.ui.section-title:has(+.section-subtitle) {
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--color-text);
}

ul {
  list-style: none;
}

img {
  vertical-align: top;
  max-width: 100%;
  height: auto;
}

.red {
  color: var(--color-red);
}

.ui.button {
  transition: all 0.3s ease;
  font-family: "Gilroy", sans-serif!important;
}

.button.lightred,
.ui.button.lightred {
  background: var(--color-red);
  color: #ffffff!important;
  padding: 24px 32px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 16px;
}

.button.lightred:hover,
.ui.button.lightred:hover {
  background: #d02f2f;
  color: #ffffff;
}

.ui.huge.button {
  font-size: 18px;
  padding: 28px 48px;
}

.ui.button.basicred {
  color: var(--color-red);
  background: #FFF1F1;
  padding: 14px 24px;
  border: none;
}

.ui.button.basicred:hover {
  background: var(--color-red);
  color: #ffffff;
}

.ui.container {
  padding: 0px 15px;
  width: 1200px;
  margin: 0 auto;
}

.decor-b {
  background-image: url(../../reseller/images/decor-b.svg);
  background-size: 140% auto;
  background-position: top center;
  background-repeat: no-repeat;
}

/* Header */
.header {
  padding: 15px 0px;
  width: 100%;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .menu ul {
  display: flex;
  gap: 40px;
  align-items: center;
}

.header .menu ul a {
  color: var(--color-text);
  font-size: 16px;
  padding: 10px 0px;
  position: relative;
  text-decoration: none;
  font-weight: 500;
}

.header .menu ul a:hover {
  color: var(--color-red);
}

.login {
  margin-left: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.mmenu {
  display: none;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

/* Hero Section - Лид-блок уникальный */
.hero-section {
  padding: 80px 0 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 8px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF1F1;
  border-radius: 10px;
}

.feature-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-black);
  margin-bottom: 4px;
}

.feature-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
}

.hero-note {
  font-size: 14px;
  color: var(--color-text);
  text-align: center;
  margin-top: -8px;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Features Section - Текстовый блок уникальный */
.features-section {
  padding: 100px 0;
  background: #f6f6f6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 50px -17px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 60px -17px rgba(0, 0, 0, 0.15);
}

.feature-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #FFF1F1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-card-icon {
  background: var(--color-red);
}

.feature-card:hover .feature-card-icon svg path {
  fill: #fff;
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-black);
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* How To Section - Блок "Как подключить" стандартный */
.how-to-section {
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step {
  background: #FFFFFF;
  box-shadow: 0 8px 50px -17px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  position: relative;
  padding: 38px 20px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 60px -17px rgba(0, 0, 0, 0.15);
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  background: #f6f6f6;
  width: 100px;
  height: 100px;
  transform: translate(-50px, -50px) rotate(45deg);
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: background 0.3s ease;
}

.step:hover .step-number {
  background: var(--color-red);
  color: #ffffff;
}

.step-number span {
  transform: rotate(-45deg);
  font-weight: 500;
}

.step-icon {
  background: #f6f6f6;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.step:hover .step-icon {
  background: #FFF1F1;
}

.step-title {
  font-weight: 600;
  font-size: 21px;
  line-height: 25px;
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e6e6e6;
  width: 100%;
  color: var(--color-black);
}

.step-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}

/* CTA Section - Блок призыва стандартный */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f6f6f6 0%, #fff 100%);
}

.cta-box {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 60px 50px;
  border-radius: 24px;
  box-shadow: 0 20px 80px -20px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--color-red);
}

.cta-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-black)!important;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 48px;
  color: var(--color-text);
}

.cta-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.cta-step {
  background: #FFF1F1;
  padding: 28px 36px;
  border-radius: 16px;
  min-width: 180px;
  border: 2px solid #FFE0E0;
  transition: all 0.3s ease;
}

.cta-step:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

.cta-step:hover .cta-step-number,
.cta-step:hover .cta-step-text {
  color: #fff;
}

.cta-step-number {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-red);
  transition: color 0.3s ease;
}

.cta-step-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  transition: color 0.3s ease;
}

.cta-arrow {
  font-size: 32px;
  font-weight: 300;
  color: var(--color-red);
}

.cta-benefits {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid #f6f6f6;
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.cta-benefit svg path {
  stroke: var(--color-red);
}

/* Footer */
.footer-front {
  padding: 60px 0;
  background: #f6f6f6;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo img {
  max-width: 150px;
}

.footer-menu ul {
  display: flex;
  gap: 30px;
}

.footer-menu ul a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-menu ul a:hover {
  color: var(--color-red);
}

.copyright {
  font-size: 14px;
  color: var(--color-text);
  text-align: right;
  max-width: 400px;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .ui.container {
    width: 100%;
    padding: 0 30px;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-image {
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-steps {
    flex-direction: column;
    gap: 16px;
  }

  .cta-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .header .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }

  .header .menu.active {
    right: 0;
  }

  .header .menu ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .login {
    margin-left: 0;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .login a {
    width: 100%;
  }

  .login .ui.button {
    width: 100%;
  }

  .mmenu {
    display: block;
    z-index: 1001;
  }

  .menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  h2.ui.section-title {
    font-size: 32px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 36px;
  }

  .cta-subtitle {
    font-size: 18px;
  }

  .cta-benefits {
    flex-direction: column;
    gap: 16px;
  }

  .footer-flex {
    flex-direction: column;
    text-align: center;
  }

  .footer-menu ul {
    flex-direction: column;
    gap: 16px;
  }

  .copyright {
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .ui.huge.button {
    font-size: 16px;
    padding: 20px 32px;
  }

  .cta-step {
    min-width: 140px;
    padding: 20px 24px;
  }

  .cta-step-number {
    font-size: 28px;
  }

  .cta-box {
    padding: 40px 30px;
  }
}

