:root {
  --color-primary: #ff6b35;
  --color-secondary: #1a1a2e;
  --color-accent: #4e81cd;
  --color-success: #2e8fcc;
  --color-bg-gradient: linear-gradient(135deg, #181872 0%, #181886 100%);
  --color-card-bg: #16213e;
  --color-input-bg: #ffffff;
  --color-input-text: #333333;
  --color-footer-bg: #0f0f23;
  --color-footer-text: #ffffff;
  --color-btn-border: #ff6b35;
  --color-dark-blue: #1a1a2e;
  --color-darker-blue: #0f0f23;
  --color-light-blue: #4ecdc4;
  --color-orange: #ff6b35;
  --color-white: #ffffff;
  --color-light-gray: #e0e0e0;
  --color-gray: #888888;
  --color-dark-gray: #444444;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* === ФОН ПО ВСЕМУ САЙТУ === */
body {
  margin: 0;
  padding: 0;
  background: 
    linear-gradient(135deg, rgba(24, 24, 114, 0.9) 0%, rgba(24, 24, 134, 0.85) 100%),
    url('images/fon2.png') center/cover fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-white);
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
}

/* Дополнительный слой для улучшения читаемости */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(24, 24, 114, 0.9) 0%, 
    rgba(24, 24, 134, 0.85) 100%);
  z-index: -1;
}

/* Альтернативный вариант фона */
.body-bg-image {
  background: 
    linear-gradient(135deg, rgba(24, 24, 114, 0.9) 0%, rgba(24, 24, 134, 0.85) 100%),
    url('images/fon.png') center/cover fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: var(--color-white);
}

p,
ul,
ol,
table {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  position: relative;
  z-index: 1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
  margin-left: 0;
  margin-right: 20px;
  box-shadow: none;
}

.btn--primary {
  background: var(--color-orange);
  border: 2px solid var(--color-orange)!important;
  color: var(--color-white);
  border-radius: 16px;
  border: none;
  box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  animation: btn-pulse-orange 1.5s infinite;
}

.btn--primary:hover,
.btn--primary:focus {
  background: #e55a2b;
  color: var(--color-white);
  box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.12);
}

@keyframes btn-pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 107, 53, 0.0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.0);
  }
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-light-blue);
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 16px;
  box-shadow: none;
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--color-light-blue);
  color: var(--color-white);
  border-color: var(--color-light-blue);
}

.section .section__actions {
  margin-top: 10px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: 0.2s;
}

.nav__close {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-white);
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}

.main-content {
  padding-top: 80px;
  padding-bottom: 40px;
  min-height: calc(100vh - 120px);
  position: relative;
  z-index: 1;
}

.section {
  background: rgba(22, 33, 62, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 32px;
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Таблицы === */
.table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 320px;
  background: var(--color-card-bg);
  color: var(--color-white);
}

td,
th {
  border: 1px solid var(--color-dark-gray);
  padding: 10px 16px;
  text-align: left;
  font-size: 1rem;
}

tr:first-child td,
tr:first-child th {
  background: var(--color-dark-blue);
  color: var(--color-white);
  font-weight: 700;
}

tr:nth-child(even) {
  background: var(--color-darker-blue);
}

tr:nth-child(odd) {
  background: var(--color-card-bg);
}

/* === Footer === */
.footer {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  color: var(--color-footer-text);
  padding: 32px 0 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer__logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--color-white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 25px;
}

.footer__nav {
  display: flex;
  gap: 32px;
}

.footer__link {
  color: var(--color-footer-text);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--color-orange);
}

.faq-block {
  background: rgba(22, 33, 62, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 48px 24px 40px 24px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0 24px 0;
}

.faq-item {
  background: rgba(26, 26, 46, 0.8);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
  transform: translateY(-2px);
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 0px;
  letter-spacing: 0.5px;
}

.faq-answer {
  font-size: 1.08rem;
  color: var(--color-white);
  line-height: 1.6;
  padding-left: 8px;
  border-left: 3px solid var(--color-orange);
  background: rgba(255, 107, 53, 0.1);
  border-radius: 6px;
  transition: max-height 0.3s, opacity 0.3s;
}

.faq-cta {
  margin-top: 32px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--color-white);
  font-weight: 600;
  background: var(--color-orange);
  border-radius: 10px;
  padding: 16px 12px;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

h3.faq-question {
  cursor: pointer;
  position: relative;
  outline: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0px;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  padding-right: 36px;
}

h3.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--color-orange);
  font-weight: 900;
  transition: content 0.2s, color 0.2s;
  line-height: 1;
}

.faq-item.open>h3.faq-question::after {
  content: '–';
  color: var(--color-orange);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(.4, 0, .2, 1), opacity 0.25s, margin-top 0.25s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  opacity: 1;
  margin-top: 8px;
  overflow: visible;
}

/* === Стили для картинок === */
.section img {
  height: auto;
  border-radius: 16px;
  margin-bottom: 10px;
  max-width: 75%;
  margin: 0 auto;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* === Фон под картинку === */
.image-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: var(--color-orange);
  opacity: 0.1;
  border-radius: 20px;
  z-index: -1;
  filter: blur(8px);
}

.image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  margin: 20px 0;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(78, 205, 196, 0.1) 100%);
  border-radius: 16px;
  z-index: -1;
}

/* === Дополнительные стили для темной темы === */
.about-content,
.contact-content,
.privacy-content {
  color: var(--color-white);
}

.about-content h1,
.contact-content h1,
.privacy-content h1 {
  color: var(--color-white);
}

.about-content h2,
.contact-content h2,
.privacy-content h2 {
  color: var(--color-orange);
}

.about-content h3,
.contact-content h3,
.privacy-content h3 {
  color: var(--color-light-blue);
}

.about-content ul,
.contact-content ul,
.privacy-content ul {
  color: var(--color-white);
}

.about-content li,
.contact-content li,
.privacy-content li {
  color: var(--color-white);
}

.contact-method,
.privacy-section {
  background: rgba(26, 26, 46, 0.8);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-orange);
  backdrop-filter: blur(5px);
}

.contact-form {
  background: rgba(26, 26, 46, 0.8);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(68, 68, 68, 0.5);
  backdrop-filter: blur(5px);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  color: var(--color-white);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.submit-btn {
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.contact-info,
.office-info {
  background: rgba(26, 26, 46, 0.8);
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid var(--color-light-blue);
  backdrop-filter: blur(5px);
}

.contact-info p,
.office-info p {
  color: var(--color-white);
  margin: 8px 0;
}

.contact-info strong,
.office-info strong {
  color: var(--color-orange);
}

h1 {
  font-size: 2rem;
  text-align: center;
  color: var(--color-white);
}

h2 {
  font-size: 1.5rem;
  color: var(--color-white);
}

h3 {
  font-size: 1.2rem;
  color: var(--color-white);
}

h4 {
  font-size: 1rem;
  color: var(--color-white);
}

.section, .faq-block, .table-wrapper {
  background: rgba(22, 33, 62, 0.9);
  color: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-white);
}

input,
textarea,
select {
  background: var(--color-input-bg);
  color: var(--color-input-text);
  border: 1px solid var(--color-orange);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  margin-bottom: 8px;
  transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-light-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

/* === Адаптивность === */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .header__container {
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 24px 10px;
  }
}

@media (max-width: 768px) {
  .header__container {
    padding: 0 10px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 240px;
    height: 100vh;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 64px 24px 24px 24px;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.5);
    transition: right 0.3s;
    z-index: 2000;
  }

  .nav--open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__close {
    display: block;
  }

  .nav>.btn {
    width: 100%;
    margin-bottom: 8px;
  }

  .section img {
    max-width: 100%;
  }
  
  .image-wrapper {
    padding: 20px 10px;
    margin: 15px 0;
  }
  
  .image-background {
    width: 95%;
    height: 95%;
    filter: blur(4px);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 16px 10px;
  }

  .footer__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__nav {
    gap: 16px;
  }

  .faq-block {
    padding: 24px 10px 24px 10px;
  }

  .faq-item {
    padding: 14px 8px;
  }

  .faq-cta {
    font-size: 1rem;
    padding: 10px 4px;
  }
  
  .btn {
    font-size: 1rem;
    margin-right: 0px;
  }
}

@media (max-width: 400px) {
  .logo,
  .footer__logo {
    font-size: 1rem;
  }
}