
:root{ --bg:#0f1724; --card:#ffffff; --accent:#0066ff; }
*{
    box-sizing:border-box
}
body{
  font-family: Inter, system-ui, Arial; 
  margin:0; 
  color:#ffffff; 
  background:#e5e5e5; 
  -webkit-font-smoothing: antialiased
}
.container{
    max-width:1100px;
    margin:0 auto;
    padding:0px
}




.hero-container {
    background: linear-gradient(135deg, #0f1724, #1e293b);
    color: #fff;
    padding: 30px 16px 30px;
    text-align: center;
    border-radius: 12px;
    margin-top: 100px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(51,153,255,0.15) 0%, transparent 70%);
    /* анимация теперь один раз и останавливается в конце */
    animation: rotateBGOnce 5s ease forwards;
}

@keyframes rotateBGOnce {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(45deg); } /* конечный угол */
}

.hero-container-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-container h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards;
}

.hero-container p {
    font-size: 18px;
    margin-bottom: 24px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
    animation-fill-mode: forwards;
}

.hero-container .btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: #3399ff;
    transition: background 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
}

.hero-container .btn:hover {
    background: #66c0ff;
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}



.tools-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.tools-main {
    width: 100%;
    height: 100%;
}



/* --- Меню ---  #3399ff*/

.tools-menu {
    max-width: 300px;
    min-width: 300px;
    background: #0f1724;
    border-radius: 15px;
    padding: 10px 10px 10px 10px;
}

.tools-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


.menu-item a {
    color: inherit;
    text-decoration: none;
}
.menu-item a:visited { color: inherit; }
.menu-item a:focus, .menu-item a:active {outline: none; box-shadow: none; }

.text {
    margin: 0px 0px 0 5px;
}


.tools-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    color: #ffffff;
    transition: color 0.3s, transform 0.2s;
    border-radius: 6px;
}

.tools-menu .menu-item .icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* белая иконка */
    transition: filter 0.3s;
}

/* Линия под текстом */
.tools-menu .menu-item::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 3px;
    background: linear-gradient(90deg, #0056ab, #3399ff);
    width: 0;
    border-radius: 2px;
    transition: width 0.3s;
}

/* Hover эффекты */
.tools-menu .menu-item:hover {
    color: #3399ff;
    transform: translateX(5px) translateY(-2px);
}

.tools-menu .menu-item:hover .icon img {
    filter: brightness(0) invert(1) sepia(0) saturate(0) hue-rotate(220deg);
}

.tools-menu .menu-item:hover::after {
    width: calc(100% - 40px); /* выезжающая линия */
}




/* Основной блок */
.seo-block {
    background-color: #0f1724;
    color: #ffffff;
    padding: 40px 60px;
    margin: 20px auto;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.3);
    transition: transform 0.3s ease;
}

/* Анимация при наведении */
.seo-block:hover {
    transform: translateY(-3px);
}

/* Анимированная рамка */
.seo-block::before,
.seo-block::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #2196F3;
    border-radius: 16px;
    top: 0;
    left: 0;
    pointer-events: none;
    box-sizing: border-box;
    animation: borderMove 7s linear infinite;
}

.seo-block::after {
    animation-delay: 10s;
}

/* Анимация движения рамки */
@keyframes borderMove {
    0% {
        clip-path: inset(100% 0% 0% 0%);
    }
    25% {
        clip-path: inset(0% 100% 0% 0%);
    }
    50% {
        clip-path: inset(0% 0% 100% 0%);
    }
    75% {
        clip-path: inset(0% 0% 0% 100%);
    }
    100% {
        clip-path: inset(100% 0% 0% 0%);
    }
}

/* Стили для заголовков и параграфов */
.seo-block h2 {
    color: #2196F3;
    margin-bottom: 20px;
}

.seo-block p {
    line-height: 1.7;
    margin-bottom: 15px;
}






/* Адаптив */
@media (max-width: 768px) {

    .seo-block {
        padding: 20px 20px;
    }

    .container {
        margin: 0 5px 0 5px;
    }
    .tools-menu {
        max-width: 500px;
        width: 100%;
    }
    .hero-container {
        border-radius: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .hero-container h1 {
        font-size: 24px;
        text-align: left;
    }
    .hero-container p {
        font-size: 16px;
        text-align: left;
        padding: 10px;
    }
    .tools-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    .hero-container-content {
        padding: 16px;
    }

}