* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: white;
    line-height: 1.6;
    background: #fff;
    transition: background-color 0.3s, color 0.2s;
}

.container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 20px;
}

.button {
    background-color: darkorchid; 
    color: white;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 0px;
    transition: background-color 0.3s ease, transform 0.2s; 
    font-family: 'Raleway', sans-serif;
}

.button:hover {
    background-color: plum; 
    transform: scale(1.05);
}

/*|||| шапка ||||*/

.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: background 0.3s;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-img {
    width: 50px;
    height: auto;
    cursor: pointer; 
}

.header-company-name {
    color: black;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.header-nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    width: auto;
    text-decoration: none;
}

.headernav-item a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.headernav-item a:hover {
    color: darkorchid;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-button,
.header-feedback-btn,
.theme-toggle-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger-line {
    width: 28px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
    border-radius: 2px;
}

/*|||| интро ||||*/

.intro {
    background: black;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    transition: background 0.3s;
}

.intro-container {
    text-align: center;
}

.intro-video {
  position: relative;
  width: 100%;
  max-width: 1400px; 
  margin: 0 auto 30px; 
  border-radius: 16px; 
  overflow: hidden; 
}

.intro-video iframe {
  width: 100%;
  height: auto;
  display: block;
  border: none; 
}

/*|||| О компании ||||*/

/* О нашем сервисе */
.about {
    padding: 80px 0;
    background-color: #606060;
}

.about-container {
    text-align: center;
}

.about-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 30px;
}

.about-text {
    color: white;
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-text-full {
    display: none;
    max-width: 800px;
    margin: 20px auto 0;
    color: #f0f0f0;
    line-height: 1.8;
}

.about-text-full.show {
    display: block;
}

.about-button {
    background-color: darkorchid;
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.about-button:hover {
    background-color: plum;
}

/*|||| преимущества ||||*/

.advantages {
    padding: 60px 0;
    background-color: #fff;
    transition: background 0.3s;
}

.advantages-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: black;
    transition: color 0.3s;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.advantages-item {
    background-color: darkorchid;
    color: white;
    padding: 40px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.3rem;
    box-shadow: 0 10px 20px rgba(107, 74, 255, 0.3);
    transition: transform 0.3s;
}

.advantages-item:hover {
    transform: translateY(-5px);
}

/*|||| стоимость  |||| */

.pricing {
    padding: 60px 0;
    background-color: #f9f9f9;
    transition: background 0.3s;
}

.pricing-title {
    text-align: center;
    font-size: 2.5rem;
    color: black;
    margin-bottom: 40px;
    transition: color 0.3s;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, background 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card-title {
    font-size: 1.8rem;
    color: black;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.pricing-card-desc {
    color: #666;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.pricing-card-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: darkorchid;
    margin-bottom: 20px;
}

.pricing-card-features {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
}

.pricing-card-features li {
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s, border-color 0.3s;
}

.pricing-card-features li:last-child {
    border-bottom: none;
}

.pricing-card-button {
    background-color: darkorchid;
    color: white;
    border: none;
    width: 100%;
}

.pricing-card-button:hover {
    background-color: plum;
}

/*|||| КОНТАКТЫ ||||*/

.contact {
    padding: 80px 0;
    background-color: white;
    transition: background 0.3s;
}

.contact-title {
    text-align: center;
    font-size: 2.5rem;
    color: black;
    margin-bottom: 50px;
    transition: color 0.3s;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    transition: background 0.3s;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: black;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.contact-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-input,
.contact-textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: darkorchid;
}

.contact-button {
    background-color: darkorchid;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 10px;
}

.contact-button:hover {
    background-color: plum;
}

/*|||| ГАЛЕРЕЯ  |||||*/

.gallery {
    padding: 60px 0;
    background-color: #f9f9f9;
    transition: background 0.3s;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: black;
    transition: color 0.3s;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, background 0.3s;
}

.gallery-card:hover {
    transform: translateY(-10px);
}

.gallery-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-card-title {
    color: black;
    font-size: 1.5rem;
    margin: 20px 20px 10px;
    transition: color 0.3s;
}

.gallery-card-text {
    color: #666;
    margin: 0 20px 20px;
    flex: 1;
    transition: color 0.3s;
}

.gallery-card-button {
    background-color: transparent;
    border: 2px solid darkorchid;
    color: darkorchid;
    margin: 0 20px 20px;
    padding: 10px;
    border-radius: 30px;
    font-size: 1rem;
}

.gallery-card-button:hover {
    background-color: darkorchid;
    color: white;
}

/*|||| футер |||| */

.footer {
    background-color: #222;
    color: #aaa;
    padding: 50px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    color: #aaa;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: darkorchid;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social img {
    width: 22px;
    height: 22px;
    transition: opacity 0.3s;
}

.footer-social img:hover {
    opacity: 0.7;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #444;
    font-size: 0.8rem;
    grid-column: span 3;
}

/* Адаптив */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    .footer-copyright {
        grid-column: span 1;
    }
    .footer-social {
        justify-content: center;
    }
}
.footer-social img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s;
}

/* ===== модальное окно ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px);}
    to { opacity: 1; transform: translateY(0);}
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.modal-title {
    font-size: 1.8rem;
    color: black;
    margin: 0;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.modal-close:hover {
    color: darkorchid;
}

.modal-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-input {
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: border 0.3s;
}

.modal-input:focus {
    outline: none;
    border-color: darkorchid;
}

.modal-submit {
    background-color: darkorchid;
    width: 100%;
}

/* ===== ТЕМНАЯ ТЕМА ===== */
body.dark-theme {
    background: #121212;
    color: #e0e0e0;
}

body.dark-theme .header,
body.dark-theme .about,
body.dark-theme .advantages,
body.dark-theme .contact,
body.dark-theme .modal-content,
body.dark-theme .modal-header {
    background-color: #1e1e1e;
}

body.dark-theme .header-company-name,
body.dark-theme .about-title,
body.dark-theme .advantages-title,
body.dark-theme .pricing-title,
body.dark-theme .gallery-title,
body.dark-theme .contact-title,
body.dark-theme .modal-title,
body.dark-theme .pricing-card-title,
body.dark-theme .gallery-card-title,
body.dark-theme .contact-info h3 {
    color: #ffffff;
}

body.dark-theme .about-text{
    color: #ccc;
    background: #1e1e1e;
}
body.dark-theme .gallery-card-text,
body.dark-theme .pricing-card-desc,
body.dark-theme .pricing-card-features li,
body.dark-theme .contact-info p,
body.dark-theme .contact-input,
body.dark-theme .contact-textarea,
body.dark-theme .modal-input {
    color: #ccc;
    border-color: #444;
    background: #2a2a2a;
}

body.dark-theme .pricing-card,
body.dark-theme .gallery-card,
body.dark-theme .contact-info {
    background: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

body.dark-theme .pricing-card-features li {
    border-bottom-color: #444;
}

body.dark-theme .headernav-item a {
    color: #ddd;
}

body.dark-theme .burger-line {
    background-color: #ddd;
}

body.dark-theme .footer {
    background-color: #0a0a0a;
    color: #888;
}

body.dark-theme .intro {
    background: #0a0a0a;
}

body.dark-theme .pricing,
body.dark-theme .gallery {
    background-color: #1a1a1a;
}

/* ===== адаптив ===== */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    .gallery-grid,
    .pricing-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-container {
        display: block;
        text-align: center;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
        margin-right: 15px;
    }
    
    .header-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100% - 80px);
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
        z-index: 999;
        border-radius: 0 20px 20px 0;
    }
    
    body.dark-theme .header-nav {
        background: #1e1e1e;
    }
    
    .header-nav.active {
        left: 0;
    }
    
    .header-nav-list {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        width: 100%;
    }
    
    .header-actions {
        margin-left: auto;
        gap: 8px;
    }
    
    .header-button,
    .header-feedback-btn,
    .theme-toggle-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .gallery-grid,
    .pricing-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-subtitle {
        font-size: 1.2rem;
    }
    
    .advantages-item {
        padding: 25px 20px;
        font-size: 1.1rem;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .button {
        padding: 10px 20px;
    }
}

/* Аккордеон */
.faq {
  padding: 60px 0;
  background-color: #fff;
  transition: background 0.3s;
}
body.dark-theme .faq {
  background-color: #1a1a1a;
}
.faq-title {
  text-align: center;
  font-size: 2.5rem;
  color: gray;
  margin-bottom: 40px;
}
.accordion-item {
  border: 1px solid #ddd;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
}
.accordion-header {
  background: darkorchid;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
  transition: background 0.3s;
}
body.dark-theme .accordion-header {
  background: #2a2a2a;
  color: white;
  border-color: #444;
}
.accordion-header:hover {
  background: plum;
  color: white;
}
.accordion-content {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #fff;
  color: black;
}
body.dark-theme .accordion-content {
  background: #1e1e1e;
  color: #ccc;
}
.accordion-item.active .accordion-content {
  max-height: 300px;
  padding: 20px;
}

/* Выпадающее меню */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
}
body.dark-theme .dropdown-menu {
  background: #2a2a2a;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
}
body.dark-theme .dropdown-menu li a {
  color: #ddd;
}
.dropdown-menu li a:hover {
  background: darkorchid;
  color: white;
}

/* Страница авторизации auth*/
.auth-section {
  padding: 80px 0;
  background: #f9f9f9;
}
body.dark-theme .auth-section {
  background: #121212;
}
.auth-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
body.dark-theme .auth-container {
  background: #1e1e1e;
}
.auth-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
}
.auth-tab {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  color: #666;
}
.auth-tab.active {
  color: darkorchid;
  border-bottom: 3px solid darkorchid;
}
.auth-form {
  display: block;
}
.auth-form.hidden {
  display: none;
}
.form-group {
  margin-bottom: 20px;
  position: relative;
}
.auth-input {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Raleway', sans-serif;
}
.auth-input:invalid {
  border-color: #ff6b6b;
}
.form-error {
  display: none;
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 5px;
}
.auth-input:invalid + .form-error {
  display: block;
}
.checkbox-group {
  display: flex;
  align-items: center;
  color: #666;
}

body.dark-theme .checkbox-group label {
    color: #ccc;
}
.agree-checkbox:checked ~ .auth-submit,
.agree-checkbox:checked + label + .auth-submit {
  background-color: darkorchid;
  cursor: pointer;
  opacity: 1;
}
.auth-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}
.auth-submit {
  width: 100%;
}

/* GIF-спиннер (анимированный) */
.gif-spinner {
  display: inline-block;
  margin-top: 15px;
  padding: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 30px;
  text-align: center;
}

/* video */
.video-demo {
  padding: 40px 0;
  text-align: center;
}
.video-demo video {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Адаптив для аккордеона и прочего */
@media (max-width: 768px) {
  .faq-title, .contact-title, .gallery-title {
    font-size: 2rem;
  }
  .accordion-header {
    font-size: 1rem;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }
}

.accordion-item.active .accordion-content {
  max-height: 500px;  
  padding: 20px;
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ДИСТРИБУТИВОВ ===== dark theme*/
.distro-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

.distro-modal-content {
  background: white;
  max-width: 500px;
  width: 90%;
  border-radius: 20px;
  overflow: hidden;
  animation: modalFadeIn 0.3s;
}

body.dark-theme .distro-modal-content {
  background: #1e1e1e;
}

.distro-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

body.dark-theme .distro-modal-header {
  background: #1e1e1e;
  border-bottom-color: #444;
}

.distro-modal-title {
  font-size: 1.8rem;
  color: black;
  margin: 0;
}

body.dark-theme .distro-modal-title {
  color: white;
}

.distro-modal-close {
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.distro-modal-close:hover {
  color: darkorchid;
}

.distro-modal-body {
  padding: 25px;
}

.distro-modal-body p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 25px;
}

body.dark-theme .distro-modal-body p {
  color: #ccc;
}

.distro-modal-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.distro-install-btn,
.distro-official-btn {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  transition: all 0.3s;
}

.distro-install-btn {
  background-color: darkorchid;
  color: white;
}

.distro-install-btn:hover {
  background-color: plum;
  transform: scale(1.02);
}

.distro-official-btn {
  background-color: transparent;
  border: 2px solid darkorchid;
  color: darkorchid;
}

.distro-official-btn:hover {
  background-color: darkorchid;
  color: white;
}

body.dark-theme .distro-official-btn {
  border-color: plum;
  color: plum;
}

body.dark-theme .distro-official-btn:hover {
  background-color: plum;
  color: #1e1e1e;
}


/* ===== СТРАНИЦА КАТАЛОГА ===== catalog*/
.catalog-hero {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
}

body.dark-theme .catalog-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.catalog-title {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.catalog-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Фильтры */
.catalog-filters {
  padding: 30px 0;
  background: #f5f5f5;
}

body.dark-theme .catalog-filters {
  background: #1e1e1e;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 2px solid darkorchid;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: darkorchid;
}

body.dark-theme .filter-btn {
  background: #2a2a2a;
  color: plum;
  border-color: plum;
}

.filter-btn.active,
.filter-btn:hover {
  background: darkorchid;
  color: white;
}

body.dark-theme .filter-btn.active,
body.dark-theme .filter-btn:hover {
  background: plum;
  color: #1e1e1e;
}

/* Сетка каталога */
.catalog-grid-section {
  padding: 60px 0;
  background: white;
}

body.dark-theme .catalog-grid-section {
  background: #121212;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Карточка каталога */
.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.catalog-card-badge.beginner {
  background: #2e7d32;
}

.catalog-card-badge.advanced {
  background: #1565c0;
}

.catalog-card-badge.special {
  background: #6a1b9a;
}

/* Адаптив для каталога */
@media (max-width: 768px) {
  .catalog-title {
    font-size: 2rem;
  }
  
  .filter-buttons {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
  }
  
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* Анимация успешного действия */
.success-animation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #4caf50;
  color: white;
  padding: 20px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 2000;
  animation: fadeOut 2s ease forwards;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

@keyframes fadeOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); visibility: hidden; }
}

@keyframes checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-animation::before {
  content: "✓";
  display: inline-block;
  margin-right: 10px;
  font-size: 1.5rem;
  animation: checkmark 0.5s ease;
}

/* Signed-in account status in the header. */
.header-actions .account-active {
  background: #166534;
  color: #fff;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header-actions .account-active::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #86efac;
  flex-shrink: 0;
}
.header-actions .account-active:hover { background: #14532d; }
