/* =============================================
   CSS Variables
   ============================================= */
:root {
  --color-primary: #7eac2f;
  --color-secondary: #276aa5;
  --color-dark-blue: #1d4268;
  --color-navy: #002e56;
  --color-white: #ffffff;
  --color-gray: #515151;
  --color-light-gray: #f5f5f5;
  --color-gray-transparent: rgba(81, 81, 81, 0.5);
  
  --font-family: "Roboto", Helvetica, Arial, sans-serif;
  
  --container-max-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 330px;
  --gap: 32px;
}

/* =============================================
   Base Styles
   ============================================= */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-gray);
  background-color: var(--color-white);
  margin: 0;
  padding: 0;
}

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

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary-blue {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 13px 40px;
  font-weight: 600;
}

.btn-outline {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 13px 20px;
  font-weight: 600;
}

.btn-block {
  width: 100%;
}

.btn-center {
  display: flex;
  width: fit-content;
  margin: 20px auto 50px;
}

/* =============================================
   Header
   ============================================= */
.header {
  background-color: var(--color-dark-blue);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  width: 128px;
  height: auto;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--color-white);
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* =============================================
   Mobile Menu
   ============================================= */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(29, 66, 104, 0.95);
  z-index: 1000;
  padding: 80px 40px 40px;
  flex-direction: column;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  color: var(--color-white);
  font-size: 20px;
  text-decoration: none;
  font-weight: 400;
}

.mobile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 200px;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  /* Адаптивная высота: 545px при 1200px, 525px при 320px */
  height: 545px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Фоновое изображение с фильтрами */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/rectangle-2.webp') center/cover no-repeat;
  /* Применяем фильтры для корректировки изображения: более холодное (синее) изображение */
  filter: hue-rotate(-15deg) brightness(0.95) contrast(1.05);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Linear gradient слева направо 40% */
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

/* Адаптивная высота Hero блока */
@media (max-width: 1200px) {
  .hero {
    height: calc(525px + 20 * (100vw - 320px) / 880);
  }
}

@media (max-width: 320px) {
  .hero {
    height: 525px;
  }
}

@media (min-width: 1200px) {
  .hero {
    height: 545px;
  }
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 48px;
  font-weight: 500; /* Roboto Medium */
  color: var(--color-white);
  margin: 0 0 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400; /* Roboto Regular */
  color: var(--color-white);
  margin: 0 0 30px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* =============================================
   Main Content
   ============================================= */
.main {
  padding-bottom: 40px;
}

.main-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}

.content {
  flex: 1;
  max-width: var(--content-width);
  background-color: var(--color-white);
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  padding: 30px;
}

/* Стили для контента WordPress */
.content p {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-gray);
  margin: 0 0 15px;
  line-height: 1.5;
}

.content h2 {
  font-size: 35px;
  font-weight: 400;
  color: var(--color-navy);
  margin: 40px 0 20px;
  line-height: 1.3;
}

.content h2:first-of-type {
  margin-top: 0;
}

.content h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--color-navy);
  margin: 20px 0 15px;
}

.content strong {
  font-weight: 400;
  color: var(--color-gray);
}

.content img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 20px 0;
}

/* Переопределение стилей для блоков внутри контента */
.content .platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.content .platform-card {
  background-color: var(--color-light-gray);
  border-radius: 10px;
  padding: 20px;
}

.content .platform-card h3,
.content .platform-card-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--color-navy);
  margin: 0 0 15px;
  line-height: 1.3;
}

.content .platform-card p,
.content .platform-card-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray);
  margin: 0;
  line-height: 1.5;
}

.content .faq-item {
  background-color: var(--color-light-gray);
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
}

.content .faq-item h3,
.content .faq-question {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-navy);
  margin: 0 0 15px;
  line-height: 1.3;
}

.content .faq-item p,
.content .faq-answer {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-gray);
  margin: 0;
  line-height: 1.5;
}

.content .comment {
  display: flex;
  gap: 10px;
  background-color: var(--color-light-gray);
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 15px;
}

.content .comment-avatar {
  width: 47px;
  height: 47px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content .comment-avatar svg {
  width: 100%;
  height: 100%;
}

.content .comment-content {
  flex: 1;
}

.content .comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.content .comment-author {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-gray);
}

.content .comment-date {
  font-size: 14px;
  color: var(--color-gray-transparent);
}

.content .comment-text {
  font-size: 16px;
  color: var(--color-gray);
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   Sections
   ============================================= */
.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 35px;
  font-weight: 400; /* Roboto Regular */
  color: var(--color-navy);
  margin: 0 0 20px;
  line-height: 1.3;
}

.section-title-small {
  font-size: 20px;
  font-weight: 400; /* Roboto Regular */
  color: var(--color-navy);
  margin: 0 0 20px;
}

.section-text {
  font-size: 20px;
  font-weight: 400; /* Roboto Regular */
  color: var(--color-gray);
  margin: 0 0 15px;
  line-height: 1.5;
}

.section-text-bold {
  font-size: 20px;
  font-weight: 400; /* Roboto Regular */
  color: var(--color-gray);
  margin: 0 0 10px;
  line-height: 1.5;
}

.section-image {
  margin-bottom: 40px;
  border-radius: 5px;
  overflow: hidden;
}

.section-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =============================================
   Platform Grid
   ============================================= */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.platform-card {
  background-color: var(--color-light-gray);
  border-radius: 10px;
  padding: 20px;
}

.platform-card h3.platform-card-title,
.platform-card-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--color-navy);
  margin: 0 0 15px;
  line-height: 1.3;
}

.platform-card p.platform-card-text,
.platform-card-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray);
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   FAQ
   ============================================= */
.faq-item {
  background-color: var(--color-light-gray);
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
}

.faq-item h3.faq-question,
.faq-question {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-navy);
  margin: 0 0 15px;
  line-height: 1.3;
}

.faq-item p.faq-answer,
.faq-answer {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-gray);
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   Comments
   ============================================= */
.comment {
  display: flex;
  gap: 10px;
  background-color: var(--color-light-gray);
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 15px;
}

.comment-avatar {
  width: 47px;
  height: 47px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-avatar svg {
  width: 100%;
  height: 100%;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.comment-header .comment-author,
.comment-author {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-gray);
}

.comment-header .comment-date,
.comment-date {
  font-size: 14px;
  color: var(--color-gray-transparent);
}

.comment-content p.comment-text,
.comment-text {
  font-size: 16px;
  color: var(--color-gray);
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   Sidebar
   ============================================= */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  margin-top: 40px;
}

.promo-widget {
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.promo-tabs {
  display: flex;
}

.promo-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  background-color: #18446b;
  color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
}

.promo-tab.active {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.promo-tab:first-child {
  border-radius: 10px 0 0 0;
}

.promo-tab:last-child {
  border-radius: 0 10px 0 0;
}

.promo-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-code {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
  color: var(--color-secondary);
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.promo-code:hover {
  background-color: var(--color-light-gray);
}

.promo-content .btn {
  margin-top: 20px;
  padding: 13px 20px;
  font-weight: 600;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background-color: var(--color-dark-blue);
  padding: 40px 0;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo img {
  width: 128px;
  height: auto;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--color-white);
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.footer-social img {
  width: 50px;
  height: 50px;
  display: block;
}

/* =============================================
   Responsive - Tablet
   ============================================= */
@media (max-width: 1024px) {
  .main-container {
    flex-direction: column;
  }

  .content {
    max-width: 100%;
    order: 2;
  }

  .sidebar {
    width: 100%;
    position: static;
    order: 1;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .navbar {
    display: none;
  }

  .header-buttons {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .hero-title {
    font-size: 32px;
    font-weight: 500; /* Roboto Medium */
  }

  .hero-subtitle {
    font-size: 14px;
    font-weight: 400; /* Roboto Regular */
  }

  .section-title,
  .content h2 {
    font-size: 26px;
    font-weight: 400; /* Roboto Regular */
  }

  .section-text {
    font-size: 16px;
    font-weight: 400; /* Roboto Regular */
  }

  .section-text-bold {
    font-size: 16px;
    font-weight: 400; /* Roboto Regular */
  }

  .footer-links {
    gap: 40px;
  }
}

/* =============================================
   Responsive - Mobile
   ============================================= */
@media (max-width: 768px) {
  .hero::before {
    /* Linear gradient сверху вниз 50% от черного к прозрачности для мобильных */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }

  .hero-container {
    padding: 30px 20px;
  }

  .hero-title {
    font-size: 32px;
    font-weight: 500; /* Roboto Medium */
  }

  .hero-subtitle {
    font-size: 14px;
    font-weight: 400; /* Roboto Regular */
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 200px;
  }

  .content {
    padding: 20px 0;
    box-shadow: none;
    border-radius: 0;
  }

  .section-title,
  .content h2 {
    font-size: 26px;
    font-weight: 400; /* Roboto Regular */
  }

  .section-text {
    font-size: 16px;
    font-weight: 400; /* Roboto Regular */
  }

  .section-text-bold {
    font-size: 16px;
    font-weight: 400; /* Roboto Regular */
  }

  .platform-grid,
  .content .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-card-title,
  .content .platform-card-title,
  .content .platform-card h3 {
    font-size: 18px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .footer-column {
    align-items: center;
  }

  .btn-secondary-blue {
    padding: 13px 20px;
  }
}

/* =============================================
   Responsive - Small Mobile
   ============================================= */
@media (max-width: 480px) {
  .header-container {
    padding: 10px 15px;
  }

  .logo img {
    width: 100px;
  }

  .hero-container {
    padding: 20px 15px;
  }

  .hero-title {
    font-size: 32px;
    font-weight: 500; /* Roboto Medium */
  }

  .hero-subtitle {
    font-size: 14px;
    font-weight: 400; /* Roboto Regular */
  }

  .section-title {
    font-size: 24px;
    font-weight: 400; /* Roboto Regular */
  }

  .section-text {
    font-size: 16px;
    font-weight: 400; /* Roboto Regular */
  }

  .section-text-bold {
    font-size: 16px;
    font-weight: 400; /* Roboto Regular */
  }

  .main {
    padding: 20px 0;
  }

  .main-container {
    padding: 0 15px;
  }

  .content {
    padding: 15px 0;
  }

  .section-title,
  .content h2 {
    font-size: 22px;
    font-weight: 400;
  }

  .faq-question,
  .content .faq-question,
  .content .faq-item h3 {
    font-size: 16px;
  }

  .comment,
  .content .comment {
    flex-direction: column;
  }

  .comment-header,
  .content .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
