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

body {
    background-color: #ECEFF1;
    font: 17px system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #444;
    margin: 0;
    padding: 0;
}

h1 {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-family: Impact, sans-serif;
    font-weight: normal;
    line-height: 1.2;
    color: #0277bd;
    margin-bottom: 15px;
    font-size: 36px;
    text-transform: uppercase;
}

h2, h3 {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: normal;
    line-height: 1.5;
    color: #111;
    margin-bottom: 15px;
}

h2 { font-size: 27px; font-weight: 400; letter-spacing: 0.3px; }
h3 { font-size: 23px; font-weight: 400; letter-spacing: 0.2px; }

.legal-container {
    display: flex;
    width: 100vw;
    margin: 0;
    background: #ffffff;
    min-height: 100vh;
    padding-top: 44px;
}

.legal-sidebar {
    width: 350px;
    background: #ffffff;
    border-right: 1px solid #e1e5e9;
    flex-shrink: 0;
    position: sticky;
    top: 44px;
    height: calc(100vh - 44px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.law-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.law-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.law-name {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.chapters-nav {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.chapter {
    border-bottom: 1px solid #f0f2f5;
}

.chapter-title {
    padding: 16px 20px;
    background: #f8f9fb;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 14px;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.chapter-title:hover {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.chapter-title.active {
    background: #e8f5e8;
    color: #2e7d32;
    border-left-color: #4caf50;
}

.chapter-toggle {
    font-size: 16px;
    transition: transform 0.3s ease;
    color: #666;
}

.chapter.open .chapter-toggle {
    transform: rotate(90deg);
}

.paragraphs-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.chapter.open .paragraphs-list {
    max-height: none;
}

.paragraph {
    border-bottom: 1px solid #f8f8f8;
}

.paragraph-title {
    padding: 12px 20px 12px 30px;
    background: #fafafa;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.paragraph-title:hover {
    background: #f0f0f0;
    color: #2196f3;
}

.paragraph-toggle {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #888;
}

.paragraph.open .paragraph-toggle {
    transform: rotate(90deg);
}

.articles-list {
    max-height: none;
    overflow: visible;
}

.paragraph:not(.open) .paragraph-title + .articles-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.paragraph.open .paragraph-title + .articles-list {
    max-height: none;
    overflow: visible;
}

.article-link {
    display: block;
    padding: 10px 20px 10px 50px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    position: relative;
    font-size: 13px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-link:hover {
    background: #f8f9fa;
    color: #1976d2;
    padding-left: 55px;
    text-decoration: none;
}

.article-link.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
    border-left: 3px solid #2196f3;
}

.article-link.active::before {
    content: '▶';
    position: absolute;
    left: 30px;
    color: #2196f3;
    font-size: 10px;
}

.article-link:last-child {
    border-bottom: none;
}

.legal-content {
    flex: 1;
    padding: 0;
    background: white;
    overflow-y: auto;
    padding-top: 50px;
}

.right-sidebar {
    width: 350px;
    background: #ffffff;
    border-left: 1px solid #e1e5e9;
    flex-shrink: 0;
    position: sticky;
    top: 44px;
    height: calc(100vh - 44px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.right-header {
    background: linear-gradient(135deg, #D44B38 0%, #B73C2A 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-header:hover {
    background: linear-gradient(135deg, #B73C2A 0%, #9A2F20 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.education-icon {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.education-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.2;
}

.education-subtitle {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.qa-nav {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.qa-item {
    border-bottom: 1px solid #f0f2f5;
}

.qa-link {
    display: block;
    padding: 18px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.qa-link:hover {
    background: #f8f9fa;
    color: #1976d2;
    text-decoration: none;
}

.qa-question {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #1976d2;
    line-height: 1.3;
}

.qa-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qa-views svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.content-wrapper {
    padding: 40px;
    max-width: 100%;
    padding-top: 10px;
}

.legal-breadcrumb {
    margin: 0px 40px 6px 40px;
    font: 17px system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #444;
    background: none;
    padding: 6px 0;
    border-radius: 0;
    border-left: none;
}

.legal-breadcrumb a {
    color: #0277bd;
    text-decoration: none;
}

.legal-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #444;
}

.legal-title {
    font-family: Impact, sans-serif;
    font-weight: normal;
    line-height: 1.2;
    color: #0277bd;
    margin-bottom: 15px;
    font-size: 36px;
    text-transform: uppercase;
    border-bottom: 3px solid #4caf50;
    padding-bottom: 15px;
}

.legal-meta {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.legal-meta strong {
    color: #2e7d32;
}

.change-item {
    margin-bottom: 12px;
}

.change-item:last-child {
    margin-bottom: 0;
}

.legal-text {
    font: 17px system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #444;
}

.legal-text p {
    margin-bottom: 20px;
}

.legal-text h2 {
    font-size: 26px;
    font-weight: normal;
    line-height: 1.5;
    color: #111;
    margin: 32px 0 15px;
}

.legal-text h3 {
    font-size: 22px;
    font-weight: normal;
    line-height: 1.5;
    color: #111;
    margin: 24px 0 15px;
}

.text-added {
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.text-removed {
    background: #f44336;
    color: white;
    text-decoration: line-through;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.text-modified {
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.text-yellow {
    background: #ffeb3b;
    color: #333;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.text-red {
    background: #f44336;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.text-green {
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.text-cyan {
    background: #00bcd4;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.legal-video {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    border: 1px solid #e9ecef;
    border-left: 4px solid #4caf50;
}

.video-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a202c;
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
}

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

.video-info {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #666;
}

.legal-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid #f0f2f5;
    gap: 20px;
}

.nav-button {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: #69BB60;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.nav-button:hover {
    background: #71C967;
    color: #fff;
    text-decoration: none;
}

.nav-button:active {
    background: #53A14A;
}

.nav-button.disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #000000;
    color: white;
    padding: 0;
    font-weight: 600;
    align-items: center;
    gap: 0;
    justify-content: space-between;
    min-height: 56px;
    height: 56px;
    line-height: 56px;
}

.mobile-burger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 15px 20px;
    height: 100%;
    white-space: nowrap;
}

.desktop-header .main-site-btn:hover,
.mobile-header .main-site-btn:hover {
    background: #71C967;
}

.desktop-header .main-site-btn:active,
.mobile-header .main-site-btn:active {
    background: #53A14A;
}

.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #000000;
    color: white;
    padding: 0;
    font-weight: 600;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.desktop-header .main-site-btn,
.mobile-header .main-site-btn {
    background: #69BB60;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0 15px;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    line-height: 56px;
    border-radius: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.desktop-header,
.mobile-header {
    height: 56px;
    line-height: 56px;
}

.desktop-header .main-site-btn:hover {
    background: #66bb6a;
    color: white;
    text-decoration: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.chapters-nav::-webkit-scrollbar,
.qa-nav::-webkit-scrollbar {
    width: 6px;
}

.chapters-nav::-webkit-scrollbar-track,
.qa-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chapters-nav::-webkit-scrollbar-thumb,
.qa-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chapters-nav::-webkit-scrollbar-thumb:hover,
.qa-nav::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.education-block {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.2);
    color: white;
}

.education-header {
    padding: 30px 40px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.education-main-title {
    font-family: Impact, sans-serif;
    font-size: 32px;
    font-weight: normal;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.education-main-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 300;
}

.education-content {
    display: grid;
    gap: 40px;
    padding: 30px 40px;
}

.education-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.education-info h3 {
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 600;
    color: white;
}

.education-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-benefits li {
    position: relative;
    padding: 8px 0 8px 25px;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.95;
}

.education-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.calculator-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0;
    color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.calculator-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.calculator-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.calculator-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

#education-calculator-container {
    padding: 0;
}

.calc-form {
    padding: 25px;
}

.calc-field {
    margin-bottom: 20px;
}

.calc-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
}

.calc-select, .calc-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
    transition: border-color 0.3s ease;
}

.calc-select:focus, .calc-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.calc-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.calc-counter-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: #4caf50;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.calc-counter-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.calc-counter-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.calc-counter-input {
    width: 80px;
    height: 45px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #4caf50;
    border-radius: 6px;
    font-size: 18px;
    background: white;
}

.calc-price {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-radius: 8px;
    border: 2px solid #4caf50;
}

.calc-price-amount {
    font-size: 32px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 8px;
}

.calc-price-label {
    font-size: 16px;
    color: #2e7d32;
    font-weight: 600;
}

.calc-discount {
    font-size: 14px;
    color: #2e7d32;
    font-style: italic;
    margin-top: 10px;
}

.calc-services {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.calc-services h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.calc-checkbox {
    margin-bottom: 12px;
}

.calc-checkbox input {
    margin-right: 10px;
}

.calc-checkbox label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.calc-service-price {
    color: #2e7d32;
    font-weight: bold;
}

.calc-download {
    text-align: center;
    margin-top: 25px;
}

.calc-download-btn {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.calc-download-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.calc-note {
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #4caf50;
    line-height: 1.4;
    border-radius: 0 6px 6px 0;
}

.calc-hidden {
    display: none !important;
}

.calc-visible {
    display: block !important;
}

.share-section {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.share-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e5e9;
}

.share-label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
    white-space: nowrap;
}

.share-url {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 13px;
    color: #495057;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease;
}

.share-url:focus {
    outline: none;
    border-color: #3498db;
    background: white;
}

.share-copy-btn {
    padding: 8px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 36px;
    height: 36px;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.share-copy-btn:active {
    transform: translateY(0);
}

.share-copy-btn svg {
    width: 16px;
    height: 16px;
}

.useful-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.useful-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    flex: none;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.useful-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-1px);
}

.useful-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.formula {
    background: #f8f9fb;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    border-radius: 0 6px 6px 0;
}

.example-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    table-layout: auto;
}

.example-table thead tr {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: left;
    font-weight: 600;
}

.example-table th,
.example-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e5e9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.example-table tbody tr {
    background: #ffffff;
}

.example-table tbody tr:nth-child(even) {
    background: #f8f9fb;
}

.example-table tbody tr:hover {
    background: #e3f2fd;
}

.example-table tbody tr:last-child td {
    border-bottom: none;
}

.example-table .number-cell {
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

.example-table .total-row {
    background: #e8f5e8 !important;
    font-weight: 600;
    border-top: 2px solid #4caf50;
}

.example-table .total-row td {
    color: #2e7d32;
}

.example-section {
    background: #f8f9fb;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border-left: 6px solid #4caf50;
}

.example-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.example-data {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.data-title {
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 16px;
}

.data-item {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.data-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.calculation-step {
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.step-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.step-description {
    margin-bottom: 15px;
    line-height: 1.6;
}

.highlight-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.highlight-title {
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Responsive breakpoints */
@media screen and (max-width: 1200px) {
    .right-sidebar {
        width: 350px;
    }
    
    .main-article {
        max-width: calc(100% - 350px);
    }
    
    .legal-sidebar {
        width: 300px;
        position: sticky;
        top: 44px;
        height: calc(100vh - 44px);
    }
    
    .right-sidebar {
        width: 300px;
    }
    
    .main-article {
        max-width: calc(100% - 300px);
    }
    
    .content-wrapper {
        padding: 30px;
    }
    
    .example-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .example-table {
        font-size: 13px;
    }
    
    .example-table th,
    .example-table td {
        padding: 10px 12px;
    }
    
    .calculation-step {
        padding: 15px;
    }
    
    .highlight-box {
        padding: 15px;
        margin: 20px 0;
    }
    
    .education-header {
        padding: 25px 20px;
    }

    .education-main-title {
        font-size: 26px;
    }

    .education-main-subtitle {
        font-size: 16px;
    }

    .education-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px 20px;
    }

    .education-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .education-benefits li {
        font-size: 15px;
    }

    .calc-form {
        padding: 20px;
    }

    .calc-counter-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .calc-counter-input {
        width: 70px;
        height: 40px;
        font-size: 16px;
    }

    .calc-price-amount {
        font-size: 28px;
    }
}

@media screen and (max-width: 1200px) {
    .legal-container {
        flex-direction: column;
        height: auto;
        padding-top: 56px;
    }
    
    .legal-sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        left: -100%;
        top: 56px;
        bottom: 0;
        transition: left 0.3s ease;
        z-index: 1001;
        height: calc(100vh - 56px);
    }
    
    .legal-sidebar.open {
        left: 0;
    }
    
    .legal-content {
        padding-top: 60px;
        width: 100%;
    }
    
    .right-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-left: none;
        border-top: 1px solid #e1e5e9;
        margin-top: 20px;
        overflow: visible;
    }
    
    .qa-nav {
        overflow: visible;
        max-height: none;
    }
    
    .content-wrapper {
        padding: 20px;
        padding-top: 20px;
    }
    
    .legal-breadcrumb {
        margin: 0px 20px 0px 20px;
    }
    
    .legal-title {
        font-size: 24px;
    }
    
    .mobile-header {
        display: flex;
        min-height: 56px;
    }
    
    .desktop-header {
        display: none;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .legal-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-button {
        justify-content: center;
        display: block;
        width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        min-height: 44px;
    }
    
    /* Mobile tag fixes */
    .chapter-title, .paragraph-title {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.3;
    }
    
    .article-link {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.3;
    }
    
    .qa-link {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.4;
    }
    
    .useful-links {
        gap: 5px;
        flex-direction: column;
    }
    
    .useful-link {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
        width: 100%;
        display: block;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .useful-link svg {
        width: 12px;
        height: 12px;
    }
    
    .share-section {
        padding: 10px;
        margin: 15px 0;
    }
    
    .share-content {
        gap: 8px;
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    
    .share-label {
        font-size: 13px;
        margin-right: 8px;
    }
    
    .share-url {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .share-copy-btn {
        padding: 8px 10px;
        min-width: 32px;
        height: 32px;
    }
    
    .share-copy-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Tablet portrait orientation */
@media screen and (max-width: 900px) {
    .example-table {
        font-size: 12px;
    }
    
    .example-table th,
    .example-table td {
        padding: 8px 10px;
        line-height: 1.2;
    }
    
    .example-title {
        font-size: 18px;
    }
}

/* Large mobile devices */
@media screen and (max-width: 768px) {
    .example-table {
        font-size: 11px;
        margin: 15px 0;
    }
    
    .example-table th,
    .example-table td {
        padding: 6px 8px;
        line-height: 1.1;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .highlight-title {
        font-size: 16px;
    }
    
    .formula {
        padding: 12px;
        font-size: 14px;
    }
    
    .example-section {
        padding: 15px;
    }
}

/* Medium mobile devices */
@media screen and (max-width: 600px) {
    .example-table {
        font-size: 10px;
    }
    
    .example-table th,
    .example-table td {
        padding: 5px 6px;
        line-height: 1.0;
    }
    
    .example-title {
        font-size: 16px;
    }
    
    .step-title {
        font-size: 15px;
    }
    
    .highlight-title {
        font-size: 15px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .example-table {
        font-size: 9px;
    }
    
    .example-table th,
    .example-table td {
        padding: 4px 5px;
        line-height: 1.0;
    }
    
    .example-section {
        padding: 12px;
        margin: 12px 0;
    }
    
    .example-title {
        font-size: 15px;
    }
    
    .step-title {
        font-size: 14px;
    }
    
    .highlight-title {
        font-size: 14px;
    }
    
    .formula {
        padding: 10px;
        font-size: 12px;
    }
    
    /* More compact number cells */
    .example-table .number-cell {
        font-size: 0.9em;
        font-weight: 700;
    }
    
    /* More compact column headers */
    .example-table th {
        font-size: 0.95em;
        font-weight: 700;
    }
    
    /* Additional mobile tag fixes */
    .chapter-title, .paragraph-title {
        padding: 12px 15px;
        font-size: 13px;
        line-height: 1.2;
    }
    
    .article-link {
        padding: 8px 15px 8px 40px;
        font-size: 12px;
        line-height: 1.2;
    }
    
    .qa-link {
        padding: 15px;
        font-size: 13px;
        line-height: 1.3;
    }
    
    .nav-button {
        padding: 10px 15px;
        font-size: 13px;
        line-height: 1.2;
        min-height: 40px;
    }
    
    .calc-download-btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 14px;
        line-height: 1.2;
        white-space: normal;
    }
    
    .education-main-title {
        font-size: 22px;
    }

    .education-content {
        padding: 20px 15px;
    }

    .calc-form {
        padding: 15px;
    }
}

/* Very small screens */
@media screen and (max-width: 360px) {
    .example-table {
        font-size: 8px;
    }
    
    .example-table th,
    .example-table td {
        padding: 3px 4px;
        line-height: 1.0;
    }
    
    .example-title {
        font-size: 14px;
    }
    
    .step-title {
        font-size: 13px;
    }
    
    .highlight-title {
        font-size: 13px;
    }
}

/* Very narrow screens */
@media screen and (max-width: 280px) {
    .example-table {
        font-size: 7px;
    }
    
    .example-table th,
    .example-table td {
        padding: 2px 3px;
        line-height: 1.0;
    }
    
    .example-section {
        padding: 8px;
        margin: 8px 0;
    }
    
    .example-title {
        font-size: 13px;
    }
    
    .step-title {
        font-size: 12px;
    }
    
    .highlight-title {
        font-size: 12px;
    }
    
    .formula {
        padding: 8px;
        font-size: 10px;
    }
}

/* Landscape orientation for mobile devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .example-table {
        font-size: 10px;
    }
    
    .example-table th,
    .example-table td {
        padding: 4px 6px;
    }
    
    .example-section {
        padding: 10px;
        margin: 10px 0;
    }
}

/* Стили для qa-tag */
.qa-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2px;
    white-space: nowrap;
    line-height: 1.3;
    box-sizing: border-box;
}

.qa-tag:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Мобильные стили для qa-tag */
@media screen and (max-width: 768px) {
    .qa-tag {
        display: inline-block !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 4px 2px !important;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap !important;
        line-height: 1.3;
        width: auto !important;
    }
}

@media screen and (max-width: 480px) {
    .qa-tag {
        padding: 6px 10px !important;
        font-size: 11px !important;
        margin: 3px 2px !important;
    }
}