/* Global Styles */
:root {
    --primary: #FF5A5F;
    --secondary: #00A699;
    --dark: #2B303A;
    --light: #F5F5F5;
    --accent: #FC642D;
    --text: #333333;
    --text-light: #767676;
}

html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

a {
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 0 20px;
}
.container a:hover {color: var(--dark);}
.container p {
    padding: 5px 0;
}
.container p img {max-width: 100%; width: auto}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px 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: 15px 10px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

.logo a img {max-height: 40px; padding-right: 6px}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: #ffffff;
    font-weight: bold;
    position: relative;
}
.nav-menu a:hover {
    color: #ffffff;
}

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

.nav-menu a:hover:after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: all 0.5s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .burger {
        display: block;
    }
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 30px 0 30px 0;
    text-align: center;
}

.index-container h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    color: white;
    text-shadow:
    0 0 6px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(0, 0, 0, 0.2);

}
.container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Table of Contents */
.toc {
    /*background-color: var(--light);*/
    padding: 0 0 20px 0;
    margin-top: 20px;
}

.toc-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.toc-item {
    padding: 8px 15px;
    background-color: white;
    /*border-radius: 5px;*/
    font-size: 0.9rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: bold;
}

.toc-item:hover {
    /*background-color: var(--secondary);*/
    /*color: white;*/
}

/* Content Sections */
section {
    padding: 60px 0;
}

.container h2 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
    position: relative;
    font-size: 2rem;
    color: var(--dark);
    line-height: 1.2;
}

.container h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
}

/* Scrollable Table */
.table {
    overflow-x: auto;
    margin-bottom: 40px;
     margin-top: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--secondary);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Image Modal */
.image-container {
    margin: 40px 0;
    text-align: center;
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-image:hover {
    transform: scale(1.02);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 50px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Info and Quote Blocks */
.info, .quote {
    padding: 25px;
    margin: 30px 0;
    border-left: 5px solid;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.info {
    background-color: #f0f7ff;
    border-radius: 10px;
    border-left-color: var(--secondary);
}

.quote {
    background-color: #fffaf0;
    border-left-color: var(--accent);
    border-radius: 10px;
}

.info-title, .quote-author {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 10px 0 10px;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.container ul {
    padding: 5px 0 5px 18px;
}

.container li {
    margin-bottom: 3px;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.content-block {
    margin-bottom: 40px;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content-image:hover {
    transform: scale(1.02);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.close-btn {
    z-index: 999999;
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.toc-container {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.5rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.toc-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-menu li {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
}

.toc-menu a {
  display: inline-block;
  padding: 0.5em 1em;
  text-decoration: none;
  color: #2c3e50;
  background-color: #f9f9f9;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  word-break: break-word;
}

.toc-menu a:hover,
.toc-menu a:focus {
  background-color: #007bff;
  color: #ffffff;
}

@media (max-width: 768px) {
  .toc-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .toc-menu li {
    min-width: auto;
  }

  .toc-menu a {
    width: 100%;
    text-align: center;
  }
}


.info-card {
  display: inline-block;
  vertical-align: top;
  width: calc(33% - 1rem);
  margin: 0.5rem;
  background: linear-gradient(to bottom right, #ffffff, #f9f9f9);
  border: 1px solid #e1e8ee;
  border-left: 5px solid #007bff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

.info-card:hover {
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.1);
  transform: translateY(-2px);
}

.info-card p {
  margin: 0;
  color: #333;
  font-size: 0.96rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .info-card {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

