/* 
* SEO ToolKit Styles
* Адаптивный дизайн с анимациями
*/

/* === Сброс стилей === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* === Переменные === */
:root {
    --primary-color: #4a6bff;
    --primary-dark: #3a5bde;
    --secondary-color: #ff6b4a;
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f9fafc;
    --grey-light: #eaedf2;
    --grey: #d1d5db;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* === Общие стили === */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main {
    flex: 1;
}

.section {
    padding: 80px 0;
}

.section--grey {
    background-color: var(--light-bg);
}

.section--cta {
    background: linear-gradient(135deg, #3a5bde 0%, #6a4bef 100%);
    color: white;
}

.section__header {
    margin-bottom: 60px;
    text-align: center;
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 10px auto 0;
}

.section--cta .section__title::after {
    background: #fff;
}

.section__description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section--cta .section__description {
    color: rgba(255, 255, 255, 0.9);
}

/* === Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 107, 255, 0.25);
}

.btn--outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn--outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.section--cta .btn--outline {
    color: white;
    border-color: white;
}

.section--cta .btn--outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn--secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn--secondary:hover {
    background-color: #e55f40;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 74, 0.25);
}

.btn--small {
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
}

.btn--large {
    height: 56px;
    padding: 0 32px;
    font-size: 18px;
}

.btn i {
    margin-right: 8px;
}

/* === Шапка === */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo__text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo__slogan {
    font-size: 12px;
    color: var(--text-light);
}

.nav__list {
    display: flex;
    gap: 24px;
}

.nav__item {
    position: relative;
}

.nav__link {
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav__link:hover::after, 
.nav__item.active .nav__link::after {
    width: 100%;
}

.header__auth {
    display: flex;
    gap: 12px;
}

.header__mobile-menu {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.mobile-menu-toggle__line,
.mobile-menu-toggle__line::before,
.mobile-menu-toggle__line::after {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.mobile-menu-toggle__line {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle__line::before {
    content: '';
    top: -8px;
}

.mobile-menu-toggle__line::after {
    content: '';
    bottom: -8px;
}

.mobile-menu-toggle.active .mobile-menu-toggle__line {
    background-color: transparent;
}

.mobile-menu-toggle.active .mobile-menu-toggle__line::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .mobile-menu-toggle__line::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #fff;
    z-index: 999;
    padding: 30px 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav__item {
    margin-bottom: 20px;
}

.mobile-nav__link {
    display: block;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-light);
}

.auth-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* === Футер === */
.footer {
    background-color: #2c3047;
    color: #fff;
    padding: 60px 0 30px;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.logo--footer .logo__text {
    color: #fff;
}

.footer__description {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer__menu li {
    margin-bottom: 10px;
}

.footer__menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer__menu a:hover {
    color: var(--primary-color);
}

.footer__contacts {
    margin-bottom: 20px;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer__contact-item a:hover {
    color: var(--primary-color);
}

.footer__social {
    display: flex;
    gap: 15px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer__social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer__social-link i {
    font-size: 20px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__credentials {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    gap: 15px;
}

/* === Форма === */
.form {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.form__title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form__input, 
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form__input:focus, 
.form__textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 107, 255, 0.2);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

.form__actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.form__message {
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.form__message--success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form__message--error {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* === Карточки === */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card__content {
    padding: 24px;
}

.card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    z-index: 1;
}

.card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.card__description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.card__meta {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--grey-light);
    padding-top: 15px;
}

/* === Hero секция === */
.hero {
    background: linear-gradient(135deg, #4a6bff 0%, #891eff 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/hero-pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.hero__inner {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    flex: 0 0 50%;
    padding-left: 20px;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero__cta {
    display: flex;
    gap: 16px;
}

.hero__image {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image img {
    max-width: 100%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* === Уведомление о куки === */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 48, 71, 0.95);
    color: #fff;
    padding: 16px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-notice.active {
    transform: translateY(0);
}

.cookie-notice__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-notice__content p {
    font-size: 14px;
}

.cookie-notice__content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* === Услуги === */
.services__tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
}

.services__tab {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.services__tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.service {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service__icon {
    flex: 0 0 80px;
    height: 80px;
    background-color: rgba(74, 107, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
}

.service__content {
    flex: 1;
}

.service__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service__description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.service__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.service__duration {
    font-size: 14px;
    color: var(--text-light);
}

.services__more {
    text-align: center;
    margin-top: 30px;
}

/* === Кейсы === */
.cases__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.case {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case__image {
    height: 200px;
    overflow: hidden;
}

.case__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.case__content {
    padding: 24px;
}

.case__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.case__client {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.case__description {
    margin-bottom: 20px;
}

.case__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.case__metric {
    background-color: rgba(74, 107, 255, 0.1);
    color: var(--primary-color);
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* === О нас === */
.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.about__item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 107, 255, 0.1);
    border-radius: 50%;
    font-size: 30px;
    color: var(--primary-color);
}

.about__item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about__item-description {
    color: var(--text-light);
}

/* === CTA === */
.cta {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
}

.cta__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* === Анимации === */
.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-in {
    opacity: 1;
    transform: translateY(0);
}

.animated[data-animation="fadeIn"] {
    transform: translateY(0);
}

.animated[data-animation="fadeInLeft"] {
    transform: translateX(-50px);
}

.animated[data-animation="fadeInRight"] {
    transform: translateX(50px);
}

.animated[data-animation="zoomIn"] {
    transform: scale(0.9);
}

/* === Отзывчивый дизайн === */
@media (max-width: 992px) {
    .hero__title {
        font-size: 36px;
    }
    
    .section__title {
        font-size: 32px;
    }
    
    .hero__inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero__content, 
    .hero__image {
        flex: 1 1 auto;
        width: 100%;
        text-align: center;
        padding-left: 0;
    }
    
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__cta {
        justify-content: center;
    }
    
    .footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service {
        flex-direction: column;
    }
    
    .service__icon {
        margin: 0 auto 20px;
    }
    
    .cta {
        padding: 30px;
    }
    
    .cta__title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .nav, 
    .header__auth {
        display: none;
    }
    
    .header__mobile-menu {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .cookie-notice__content {
        flex-direction: column;
        text-align: center;
    }
    
    .service__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cases__list {
        grid-template-columns: 1fr;
    }
    
    .cta__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 28px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section__title {
        font-size: 28px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .card__footer {
        flex-direction: column;
        gap: 15px;
    }
} 