/* Переменные цветовой схемы */
:root {
  /* Основные цвета */
  --primary-color: #e0842e;
  /* Красный РОСТойл */
  --primary-dark: #e38c38;
  --primary-light: #f9a95e;

  /* Вторичные цвета */
  --secondary-color: #003366;
  /* Синий ТАИФ */
  --secondary-dark: #002244;
  --secondary-light: #335588;

  /* Текст */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #FFFFFF;

  /* Фон */
  --bg-light: #FFFFFF;
  --bg-dark: #1A1A1A;
  --bg-gray: #F5F5F5;

  /* Границы */
  --border-color: #E0E0E0;

  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Отступы */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Шрифты */
  --font-main: 'Montserrat', sans-serif;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xxl) 0;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn--outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--small {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.9rem;
}

/* Заголовки секций */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-title span {
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Прелоадер */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader__inner {
  text-align: center;
}

.preloader__logo {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.preloader__logo span:first-child {
  color: var(--primary-color);
}

.preloader__logo span:last-child {
  color: var(--secondary-color);
}

.preloader__progress {
  height: 4px;
  width: 200px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.preloader__progress::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--primary-color);
  animation: progress 2s ease-in-out forwards;
}

@keyframes progress {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* Шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
}

.logo span:first-child {
  color: var(--primary-color);
}

.logo span:last-child {
  color: var(--secondary-color);
}

.nav__list {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  font-weight: 500;
  position: relative;
  padding: var(--space-sm) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__phone {
  font-weight: 600;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Главный экран */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 200px;
  background: linear-gradient(135deg, rgba(241, 136, 15, 0.1) 0%, rgba(0, 51, 102, 0.1) 100%);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero__title span {
  color: var(--primary-color);
}

.hero__text {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

.hero__buttons {
  display: flex;
  gap: var(--space-md);
}

.hero__oil-bottle {
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  max-width: 500px;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* О компании */
.about {
  background-color: var(--bg-light);
}

.about__content {
  display: flex;
  gap: var(--space-xxl);
  align-items: center;
}

.about__text {
  flex: 1;
}

.about__text p {
  margin-bottom: var(--space-md);
}

.about__image {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about__image:hover img {
  transform: scale(1.05);
}

.about__stats {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Продукция */
.products {
  background-color: var(--bg-gray);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
}

.product-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.product-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.product-card__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--secondary-color);
}

.product-card__list {
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.product-card__list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.product-card__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.product-card__btn {
  align-self: flex-start;
}

.products__cta {
  text-align: center;
  background-color: var(--bg-light);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.products__cta p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

/* Преимущества */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.advantage {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.advantage:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.advantage__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.advantage__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--secondary-color);
}

.advantage__text {
  color: var(--text-secondary);
}

/* Для партнеров */
.partners {
  background-color: var(--bg-gray);
}

.partners__content {
  display: flex;
  gap: var(--space-xxl);
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.partners__text {
  flex: 1;
}

.partners__text h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--secondary-color);
}

.partners__text p {
  margin-bottom: var(--space-md);
}

.partners__text ul {
  margin-bottom: var(--space-xl);
}

.partners__text li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.partners__text li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.partners__form {
  flex: 1;
  background-color: var(--bg-gray);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
}

.partners__form h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Контакты */
.contacts__content {
  display: flex;
  gap: var(--space-xxl);
}

.contacts__info {
  flex: 1;
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-item__icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-item__content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--secondary-color);
}

.contacts__map {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Футер */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-xxl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.footer__logo {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.footer__about {
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--text-light);
}

.footer__menu li {
  margin-bottom: var(--space-sm);
}

.footer__menu a {
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer__menu a:hover {
  opacity: 1;
  color: var(--primary-color);
  padding-left: var(--space-xs);
}

.footer__contacts li {
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  opacity: 0.6;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  opacity: 0.6;
  transition: all 0.3s ease;
}

.footer__links a:hover {
  opacity: 1;
}

/* Модальное окно */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
  position: relative;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal.active .modal__content {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.modal__close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
  color: var(--secondary-color);
}

/* Кнопка "Наверх" */
.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out forwards;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .hero__oil-bottle {
    width: 50%;
    opacity: 0.8;
  }

  .hero__features {
    gap: var(--space-xl);
  }

  .about__content {
    flex-direction: column;
  }

  .about__image {
    order: -1;
    margin-bottom: var(--space-xl);
  }

  .partners__content {
    flex-direction: column;
  }

  .contacts__content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    gap: var(--space-md);
  }

  .header__contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 150px;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__text {
    font-size: 1.1rem;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__oil-bottle {
    display: none;
  }

  .hero__features {
    position: static;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
  }

  .feature {
    width: 100%;
  }

  .products__cta {
    padding: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .scroll-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .section-header {
    margin-bottom: var(--space-xl);
  }

  .hero {
    padding-bottom: var(--space-xxl);
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .about__stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .modal__content {
    padding: var(--space-lg);
  }
}