:root {
    --primary-color: #a259ff;
    --secondary-color: #6a11cb;
    --dark-bg: #121212;
    --light-text: #e0e0e0;
    --header-bg: rgba(22, 22, 22, 0.8);
    --card-bg: rgba(30, 30, 30, 0.9);
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: #0a0a1a; 
    background-image:
        radial-gradient(at 15% 20%, hsla(190, 80%, 50%, 0.25) 0px, transparent 50%),
        radial-gradient(at 80% 30%, hsla(260, 80%, 60%, 0.2) 0px, transparent 50%),
        radial-gradient(at 30% 85%, hsla(140, 60%, 40%, 0.2) 0px, transparent 50%),
        radial-gradient(at 75% 90%, hsla(300, 70%, 50%, 0.25) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ensure footer sticks to bottom when content is small */
html {
    height: 100%;
}

main {
    flex: 1 0 auto;
    margin: 0 auto;
    max-width: 1100px;
}

footer {
    flex-shrink: 0;
}

body::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-color: rgba(162, 89, 255, 0.5);
    border-style: solid;
    pointer-events: none;
    z-index: 1001;
    transition: all 0.3s ease-in-out;
    top: 20px;
    left: 20px;
    border-width: 2px 0 0 2px;
}

header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 2rem;
    position: fixed;
    width: 95%;
    max-width: 900px;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.logo-name {
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 1.6em;
    cursor: pointer;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    list-style-type: none;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover,
nav ul li a.active {
    color: white;
}

/* внимание: активная ссылка должна быть более заметной */
nav ul li a.active {
    font-weight: 600;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

main {
    flex-grow: 1;
}

section {
    max-width: 1050px;
    padding: 2rem 4rem;
    padding-top: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.hero {
    border-radius: 12px;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(5,8,20,0.25) 0%, rgba(2,6,30,0.5) 100%);
}

.hero-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 620px;
    text-align: left;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.lead {
    color: rgba(224,224,224,0.9);
    font-weight: 300;
    margin-bottom: 1rem;
}

.hero-visual img {
    width: 360px;
    max-width: 40vw;
    display: block;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.6));
}

.hero-caption {
    display: none;
    text-align: center;
    margin-bottom: 8px;
}

.hero-caption .caption-title {
    font-size: 10rem;
    font-weight: 700;
    color: white;
}

.hero-caption .caption-sub {
    font-size: 3rem;
    color: rgba(224,224,224,0.9);
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 6px 20px rgba(162,89,255,0.18);
    border: none;
}

.btn.primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(162,89,255,0.3);
}

.btn.ghost {
    background: transparent;
    color: var(--light-text);
    border: 1px solid rgba(255,255,255,0.08);
}

.btn:active {
    transform: translateY(1px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(162,89,255,0.2), rgba(107,17,203,0.15));
    color: var(--primary-color);
    border: 1px solid rgba(162,89,255,0.4);
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(162,89,255,0.1);
}

.back-link:hover {
    background: linear-gradient(135deg, rgba(162,89,255,0.35), rgba(107,17,203,0.25));
    border-color: rgba(162,89,255,0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(162,89,255,0.25);
    color: white;
}

.page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0;
    font-size: 2.8em;
}

.articles-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.articles-header h2 {
    margin: 0;
}

.articles-lead {
    margin: 0;
    color: rgba(224,224,224,0.8);
    font-weight: 300;
}

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

.article-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    text-decoration: none;
    color: inherit;
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 0.16;
}

.article-meta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.article-meta .tag {
    display: inline-block;
    background: rgba(0,0,0,0.35);
    color: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75em;
    margin-bottom: 8px;
}

.article-meta h3 {
    margin: 6px 0 0 0;
    font-size: 1.5em;
    color: white;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.article-meta .external {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 0.98em;
    opacity: 0.9;
}

h1, h2 {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3em;
    margin-bottom: 2rem;
}

p {
    font-weight: 300;
    font-size: 1.1em;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
}

.species {
    display: grid;
    grid-template-columns: 1fr 200px 1fr;
    grid-template-rows: 200px 200px 200px;
    justify-items:center;
    align-items:center;
    gap: 80px 100px;
    padding: 4rem 0;
}

.species-card {
    position: relative;
    width: 220px;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.species-card:hover {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .species {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        grid-template-rows: auto auto;
        gap: 30px;
        padding: 2rem 0;
    }
    .species-card.top,
    .species-card.left,
    .species-card.right,
    .species-card.bottom {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .species {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 24px;
    }
    .species-card {
        width: min(100%, 320px);
        margin: 0 auto;
    }
}

.top{
    grid-column:2;
    grid-row:1;
}

.left{
    grid-column:1;
    grid-row:2;
}

.right{
    grid-column:3;
    grid-row:2;
}

.bottom{
    grid-column:2;
    grid-row:3;
}

.triangle-selector {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(162, 89, 255, 0.6));
}

.triangle-selector:not(.triangle-bottom) {
    top: -25px;
    transform: translateX(-50%) rotate(180deg);
    border-bottom: 30px solid var(--primary-color);
}

.triangle-selector.triangle-bottom {
    bottom: -25px;
    transform: translateX(-50%);
    border-bottom: 30px solid var(--primary-color);
}

.species-card:hover .triangle-selector {
    opacity: 1;
}

.species-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: block;
}

.species-card:hover img {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .triangle-selector {
        display: none !important;
    }
}

.merch-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.merch-intro {
    text-align: center;
    max-width: 850px;    .container {
        max-width: 1100px;
        margin: 0 auto;
    }
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.merch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.merch-card {
    position: relative;
    width: 280px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.merch-card:hover {
    transform: scale(1.05);
}

.merch-image {
    display: block;
    position: relative;
    width: 100%;
    height: 320px;
    cursor: pointer;
    text-decoration: none;
}

.merch-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.merch-card:hover img {
    opacity: 1;
}

.merch-card .triangle-selector {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(162, 89, 255, 0.6));
}

.merch-card .triangle-selector:not(.triangle-bottom) {
    top: -25px;
    transform: translateX(-50%) rotate(180deg);
    border-bottom: 30px solid var(--primary-color);
}

.merch-card .triangle-selector.triangle-bottom {
    bottom: -25px;
    transform: translateX(-50%);
    border-bottom: 30px solid var(--primary-color);
}

.merch-card:hover .triangle-selector {
    opacity: 1;
}

.merch-info {
    padding: 1.5rem 1rem;
    text-align: center;
}

.merch-info h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: var(--light-text);
}

.merch-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.merch-price {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.merch-cta {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.merch-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.merch-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.merch-cta .btn {
    margin: 0.5rem;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    max-width: 600px;
    border-radius: 15px;
    border: 1px solid rgba(162, 89, 255, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.modal-content h3 {
    color: var(--light-text);
    margin-top: 1.5rem;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.modal-close:hover {
    color: var(--primary-color);
}

.delivery-list,
.price-factors,
.contact-methods {
    list-style: none;
    padding: 0;
}

.delivery-list li,
.price-factors li,
.contact-methods li {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(162, 89, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    text-align: left;
}

.delivery-list strong {
    color: var(--primary-color);
}

.contact-methods a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-methods a:hover {
    text-decoration: underline;
}

.delivery-note {
    font-style: italic;
    opacity: 0.8;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(162, 89, 255, 0.2);
}

footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: transparent;
    color: var(--light-text);
    font-size: 0.9em;
    backdrop-filter: blur(10px);
}

footer .container {
    width: 100%;
    text-align: center;
}

footer p {
    margin: 0;
}

footer::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-color: rgba(162, 89, 255, 0.5);
    border-style: solid;
    pointer-events: none;
    z-index: 1001;
    transition: all 0.3s ease-in-out;
    bottom: 20px;
    right: 20px;
    border-width: 0 2px 2px 0;
}

@media (max-width: 1100px) {
    body::before {
        display: none;
    }
    footer::after {
        display: none;
    }
    h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2.5em;
    }
    header {
        padding: 0.6rem 1.5rem;
        max-width: 800px;
    }
    nav ul {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    header {
        padding: 1rem;
        width: 90%;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul {
        justify-content: center;
    }
    nav ul li a {
        white-space: nowrap;
    }
    section {
        padding: 100px 1.5rem 2rem;
    }
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 2em;
    }
    p {
        font-size: 1em;
    }
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
    .merch-grid {
        gap: 30px;
    }
    .merch-card {
        width: calc(50% - 15px);
        max-width: 300px;
    }
    .merch-image {
        height: 280px;
    }
    .about-cards,
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .about-contacts {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }
    .about-contacts h3 {
        font-size: 1.1em;
    }
    .contact-link {
        padding: 10px 14px;
        font-size: 0.95em;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-meta {
        padding: 12px;
    }
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-visual img {
        max-width: 60vw;
    }
    .merch-grid {
        gap: 20px;
        padding: 0 1rem;
    }
    .merch-card {
        width: 100%;
        max-width: 100%;
    }
    .merch-image {
        height: 200px;
    }
    .merch-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .merch-info h3 {
        font-size: 1rem;
    }
    .article-header h1 {
        font-size: 1.75rem;
    }
    .article-body h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    h1 {
        font-size: 1.5em;
    }
    .nav-toggle {
        display: inline-block;
    }
    header {
        flex-direction: row-reverse;
        gap: 20px;
        padding: 0.5rem 0.8rem;
        width: 80%;
    }
    .logo {
        gap: 6px;
        flex: 0 0 auto;
    }
    .logo img {
        height: 34px;
        width: 34px;
        margin-right: 0;
    }
    .logo-name {
        font-size: 1.05em;
    }
    nav {
        display: none;
    }
    nav.open ul li a {
        position: relative;
        padding-left: 26px;
    }
    nav.open ul li a::after {
        display: none;
    }
    nav.open ul li a::before {
        content: '';
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%) scale(0.95);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(162, 89, 255, 0.95);
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    nav.open ul li a:hover::before,
    nav.open ul li a.active::before {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
    nav.open {
        display: block;
        position: fixed;
        left: 8px;
        right: 8px;
        top: calc(1rem + 56px);
        background: linear-gradient(180deg, rgba(8,8,18,0.98), rgba(6,6,12,0.98));
        border-radius: 12px;
        padding: 10px;
        z-index: 1600;
        box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    }
    nav.open ul {
        flex-direction: column;
        gap: 6px;
    }
    nav.open ul li {
        margin: 0;
    }
    nav.open ul li a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
    }
    .hero h1 {
        display: block;
        font-size: 1.55rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    .hero-caption {
        display: none;
    }
    .hero-caption .caption-title {
        font-size: 1.15em;
        letter-spacing: 0.5px;
    }
    .hero-caption .caption-sub {
        font-size: 0.9em;
        opacity: 0.95;
    }
    .hero-ctas .btn {
        margin: 10px;
    }
    .contacts-links {
        gap: 12px;
        flex-direction: column;
        width: 100%;
    }
    .contact-link {
        width: 75%;
        justify-content: center;
        padding: 12px 14px;
    }
    .about-contacts h3 {
        font-size: 1em;
    }
    .contact-icon {
        width: 32px;
        height: 32px;
    }
    .merch-content h2 {
        font-size: 1.3rem;
    }
    .merch-intro {
        font-size: 0.9rem;
    }
    .merch-grid {
        gap: 15px;
        padding: 0 0.5rem;
    }
    .merch-image {
        height: 180px;
    }
    .merch-info {
        padding: 0.8rem 0.6rem;
    }
    .merch-cta {
        padding: 1rem;
        margin: 1.2rem 0.5rem;
    }
    .modal-content {
        margin: 40% auto;
        max-width: 100%;
        left: 5px;
        right: 5px;
        padding: 1rem;
    }
    .modal-close {
        right: 10px;
        top: 0;
        font-size: 1.5rem;
    }
    .article-header h1 {
        font-size: 1.5rem;
    }
    .article-body h2 {
        font-size: 1.25rem;
    }
    .article-body {
        font-size: 0.95rem;
    }
    footer {
        padding: 1rem 0.5rem;
        font-size: 0.8em;
    }
    footer p {
        font-size: 0.75rem;
    }
}


.about-content {
    max-width: 900px;
    text-align: left;
}

.about-intro {
    margin: 1.5rem 0 3rem;
    line-height: 1.8;
}

.about-intro p {
    margin-bottom: 1rem;
    font-size: 1em;
    max-width: 100%;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 3rem;
}

.about-card {
    background: linear-gradient(135deg, rgba(30,10,60,0.4), rgba(10,10,30,0.3));
    border: 1px solid rgba(162,89,255,0.2);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    text-decoration: none;
}

.about-card.clickable:hover {
    background: linear-gradient(135deg, rgba(40,15,80,0.6), rgba(15,15,40,0.5));
    border-color: rgba(162,89,255,0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(162,89,255,0.15);
}

.card-icon {
    font-size: 2.4em;
    margin-bottom: 8px;
}

.about-card h3 {
    margin: 0 0 6px 0;
    color: white;
    font-size: 1.3em;
}

.about-card p {
    margin: 0;
    color: rgba(224,224,224,0.8);
    font-size: 0.95em;
}

.card-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.about-card:hover .card-arrow {
    opacity: 1;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.admin-card {
    background: rgba(0,0,0,0.25);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(162,89,255,0.1);
}

.admin-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-card h4 {
    margin: 0 0 6px 0;
    color: white;
    font-size: 1.05em;
}

.admin-card p {
    margin: 0;
    color: rgba(224,224,224,0.75);
    font-size: 0.9em;
}

@media (max-width: 900px) {
    .about-cards {
        grid-template-columns: 1fr;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.about-contacts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(162,89,255,0.15);
    text-align: center;
    text-decoration: none;
}

.about-contacts h3 {
    margin: 0 0 1.5rem 0;
    color: white;
    font-size: 1.3em;
}

.contacts-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(40,15,80,0.3), rgba(15,15,40,0.2));
    border: 1px solid rgba(162,89,255,0.25);
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    color: inherit;
}

.contact-link:hover {
    background: linear-gradient(135deg, rgba(50,20,100,0.5), rgba(20,20,50,0.3));
    border-color: rgba(162,89,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(162,89,255,0.12);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 0.9em;
}

.contact-text {
    color: rgba(224,224,224,0.9);
    font-weight: 500;
}

@media (max-width: 900px) {
    .about-contacts {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }

    .about-contacts h3 {
        font-size: 1.1em;
        margin-bottom: 1rem;
    }

    .contact-link {
        padding: 10px 14px;
        font-size: 0.95em;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85em;
    }

    .contact-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .container {
    max-width: 100%;
    margin: 0 auto;

    h1 {
        font-size: 1.5em;
    }
}
    /* Contacts */
    .contacts-links{
        gap:12px;
        flex-direction:column;
        width:100%;
    }
    .contact-link{
        width:75%;
        justify-content:center;
        padding:12px 14px;
    }
    .about-contacts h3{font-size:1em}
    .contact-icon{width:32px;height:32px}
    .hero-ctas .btn{margin:10px}


    .nav-toggle{display:inline-block;order:1;margin-left:auto;margin-right:0}
    header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:0.5rem 0.8rem;width:95%;max-width:100vw;box-sizing:border-box;}
    .logo{display:flex;align-items:center;gap:6px;order:0;flex:0 0 auto;margin-bottom:0}
    .logo img{height:34px;width:34px;margin-right:0}
    .logo-name{font-size:1.05em;display:inline;padding-left: 10px}
    nav{display:none}
    nav.open{display:block;position:fixed;left:8px;right:8px;top:calc(1rem + 56px);background:linear-gradient(180deg, rgba(8,8,18,0.98), rgba(6,6,12,0.98));border-radius:12px;padding:10px;z-index:1600;box-shadow:0 10px 30px rgba(0,0,0,0.6)}
    nav.open ul{display:flex;flex-direction:column;gap:6px;margin:0;padding-left:0}
    nav.open ul li{margin-left:0}
    nav.open ul li a{display:block;padding:14px 16px 14px 32px;position:relative;border-radius:12px;color:var(--light-text);background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.03);transition:background 0.2s ease,border-color 0.2s ease,color 0.2s ease;}
    nav.open ul li a::before{content:'';position:absolute;left:12px;top:50%;transform:translateY(-50%);width:8px;height:8px;border-radius:50%;background:rgba(162,89,255,0.95);opacity:0.85}
    nav.open ul li a::after{display:none}
    nav.open ul li a:hover{background:rgba(162,89,255,0.14);border-color:rgba(162,89,255,0.25);}
    nav.open ul li a.active{background:rgba(162,89,255,0.18);border-color:rgba(162,89,255,0.4);color:white;}
    nav.open ul li a.active::before{background:rgba(255,255,255,0.95);}

    .hero h1{display:block;font-size:1.65rem;line-height:1.2;margin-bottom:0.75rem;}
    .hero-caption{display:none}
    .hero-caption .caption-title{font-size:1.15em;letter-spacing:0.5px}
    .hero-caption .caption-sub{font-size:0.9em;opacity:0.95}
}

/* Article Page Styles */
.article-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(162, 89, 255, 0.2);
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #a259ff 0%, #6a11cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-category {
    display: inline-block;
    width: fit-content;
    padding: 0.5rem 1rem;
    background: rgba(162, 89, 255, 0.15);
    border: 1px solid rgba(162, 89, 255, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a259ff;
}

.article-body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: #a259ff;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #a259ff;
}

.article-body p {
    margin: 1rem 0;
    color: var(--light-text);
}

.article-body strong {
    font-weight: 600;
    color: #a259ff;
}

.article-body em {
    font-style: italic;
    color: rgba(162, 89, 255, 0.8);
}

.article-body a {
    color: #a259ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(162, 89, 255, 0.5);
    transition: all 0.3s ease;
}

.article-body a:hover {
    color: #b47fff;
    border-bottom-color: #b47fff;
}

.article-body ul, 
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin: 0.5rem 0;
    color: var(--light-text);
}

.article-body ul li::marker {
    color: #a259ff;
}

.article-body ol li::marker {
    color: #a259ff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.1), rgba(106, 17, 203, 0.08));
    border: 1px solid rgba(162, 89, 255, 0.3);
    border-radius: 8px;
    color: #a259ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 1rem 0;
}

.back-link:hover {
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.2), rgba(106, 17, 203, 0.15));
    border-color: rgba(162, 89, 255, 0.5);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(162, 89, 255, 0.15);
}

.back-link:active {
    transform: translateX(-2px);
}