/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.nav-header {
    background: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    padding: 1rem;
}

.nav-links li {
    margin: 0.5rem 0;
}

.nav-link {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: var(--light-bg);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}


.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
}

.header-content {
    text-align: center;
}

.header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.3;
}

.header p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.mobile-info {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


.desktop-nav {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.nav-links-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nav-links-desktop a {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.nav-links-desktop a:hover {
    background: var(--primary-color);
    color: white;
}


.content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    position: relative;
}

.section {
    margin-bottom: 3rem;
    scroll-margin-top: 20px;
}

.section h2 {
    color: var(--secondary-color);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subsection {
    margin: 1.5rem 0;
}

.subsection h3 {
    color: var(--secondary-color);
    font-size: clamp(1.2rem, 2.5vw, 1.3rem);
    margin: 1.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subsection p {
    margin: 1rem 0;
    text-align: justify;
    line-height: 1.7;
}


.definitions {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.definition-item {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.definition-item:last-child {
    border-bottom: none;
}

.term-wrapper {
    margin-bottom: 0.5rem;
}

.term {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1rem;
}

.meaning {
    color: #555;
    line-height: 1.6;
}


ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0.5rem;
    top: -0.2rem;
}


a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    word-break: break-word;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-2px);
}


.footer {
    background: var(--white);
    padding: 2rem 0;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-copyright {
    text-align: right;
    flex: 1;
    min-width: 250px;
}


@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-copyright {
        text-align: center;
    }
}


@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-info {
        display: flex;
    }
    
    .header {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }
    
    .content {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section {
        margin-bottom: 2rem;
    }
    
    .section h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .subsection h3 {
        font-size: 1.2rem;
        margin: 1rem 0;
    }
    
    .definitions {
        padding: 1rem;
    }
    
    .definition-item {
        margin: 1rem 0;
        padding: 0.8rem 0;
    }
    
    li {
        padding-left: 1.5rem;
        margin: 0.8rem 0;
    }
    
    li:before {
        left: 0.3rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 1rem 0;
        border-radius: 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .content {
        padding: 0.8rem;
        border-radius: 0;
    }
    
    .section h2 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .subsection p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .definitions {
        padding: 0.8rem;
    }
    
    .term {
        font-size: 0.95rem;
    }
    
    .meaning {
        font-size: 0.9rem;
    }
    
    .mobile-menu-btn {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .footer {
        padding: 1rem 0;
    }
}


@media (max-width: 360px) {
    .header h1 {
        font-size: 1.3rem;
    }
    
    .section h2 {
        font-size: 1.2rem;
    }
    
    .subsection h3 {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 5px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .content, .footer, .desktop-nav {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .definitions {
        background: #3d3d3d;
    }
    
    .term {
        color: #ffffff;
    }
    
    .meaning {
        color: #b0b0b0;
    }
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}




.offer-body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.offer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.offer-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 0;
}

.offer-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    margin-bottom: 0.5rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.offer-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.offer-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 0;
}

.offer-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    scroll-margin-top: 20px;
}

.offer-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.offer-section h2 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.offer-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-subsection {
    margin: 1.2rem 0;
}

.offer-body p {
    margin: 0.8rem 0;
    text-align: justify;
    line-height: 1.7;
}

.offer-body ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.offer-body li {
    margin: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.offer-body li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0.5rem;
    top: -0.2rem;
}

.offer-highlight {
    background: var(--light-bg);
    padding: 1.2rem;
    border-left: 4px solid var(--accent-color);
    margin: 1.2rem 0;
    border-radius: 4px;
    border-radius: var(--border-radius);
}

.offer-contact-info {
    background: #e8f4f8;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.offer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.7rem 0;
    font-size: 1rem;
}

.offer-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.offer-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    background: var(--white);
    border-radius: var(--border-radius);
}

.offer-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 1rem;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.offer-back-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.offer-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .offer-body {
        padding: 10px 0;
    }
    
    .offer-container {
        padding: 0 15px;
    }
    
    .offer-header {
        padding: 2rem 1rem;
    }
    
    .offer-content {
        padding: 1.5rem;
    }
    
    .offer-section h2 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .offer-section h3 {
        font-size: 1.1rem;
    }
    
    .offer-body li {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .offer-header {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
    
    .offer-header h1 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .offer-content {
        padding: 1rem;
        border-radius: 0;
    }
    
    .offer-section {
        margin-bottom: 2rem;
    }
    
    .offer-back-button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}


@media (prefers-color-scheme: dark) {
    .offer-body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .offer-content, .offer-footer {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .offer-section {
        border-bottom-color: #444;
    }
    
    .offer-highlight {
        background: #3d3d3d;
        border-left-color: var(--accent-color);
    }
    
    .offer-contact-info {
        background: #3d3d3d;
        color: #e0e0e0;
    }
    
    .offer-signature {
        background: #3d3d3d;
        border-top-color: #444;
    }
}


.offer-body strong {
    color: var(--secondary-color);
}

.offer-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.offer-body a:hover {
    color: #2980b9;
    text-decoration: underline;
}


.offer-html {
    scroll-behavior: smooth;
}