@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&family=Inconsolata:wght@400&display=swap');

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

body {
    background-color: #000000;
}

h1 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 66px;
    color: #FFFAFA;
}

h2 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #FFFAFA;
}

h3 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #FFFAFA;
}

p {
    font-family: 'Inconsolata', monospace;
    font-weight: 400;
    font-size: 16px;
    color: #FFFAFA;
}

.wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 8px;
    background-color: #000000;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    background-color: #000000;
}

header {
    position: relative;
    width: 100%;
    z-index: 1000;
    background-color: #000000;
}

header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

main {
    padding-top: 180px;
}

@media (max-width: 1310px) {
    main {
        padding-top: 100px;
    }
}

.menu {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 94px;
}

.center-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo-head {
    order: 0;
    flex-shrink: 0;
}

.logo-head img {
    height: 94px;
    width: 118px;
    transition: transform 0.6s ease;
}

.logo-head:hover img {
    transform: scale(1.3);
}

.menu-list {
    list-style: none;
    display: flex;
    transition: transform 0.3s ease, opacity 0.3s ease;
    order: 1;
    justify-content: flex-end;
    margin: 0 20px;
}

.menu-list li {
    margin-left: 25px;
}

.menu-list li:first-child {
    margin-left: 0;
}

.menu-list a {
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: #FFFAFA;
    text-decoration: none;
    transition: color 0.4s, transform 0.4s;
    padding-bottom: 5px;
}

.menu-list a:hover {
    color: #ADFF2F;
}

.menu-list .button {
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.menu-list .button:hover {
    background-color: #ADFF2F;
    color: #000000;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    order: -1;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.burger-menu:hover {
    transform: scale(1.1);
}

.burger-menu:hover span {
    background: #ADFF2F;
}

.burger-menu span {
    width: 100%;
    height: 4px;
    background: #FFFAFA;
    border-radius: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 0 4px rgba(173, 255, 47, 0.3);
}

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

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

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

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    min-width: 200px;
    border-radius: 4px;
}

.dropdown a {
    color: #FFFAFA;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 20px;
}

.dropdown a:hover {
    color: #ADFF2F;
    background-color: #222;
}

.menu-item {
    position: relative;
}

.show {
    display: block;
    visibility: visible;
    opacity: 1;
}

.linkvk {
    order: 2;
    flex-shrink: 0;
}

.linkvk a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: none; /* Убрали зелёный фон */
    transition: transform 0.3s ease; /* Оставили только анимацию масштабирования */
}

.linkvk a:hover {
    background: none; /* Убрали фон при наведении */
    transform: scale(1.1);
}

.vk-icon {
    display: none; /* Убрали, так как используется изображение, а не SVG-иконка */
}


.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ADFF2F;
    color: #000000;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    display: none;
}

.scroll-to-top:hover {
    background-color: #8BCB00;
    transform: scale(1.1);
}
/* Стили для секции с грамотами */
.gramots_photo {
    padding: 40px 0;
    background-color: #000000;
}

/* Упрощаем стили для .gramots */
.gramots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center; /* Оставляем центрирование ячеек */
}

/* Упрощаем стили для .gines-section */
.gines-section {
    display: flex;
    justify-content: center;
    margin-top: 40px; /* Оставляем отступ сверху */
}

.gramot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gramots img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gramots img:hover {
    transform: scale(1.05);
}

/* Подписи */
.gramots p {
    font-family: 'Inconsolata', monospace;
    font-size: 16px;
    color: #FFFAFA;
    text-align: center;
    margin-top: 10px;
    max-width: 300px;
}

/* Стили для отдельной секции с гинес.jpg */
.gines-section {
    max-width: 1440px;
    margin: 40px auto 0;
    padding: 0 16px;
    display: flex;
    justify-content: center;
}

.gines-section .gramot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gines-section img {
    width: 100%;
    max-width: 500px; /* Увеличиваем ширину, чтобы подчеркнуть значимость */
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    transform: rotate(90deg); /* Поворот на 90 градусов вправо */
}

.gines-section img:hover {
    transform: rotate(90deg) scale(1.05); /* Сохраняем поворот при увеличении */
}

.gines-section p {
    font-family: 'Inconsolata', monospace;
    font-size: 16px;
    color: #FFFAFA;
    text-align: center;
    margin-top: 10px;
    max-width: 500px;
}

/* Адаптация для экранов ≤1200px */
@media (max-width: 1200px) {
    .gramots {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    .gramot-item {
        justify-content: center;
    }
    .gramots img {
        max-width: 250px;
    }
    .gramots p {
        font-size: 14px;
        max-width: 250px;
    }
    .gines-section img {
        max-width: 450px;
    }
    .gines-section p {
        font-size: 14px;
        max-width: 450px;
    }
}

/* Адаптация для экранов ≤768px */
@media (max-width: 768px) {
    .gramots {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
    .gramots img {
        max-width: 200px;
    }
    .gramots p {
        font-size: 13px;
        max-width: 200px;
    }
    .gines-section img {
        max-width: 400px;
    }
    .gines-section p {
        font-size: 13px;
        max-width: 400px;
    }
}

/* Адаптация для экранов ≤480px */
@media (max-width: 480px) {
    .gramots_photo {
        padding: 20px 0;
    }
    .gramots {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 10px;
    }
    .gramots img {
        max-width: 180px;
    }
    .gramots p {
        font-size: 12px;
        max-width: 180px;
    }
    .gines-section {
        margin-top: 20px;
    }
    .gines-section img {
        max-width: 300px;
    }
    .gines-section p {
        font-size: 12px;
        max-width: 300px;
    }
}

/* Уменьшение размеров на ширине ≤1351px */
@media (max-width: 1351px) {
    .menu {
        padding: 15px 0;
        min-height: 80px;
    }
    .logo-head img {
        height: 80px;
        width: 100px;
    }
    .menu-list a {
        font-size: 20px;
    }
    .menu-list li {
        margin-left: 15px;
    }
    .linkvk a {
        width: 40px;
        height: 40px;
    }
}

/* Бургер-меню на ширине ≤1310px */
@media (max-width: 1310px) {
    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 24px;
        text-align: center;
    }
    .menu {
        justify-content: space-evenly;
        padding: 10px 0;
        flex-wrap: nowrap;
    }
    .menu-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        transform: translateX(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .menu-list.show {
        transform: translateX(0);
        opacity: 1;
        display: flex; /* Оставляем display: flex для плавного закрытия */
    }
    .menu-list li {
        margin: 20px 0;
        animation: fadeIn 0.3s ease-in forwards;
    }
    .menu-list a {
        font-size: 1.8em;
    }
    .dropdown {
        position: relative;
        top: auto;
        left: auto;
        background: rgba(0, 0, 0, 0.7);
        text-align: center;
        width: 100%;
        box-shadow: none;
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .dropdown.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    .dropdown a {
        font-size: 18px;
        padding: 8px 16px;
        border-bottom: 1px solid rgba(173, 255, 47, 0.2);
    }
    .dropdown a:last-child {
        border-bottom: none;
    }
    .dropdown a:hover {
        color: #ADFF2F;
        background: rgba(173, 255, 47, 0.1);
    }
    .burger-menu {
        display: flex;
    }
    .center-container {
        flex-grow: 1;
        justify-content: center;
    }
    .logo-head {
        text-align: center;
    }
    .linkvk {
        margin-left: 0;
    }
}

/* Медиа-запрос для ширины ≤480px */
@media (max-width: 480px) {
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 20px;
    }
    .looks-photo {
        flex-direction: column;
        align-items: center;
    }
    .looks-photo .photo-item {
        width: 100%; /* 1 в ряд */
        max-width: 300px; /* Ограничиваем максимальную ширину */
    }
    .looks-photo img {
        width: 100%;
        height: auto;
        padding: 10px;
    }
    .photos-lent {
        display: block;
    }
    .photo-group {
        flex-direction: column;
    }
    .photo-group img {
        width: 100%;
        margin-bottom: 10px;
    }
    .teams img {
        max-width: 350px; /* Увеличили размер для лучшей читаемости */
        height: auto;
    }
    .scroll-to-top {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

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