﻿/* 
====================================
СТИЛИ ДЛЯ САЙТА ЛОГОПЕДА-ДЕФЕКТОЛОГА
====================================

ЦВЕТОВАЯ СХЕМА: Светло-розовый + Салатовый
Все основные цвета вынесены в CSS-переменные для удобной замены.
Измените значения переменных ниже, чтобы изменить цветовую схему сайта.
*/

:root {
    /* Основные цвета */
    --primary-color: #84cc16;      /* Салатовый - основной акцентный цвет */
    --primary-dark: #65a30d;       /* Темнее салатовый - для hover */
    --primary-light: #a3e635;      /* Светлее салатовый */
    
    --secondary-color: #fda4af;    /* Розовый - второстепенный цвет */
    --secondary-light: #fecdd3;    /* Светло-розовый */
    --secondary-lighter: #ffe4e6;  /* Очень светло-розовый */
    
    /* Цвета текста */
    --text-dark: #1e293b;          /* Темный текст */
    --text-gray: #475569;          /* Серый текст */
    --text-light: #64748b;         /* Светлый текст */
    
    /* Цвета фона */
    --bg-white: #ffffff;
    --bg-light: #fef2f2;
    --bg-gray: #ffe4e6;
    --bg-pink-light: #fff1f2;
    
    /* Границы */
    --border-color: #e2e8f0;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Шрифты */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 
====================================
БАЗОВЫЕ СТИЛИ
====================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

section {
    width: 100%;
    overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

svg {
    max-width: 100%;
    height: auto;
}

.external-link {
    background: linear-gradient(90deg, #a3e635 0%, #84cc16 100%);
    color: #1e293b !important;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.15);
    text-decoration: underline wavy #65a30d;
    transition: box-shadow 0.2s, transform 0.2s;
}

.external-link:hover {
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.25);
    transform: scale(1.07);
    text-decoration: underline wavy #4d7c0f;
}

/* 
====================================
ШАПКА (HEADER)
====================================
*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
    overflow-x: hidden;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 100%;
    width: 100%;
}

.logo {
    /* Стили для логотипа-изображения */
    .logo__img {
        height: 45px;
        width: auto;
        display: block;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .logo__img:hover {
        transform: scale(1.05);
    }
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 1;
    max-width: calc(100% - 60px);
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    height: 45px;
    width: auto;
    max-width: 100%;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--text-gray);
    font-weight: 500;
    position: relative;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link--cta {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
}

.nav__link--cta:hover {
    background-color: var(--primary-dark);
}

/* Мобильное меню */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 
====================================
КНОПКИ
====================================
*/

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    box-sizing: border-box;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn--outline:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: white;
}

.btn--full {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 
====================================
HERO БЛОК
====================================
*/

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-pink-light) 0%, var(--secondary-lighter) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__subtitle-main {
    font-size: 1.375rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__illustration {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.hero__illustration svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Hero badges (experience, location, etc.) */
.hero__badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.badge--primary {
    background-color: var(--secondary-lighter);
    border-color: var(--secondary-light);
    color: var(--text-dark);
}

/* 
====================================
СЕКЦИИ (ОБЩИЕ СТИЛИ)
====================================
*/

section {
    padding: 80px 0;
}

.section__title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section__subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 
====================================
УСЛУГИ
====================================
*/

.services {
    background-color: var(--bg-white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.service-card {
    padding: 2rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card__icon svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.service-card__text {
    color: var(--text-gray);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card__text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Main service cards with lists */
.service-card--main {
    background: linear-gradient(135deg, white 0%, var(--bg-pink-light) 100%);
    border: 2px solid var(--secondary-light);
}

.service-card--main:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(132, 204, 22, 0.15);
}

.service-card--main ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-card--main ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
}

.service-card--main ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* 
====================================
ПРЕИМУЩЕСТВА
====================================
*/

.advantages {
    background-color: var(--bg-light);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.advantage {
    position: relative;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    max-width: 100%;
    box-sizing: border-box;
}

.advantage__number {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.3;
}

.advantage__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 2.5rem;
}

.advantage__text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 
====================================
ПРОЦЕСС РАБОТЫ
====================================
*/

.process {
    background-color: var(--bg-white);
}

.process__steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 29px;
    top: 60px;
    bottom: -50px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.step__number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.step__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step__text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 
====================================
ПОРТФОЛИО
====================================
*/

.portfolio {
    background-color: var(--bg-light);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.portfolio-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card__link {
    display: block;
    color: inherit;
}

.portfolio-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-card__img {
    border-radius: 0;
}

.portfolio-card__placeholder {
    width: 100%;
    height: 100%;
}

.portfolio-card__placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
}

.portfolio-card__content {
    padding: 1.5rem;
}

.portfolio-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.portfolio-card__text {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-card__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 
====================================
ТАРИФЫ
====================================
*/

.pricing {
    background-color: var(--bg-white);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
}

.pricing-card {
    position: relative;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card--featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card--featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-card__features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-gray);
    color: var(--text-gray);
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

.pricing-card__features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Заметка внутри карточки прайса (выделенная ссылка с иконкой) */
.pricing-card__note {
    display: block;
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(132, 204, 22, 0.04) 0%, rgba(253, 164, 175, 0.04) 100%);
    border-left: 4px solid var(--secondary-color);
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.4;
}

.pricing-card__note__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(90deg, #a3e635 0%, #84cc16 100%);
    text-decoration: underline wavy #65a30d;
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.15);
}

.pricing-card__note__link:hover {
    transform: translateY(-2px);
}

.pricing-card__note__link .external-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    stroke: currentColor;
    fill: none;
}

/* Повышенная специфичность: гарантируем, что кнопки в карточках прайса не растягиваются */
.pricing-card a.btn,
.pricing-card .btn {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
}

/* Гарантируем отступ под заметкой и видимость ссылки */
.pricing-card__note {
    margin-bottom: 1rem !important;
}

.pricing-card__note__link {
    display: inline-flex !important;
    align-items: center;
}

.pricing-card__note__link {
    background: linear-gradient(90deg, #a3e635 0%, #84cc16 100%) !important;
    color: #1e293b !important;
}

/* Отдельный стиль для Webasyst-ссылки (другой цвет) */
.pricing-card__note__link--webasyst {
    background: linear-gradient(90deg, #fda4af 0%, #fb7185 100%) !important;
    text-decoration: underline wavy #f43f5e !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(167,139,250,0.12);
}

.pricing-card__note__link--webasyst:hover {
    transform: translateY(-2px);
}

/* Акцентная заметка для Лендинга/сайта-визитки */
.pricing-card__note--accent {
    background: linear-gradient(90deg, #fce7f3 0%, #fbcfe8 100%);
    border-left-color: var(--secondary-color);
    color: #831843;
    font-weight: 700;
}

/* Стили для баннера в футере */
.footer__banner {
    margin-top: 1.5rem;
    text-align: center;
}

.footer__banner img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.footer__banner img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .footer__banner img {
        max-width: 100%;
    }
}

.pricing__note {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.pricing__note p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* 
====================================
FAQ
====================================
*/

.faq {
    background-color: var(--bg-light);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item__question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item__question:hover {
    background-color: var(--bg-light);
}

.faq-item__question h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-item__icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item__answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Состояние открытого FAQ (управляется через JavaScript) */
.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-item__answer {
    max-height: 1000px;
}

/* 
====================================
КОНТАКТЫ
====================================
*/

.contact {
    background-color: var(--bg-white);
}

.contact__content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    align-items: start;
}

.contact__info {
    display: none;
}

.contact__form-wrapper {
    max-width: 600px;
    width: 100%;
}

.contact__text {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact__methods h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.contact__link:hover {
    background-color: var(--primary-light);
    color: white;
}

.contact__link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact__messengers {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.contact__messengers p {
    color: var(--text-gray);
    line-height: 1.6;
}

.contact__messengers strong {
    color: var(--text-dark);
}

.contact__form-wrapper {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 600px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Чекбокс согласия на обработку персональных данных */
.form-group--consent {
    margin-bottom: 1rem;
}

.form-group--consent label.consent-label {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.consent-label span {
    display: block;
}

.consent-link {
    display: inline;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    transition: color 0.2s, opacity 0.2s;
}

.consent-link:hover {
    opacity: 0.75;
}

/* Модальное окно: Политика конфиденциальности */
.modal__dialog--policy {
    width: min(680px, 94%);
    max-height: 85vh;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal__policy-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.modal__policy-body h2 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 4px;
    padding-right: 28px;
}

.modal__policy-site {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 20px;
}

.modal__policy-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 20px;
    margin-bottom: 6px;
    text-transform: none;
}

.modal__policy-body p,
.modal__policy-body ul {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 8px;
}

.modal__policy-body ul {
    padding-left: 18px;
}

.modal__policy-body ul li {
    margin-bottom: 3px;
}

.modal__policy-date {
    margin-top: 20px;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.modal__dialog--policy .modal__action {
    margin-top: 16px;
    flex-shrink: 0;
}

.contact__form button[type="submit"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* 
====================================
VK-ВИДЖЕТЫ
====================================
*/

.vk-block {
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.08), transparent 60%), var(--bg-light);
}

.vk-panel {
    background-color: var(--bg-white);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
}

.vk-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.vk-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 200px;
    min-width: 0;
    border: 2px solid rgba(132, 204, 22, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.vk-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(132, 204, 22, 0.3);
}

.vk-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(132, 204, 22, 0.2);
}

.vk-card__header h3,
.vk-card__header p {
    margin: 0;
}

.vk-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vk-card__subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.vk-card__widget {
    min-height: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 0;
    min-width: 0;
}

.vk-card__widget iframe {
    max-width: 100%;
    width: 100% !important;
}

/* Специальная стилизация для виджета сообщества */
#vk-card-community .vk-card__widget {
    min-height: 250px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#vk-card-community .vk-card__widget iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

/* Обеспечиваем растягивание виджета по ширине карточки */
#vk-card-community {
    width: 100%;
    overflow: hidden;
    position: relative;
    min-width: 320px;
}

#vk-card-community .vk-card__widget > div {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
}

#vk-card-community .vk-card__widget #vk_community_widget {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
}

#vk-card-community .vk-card__widget #vk_community_widget * {
    box-sizing: border-box;
}

/* 
====================================
ФУТЕР
====================================
*/

.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy {
    color: rgba(255, 255, 255, 0.7);
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: white;
}

.footer__requisites {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer__requisites h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer__requisites p {
    margin: 0.25rem 0;
}

.footer__requisites strong {
    color: rgba(255, 255, 255, 0.8);
}

/* 
====================================
АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА)
====================================
*/

@media (max-width: 968px) {
    /* Hero */
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero__content {
        margin: 0 auto;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .hero__illustration {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Услуги */
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    }
    
    /* Преимущества */
    .advantages__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    }
    
    /* Портфолио */
    .portfolio__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    }
    
    /* Тарифы */
    .pricing__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    }
    
    /* Контакты */
    .contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact__info {
        position: static;
    }

    .vk-panel {
        padding: 2rem;
    }

    .vk-panel__grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    body, html {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Навигация */
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
        width: 280px;
        max-width: 80%;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav.active::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 280px;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: -1;
        pointer-events: none;
    }
    
    .burger {
        display: flex;
    }
    
    .header__content {
        padding: 0.75rem 0;
    }
    
    .logo svg {
        max-width: calc(100vw - 100px);
        height: auto;
        max-height: 40px;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0 20px;
    }
    
    .hero__content {
        margin: 0 auto;
    }
    
    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
    
    /* Секции */
    section {
        padding: 20px 0;
    }
    
    .section__title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section__subtitle {
        font-size: 1rem;
    }

    .vk-panel {
        padding: 1.5rem;
    }

    .vk-panel__grid {
        grid-template-columns: 1fr;
    }

    .vk-card {
        padding: 1.25rem;
    }
    
    /* Услуги */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Преимущества */
    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantage {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Процесс */
    .step {
        padding-left: 3rem;
    }
    
    .step__number {
        left: 0;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    /* Портфолио */
    .portfolio__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-card {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Тарифы */
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .pricing-card--featured {
        transform: scale(1);
    }
    
    /* FAQ */
    .faq-item__question h3 {
        font-size: 1rem;
    }
    
    /* Контакты */
    .contact__form-wrapper {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .form-group {
        max-width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        max-width: 100%;
        padding: 0.75rem;
    }
    
    .contact__link {
        flex-wrap: wrap;
        word-break: break-word;
    }
    
    /* Футер */
    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer__links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    body, html {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .header,
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero__title {
        font-size: 1.75rem;
        word-break: break-word;
    }
    
    .section__title {
        font-size: 1.75rem;
        word-break: break-word;
    }
    
    .section__subtitle {
        font-size: 0.9rem;
    }
    
    .service-card,
    .advantage,
    .pricing-card {
        padding: 1.5rem;
    }
    
    .service-card__title,
    .advantage__title,
    .pricing-card__title {
        font-size: 1.1rem;
    }
    
    .service-card__text,
    .advantage__text {
        font-size: 0.9rem;
    }
    
    .logo svg {
        height: 36px;
        max-width: 180px;
    }
    
    .header__content {
        padding: 0.75rem 0;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .form-group label,
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }
    
    .contact__form-wrapper {
        padding: 1.25rem;
    }
    
    .pricing-card__price {
        font-size: 1.5rem;
    }
    
    .faq-item__question h3 {
        font-size: 0.95rem;
    }
    
    .faq-item__answer p {
        font-size: 0.9rem;
    }
    
    .step__title {
        font-size: 1rem;
    }
    
    .step__text {
        font-size: 0.9rem;
    }
    
    .portfolio-card__title {
        font-size: 1.1rem;
    }
    
    .portfolio-card__text {
        font-size: 0.9rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero__title {
        font-size: 1.5rem;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .logo svg {
        height: 32px;
        max-width: 160px;
    }
    
    .hero {
        padding: 70px 0 15px;
    }
    
    section {
        padding: 15px 0;
    }
    
    .service-card,
    .advantage,
    .pricing-card {
        padding: 1.25rem;
    }
    
    .pricing-card__price {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .contact__form-wrapper {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.65rem;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    width: min(420px, 90%);
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.25);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__status {
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
}

.modal__message {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #94a3b8;
}

.modal__close:hover {
    color: #0f172a;
}

.modal__action {
    margin-top: 8px;
    width: 100%;
}
/* Honeypot - скрытое поле для защиты от спама */
.form-group-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* 
====================================
ОБРАЗОВАНИЕ
====================================
*/

.education {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 80px 0;
}

.education__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.education__text {
    padding: 2rem;
}

.education__degree {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.education__description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.education__list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.education__list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
}

.education__list li:last-child {
    border-bottom: none;
}

.education__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.education__note {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--secondary-lighter);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.education__diploma {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.diploma-placeholder {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--secondary-lighter) 100%);
    border: 2px dashed var(--secondary-light);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.diploma-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.diploma-placeholder p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.diploma-note {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.diploma-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.diploma-image:hover {
    transform: scale(1.05);
}

/* 
====================================
ФОТОГАЛЕРЕЯ
====================================
*/

.gallery {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: default;
}

.gallery__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-pink-light) 0%, var(--secondary-lighter) 100%);
    color: var(--text-gray);
    padding: 2rem;
    text-align: center;
}

.gallery__placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--secondary-color);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.gallery__placeholder span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
}

.gallery__note {
    text-align: center;
    color: var(--text-gray);
    font-size: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-top: 2rem;
}

/* Адаптивная сетка для галереи */
@media (min-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Мобильная адаптация для образования */
@media (max-width: 768px) {
    .education__content {
        gap: 2rem;
    }
    
    .education__text {
        padding: 1rem;
    }
    
    .education__degree {
        font-size: 1.5rem;
    }
    
    .diploma-placeholder {
        padding: 2rem 1.5rem;
    }
    
    .diploma-placeholder svg {
        width: 60px;
        height: 60px;
    }
}

/* 
====================================
СТИЛИ ДЛЯ ВИДЖЕТА СООБЩЕСТВ
====================================
*/

.vk-card__communities {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
}

.community-item:not(:last-child) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    margin-bottom: 0.25rem;
}

.community-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.community-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

.community-news {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-news-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.community-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.community-news-item {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.news-title {
    flex: 1;
    line-height: 1.3;
}

.news-date {
    font-size: 0.75rem;
    color: #999;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn--secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
}

.btn--secondary:hover {
    background-color: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}

