/* ===== ПЕРЕМЕННЫЕ ЦВЕТОВ ===== */
:root {
  --indigo: #001f3f;
  --graphite: #1a2b3c;
  --light-graphite: #5a6b7c;
  --brass: #8a6e4b;
  --terracotta: #c54f1f;
  --bg-light: #f8f9fc;
  --glass-bg: rgba(248, 249, 252, 0.7);
  --glass-bg-hover: rgba(248, 249, 252, 0.85);
}

/* ===== ОБЩИЕ СТИЛИ ===== */
body {
  background-color: var(--bg-light);
  color: var(--graphite);
  font-family: 'Inter', sans-serif;
}

/* ===== ТИПОГРАФИКА ===== */
h1, .h1-style {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--indigo);
}

h2, .h2-style {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--indigo);
}

h3, .h3-style {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--indigo);
}

p, .text-style {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--graphite);
}

.text-small {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--light-graphite);
}

a, .link-style {
  color: var(--brass);
  text-decoration: underline 2px var(--brass);
  text-underline-offset: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover, .link-style:hover {
  color: var(--terracotta);
  text-decoration-color: var(--terracotta);
}

/* ===== КНОПКИ ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--brass) 0%, var(--terracotta) 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  color: var(--bg-light);
  font-weight: 500;
  box-shadow: 0px 4px 12px rgba(0, 31, 63, 0.15);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0px 8px 16px rgba(0, 31, 63, 0.2);
  color: white;
}

/* ===== ЭФФЕКТ МАТОВОГО СТЕКЛА ===== */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0px 8px 24px rgba(0, 31, 63, 0.08);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  padding: 32px;
}

.glass-effect:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(138, 110, 75, 0.4);
  box-shadow: 0px 16px 32px rgba(0, 31, 63, 0.15);
  transform: translateY(-5px);
}

/* ===== ТЕНИ ДЛЯ КАРТОЧЕК ===== */
.card-shadow {
  box-shadow: 0px 8px 24px rgba(0, 31, 63, 0.08);
  transition: all 0.3s ease;
}

.card-shadow:hover {
  box-shadow: 0px 16px 32px rgba(0, 31, 63, 0.15);
  transform: translateY(-4px);
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ОТСТУПЫ МЕЖДУ СЕКЦИЯМИ ===== */
.section {
  margin-bottom: 80px;
}

/* ===== МЕДИАЗАПРОСЫ (АДАПТИВНОСТЬ) ===== */
@media screen and (max-width: 960px) {
  h1, .h1-style { font-size: 48px; }
  h2, .h2-style { font-size: 36px; }
  h3, .h3-style { font-size: 24px; }
  .section { margin-bottom: 70px; }
  .glass-effect { padding: 28px; }
}

@media screen and (max-width: 640px) {
  h1, .h1-style { font-size: 38px; }
  h2, .h2-style { font-size: 30px; }
  h3, .h3-style { font-size: 20px; }
  .section { margin-bottom: 60px; }
  .glass-effect { padding: 24px; }
  .btn-primary { box-shadow: 0px 3px 8px rgba(0, 31, 63, 0.12); }
  .card-shadow { box-shadow: 0px 6px 16px rgba(0, 31, 63, 0.06); }
}

@media screen and (max-width: 480px) {
  h1, .h1-style { font-size: 32px; }
  h2, .h2-style { font-size: 26px; }
  h3, .h3-style { font-size: 18px; }
  p, .text-style { font-size: 15px; }
  .section { margin-bottom: 50px; }
  .glass-effect { padding: 20px; }
  .btn-primary { box-shadow: 0px 2px 6px rgba(0, 31, 63, 0.1); }
  .card-shadow { box-shadow: none; }
}

@media screen and (max-width: 320px) {
  .section { margin-bottom: 40px; }
  .glass-effect { padding: 16px; }
  .btn-primary { box-shadow: none; }
}

/* Уменьшаем логотип в блоке #rec1949818231 на планшетах и телефонах */
@media screen and (max-width: 980px) {
    #rec1949818231 img,
    #rec1949818231 svg {
        max-width: 250px !important;
        height: auto !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 640px) {
    #rec1949818231 img,
    #rec1949818231 svg {
        max-width: 180px !important;
    }
}

@media screen and (max-width: 480px) {
    #rec1949818231 img,
    #rec1949818231 svg {
        max-width: 150px !important;
    }
}