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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-image: url('../images/gd_theme/bg-body2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
}

.header-section {
  background-image: url('../images/gd_theme/bg_header2.png');
  background-size: cover;
  background-position: center;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  margin-top: 0;
}

/* Desktop: header-section sticky при прокрутке */
@media (min-width: 813px) {
  .header-section {
    position: relative;
    z-index: 999;
    transition: all 0.3s ease;
  }

  .header-section.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: none;
    z-index: 1000;
    padding: 0px;
  }

  .header-section.sticky .nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0px 0px 10px 10px;
  }
}

.logo {
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 140px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

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

.logo-section {
  background: #f5f5f5;
  padding: 25px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Desktop: logo-section не fixed */
@media (min-width: 813px) {
  .logo-section {
    position: relative;
    z-index: 1;
  }
}

.logo-title {
  display: none;
}
.nav-bar {
  background: #ffffff;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.nav-links {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  align-items: stretch;
  flex: 1;
  padding: 0;
  width: 100%;
}

.nav-button {
  background: #c9c931;
  color: #ffffff;
  padding: 16px 10px;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  transition: background-color 0.2s ease;
  border-right: 1px solid #e0e0e0;
  text-align: center;
}

.nav-button:hover {
  background: #b8b82e;
}

.nav-button.active {
  background: #b8b82e;
  font-weight: 600;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.3);
}

.nav-link {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  padding: 16px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  position: relative;
}

.nav-link:hover {
  color: #c9c931;
  background-color: rgba(201, 201, 49, 0.1);
}

.nav-link.active {
  color: #1f4f6a;
  font-weight: 600;
  background-color: rgba(31, 79, 106, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #c9c931;
}

.nav-links > *:last-child {
  border-right: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
  padding: 12px;
  border-radius: 4px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: #c9c931;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  transform-origin: center;
}

.hamburger.mobile-menu span {
  background-color: #666;
}

/* Анимация бургер-меню в крестик */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -6px);
}

/* Блок с вкладками (карточки разделов) */
.tabs-section {
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  color: #333;
}

.tabs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.tab-card {
  flex: 1 1 calc(20% - 24px);
  min-width: 180px;
  max-width: 1fr;
  background: #0b3853;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.tab-card-header {
  background: #c9c931;
  padding: 16px 18px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tab-card-header span {
  display: inline-block;
}

.tab-card-image {
  background: #000;
}

.tab-card-image img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.info-section {
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  color: #333;
  line-height: 1.7;
}

.info-panel {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 32px 32px 30px;
}

.info-section h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #1f4f6a;
  letter-spacing: 1px;
}

.info-section p {
  margin-bottom: 14px;
}

.info-section p.lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: #2b3c45;
}

.info-section p.info-highlight {
  background: #f5fafc;
  border-left: 4px solid #c9c931;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 10px;
}

.info-section p.info-highlight strong {
  color: #1f4f6a;
}

.info-section a {
  color: #c9c931;
  text-decoration: none;
}

.info-section a:hover {
  text-decoration: underline;
}

.info-text {
  margin-top: 10px;
  text-align: justify;
}

@media (min-width: 1024px) {
  .info-text {
    column-count: 2;
    column-gap: 32px;
  }

  .info-text p {
    break-inside: avoid;
  }
}

@media (max-width: 600px) {
  .info-panel {
    padding: 20px 18px 22px;
    border-radius: 12px;
  }

  .info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    text-align: center;
  }

  .info-text {
    text-align: left;
  }

  .info-section p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .info-section p.info-highlight,
  .info-section p.info-highlight strong {
    font-size: 1rem;
  }
}

/* Блок с тремя колонками (как на примере) */
.features-section {
  padding: 50px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.feature-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.08);
}

.feature-body {
  padding: 22px 26px 28px;
  text-align: center;
}

.feature-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #1f4f6a;
}

.feature-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f5d76e, #d4a853);
  margin: 0 auto 16px;
  border-radius: 999px;
}

.feature-text {
  font-size: 1rem;
  line-height: 1.65;
  color: #2b3c45;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-image {
    height: 220px;
  }

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

  .feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .info-section {
    padding: 40px 0px 60px;
  }

  .features-section {
    padding: 30px 16px 50px;
  }

  .feature-image {
    height: 200px;
  }

  .feature-body {
    padding: 18px 18px 22px;
  }
}

/* Планшеты (1024px - 1200px) */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }

  .nav-bar {
    max-width: 100%;
  }

  .nav-button,
  .nav-link {
    padding: 14px 8px;
    font-size: 0.9rem;
  }
}

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
  .logo {
    max-height: 120px;
  }

  .logo-section {
    padding: 20px 0;
  }

  .header-section {
    padding: 25px 15px;
  }

  .nav-button,
  .nav-link {
    padding: 14px 6px;
    font-size: 0.85rem;
  }

  .content {
    padding: 30px 15px;
  }
}

/* Мобильные устройства (до 813px) */
@media (max-width: 812px) {
  body {
    padding-top: 0;
    background-attachment: scroll;
    background-size: auto 100%;
    background-position: center top;
  }

  .nav-bar {
    border: none;
  }

  .logo {
    display: block;
    max-height: 40px;
    margin: 0;
    width: auto;
  }

  .logo-title {
    display: none;
  }

  .logo-section {
    background: #f0f0f0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .logo-section .container {
    flex: 1;
    padding: 0px 20px 0px 0px;
    display: flex;
    align-items: center;
  }

  .header-section {
    padding: 20px 15px;
    margin-top: 0;
    background: none;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 82, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 90px 20px 30px;
    gap: 12px;
    border-radius: 0;
    z-index: 999;
    border: none;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
  }

  .nav-link {
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    justify-content: flex-start;
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active .nav-link {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active .nav-link:nth-child(5) { transition-delay: 0.3s; }
  .nav-links.active .nav-link:nth-child(6) { transition-delay: 0.35s; }
  .nav-links.active .nav-link:nth-child(7) { transition-delay: 0.4s; }
  .nav-links.active .nav-link:nth-child(8) { transition-delay: 0.45s; }

  .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }

  .nav-link:hover::before,
  .nav-link:active::before {
    left: 100%;
  }

  .nav-link:hover,
  .nav-link:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .nav-link.active {
    background: rgba(201, 201, 49, 0.3);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(201, 201, 49, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link:last-child {
    margin-bottom: 0;
  }

  .nav-button {
    width: 100%;
    border-radius: 16px;
    border: none;
    justify-content: flex-start;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    background: linear-gradient(135deg, #c9c931 0%, #1f4f6a 100%);
    box-shadow: 0 4px 20px rgba(41, 104, 140, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active .nav-button {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.05s;
  }

  .nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
  }

  .nav-button:hover::before,
  .nav-button:active::before {
    left: 100%;
  }

  .nav-button:hover,
  .nav-button:active {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 6px 28px rgba(41, 104, 140, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1f4f6a 0%, #c9c931 100%);
  }

  .nav-button.active {
    background: linear-gradient(135deg, #1f4f6a 0%, #c9c931 100%);
    box-shadow: 0 6px 28px rgba(41, 104, 140, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 0 20px rgba(201, 201, 49, 0.2);
  }

  .hamburger {
    display: flex;
    position: relative;
    top: 0;
    right: 0;
    padding: 12px 14px;
    transition: all 0.2s ease;
    z-index: 1001;
    flex-shrink: 0;
  }

  .hamburger:active {
    transform: scale(0.95);
  }

  .hamburger span {
    background-color: #555;
  }

  .hamburger.mobile-menu {
    position: relative;
    top: 0;
    right: 0;
  }

  .nav-bar {
    position: relative;
    justify-content: space-between;
  }

  /* Отступ для контента под fixed header */
  .header-section {
    margin-top: 0;
  }

  .content {
    margin-top: 0;
  }

  .content {
    padding: 25px 15px;
  }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
  .logo {
    max-height: 80px;
    margin: 15px auto;
  }

  .logo-section {
    padding: 15px 10px 25px;
  }

  .header-section {
    padding: 15px 10px;
  }

  .nav-link,
  .nav-button {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .hamburger {
    top: 10px;
    right: 12px;
    padding: 8px;
  }

  .nav-link,
  .nav-button {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .logo-title {
    font-size: 1.4rem;
  }

  .hamburger span {
    width: 22px;
  }

  .content {
    padding: 20px 10px;
  }

  .container {
    padding: 0 10px;
  }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
  .logo {
    max-height: 70px;
  }

  .nav-link,
  .nav-button {
    padding: 12px 15px;
    font-size: 0.85rem;
  }
}

/* Footer styles */
.gd-footer {
  background: #031824;
  color: #d0d7e0;
  padding: 60px 20px 30px;
  margin-top: 40px;
}

.gd-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.gd-footer h3 {
  color: #fff;
  margin-bottom: 12px;
}

.gd-footer a {
  color: #d0d7e0;
  text-decoration: none;
}

.gd-footer a:hover {
  color: #c9c931;
}

.gd-footer__bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.gd-social a {
  color: #fff;
  margin-right: 10px;
  font-size: 18px;
}

.gd-footer ul {
  list-style: none;
}

.gd-footer ul li {
  margin-bottom: 8px;
}
