* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #24262a;
  --secondary-dark: #1f2229;
  --light-gray: #d1d4d4;
  --very-light-gray: #dfe4e5;
  --accent-blue: #4a90e2;
  --white: #ffffff;
  --shadow: rgba(36, 38, 42, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--primary-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 60px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  margin: 3px 0;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-blue);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--very-light-gray);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  text-align: center;
  font-weight: 600;
}

.about-description {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  text-align: center;
  color: var(--secondary-dark);
}

/* Info Section */
.info-section {
  padding: 80px 0;
  background-color: var(--white);
}

.info-description {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  text-align: center;
  color: var(--secondary-dark);
}

/* Features Detailed Section */
.features-detailed {
  padding: 80px 0;
  background-color: var(--very-light-gray);
}

.feature-block {
  margin-bottom: 4rem;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0;
}

.feature-list li {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--white);
  border-left: 4px solid var(--accent-blue);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--secondary-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px var(--shadow);
}

/* Reason Section */
.reason {
  padding: 80px 0;
  background-color: var(--white);
}

.reason-content {
  max-width: 1000px;
  margin: 0 auto;
}

.reason-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--very-light-gray);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.stat-text {
  font-size: 1.125rem;
  color: var(--secondary-dark);
  line-height: 1.6;
}

.reason-highlight {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-top: 3rem;
  padding: 2rem;
  background: var(--very-light-gray);
  border-left: 4px solid var(--accent-blue);
  border-radius: 8px;
}

/* Capabilities Section */
.capabilities {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--very-light-gray) 0%, var(--white) 100%);
}

/* Detailed Feature List */
.feature-list-detailed {
  list-style: none;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.feature-list-detailed li {
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--secondary-dark);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-list-detailed li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  color: var(--accent-blue);
  font-size: 1.5rem;
  font-weight: bold;
}

.feature-list-detailed li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--shadow);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--white);
}

.contact-info {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.company-name {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.contact-details {
  background: var(--very-light-gray);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: left;
}

.contact-details p {
  font-size: 1.125rem;
  margin: 0.75rem 0;
  color: var(--secondary-dark);
  line-height: 1.8;
}

.legal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.menu-button {
  padding: 1rem 2rem;
  background-color: var(--accent-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.menu-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}

.menu-button:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  background-color: var(--secondary-dark);
  color: var(--very-light-gray);
  padding: 2rem 0;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 10px var(--shadow);
    display: none;
    gap: 0;
  }

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

  .nav-menu li {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--very-light-gray);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .reason-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  /* Responsiveness for new sections */
  .feature-list li,
  .feature-list-detailed li {
    font-size: 1rem;
    padding: 1.25rem;
  }

  .feature-list-detailed li {
    padding-left: 2.5rem;
  }

  .contact-details {
    padding: 1.5rem;
    text-align: center;
  }

  .contact-details p {
    font-size: 1rem;
  }

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

  .menu-button {
    width: 100%;
  }

  .top_container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .experts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .login-container,
  .signup-container {
    padding: 2rem 1.5rem;
  }

  .legal-content {
    padding: 2rem 1.5rem;
  }

  .legal-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 45px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .about,
  .reason,
  .capabilities {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about-description {
    font-size: 1rem;
  }

  /* Responsiveness for mobile devices */
  .info-description {
    font-size: 1rem;
  }

  .feature-list li,
  .feature-list-detailed li {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .feature-list-detailed li {
    padding-left: 2rem;
  }

  .feature-list-detailed li::before {
    font-size: 1.25rem;
    left: 0.5rem;
  }

  .company-name {
    font-size: 1.25rem;
  }

  .contact-details p {
    font-size: 0.95rem;
  }

  .expert-image {
    width: 120px;
    height: 120px;
  }

  .expert-name {
    font-size: 1.25rem;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .legal-text h2 {
    font-size: 1.5rem;
  }

  .legal-text h3 {
    font-size: 1.125rem;
  }
}

/* Добавление стилей для header с контактами */
.top_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--very-light-gray);
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.header__timeWork {
  color: var(--secondary-dark);
}

.header__address {
  color: var(--secondary-dark);
  font-style: normal;
}

.header__phone,
.header__email {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header__phone:hover,
.header__email:hover {
  color: var(--primary-dark);
}

.ins_button {
  padding: 0.5rem 1rem;
  background-color: var(--accent-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.ins_button:hover {
  background-color: var(--primary-dark);
}

/* Стили для страницы экспертов */
.experts-page {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--very-light-gray) 0%, var(--white) 100%);
}

.experts-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.page-title {
  font-size: 3rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.expert-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(36, 38, 42, 0.15);
}

.expert-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--accent-blue);
}

.expert-name {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.expert-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--accent-blue);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.expert-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--secondary-dark);
  text-align: left;
}

/* Стили для страниц входа и регистрации */
.login-page,
.signup-page,
.lk-page {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--very-light-gray) 0%, var(--white) 100%);
  min-height: calc(100vh - 200px);
}

.login-container,
.signup-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px var(--shadow);
}

.form-title {
  font-size: 2rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--very-light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--white);
  color: var(--primary-dark);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-button {
  width: 100%;
  padding: 1rem 2rem;
  background-color: var(--accent-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.form-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}

.form-button:active {
  transform: translateY(0);
}

.form-links {
  text-align: center;
  margin-top: 1.5rem;
}

.form-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.form-link:hover {
  color: var(--primary-dark);
}

.form-agreement {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--secondary-dark);
  line-height: 1.6;
}

.form-agreement a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.form-agreement a:hover {
  text-decoration: underline;
}

.error-message {
  background-color: #fee;
  color: #c33;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #c33;
  font-weight: 500;
}

/* Стили для личного кабинета */
.auth-notice {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* Стили для юридических страниц */
.legal-page {
  padding: 80px 0;
  background-color: var(--white);
  min-height: calc(100vh - 200px);
}

.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
}

.legal-title {
  font-size: 2.5rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.legal-text {
  line-height: 1.8;
  color: var(--secondary-dark);
}

.legal-text h2 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin: 2.5rem 0 1.5rem;
  font-weight: 600;
}

.legal-text h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.legal-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.legal-text ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-text li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-note {
  background: var(--very-light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  border-left: 4px solid var(--accent-blue);
}

.legal-note a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.legal-note a:hover {
  text-decoration: underline;
}

/* Добавление стилей для секции экспертов в index.php */
.experts-section {
  padding: 80px 0;
  background-color: var(--very-light-gray);
}

/* Добавление стилей для секции авторизации/регистрации */
.auth-section {
  padding: 80px 0;
  background-color: var(--white);
}

.auth-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--very-light-gray);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--secondary-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.auth-tab.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.auth-tab:hover {
  color: var(--accent-blue);
}

.auth-form-container {
  display: none;
}

.auth-form-container.active {
  display: block;
}

.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #2e7d32;
  font-weight: 500;
}
