/* Общие стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background-color: #222;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 70px; /* Adjust as needed */
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #00bcd4; /* Accent color */
}

/* Hamburger menu (для мобильных) */
.menu-toggle {
    display: none; /* Скрываем по умолчанию для десктопов */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: all 0.3s linear;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('fots/главныйфон.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 0 100px; /* Отступ сверху для хедера */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-buttons .btn {
    margin: 0 10px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background-color: #00bcd4; /* Accent color */
    color: #fff;
    border: 2px solid #00bcd4;
}

.primary-btn:hover {
    background-color: #0097a7;
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: #0097a7;
    border: 2px solid #0097a7;
}

.secondary-btn:hover {
    background-color: #0097a7;
    color: #222;
    transform: translateY(-3px);
}

/* Section Styling */
section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    margin-bottom: 50px;
    color: #222;
}

.projects-section {
    background-color: #fff;
}

.project-grid {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.project-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: #333;
}

.project-card p {
    font-size: 0.95em;
    padding: 0 20px 20px;
    color: #666;
}

.project-card .small-btn {
    display: block;
    width: fit-content;
    margin: 0 20px 20px;
    background-color: #00bcd4;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 0.85em;
}
.preview-card .small-btn {
    display: block;
    width: fit-content;
    margin: 0 20px 20px;
    background-color: #00bcd4;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 0.85em;
}

.project-card .small-btn:hover {
    background-color: #0097a7;
}


.team-section {
    background-color: #e0f7fa; /* Light accent background */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 30px auto 20px;
    border: 4px solid #0eb137a6;
   /*border: 4px solid #00bcd4; */
}

.team-member-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    margin-bottom: 5px;
    color: #333;
}

.team-member-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
}

.team-member-card .member-bio {
    font-style: italic;
    font-size: 0.9em;
    color: #555;
    padding: 0 20px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .nav {
        order: 3; /* Перемещаем навигацию вниз */
        width: 100%;
        margin-top: 15px;
        display: none; /* Скрываем по умолчанию */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 70px; /* Под хедером */
        left: 0;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .nav.active {
        display: flex; /* Показываем при активном меню */
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav ul li:last-child {
        border-bottom: none;
    }

    .nav ul li a {
        display: block;
        padding: 15px;
    }

    .menu-toggle {
        display: flex; /* Показываем гамбургер-меню */
    }

    .hero-section {
        padding-top: 120px;
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        margin: 10px 0;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .project-grid, .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для открытого гамбургер-меню */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Новые стили для секций-превью на главной */
.section-preview {
    padding: 80px 0;
    text-align: center;
}

.section-preview.bg-light {
    background-color: #f9f9f9;
}

.section-preview h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #222;
}

.section-preview p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.preview-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.preview-card img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.preview-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    margin: 15px 15px 5px;
    color: #333;
}

.preview-card p {
    font-size: 0.9em;
    padding: 0 15px 15px;
    color: #666;
    margin-bottom: 0; /* Переопределяем margin-bottom из общей p */
}

/* Стили для Team Preview Card */
.team-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.team-preview-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.team-preview-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #00bcd4;
}

.team-preview-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #333;
}

.team-preview-card span {
    font-size: 0.9em;
    color: #777;
    display: block;
}

.mt-40 {
    margin-top: 40px;
}

/* Стили для Hero секций на подстраницах */
.page-hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('fots/наши\ люди.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 180px 0 100px; /* Добавил отступ сверху */
    min-height: 50vh; /* Меньше чем на главной */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.page-hero-section1 {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('fots/наши\ проекты.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 200px 0 200px; /* Добавил отступ сверху */
    min-height: 50vh; /* Меньше чем на главной */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 15px;
}

.page-hero-section1 h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 50px;
}

.page-hero-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-section1 p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto;
}

/* Изменения в адаптивности для новых секций */
@media (max-width: 768px) {
    .section-preview h2 {
        font-size: 2em;
    }
    .section-preview p {
        font-size: 1em;
    }
    .preview-grid, .team-preview-grid {
        grid-template-columns: 1fr;
    }
    .page-hero-section h1 {
        font-size: 2.5em;
    }
    .page-hero-section p {
        font-size: 1em;
    }
}

/* Hero секция для страницы детального проекта - Vampir*/
.project-detail-hero-vampit {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('fots/vampitobloka.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 180px 0 200px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.project-detail-hero-vampit h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.project-detail-hero-vampit .project-tagline {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

/* Hero секция для страницы детального проекта - Restoran*/
.project-detail-hero-restoran {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('fots/Restoran.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 180px 0 200px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.project-detail-hero-restoran h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.project-detail-hero-restoran .project-tagline {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

/* Hero секция для страницы детального проекта - Minogra*/
.project-detail-hero-minogra {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('fots/Minogra.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 180px 0 200px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.project-detail-hero-minogra h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.project-detail-hero-minogra .project-tagline {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

/* Hero секция для страницы детального проекта - Futurama*/
.project-detail-hero-futurama {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('fots/Futurama.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 180px 0 200px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.project-detail-hero-futurama h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.project-detail-hero-futurama .project-tagline {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}


/* Hero секция для страницы детального проекта - Gersok*/
.project-detail-hero-minogra {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('fots/Gersok.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 180px 0 200px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.project-detail-hero-minogra h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.project-detail-hero-minogra .project-tagline {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

/* Секция контента проекта */
.project-content-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Основной контент занимает 2/3, сайдбар 1/3 */
    gap: 50px;
    text-align: left;
}

.project-main-info {
    /* Стили для основной информации */
}

.project-poster {
    width: 100%;
    max-width: 400px; /* Ограничим ширину постера */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    float: right; /* Постер справа от текста */
    margin-left: 30px; /* Отступ от текста */
}

.project-main-info h2,
.project-main-info h3 {
    font-family: 'Montserrat', sans-serif;
    color: #222;
    margin-bottom: 15px;
    margin-top: 30px;
}

.project-main-info p {
    margin-bottom: 15px;
    color: #444;
}

.project-main-info ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.project-main-info ul li {
    margin-bottom: 8px;
    color: #555;
}

.accent-text {
    color: #00bcd4; /* Акцентный цвет */
}

/* Галерея проекта */
.project-gallery {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Сайдбар */
.project-sidebar {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: fit-content; /* Сайдбар будет такой высоты, как его контент */
}

.sidebar-block {
    margin-bottom: 40px;
}

.sidebar-block:last-child {
    margin-bottom: 0;
}

.sidebar-block h3 {
    font-family: 'Montserrat', sans-serif;
    color: #222;
    margin-bottom: 20px;
    border-bottom: 2px solid #00bcd4;
    padding-bottom: 10px;
}

.video-player-container {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-meta-list,
.project-links-list {
    list-style: none; /* Убираем маркеры списка */
    padding: 0;
}

.project-meta-list li,
.project-links-list li {
    margin-bottom: 10px;
    color: #555;
}

.project-links-list li a {
    color: #00bcd4;
    font-weight: 700;
    transition: color 0.3s ease;
}

.project-links-list li a:hover {
    color: #0097a7;
    text-decoration: underline;
}

/* Адаптивность для страницы детального проекта */
@media (max-width: 992px) {
    .project-detail-layout {
        grid-template-columns: 1fr; /* На мобильных колонки перестраиваются в одну */
        gap: 40px;
    }

    .project-poster {
        float: none; /* Убираем обтекание */
        margin: 0 auto 30px; /* Центрируем постер */
        max-width: 80%; /* Чуть больше на планшетах */
    }

    .project-detail-hero-vampit h1 {
        font-size: 3em;
    }
    .project-detail-hero-vampit .project-tagline {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .project-detail-hero-vampit h1 {
        font-size: 2.2em;
    }
    .project-detail-hero-vampit .project-tagline {
        font-size: 1em;
    }
    .project-content-section {
        padding: 60px 0;
    }
    .project-sidebar {
        padding: 20px;
    }
    .project-main-info h2, .project-main-info h3, .sidebar-block h3 {
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* По одной картинке в ряд на самых маленьких экранах */
    }
}

/* НОВЫЕ СТИЛИ: Призыв к действию и Социальные ссылки */
.call-to-action-social {
    background: linear-gradient(135deg, #00bcd4, #0097a7); /* Градиентный фон с акцентным цветом */
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto 50px;
}

.cta-content h2 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.cta-content p {
    font-size: 1.2em;
    line-height: 1.8;
    opacity: 0.9;
}

.social-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Расстояние между кнопками */
    margin-top: 40px;
}

.social-btn {
    display: flex; /* Делаем кнопку флекс-контейнером */
    align-items: center; /* Выравниваем элементы (иконку и span) по вертикали по центру */
    justify-content: center; /* Выравниваем элементы (иконку и span) по горизонтали по центру */
    background-color: rgba(255, 255, 255, 0.2); /* Полупрозрачный белый фон */
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-btn i {
    font-size: 1.4em; /* Размер иконки */
    margin-right: 0x; /* Отступ справа от иконки, чтобы отделить от текста */
    /* Убедимся, что иконка сама не имеет никаких лишних отступов */
    line-height: 1; /* Чтобы высота иконки не влияла на высоту строки текста */
}

/* На всякий случай, если span тоже нужно выровнять */
.social-btn span {
    line-height: 1; /* Гарантируем, что текст не имеет лишнего интерлиньяжа */
    display: inline-block; /* Убедимся, что span ведет себя как блочный элемент для line-height */
}

.social-btn:hover {
    background-color: rgba(255, 255, 255, 0.35); /* Увеличиваем прозрачность при наведении */
    transform: translateY(-5px); /* Небольшой подъем */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Специфические цвета для кнопок (опционально, можно оставить общий стиль) */
.telegram-btn { background-color: #0088CC; }
.telegram-btn:hover { background-color: #006699; }

.vk-btn { background-color: #4C75A3; }
.vk-btn:hover { background-color: #3A5F8C; }

.boosty-btn { background: #F1672B; }
.boosty-btn:hover { background: #f14021;}

.youtube-btn { background-color: #FF0000; }
.youtube-btn:hover { background-color: #CC0000; } */


/* Адаптивность для новой секции */
@media (max-width: 768px) 
{
    .call-to-action-social {
        padding: 60px 0;
    }
    .cta-content h2 {
        font-size: 2.2em;
    }
    .cta-content p {
        font-size: 1em;
    }
    .social-cta-buttons {
        flex-direction: column; /* Кнопки в столбик на мобильных */
        align-items: center;
    }
    .social-btn {
        width: 80%; /* Кнопки занимают больше ширины на мобильных */
        max-width: 300px; /* Ограничиваем ширину */
        font-size: 1em;
        padding: 10px 20px;
    }
}
/* Hero секция для страницы соцсетей */
.socials-hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('fots/соцсети.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 180px 0 100px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.socials-hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.socials-hero-section .socials-tagline {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

/* Секция контента соцсетей */
.socials-content-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.social-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border-radius: 10px;
    color: #fff; /* Белый текст на цветном фоне */
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.social-grid-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.social-grid-item i {
    font-size: 4em; /* Крупные иконки */
    margin-bottom: 20px;
    line-height: 1; /* Для точного центрирования */
}

.social-grid-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    margin-bottom: 10px;
    line-height: 1.2;
}

.social-grid-item p {
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.6;
}

/* Цвета для фона элементов сетки */
.telegram-bg { background: linear-gradient(135deg, #06a1ee, #005f99); }
.vk-bg { background: linear-gradient(135deg, #4c75a3, #3a5f8c); }
.wikipedia-bg { background: linear-gradient(135deg, #e0d5d5, #c7bbc2); }
.wikipedia-bg { background: linear-gradient(135deg, #e0d9d9, #302e2e); }
.youtube-bg { background: linear-gradient(135deg, #ff0000, #cc0000); }
.tiktok-bg { background: linear-gradient(135deg, #69C9D0, #EE1D52); } /* Пример */
.discord-bg { background: linear-gradient(135deg, #7289DA, #5865F2); } /* Пример */
.boosty-bg { background: linear-gradient(135deg, #F1672B, #f14021); } /* Пример */

/* Прикольный обман системы */
.fab.fa-boosty:before {
    
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  /*background: url("jueta/Boosty\ 2.svg") no-repeat center/contain; */
  -webkit-mask: url("jueta/Boosty\ 2.svg") no-repeat center/contain;
  mask: url("jueta/Boosty\ 2.svg") no-repeat center/contain;
  background-color: white; /* здесь задаёшь цвет иконки */
}

/*1 Сбиваем стандартный FA-глиф */
.fab.fa-boosty::before {
  content: "";
}

/* 2) Рисуем иконку маской */
.fab.fa-boosty::before {
  display: inline-block;
  width: 1em;              /* размер иконки = размер шрифта */
  height: 1em;
  vertical-align: -0.125em;/* подстройка по линии текста, опционально */

  /* Цвет иконки берётся из color родителя (как у FA) */
  background-color: currentColor;

  /* WebKit (Chrome, Safari, iOS) */
  -webkit-mask-image: url("/jueta/boosty-664rw67wn5y8ls2vgiirn.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  /* Нормальные маски (Firefox/совр. браузеры) */
  mask-image: url("/jueta/boosty-664rw67wn5y8ls2vgiirn.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}



/* Адаптивность для страницы соцсетей */
@media (max-width: 768px) {
    .socials-hero-section h1 {
        font-size: 2.5em;
    }
    .socials-hero-section .socials-tagline {
        font-size: 1.1em;
    }
    .social-links-grid {
        grid-template-columns: 1fr; /* По одной карточке на мобильных */
    }
    .social-grid-item h3 {
        font-size: 1.6em;
    }
    .social-grid-item p {
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    .socials-hero-section h1 {
        font-size: 2em;
    }
    .socials-hero-section .socials-tagline {
        font-size: 1em;
    }
    .social-grid-item {
        padding: 30px 15px;
    }
    .social-grid-item i {
        font-size: 3em;
    }
    .social-grid-item h3 {
        font-size: 1.4em;
    }
}

/* Стили для страницы 404 */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5; /* Светлый фон */
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.error-container {
    padding: 40px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px;
}

.error-illustration {
    width: 100%;
    max-width: 300px; /* Размер иллюстрации */
    margin-bottom: 30px;
}

.error-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 6em; /* Крупный размер для 404 */
    color: #00bcd4; /* Акцентный цвет */
    margin-bottom: 10px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

.error-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    color: #222;
    margin-bottom: 20px;
}

.error-container p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px; /* Расстояние между кнопками */
    flex-wrap: wrap; /* Для переноса на новую строку на мобильных */
}

/* Переопределяем стили кнопок для страницы 404, чтобы они вписывались */
.error-actions .btn {
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 8px;
    font-weight: 600;
}

.error-actions .primary-btn {
    background-color: #00bcd4;
    color: #fff;
    border: 2px solid #00bcd4;
}

.error-actions .primary-btn:hover {
    background-color: #0097a7;
    border-color: #0097a7;
    transform: translateY(-3px);
}

.error-actions .secondary-btn {
    background-color: transparent;
    color: #00bcd4;
    border: 2px solid #00bcd4;
}

.error-actions .secondary-btn:hover {
    background-color: #00bcd4;
    color: #fff;
    transform: translateY(-3px);
}

/* Адаптивность для страницы 404 */
@media (max-width: 576px) {
    .error-container h1 {
        font-size: 4em;
    }
    .error-container h2 {
        font-size: 1.6em;
    }
    .error-container p {
        font-size: 0.95em;
    }
    .error-actions {
        flex-direction: column;
        gap: 15px;
    }
    .error-actions .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}