﻿/* BRICS Student Card - Custom Styles */

:root {
  --primary-color: #1a284d;
  --accent-color: #fdf8d8;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Header Styles */
.header {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.header.scrolled {

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
  height: 50px;
  transition: transform var(--transition-speed);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all var(--transition-speed);
  position: relative;
}

.navbar-nav .nav-link {
    position: relative;
    display: inline-flex; /* или inline-block */
}

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--accent-color);
        transition: all var(--transition-speed);
        transform: translateX(-50%);
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 100%; /* будет 100% от ширины текста */
    }

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-contact a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-speed);
}

.header-contact a:hover {
  color: var(--accent-color);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  border-radius: 50%;
  transition: transform var(--transition-speed);
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}

/* Mobile menu toggle */
.navbar-toggler {
  border-color: var(--white);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a3f6d 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero_index {
    background-image: url(../img/imgi_24_1731.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    height: auto;
}

    /* Затемнение */
    .hero_index::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

    /* Контент поверх затемнения */
    .hero_index > * {
        position: relative;
        z-index: 2;
    }

/* Десктопы */
@media (min-width: 1200px) {
    .hero_index {
        background-position: center top;
    }

        .hero_index::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
    .hero_index {
        background-position: center 20%;
        min-height: 90vh;
    }

        .hero_index::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в портретной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
    .hero_index {
        background-position: 70% center;
        min-height: 80vh;
    }

        .hero_index::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в альбомной ориентации */
@media (max-width: 767px) and (orientation: landscape) {
    .hero_index {
        background-position: center 30%;
        min-height: 100vh;
    }

        .hero_index::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в портретной ориентации */
@media (max-width: 767px) and (orientation: portrait) {
    .hero_index {
        background-position: 75% center;
        min-height: 70vh;
    }

        .hero_index::before {
            background: rgba(0, 0, 0, 0.7);
        }
}



.hero_Advantages {
    background-image: url(../img/imgi_66_photo_2025-09-27_20-.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    height: auto;
}

/* Затемнение */
    .hero_Advantages::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

/* Контент поверх затемнения */
    .hero_Advantages > * {
        position: relative;
        z-index: 2;
    }

/* Десктопы */
@media (min-width: 1200px) {
    .hero_Advantages {
        background-position: center top;
    }

        .hero_Advantages::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
    .hero_Advantages {
        background-position: center 20%;
        min-height: 90vh;
    }

        .hero_Advantages::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в портретной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
    .hero_Advantages {
        background-position: 70% center;
        min-height: 80vh;
    }

        .hero_Advantages::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в альбомной ориентации */
@media (max-width: 767px) and (orientation: landscape) {
    .hero_Advantages {
        background-position: center 30%;
        min-height: 100vh;
    }

        .hero_Advantages::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в портретной ориентации */
@media (max-width: 767px) and (orientation: portrait) {
    .hero_Advantages {
        background-position: 75% center;
        min-height: 70vh;
    }

        .hero_Advantages::before {
            background: rgba(0, 0, 0, 0.7);
        }
}
.hero_Agents {
    background-image: url(../img/agents.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    height: auto;
}

/* Затемнение */
    .hero_Agents::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

/* Контент поверх затемнения */
    .hero_Agents > * {
        position: relative;
        z-index: 2;
    }

/* Десктопы */
@media (min-width: 1200px) {
    .hero_Agents {
        background-position: center top;
    }

        .hero_Agents::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
    .hero_Agents {
        background-position: center 20%;
        min-height: 90vh;
    }

        .hero_Agents::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в портретной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
    .hero_Agents {
        background-position: 70% center;
        min-height: 80vh;
    }

        .hero_Agents::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в альбомной ориентации */
@media (max-width: 767px) and (orientation: landscape) {
    .hero_Agents {
        background-position: center 30%;
        min-height: 100vh;
    }

        .hero_Agents::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в портретной ориентации */
@media (max-width: 767px) and (orientation: portrait) {
    .hero_Agents {
        background-position: 75% center;
        min-height: 70vh;
    }

        .hero_Agents::before {
            background: rgba(0, 0, 0, 0.7);
        }
}
.hero_Partners {
    background-image: url(../img/partners.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    height: auto;
}

/* Затемнение */
    .hero_Partners::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

/* Контент поверх затемнения */
    .hero_Partners > * {
        position: relative;
        z-index: 2;
    }

/* Десктопы */
@media (min-width: 1200px) {
    .hero_Partners {
        background-position: center top;
    }

        .hero_Partners::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
    .hero_Partners {
        background-position: center 20%;
        min-height: 90vh;
    }

        .hero_Partners::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в портретной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
    .hero_Partners {
        background-position: 70% center;
        min-height: 80vh;
    }

        .hero_Partners::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в альбомной ориентации */
@media (max-width: 767px) and (orientation: landscape) {
    .hero_Partners {
        background-position: center 30%;
        min-height: 100vh;
    }

        .hero_Partners::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в портретной ориентации */
@media (max-width: 767px) and (orientation: portrait) {
    .hero_Partners {
        background-position: 75% center;
        min-height: 70vh;
    }

        .hero_Partners::before {
            background: rgba(0, 0, 0, 0.7);
        }
}





.hero_teacher {
    background-image: url(../img/imgi_74_9826.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    height: auto;
}

/* Затемнение */
    .hero_teacher::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

/* Контент поверх затемнения */
    .hero_teacher > * {
        position: relative;
        z-index: 2;
    }

/* Десктопы */
@media (min-width: 1200px) {
    .hero_teacher {
        background-position: center top;
    }

        .hero_teacher::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
    .hero_teacher {
        background-position: center 20%;
        min-height: 90vh;
    }

        .hero_teacher::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Планшеты в портретной ориентации */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
    .hero_teacher {
        background-position: 70% center;
        min-height: 80vh;
    }

        .hero_teacher::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в альбомной ориентации */
@media (max-width: 767px) and (orientation: landscape) {
    .hero_teacher {
        background-position: center 30%;
        min-height: 100vh;
    }

        .hero_teacher::before {
            background: rgba(0, 0, 0, 0.7);
        }
}

/* Мобильные в портретной ориентации */
@media (max-width: 767px) and (orientation: portrait) {
    .hero_teacher {
        background-position: 75% center;
        min-height: 70vh;
    }

        .hero_teacher::before {
            background: rgba(0, 0, 0, 0.7);
        }
}


.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(253, 248, 216, 0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 15px rgba(253, 248, 216, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(253, 248, 216, 0.5);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-speed);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 40, 77, 0.3);
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-bg {
  background-color: #f8f9fa;
}

/* Cards */
.card-custom {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-speed);
  height: 100%;
  background-color: var(--white);
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-custom .card-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
}

.card-custom .card-body {
  padding: 2rem;
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--primary-color);
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
}

.quote-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.quote-author {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quote-position {
  font-size: 1rem;
  opacity: 0.9;
}

/* Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.advantage-item {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-speed);
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.advantage-item h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.advantage-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

.advantage-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Partners Section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.partner-item {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-speed);
}

.partner-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.partner-item h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-speed);
  display: block;
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.news-item {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-speed);
  cursor: pointer;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-item-content {
  padding: 1.5rem;
}

.news-item h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-info {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.contact-item a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .advantages-grid,
  .partners-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .navbar-nav {
    padding: 1rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .header-contact {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .btn-primary-custom {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Центрирование навигации на десктопе */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    justify-content: center;
  }
  
  .navbar-nav {
    margin: 0 auto;
  }
}

.quote-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .scroll-animate.animated {
        opacity: 1;
        transform: translateY(0);
    }

.quote-content .quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: white;
}

.quote-content .quote-author {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.quote-content .quote-position {
    font-size: 1rem;
    opacity: 0.9;
    color:  white;
    margin-bottom: 2rem;
}

.additional-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
}

.rounded-circle {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid white;
}

/* Мобильные устройства */
@media (max-width: 767.98px) {
    .quote-section {
        padding: 2.5rem 0;
    }

    .quote-content .quote-text {
        font-size: 1.3rem;
        text-align: center;
    }

    .quote-content .quote-author,
    .quote-content .quote-position {
        text-align: center;
    }

    .additional-text {
        font-size: 1rem;
        text-align: center;
    }

    .rounded-circle {
        max-width: 250px !important;
        margin: 0 auto;
        display: block;
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 991.98px) {
    .quote-content .quote-text {
        font-size: 1.4rem;
    }

    .rounded-circle {
        max-width: 280px !important;
    }
}

/* Десктопы */
@media (min-width: 992px) {
    .quote-content {
        text-align: right;
    }
}

.square-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Мобильные устройства */
@media (max-width: 767.98px) {
    .square-image {
        height: 300px;
        margin-top: 2rem;
    }

    .section-title {
        text-align: center;
    }

    p {
        text-align: left;
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 991.98px) {
    .square-image {
        height: 350px;
    }
}

/* Make all headings bold */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900 !important;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px 15px 0 0;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

    .btn-close:hover {
        opacity: 1;
    }

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    border-radius: 0 0 15px 15px;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(26, 40, 77, 0.1);
    }

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-dark);
}

    .form-check-label a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .form-check-label a:hover {
            text-decoration: underline;
        }

/* Modal buttons */
.modal-footer .btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

    .modal-footer .btn-secondary:hover {
        background-color: #5a6268;
        transform: translateY(-1px);
    }

.modal-footer .btn-primary-custom {
    margin: 0;
    align-items:center;
    padding: 0.75rem 1.5rem;
}


/* Личный кабинет - Personal Account */
.personal-account {
    padding: 80px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.account-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a3f6d 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.account-welcome {
    text-align: center;
}

    .account-welcome h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        color: var(--white);
    }

    .account-welcome p {
        font-size: 1.1rem;
        opacity: 0.9;
        margin-bottom: 0;
    }

.account-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Боковая панель навигации */
.account-sidebar {
    background: var(--white);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.user-profile {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a3f6d 100%);
    color: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    margin: 0 auto 1rem;
    background: var(--white);
}

.user-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.user-email {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.account-status {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.account-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

    .account-menu li {
        margin: 0;
    }

    .account-menu a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: var(--text-dark);
        text-decoration: none;
        transition: all var(--transition-speed);
        border-left: 3px solid transparent;
    }

        .account-menu a:hover,
        .account-menu a.active {
            background-color: var(--accent-color);
            color: var(--primary-color);
            border-left-color: var(--primary-color);
        }

    .account-menu i {
        margin-right: 0.75rem;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

/* Основной контент */
.account-main {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.section-title-account {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

/* Карта BRICS */
.brics-card-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    
}

.brics-card {
    background-image: url(../img/card.png);
    background-size: contain; /* Фото полностью помещается без обрезки */
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--primary-color); /* Фон на случай пустых областей */

    border-radius: 15px;
    padding: 2rem;
    color: var(--white);
    position: relative;
    box-shadow: 0 10px 30px rgba(26, 40, 77, 0.3);
    max-width: 400px;
    margin: 0 auto;
    min-height: 220px;
    overflow: hidden;
}

    .brics-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(253, 248, 216, 0.1) 0%, transparent 70%);
    }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.card-type {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-photo {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 70px;
    height: 85px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    background: var(--white);
}

    .card-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.card-user-info {
    margin-bottom: 1.5rem;
    margin-right: 80px;
}

.card-fullname {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-dob {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.card-id {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-validity {
    font-size: 0.8rem;
}

.valid-label {
    opacity: 0.7;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 0.25rem;
}

.valid-date {
    font-weight: 600;
}

.card-qr {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Информация о пользователе */
.user-info-section {
    margin-bottom: 2rem;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Действия с картой */
.card-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.card-action-btn {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.875rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

    .card-action-btn:hover {
        background-color: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(26, 40, 77, 0.3);
    }

/* Сетка для ASP.NET контролов */
.aspnet-controls {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.control-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed);
    width: 100%;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(26, 40, 77, 0.1);
    }

.btn-aspnet {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-speed);
    cursor: pointer;
}

    .btn-aspnet:hover {
        background-color: #2a3f6d;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(26, 40, 77, 0.3);
    }

/* GridView стилизация */
.grid-view-custom {
    width: 100%;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

    .grid-view-custom th {
        background-color: var(--primary-color);
        color: var(--white);
        padding: 1rem;
        font-weight: 600;
        border: none;
    }

    .grid-view-custom td {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        vertical-align: middle;
    }

    .grid-view-custom tr:hover {
        background-color: #f8f9fa;
    }

/* Адаптивность */
@media (max-width: 992px) {
    .account-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .account-sidebar {
        position: static;
    }

    .brics-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .personal-account {
        padding: 60px 0;
    }

    .account-welcome h1 {
        font-size: 2rem;
    }

    .user-info-grid {
        grid-template-columns: 1fr;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }

    .brics-card {
        padding: 1.5rem;
        min-height: 200px;
    }

    .card-photo {
        width: 60px;
        height: 75px;
        top: 1.5rem;
        right: 1.5rem;
    }

    .card-user-info {
        margin-right: 70px;
    }

    .card-fullname {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .account-header {
        padding: 1.5rem 0;
    }

    .account-main {
        padding: 1.5rem;
    }

    .section-title-account {
        font-size: 1.5rem;
    }

    .user-avatar {
        width: 80px;
        height: 80px;
    }

    .brics-card-section {
        padding: 1rem;
    }
}

/* Утилиты для статусов */
.status-active {
    background-color: #28a745 !important;
    color: white !important;
}

.status-pending {
    background-color: #ffc107 !important;
    color: var(--text-dark) !important;
}

.status-expired {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Иконки для меню */
.menu-icon {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Уведомления */
.alert-aspnet {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Центрирование кнопок в модальных окнах */
.modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .modal-footer .btn-secondary,
    .modal-footer .btn-primary-custom {
        margin: 0;
        min-width: 140px;
    }

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .modal-footer {
        flex-direction: column;
        align-items: center;
    }

        .modal-footer .btn-secondary,
        .modal-footer .btn-primary-custom {
            min-width: 200px;
            width: 100%;
            max-width: 250px;
        }
}

/* Стили для синих кнопок в модальных окнах */
.modal-footer .btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

    .modal-footer .btn-primary-custom:hover {
        background-color: #2a3f6d;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(26, 40, 77, 0.3);
    }

.modal-footer .btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

    .modal-footer .btn-secondary:hover {
        background-color: #2a3f6d;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(26, 40, 77, 0.3);
    }

/* Центрирование кнопок */
.modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .modal-footer .btn-secondary,
    .modal-footer .btn-primary-custom {
        margin: 0;
        min-width: 140px;
    }

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .modal-footer {
        flex-direction: column;
        align-items: center;
    }

        .modal-footer .btn-secondary,
        .modal-footer .btn-primary-custom {
            min-width: 200px;
            width: 100%;
            max-width: 250px;
        }
}
/* Стили для кнопки назад в заголовке модального окна */
.modal-header {
    position: relative;
    padding: 1.5rem 2rem;
}

.back-button {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

    .back-button:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-50%) scale(1.1);
    }

/* Сдвигаем заголовок при наличии кнопки назад */
.modal-header.has-back-button .modal-title {
    margin-left: 1.5rem;
    text-align: center;
    width: 100%;
}

/* Убираем стандартную кнопку закрытия когда есть кнопка назад */
.modal-header.has-back-button .btn-close {
    display: none;
}
/* Центрирование единственной кнопки в футере */
.modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .modal-footer .btn-primary-custom {
        background-color: var(--primary-color);
        color: var(--white);
        border: none;
        padding: 0.75rem 2rem;
        font-weight: 600;
        border-radius: 8px;
        transition: all var(--transition-speed);
        margin: 0;
        min-width: 200px;
    }

        .modal-footer .btn-primary-custom:hover {
            background-color: #2a3f6d;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(26, 40, 77, 0.3);
        }

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .modal-footer .btn-primary-custom {
        width: 100%;
        max-width: 250px;
    }
}


/* Личный кабинет - Personal Account */
.personal-account {
    padding: 80px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.account-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Боковая панель */
.account-sidebar {
    background: var(--white);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    overflow: hidden;
    flex: 0 0 300px;
    height: fit-content;
    align-self: flex-start;
}

/* Основной контент */
.account-main {
    flex: 1;
    min-width: 0;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Заголовок профиля */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

/* МИНИМАЛИСТИЧНЫЕ СЕКЦИИ ИНФОРМАЦИИ */
.info-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

    .info-section:last-of-type {
        border-bottom: none;
        margin-bottom: 2rem;
    }

.section-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: block;
}

/* ВЕРТИКАЛЬНОЕ РАСПОЛОЖЕНИЕ ЭЛЕМЕНТОВ */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

    .info-item:hover {
        transform: none;
        box-shadow: none;
    }

.info-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

/* Убираем последнюю границу */
.info-item:last-child .info-value {
    border-bottom: none;
}

/* Кнопки действий */
.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.card-action-btn {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    min-width: 160px;
}

    .card-action-btn.primary {
        background-color: var(--primary-color);
        color: var(--white);
    }

    .card-action-btn:hover {
        background-color: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(26, 40, 77, 0.3);
    }

    .card-action-btn.primary:hover {
        background-color: #2a3f6d;
    }

/* Меню */
.account-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

    .account-menu li {
        margin: 0;
    }

    .account-menu a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: var(--text-dark);
        text-decoration: none;
        transition: all var(--transition-speed);
        border-left: 3px solid transparent;
    }

        .account-menu a:hover,
        .account-menu a.active {
            background-color: var(--accent-color);
            color: var(--primary-color);
            border-left-color: var(--primary-color);
        }

.menu-icon {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Плавные переходы для вкладок */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .tab-content.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

/* Адаптивность */
@media (max-width: 992px) {
    .account-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .account-sidebar {
        position: static;
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-action-btn {
        min-width: 100%;
    }

    .info-grid {
        gap: 0.5rem;
    }

    .info-value {
        padding: 0.375rem 0;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .account-main {
        padding: 1.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .profile-actions {
        flex-direction: column;
    }

        .profile-actions form {
            width: 100%;
        }

        .profile-actions .card-action-btn {
            width: 100%;
        }
}


/* Стили для таблиц и фильтров */
.filters-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.table-section {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table {
    margin-bottom: 0;
}

    .table th {
        background-color: var(--primary-color);
        color: var(--white);
        font-weight: 600;
        border: none;
        padding: 1rem;
    }

    .table td {
        padding: 1rem;
        vertical-align: middle;
        border-color: #f0f0f0;
    }

.status-badge, .role-badge, .type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d1ecf1;
    color: #0c5460;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-expired {
    background: #fff3cd;
    color: #856404;
}

.status-blocked {
    background: #f8d7da;
    color: #721c24;
}

.role-student {
    background: #d1ecf1;
    color: #0c5460;
}

.role-agent {
    background: #e2e3e5;
    color: #383d41;
}

.role-admin {
    background: #d4edda;
    color: #155724;
}

.type-digital {
    background: #d1ecf1;
    color: #0c5460;
}

.type-physical {
    background: #e2e3e5;
    color: #383d41;
}

.type-both {
    background: #d4edda;
    color: #155724;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .btn-action:hover {
        transform: scale(1.1);
    }

    .btn-action.view {
        color: #17a2b8;
    }

    .btn-action.edit {
        color: #ffc107;
    }

    .btn-action.approve {
        color: #28a745;
    }

    .btn-action.reject {
        color: #dc3545;
    }

    .btn-action.delete {
        color: #dc3545;
    }

    .btn-action.block {
        color: #dc3545;
    }

    .btn-action.unblock {
        color: #28a745;
    }

    .btn-action.renew {
        color: #17a2b8;
    }

    .btn-action.activate {
        color: #28a745;
    }

    .btn-action.deactivate {
        color: #ffc107;
    }

.no-data {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Login Form Styles */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.login-btn, .profile-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.login-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

    .login-btn:hover {
        background: var(--white);
        color: var(--primary-color);
    }

.profile-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
}

    .profile-btn:hover {
        background: var(--white);
        color: var(--primary-color);
        transform: translateY(-1px);
    }

/* Form Validation */
.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Spinner for loading state */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}



.brics-card-section {
    width: 100%;
    max-width: 400px; /* или нужная вам ширина */
    margin: 0 auto;
    padding: 20px;
}

.card-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 63%; /* Соотношение сторон стандартной банковской карты (≈63% = 85.6/54) */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.brics-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет контейнер, сохраняя пропорции */
    object-position: center;
    border-radius: 12px;
}

/* Альтернативный вариант с фиксированной высотой */
.card-container-fixed {
    width: 100%;
    height: 240px; /* Фиксированная высота */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.brics-card-image-fixed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* Hero для новостей */
.hero_news {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a3f6d 100%);
    color: var(--white);
    padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 40vh;
    height: auto;
}

/* Стили для новостей */
.news-article {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed);
    border: 1px solid #f0f0f0;
}

    .news-article:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

.news-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.news-article:hover .news-image {
    transform: scale(1.05);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
}

.news-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.news-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 2px;
}

.news-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

    .news-title a {
        color: inherit;
        text-decoration: none;
        transition: color var(--transition-speed);
    }

        .news-title a:hover {
            color: var(--accent-color);
        }

.news-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

    .news-meta span {
        display: inline-block;
    }

    .news-meta i {
        margin-right: 5px;
    }

.news-excerpt {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.read-more-btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-category {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* Пагинация */
.page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 5px !important;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Хлебные крошки */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: var(--primary-color);
    }

/* Адаптивность */
@media (max-width: 768px) {
    .news-article {
        padding: 1.5rem;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .news-image-container {
        height: 200px;
    }

    .hero_news {
        min-height: 30vh;
        padding: 80px 0 60px;
    }

        .hero_news h1 {
            font-size: 2rem;
        }
}

@media (max-width: 576px) {
    .news-article {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .news-meta {
        font-size: 0.8rem;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-excerpt {
        font-size: 0.95rem;
    }

    .read-more-btn {
        width: 100%;
    }

    .hero_news h1 {
        font-size: 1.8rem;
    }
}