/* Шрифты 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-Light.eot');
  src: local('Gilroy Light'), local('Gilroy-Light'),
    url('../../reseller/fonts/Gilroy-Light.eot?#iefix') format('embedded-opentype'),
    url('../../reseller/fonts/Gilroy-Light.woff') format('woff'),
    url('../../reseller/fonts/Gilroy-Light.ttf') format('truetype');
  font-weight: 300;
  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);
}

.bold {
  font-weight: 700;
}

.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.basic.lightred {
  color: var(--color-red) !important;
  border: 1px solid var(--color-red);
  box-shadow: none;
  font-weight: 600;
}

.ui.button.basic.lightred:hover {
  background: var(--color-red) !important;
  color: #ffffff !important;
}

.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;
}

.header .login a:first-of-type {
  padding-right: 16px;
}

.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: 16px;
  margin: 8px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
}

.feature-item svg {
  flex-shrink: 0;
}

.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;
}

/* Why Test Section - Текстовый блок уникальный */
.why-test-section {
  padding: 100px 0;
  background: #f6f6f6;
}

.why-test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.why-test-item {
  display: flex;
  gap: 24px;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0px 8px 50px -17px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-test-item:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 60px -17px rgba(0, 0, 0, 0.15);
}

.why-test-number {
  font-size: 48px;
  font-weight: 800;
  color: #f6f6f6;
  line-height: 1;
  flex-shrink: 0;
}

.why-test-content h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-black);
}

.why-test-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* Advantages Section - Блок преимуществ стандартный */
.advantages-section {
  padding: 100px 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.advantage-item {
  background: #fff;
  padding: 28px 20px;
  border-radius: 16px;
  box-shadow: 0px 8px 50px -17px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 60px -17px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
  background: #f6f6f6;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon {
  background: #FFF1F1;
}

.advantage-icon img {
  width: 48px;
  height: 48px;
}

.advantage-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-black);
}

.advantage-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: 0px 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: 32px;
  color: var(--color-text);
}

.setup-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: left;
}

.setup-step-card {
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
  border: 1px solid #ffe1e1;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0px 10px 30px -22px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.setup-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 16px 40px -24px rgba(0, 0, 0, 0.28);
}

.setup-step-card--wide {
  grid-column: 1 / -1;
}

.setup-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.setup-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.setup-step-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
}

.setup-step-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  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;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-image {
    order: -1;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-test-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;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 36px;
  }

  .cta-subtitle {
    font-size: 18px;
  }

  .setup-steps-grid {
    grid-template-columns: 1fr;
  }

  .setup-step-card--wide {
    grid-column: auto;
  }

  .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;
  }
}