/* Общие стили */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --body-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 0.25rem;
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--body-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #0056b3;
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

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

.btn-primary:hover {
    background-color: #0069d9;
    color: #fff;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
    color: #fff;
}

.btn-outline {
    color: var(--dark-color);
    background-color: transparent;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--light-color);
}

/* Шапка сайта */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: -3px;
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Особенности */
.features {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-item h3 {
    margin-bottom: 1rem;
}

/* Последние статьи */
.latest-posts {
    padding: 5rem 0;
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.post-item:hover {
    transform: translateY(-5px);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.see-all {
    text-align: center;
    margin-top: 2rem;
}

/* Предстоящий вебинар */
.upcoming-webinar {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

.webinar-info {
    padding: 2rem;
    flex: 1;
}

.webinar-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.webinar-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.webinar-info .date,
.webinar-info .speaker {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.webinar-info .date svg,
.webinar-info .speaker svg {
    margin-right: 0.5rem;
}

.webinar-info p {
    margin-bottom: 1.5rem;
}

.webinar-image {
    flex: 1;
    min-height: 300px;
}

.webinar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Отзывы */
.testimonials {
    padding: 5rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Глоссарий */
.glossary {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.glossary h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.glossary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glossary-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.glossary-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Админ-интерфейс */
.admin-interface {
    padding: 5rem 0;
}

.admin-interface h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.admin-frame {
    width: 100%;
    height: 400px;
    position: relative;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.admin-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.admin-interface-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Футер */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    margin-bottom: 1rem;
    height: 50px;
    width: auto;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #ccc;
}

.footer-contact p svg {
    margin-right: 0.5rem;
}

.footer-social .social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social .social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie уведомление */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
}

.cookie-notice.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-content a {
    font-size: 0.9rem;
}

/* Заголовок страницы */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/page-header.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Блог */
.blog-content {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-post h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.blog-post h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.blog-post ul,
.blog-post ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post ul li,
.blog-post ol li {
    margin-bottom: 0.5rem;
}

.blog-sidebar {
    padding: 0 0 5rem;
}

.sidebar-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
}

.sidebar-widget.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-widget.newsletter input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* О нас */
.about-intro {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.our-values {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.our-values h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.value-item .icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.team-section {
    padding: 5rem 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p {
    margin-bottom: 1rem;
}

.team-member p:nth-child(3) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-member .social-links a {
    background-color: var(--light-color);
    color: var(--dark-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-member .social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.achievements {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: #fff;
}

.achievements h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Вебинары */
.upcoming-webinars {
    padding: 5rem 0;
}

.upcoming-webinars h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.webinar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.webinar-date {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

.date-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    text-transform: uppercase;
    font-weight: 600;
}

.webinar-info {
    padding: 1.5rem;
    flex: 1;
}

.webinar-info h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.webinar-time,
.webinar-speaker {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.webinar-time svg,
.webinar-speaker svg {
    margin-right: 0.5rem;
}

.webinar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.past-webinars {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.past-webinars h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.past-webinar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.past-webinar-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.past-webinar-info {
    padding: 1.5rem;
}

.past-webinar-info h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.webinar-date {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.webinar-date svg {
    margin-right: 0.5rem;
}

.register-form {
    padding: 5rem 0;
}

.register-form h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

.webinar-faq {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.webinar-faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.faq-item p {
    margin-bottom: 0;
}

/* Контакты */
.contact-content {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    margin-right: 1rem;
    color: var(--primary-color);
}

.info-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-text p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-social h3 {
    margin: 2rem 0 1rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    background-color: var(--light-color);
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.contact-form h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.map-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-section {
    padding: 5rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

/* Всплывающее окно благодарности */
.thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.thank-you-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-content h2 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 1.5rem;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0 1rem 0.5rem 0;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .webinar-card {
        flex-direction: column;
    }
    
    .webinar-date {
        flex-direction: row;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        padding: 1rem 20px;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .feature-grid,
    .post-grid,
    .testimonial-slider,
    .glossary-content,
    .footer-content,
    .sidebar-content,
    .values-grid,
    .team-grid,
    .achievement-grid,
    .webinar-grid,
    .past-webinar-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}
