:root {
  --primary-blue: #007bff; /* Акцентный синий */
  --dark-blue: #0a2239; /* Темно-синий, основной */
  --light-bg: #f0f2f5; /* Светлый фон для страницы и карточек */
  --white-bg: #ffffff; /* Белый фон для основных блоков */
  --border-color: #e2e6ec; /* Для границ, разделителей */
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #ffffff;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.12);
  --border-radius-large: 12px;
  --border-radius-medium: 8px;
  --border-radius-small: 4px;
}

/* Base styles */
body {
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  background-color: var(--light-bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 25px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--dark-blue);
  margin-bottom: 20px;
  font-weight: 700;
}

h1 {
  font-size: 3.8em;
  line-height: 1.2;
}
h2 {
  font-size: 2.5em;
}
h3 {
  font-size: 1.8em;
}
h4 {
  font-size: 1.4em;
}

p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-medium);
}

.section-title {
  text-align: left; /* Большинство заголовков по левому краю */
  font-weight: 700;
  margin-bottom: 15px;
}
.section-subtitle {
  text-align: left;
  max-width: 700px;
  margin: 0 0 40px 0;
  font-size: 1.1em;
  color: var(--text-medium);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--border-radius-small);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
  letter-spacing: 0.2px;
}

.button.primary {
  background-color: var(--primary-blue);
  color: var(--text-light);
  box-shadow: var(--shadow-subtle);
}
.button.primary:hover {
  background-color: #0069d9; /* Темнее синий */
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.button.secondary {
  background-color: transparent;
  border: 1px solid var(--border-color); /* Тонкая рамка */
  color: var(--dark-blue);
  box-shadow: var(--shadow-subtle);
}
.button.secondary:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.page-content {
  padding-top: 20px; /* Отступ сверху для контента под хедером */
}

/* General Section Styling */
.section {
  background-color: var(--white-bg);
  padding: 60px 0;
  margin-bottom: 20px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-subtle);
}

/* Header */
header {
  background-color: var(--white-bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-subtle);
  border-bottom: 1px solid var(--border-color);
}

header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8em;
  font-weight: 700;
  color: var(--dark-blue);
  text-decoration: none;
}

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav.main-nav ul li {
  margin-left: 35px;
}

nav.main-nav ul li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

nav.main-nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav.main-nav ul li a:hover::after {
  width: 100%;
}

nav.main-nav ul li a:hover,
nav.main-nav ul li a.active {
  color: var(--primary-blue);
}

.burger-menu {
  display: none; /* Скрыть на больших экранах */
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--dark-blue);
  cursor: pointer;
}

/* Hero Section */
#hero {
  background-color: var(--light-bg);
  padding-top: 40px;
  padding-bottom: 80px;
  border-radius: var(--border-radius-large);
  box-shadow: none;
  margin-bottom: 0;
}
.hero-section {
  padding-bottom: 0;
  background-color: var(--white-bg);
  box-shadow: var(--shadow-medium);
}

.hero-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  min-width: 450px;
  padding: 20px 0;
}

.hero-title {
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  text-align: left;
  max-width: 600px;
  margin-bottom: 40px;
  font-size: 1.2em;
  color: var(--text-medium);
}

.button-group {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-right {
  flex: 1;
  min-width: 400px;
  text-align: right;
  position: relative;
  height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-image {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  max-width: 100%;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-strong);
}

/* Features Section (бывший About Us) */
.features-section {
  padding-top: 80px;
  padding-bottom: 80px;
  margin-top: 20px;
}

.features-header {
  margin-bottom: 50px;
}
.features-header .section-title,
.features-header .section-subtitle {
  text-align: left;
}

.features-grid {
  /* Переименовано из grid-3 */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.feature-item {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: var(--border-radius-medium);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  text-align: center; /* Центрируем контент */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.feature-item i {
  font-size: 3em;
  color: var(--primary-blue);
  margin-bottom: 20px;
}
.feature-item h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--dark-blue);
  text-align: center;
}
.feature-item p {
  font-size: 1em;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 0;
}

/* Comparison Section */
.comparison-section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.comparison-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.comparison-left {
  flex: 1;
  min-width: 450px;
}
.comparison-left .section-title,
.comparison-left .section-subtitle {
  text-align: left;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background-color: var(--white-bg);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.comparison-table th,
.comparison-table td {
  padding: 18px;
  border: 1px solid var(--border-color);
  text-align: left;
  color: var(--text-dark);
  font-size: 1em;
}

.comparison-table th {
  background-color: var(--primary-blue);
  color: var(--text-light);
  font-weight: 600;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1em;
}
.comparison-table th:first-child {
  background-color: var(--dark-blue);
  color: var(--text-light);
}

.comparison-table tr:nth-child(even) {
  background-color: var(--light-bg);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--dark-blue);
}

.comparison-right {
  flex: 1;
  min-width: 350px;
  height: 550px;
  position: relative;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background-color: var(--border-color);
}
.comparison-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.promo-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: var(--border-radius-small);
  font-weight: 600;
  font-size: 1em;
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

/* Education Section */
.education-section {
  background-color: var(--dark-blue);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
}

.education-header .section-title,
.education-header .section-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.education-header .section-title {
  margin-bottom: 20px;
}
.education-header .section-subtitle {
  margin-bottom: 50px;
  max-width: 900px;
  font-size: 1.1em;
}

.edu-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 50px auto 0 auto;
}

.edu-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: var(--border-radius-medium);
  font-size: 1.1em;
  text-align: left;
  position: relative;
  padding-left: 60px;
  backdrop-filter: blur(5px);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  box-shadow: var(--shadow-subtle);
  color: var(--text-light);
}

.edu-list li:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.edu-list li::before {
  content: "\f00c"; /* Check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-blue);
  position: absolute;
  left: 25px;
  top: 25px;
  font-size: 1.5em;
}

.call-to-action-block {
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 50px;
  border-radius: var(--border-radius-large);
  max-width: 900px;
  margin: 60px auto 0 auto;
  box-shadow: var(--shadow-medium);
  text-align: center;
}
.cta-content h3 {
  color: var(--text-light);
  font-size: 2.2em;
  margin-bottom: 15px;
}
.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto 30px auto;
}
.cta-content .button {
  background-color: var(--dark-blue);
  border: 1px solid var(--dark-blue);
}
.cta-content .button:hover {
  background-color: #081630;
  transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.contact-wrapper {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-form-block {
  flex: 2;
  min-width: 400px;
}
.contact-form-block .section-title,
.contact-form-block .section-subtitle {
  text-align: left;
}

.contact-form {
  background-color: var(--light-bg);
  padding: 40px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-blue);
  font-size: 0.95em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  font-family: var(--font-body);
  font-size: 1em;
  box-sizing: border-box;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  background-color: var(--white-bg);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  outline: none;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.submit-button {
  width: 100%;
  margin-top: 20px;
}
.privacy-text {
  font-size: 0.85em;
  color: var(--text-medium);
  margin-top: 20px;
  text-align: center;
}
.privacy-text a {
  color: var(--primary-blue);
  text-decoration: none;
}
.privacy-text a:hover {
  text-decoration: underline;
}

.contact-info-block {
  flex: 1;
  min-width: 300px;
  display: grid;
  gap: 20px;
}
.info-card {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: var(--border-radius-large);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  text-align: center;
}
.info-card i {
  font-size: 2.5em;
  color: var(--primary-blue);
  margin-bottom: 15px;
}
.info-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}
.info-card p {
  font-size: 1em;
  margin-bottom: 0;
}
.info-card a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}
.info-card a:hover {
  color: var(--dark-blue);
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--dark-blue);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9em;
  border-radius: var(--border-radius-large);
  margin-top: 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

footer .footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 25px;
}

footer .footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-nav a:hover {
  color: var(--primary-blue);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
}

.mobile-menu {
  background-color: var(--white-bg);
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-strong);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.mobile-menu-overlay.active .mobile-menu {
  transform: translateY(0);
}

.mobile-menu .close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8em;
  color: var(--dark-blue);
  cursor: pointer;
}
.mobile-menu nav ul {
  flex-direction: column;
  text-align: center;
  padding: 20px 0;
}
.mobile-menu nav ul li {
  margin: 15px 0;
}
.mobile-menu nav ul li a {
  font-size: 1.2em;
  color: var(--dark-blue);
  padding: 10px 0;
  display: block;
}
.mobile-menu nav ul li a::after {
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  h1 {
    font-size: 3em;
  }
  h2 {
    font-size: 2.2em;
  }
  .hero-title {
    font-size: 3.2em;
  }
  .hero-subtitle {
    font-size: 1.1em;
  }

  .hero-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .hero-left,
  .hero-right {
    min-width: unset;
    width: 100%;
    text-align: center;
  }
  .hero-title,
  .hero-subtitle {
    text-align: center;
  }
  .button-group {
    justify-content: center;
  }
  .hero-right {
    height: 450px;
    justify-content: center;
    align-items: center;
  }
  .hero-image {
    max-width: 90%;
  }

  .features-header .section-title,
  .features-header .section-subtitle,
  .comparison-left .section-title,
  .comparison-left .section-subtitle,
  .contact-form-block .section-title,
  .contact-form-block .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .feature-item h3,
  .feature-item p {
    text-align: center;
  }

  .comparison-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .comparison-left,
  .comparison-right {
    min-width: unset;
    width: 100%;
  }
  .comparison-right {
    height: 500px;
  }

  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .contact-form-block,
  .contact-info-block {
    min-width: unset;
    width: 100%;
  }
  .contact-info-block {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
  }
  footer .footer-nav ul {
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }
  h2 {
    font-size: 2em;
  }
  .hero-title {
    font-size: 2.8em;
  }
  .section-title {
    font-size: 2em;
  }
  .section {
    padding: 40px 0;
  }

  nav.main-nav {
    display: none;
  }
  .burger-menu {
    display: block;
  }

  .hero-section {
    padding-top: 20px;
  }
  .hero-right {
    height: 350px;
  }

  .features-section,
  .comparison-section,
  .education-section,
  .contact-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .comparison-right {
    height: 400px;
  }

  .edu-list {
    grid-template-columns: 1fr;
  }
  .edu-list li {
    padding-left: 50px;
  }
  .edu-list li::before {
    font-size: 1.3em;
    top: 20px;
    left: 20px;
  }

  .cta-content h3 {
    font-size: 1.8em;
  }
  .cta-content p {
    font-size: 1em;
  }
  .call-to-action-block {
    padding: 40px;
  }

  .contact-form {
    padding: 30px;
  }
  .info-card h3 {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.6em;
  }
  .hero-title {
    font-size: 2.2em;
  }
  .section-title {
    font-size: 1.8em;
  }
  p {
    font-size: 1em;
  }

  .button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .button-group {
    flex-direction: column;
    gap: 10px;
  }

  .hero-right {
    height: 300px;
  }
  .hero-image {
    max-width: 95%;
  }

  .promo-badge {
    font-size: 0.9em;
    padding: 10px 20px;
    bottom: 20px;
    left: 20px;
  }

  .cta-content h3 {
    font-size: 1.6em;
  }
  .cta-content p {
    font-size: 0.95em;
  }
  .call-to-action-block {
    padding: 30px;
  }

  .contact-form {
    padding: 25px;
  }
  .info-card {
    padding: 25px;
  }
  .info-card i {
    font-size: 2em;
  }

  .footer-content {
    text-align: center;
  }
  footer .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}
