
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #000;
    background: radial-gradient(circle at top right, #2c3e50, #000000);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Кастомный скроллбар в прозрачно-зелёно-салатовом цвете */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(144, 238, 144, 0.6), rgba(50, 205, 50, 0.6));
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(144, 238, 144, 0.8), rgba(50, 205, 50, 0.8));
}

/* Для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(144, 238, 144, 0.6) rgba(0, 0, 0, 0.3);
}

/* Фоновые круги с анимацией */
.bg-circle {
    position: fixed;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    border-radius: 70%;
    top: -50px;
    left: 10%;
    z-index: -1;
    filter: blur(80px);
}

.bg-circle-2 {
    position: fixed;
    width: 500px;
    height: 500px;
    background: #00d2ff;
    border-radius: 70%;
    bottom: 10%;
    right: 5%;
    z-index: -1;
    filter: blur(100px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar {
    height: 85px;
    width: 100%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.logo {
    color: white;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -1px;
    cursor: pointer;
}

.logo:hover{
    cursor: pointer;
    transform: rotateX(360deg);
    transition-duration: 2s;
    
}

.logo span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.glass-btn {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 10px 20px; 
    margin-left: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    overflow: hidden;
    display: inline-block;
}
.tabls {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 10px 20px; 
    margin-left: 20px;
    margin-top: 30px;
    border-radius: 14px;
    background: rgba(81, 134, 233, 0.281); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    overflow: hidden;
    display: inline-block;
   

}
.butintub {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 10px 20px; 
    margin-left: 20px;
    margin-top: 15px;
    border-radius: 14px;
    background: rgba(81, 134, 233, 0.281); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    overflow: hidden;
    display: inline-block;
   

}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 20px rgba(144, 238, 144, 0.3);
    padding-left: 40px; 
    padding-right: 40px;
    transform: scale(1.05);
}



.tabls:hover {
    background: rgba(88, 239, 250, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    transform: scale(1.05); 
}
.butintub:hover {
    background: rgba(194, 102, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
   
    

}

.glass-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.tabls.active {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(25deg);
    transition: 0.5s;
}
.tabls::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(25deg);
    transition: 0.5s;
}

.glass-btn:hover::after {
    left: 150%;
}

.hero-section {
    padding: 50px 20px;
    color: white;
    text-align: center;
    margin-left: 0px;
}
.hero-sectiont {
    padding: 50px 20px;
    color: white;
    text-align: center;
    margin-left: 420px;
}
.hero-sectionopit {
    padding: 50px 20px;
    color: white;
    text-align: center;
    margin-left: 520px;
}
.hero-sectionteor {
    padding: 50px 20px;
    color: white;
    text-align: center;
    margin-left: 520px;
}
.hero-sectiontzada {
    padding: 50px 20px;
    color: white;
    text-align: center;
    margin-left: 420px;
}

#check {
    display: none;
}

.checkbtn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.checkbtn span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
}

@media (max-width: 858px) {
    .checkbtn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    #check:checked ~ .nav-links {
        left: 0;
    }

    .glass-btn {
        margin: 12px 0;
        width: 85%;
        text-align: center;
        font-size: 18px;
        padding: 14px;
    }
    
    .tabls {
        margin: 12px 0;
        width: 85%;
        text-align: center;
        font-size: 18px;
        padding: 14px;
    }

    .glass-btn:hover {
        padding: 14px; 
    }
    
    .tabls:hover {
        padding: 14px; 
    }

    #check:checked ~ .checkbtn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #check:checked ~ .checkbtn span:nth-child(2) {
        opacity: 0;
    }

    #check:checked ~ .checkbtn span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
#lef{
    background: #007E3E; 
    width: 300px;
    height:500px;
    padding: 10px; 
    border-radius: 5px; 
    
    
}
#opis{
    color: rgba(255, 255, 255, 0.527);
    padding-left: 5px;
	padding-right: 5px;
}
#opisbar{
    color: rgba(255, 255, 255, 0.527);
    padding-left: 10px;
	padding-right: 5px;
	padding-top: 10px;
}

#sidebar {
    position: fixed;
    left: 0;
    top: 85px;
    width: 400px;
    height: calc(100vh - 300px);
    background: rgba(255, 255, 255, 0.068);  
    color: white;
    padding: 20px;
    
}

#sidebart {
    position: fixed;
    left: 0;
    top: 85px;
    width: 300px;
    height: 1500px;;
    background: rgba(255, 255, 255, 0.068);  
    color: white;
    padding: 20px;
    
}
#textnabare{
	font-size: 20px;
	text-align:center;
	
}
#goyim{
	width: 50px;
	height: 45px;
	position:relative;
	left: 420px;
	bottom: 210px;
}

#teortable {
    background: rgba(255, 255, 255, 0.05);
   
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 1700px; 
    margin: 0 auto;
}

#teorzagolovok {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
}

#teorzagolovok {
    color: white;
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 15px;
}

#teortext {
    color: rgba(255, 255, 255, 0.85);
    font-size: 21px;
    text-align: left;
    margin-bottom: 12px;
}

#glavzagol {
    color: rgba(73, 26, 201, 0.85);
    padding-bottom: 50px;

}

#teorphoto {
    max-width: 100%;
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 200px;
    height: 250px;
    object-fit: cover;
    margin: 15px;
}

#photoscontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
    
}

#photoitem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    
}

#photocaption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

#teorspis {
    margin: 20px 0;
    padding: 0 40px;
}

#teorspis ul {
    list-style: none;
    padding: 0;
}

#teorspis li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
}

#teorspis li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(73, 26, 201, 0.85);
    font-size: 18px;
}

#photoitem2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

#photoitem2 img {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: contain;
}

#separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(73, 26, 201, 0.6), transparent);
    margin: 40px 0;
}

#questionsblock {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

#question {
    margin: 20px 0;
    padding: 15px;
    background: rgba(73, 26, 201, 0.1);
    border-left: 3px solid rgba(73, 26, 201, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
}

#question:hover {
    background: rgba(73, 26, 201, 0.2);
    border-left-color: rgba(73, 26, 201, 0.9);
}

#questiontext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}
#teoropred{
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-sectiont {
    padding: 100px 20px;
    color: white;
    margin-left: 220px;
}

#sidebart {
    position: fixed;
    left: 0;
    top: 85px;
    width: 200px;
    height: calc(100% - 85px);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    z-index: 100;
}

#textnabare {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

#opisbar {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

#texttab {
    padding: 5px;
    text-indent: 30px;
    list-style: none;
}

#centerblock {
    text-align: center;
}

#centerblock ul {
    display: inline-block;
    text-align: left;
}

#hoverbox {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
   
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    
}

#hoverbox:hover {
    transform: scale(5);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
    
}

#hovertext {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

#hoverbox:hover #hovertext {
    opacity: 0;
}

#tablelisttab{
	list-style: none;
}

#podvals{
	text-align: center;
	color: white;
	font-weight: bold;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	font-size: 18px;
	position: relative;
	z-index: 2;
}

#podvalnavbar{
	height: 200px;
    width: 100%;
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 40, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(144, 238, 144, 0.2);
    border-radius: 20px;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(144, 238, 144, 0.1);
}

#podvalnavbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(144, 238, 144, 0.1), transparent);
}



#footer-left {
    padding: 30px 40px;
    z-index: 2;
    text-align: left;
}

#footer-right {
    padding: 30px 40px;
    z-index: 2;
    text-align: right;
}

.footer-item {
    color: rgba(220, 220, 220, 0.95);
    font-size: 15px;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-item:hover {
    color: rgba(144, 238, 144, 0.95);
    transform: translateX(5px);
}

.footer-item a {
    color: rgba(200, 200, 200, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.footer-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #90EE90, #32CD32);
    transition: width 0.3s ease;
}

.footer-item a:hover {
    color: rgba(144, 238, 144, 1);
    text-shadow: 0 0 10px rgba(144, 238, 144, 0.5), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-item a:hover::after {
    width: 100%;
}

#textnaglav {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#measurementtable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

#measurementtable th {
    background: rgba(73, 26, 201, 0.3);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid rgba(73, 26, 201, 0.6);
}

#measurementtable td {
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#measurementtable tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

#navcontainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

#navleft {
    flex: 1;
    text-align: left;
}

#navcenter {
    flex: 1;
    text-align: center;
}

#navright {
    flex: 1;
    text-align: right;
}

#teoriatablecards {
    width: 100%;
    border-collapse: collapse;
}

#teoriatablecards td {
    padding: 10px;
}

#teorianavlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

#teorianavlist li {
    margin: 8px 0;
}

.navlink {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navlink:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(73, 26, 201, 0.2);
    padding-left: 15px;
}

#difficultylegend {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.diffitem {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.diffdot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.diffitem p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
}

.tabls .diffdot {
    width: 15px;
    height: 15px;
    margin-bottom: 10px;
}

#questionsblock {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
}

#tabls {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    vertical-align: top;
    transition: all 0.3s ease;
}

#tabls:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Общие стили */
*, *:after, *:before { 
	box-sizing: border-box; 
}
.clearfix:before, .clearfix:after { 
	content: ''; 
	display: table; 
}
.clearfix:after { 
	clear: both; 
}
.hover-text-one {
	overflow: hidden;
	margin: 0;
	width: 100%;
	list-style: none;
	text-align: center;
}
.hover-text-one figure {
	position: relative;
	z-index: 1;
	display: inline-block;
	overflow: hidden;
	background: #527c82;
	text-align: center;
	cursor: pointer;
}
.hover-text-one figure img {
	position: relative;
	display: block;
	min-height: 100%;
	opacity: 0.8;
}

/* Скрыть иконку broken image */
.hover-text-one figure img {
	object-fit: cover;
	background: #527c82;
}

/* Альтернативный текст для broken images */
.hover-text-one figure img::before {
	content: '';
	display: block;
}
.hover-text-one figure figcaption {
	padding: 2em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
.hover-text-one figure figcaption::before,
.hover-text-one figure figcaption::after {
	pointer-events: none;
}
.hover-text-one figure figcaption{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.hover-text-one figure h3 {
	word-spacing: -0.15em;
	font-weight: 300;
}
.hover-text-one figure h3 span {
	font-weight: 800;
}
.hover-text-one figure h3,
.hover-text-one figure p {
	margin: 0;
}
.hover-text-one figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}

/* Эффект при наведении */
figure.effect-text-three {
	background: #527c82;
}
figure.effect-text-three img {
	width: -webkit-calc(100% + 20px);
	width: calc(100% + 20px);
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	transform: scale(1.1);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
figure.effect-text-three:hover img {
	opacity: 0.4;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}
figure.effect-text-three figcaption {
	text-align: left;
}
figure.effect-text-three h3 {
	position: relative;
	overflow: hidden;
	padding: 0.5em 0;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-100%,0,0);
	transform: translate3d(-100%,0,0);
}
figure.effect-text-three:hover h3 {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}
figure.effect-text-three h3::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: #fff;
	content: '';
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(-100%,0,0);
	transform: translate3d(-100%,0,0);
}
figure.effect-text-three:hover h3::after {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}
figure.effect-text-three p {
	padding: 1em 0;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(100%,0,0);
	transform: translate3d(100%,0,0);
}
figure.effect-text-three:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}
#popular {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}

#pp {
    background: 
        radial-gradient(circle at 20% 30%, rgba(120, 120, 120, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(100, 100, 100, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(120, 120, 120, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 60% 20%, rgba(100, 100, 100, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 90% 40%, rgba(120, 120, 120, 0.18) 2px, transparent 2px),
        radial-gradient(circle at 10% 60%, rgba(100, 100, 100, 0.18) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(120, 120, 120, 0.12) 2px, transparent 2px),
        radial-gradient(circle at 30% 10%, rgba(100, 100, 100, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 70% 90%, rgba(120, 120, 120, 0.15) 2px, transparent 2px),
        linear-gradient(135deg, rgba(100, 100, 100, 0.1), rgba(80, 80, 80, 0.08));
    background-size: 100% 100%;
    border: 2px solid rgba(120, 120, 120, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 450px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    color: white;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

#pp::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(120, 120, 120, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

#pp:hover::before {
    opacity: 1;
}

#pp img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

#pp:hover {
    background: 
        radial-gradient(circle at 20% 30%, rgba(140, 140, 140, 0.3) 3px, transparent 3px),
        radial-gradient(circle at 80% 70%, rgba(120, 120, 120, 0.3) 3px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(140, 140, 140, 0.25) 3px, transparent 3px),
        radial-gradient(circle at 60% 20%, rgba(120, 120, 120, 0.25) 3px, transparent 3px),
        radial-gradient(circle at 90% 40%, rgba(140, 140, 140, 0.28) 3px, transparent 3px),
        radial-gradient(circle at 10% 60%, rgba(120, 120, 120, 0.28) 3px, transparent 3px),
        radial-gradient(circle at 50% 50%, rgba(140, 140, 140, 0.22) 3px, transparent 3px),
        radial-gradient(circle at 30% 10%, rgba(120, 120, 120, 0.25) 3px, transparent 3px),
        radial-gradient(circle at 70% 90%, rgba(140, 140, 140, 0.25) 3px, transparent 3px),
        linear-gradient(135deg, rgba(120, 120, 120, 0.2), rgba(100, 100, 100, 0.15));
    background-size: 100% 100%;
    border: 2px solid rgba(140, 140, 140, 0.5);
    box-shadow: 0 10px 40px rgba(100, 100, 100, 0.3), 0 0 30px rgba(144, 238, 144, 0.2);
    transform: translateY(-20px);
}

#pp:hover img {
    transform: scale(1.1) rotate(5deg);
}

#popular a {
    text-decoration: none;
}

/* Заголовок главной страницы */
#glavzagolovok {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #90EE90, #32CD32, #90EE90);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Заголовок популярных разделов */
#popularzagolovok {
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    font-weight: 600;
    margin: 50px 0 30px 0;
    text-align: center;
}

/* Подписи под карточками */
.pp-title {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

/* Кнопки действий */
#action-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.custom-btn {
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.3), rgba(50, 205, 50, 0.3));
    border: 2px solid rgba(144, 238, 144, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.custom-btn:hover::before {
    left: 100%;
}

.custom-btn:hover {
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.5), rgba(50, 205, 50, 0.5));
    border-color: rgba(144, 238, 144, 0.8);
    box-shadow: 0 0 30px rgba(144, 238, 144, 0.4);
    transform: translateY(-3px);
}

.custom-btn.secondary {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2), rgba(34, 139, 34, 0.2));
    border-color: rgba(50, 205, 50, 0.5);
}

.custom-btn.secondary:hover {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.4), rgba(34, 139, 34, 0.4));
    border-color: rgba(50, 205, 50, 0.8);
    box-shadow: 0 0 30px rgba(50, 205, 50, 0.4);
}

/* Секция "Почему Physhub" */
#about-section {
    margin: 60px 0;
}

#features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature-item {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.15), rgba(80, 80, 80, 0.1));
    border: 2px solid rgba(120, 120, 120, 0.3);
    border-radius: 20px;
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: all 0.4s ease;
}

.feature-item:nth-child(1) { }
.feature-item:nth-child(2) { }
.feature-item:nth-child(3) { }

.feature-item:hover {
    background: linear-gradient(135deg, rgba(120, 120, 120, 0.25), rgba(100, 100, 100, 0.2));
    border-color: rgba(140, 140, 140, 0.5);
    box-shadow: 0 8px 30px rgba(100, 100, 100, 0.3);
    transform: translateY(-20px) scale(1.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-item:hover .feature-icon {
}

.feature-item h3 {
    color: rgba(200, 200, 200, 0.9);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: rgba(180, 180, 180, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

/* Блок сообщения об ошибке */
#error-report {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.1), rgba(255, 50, 50, 0.05));
    border: 2px solid rgba(255, 100, 100, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin: 80px auto 40px auto;
    max-width: 700px;
    text-align: center;
}

#error-report h3 {
    color: rgba(255, 150, 150, 0.9);
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

#error-report p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.error-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.3), rgba(255, 50, 50, 0.3));
    border: 2px solid rgba(255, 100, 100, 0.5);
    transition: all 0.4s ease;
}

.error-btn:hover {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.5), rgba(255, 50, 50, 0.5));
    border-color: rgba(255, 100, 100, 0.8);
    box-shadow: 0 0 30px rgba(255, 100, 100, 0.4);
    transform: translateY(-3px);
}
.tooltiped {
  position: relative;
  display: inline;
  cursor: help;
  color: #90EE90;
  font-weight: 500;
  border-bottom: 2px dotted #90EE90;
  transition: all 0.3s ease;
}

.tooltiped:hover {
  color: #32CD32;
  border-bottom-color: #32CD32;
  text-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
  transform: scale(1.05);
}

.tooltiped .tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  transform: translateY(-10px);
}

.tooltiped:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}



.tooltiped .tooltip .tooltip-content {
  min-width: 250px;
  max-width: 350px;
  padding: 12px 15px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: #333;
  font-size: 13px;
  text-align: left;
  line-height: 1.5;
  font-weight: 400;
  border: 2px solid #90EE90;
}

.tooltiped .tooltip .tooltip-content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 8px 0;
  border: 1px solid #ddd;
}

.tooltiped .tooltip .tooltip-content h4 {
  color: #32CD32;
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.tooltiped .tooltip .tooltip-content p {
  margin: 5px 0;
  color: #333;
  font-size: 13px;
}

.tooltiped .tooltip .tooltip-content p strong {
  color: #32CD32;
  font-weight: 600;
}

.tooltiped .tooltip .tooltip-content a {
  color: #32CD32;
  text-decoration: underline;
}

.tooltiped .tooltip .tooltip-content a:hover {
  color: #228B22;
}

/* Легенда для страниц теории */
#legend-box {
  background: linear-gradient(135deg, rgba(144, 238, 144, 0.1), rgba(50, 205, 50, 0.05));
  border: 2px solid rgba(144, 238, 144, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#legend-title {
  color: rgba(144, 238, 144, 0.95);
  font-size: 18px;
  margin: 0 0 15px 0;
  font-weight: 600;
}

#legend-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.legend-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
}

/* Информационный блок на странице teoria.html */
#info-box-teoria {
  background: linear-gradient(135deg, rgba(144, 238, 144, 0.15), rgba(50, 205, 50, 0.1));
  border: 2px solid rgba(144, 238, 144, 0.4);
  border-radius: 15px;
  padding: 25px 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#info-title {
  color: rgba(144, 238, 144, 0.95);
  font-size: 24px;
  margin: 0 0 15px 0;
  font-weight: 700;
}

#info-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Панель подсказок в боковом меню */
#tooltip-info-panel {
  margin-top: 25px;
  padding: 10px 0;
}

#tooltip-icon {
  font-size: 20px;
  margin-bottom: 5px;
}

#tooltip-info-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0 0 8px 0;
  font-weight: 600;
}

#tooltip-info-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}

/* Викторина - кнопки с атомами вокруг */
.quiz-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    width: 100%;
    position: relative;
}

.quiz-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Вращающиеся атомы на фоне */
.quiz-main::before {
    content: '⚛️';
    position: absolute;
    font-size: 150px;
    opacity: 0.1;
    top: 10%;
    left: 10%;
}

.quiz-main::after {
    content: '⚛️';
    position: absolute;
    font-size: 120px;
    opacity: 0.1;
    bottom: 10%;
    right: 10%;
}



.quiz-topic-btn {
    color: white;
    font-size: 18px;
    font-weight: 400;
    padding: 20px 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.quiz-topic-btn::before {
    content: '⚛️';
    position: absolute;
    font-size: 40px;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s;
}

.quiz-topic-btn:hover {
    background: rgba(144, 238, 144, 0.2);
    border-color: rgba(144, 238, 144, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(144, 238, 144, 0.3);
}

.quiz-topic-btn:hover::before {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
}

.quiz-content {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-back-btn {
    color: white;
    font-size: 16px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
}

.quiz-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quiz-topic-title {
    color: white;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.quiz-question-item {
    margin-bottom: 15px;
}

.quiz-question-item:nth-child(1) { }
.quiz-question-item:nth-child(2) { }
.quiz-question-item:nth-child(3) { }
.quiz-question-item:nth-child(4) { }
.quiz-question-item:nth-child(5) { }
.quiz-question-item:nth-child(6) { }
.quiz-question-item:nth-child(7) { }



.quiz-question-btn {
    color: white;
    font-size: 18px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.quiz-question-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(144, 238, 144, 0.3);
}

.quiz-question-panel {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 25px;
    margin-top: 10px;
}

.quiz-question-text {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.quiz-answer-option {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
}

.quiz-answer-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    margin-top: 15px;
}

.quiz-submit-btn {
    padding: 12px 30px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    margin-top: 15px;
}

.quiz-submit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.quiz-result {
    color: white;
    font-size: 20px;
    margin-top: 15px;
    font-weight: bold;
}

/* Эффекты для видео на страницах опытов */
video {
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

video:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(144, 238, 144, 0.4), 0 0 30px rgba(144, 238, 144, 0.2);
}

/* Пульсирующая рамка для видео */

/* Эффект для важных определений */
#teoropred {
    position: relative;
    display: inline-block;
}







/* Эффект мерцания для звёзд рейтинга */

/* Эффект для полей ввода в задачах */
input[type="text"]:focus {
    box-shadow: 0 0 20px rgba(144, 238, 144, 0.5);
}



/* ============================================
   АДАПТИВНЫЙ ДИЗАЙН ДЛЯ ВСЕХ УСТРОЙСТВ
   ============================================ */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    #teortable {
        width: 95%;
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    /* Боковое меню остается на планшетах */
    #sidebar, #sidebart {
        width: 200px;
    }
    
    .hero-sectiont, .hero-sectionteor, .hero-sectiontzada {
        margin-left: 220px;
        padding: 30px 15px;
    }
    
    #popular {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    #pp {
        width: 350px;
        height: 250px;
    }
    
    .feature-item {
        width: 250px;
    }
    
    #features {
        gap: 20px;
    }
}

/* Планшеты вертикально и большие телефоны (481px - 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .navbar {
        height: 70px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    /* Боковое меню остается, но уменьшается */
    #sidebar, #sidebart {
        width: 180px;
    }
    
    .hero-sectiont, .hero-sectionteor, .hero-sectiontzada {
        margin-left: 200px;
        padding: 30px 15px;
    }
    
    #teortable {
        width: 95%;
        padding: 25px 15px;
    }
    
    #glavzagolovok, #glavzagol {
        font-size: 28px;
    }
    
    #teorzagolovok {
        font-size: 20px;
    }
    
    #teortext {
        font-size: 16px;
    }
    
    /* Популярные разделы */
    #popular {
        flex-direction: column;
        align-items: center;
    }
    
    #pp {
        width: 90%;
        max-width: 400px;
        height: 220px;
    }
    
    /* Преимущества */
    #features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 90%;
        max-width: 400px;
    }
    
    /* Кнопки действий */
    #action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .custom-btn {
        width: 90%;
        max-width: 300px;
        padding: 15px 30px;
        font-size: 16px;
    }
    
    /* Викторина */
    .quiz-buttons {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .quiz-topic-btn {
        font-size: 16px;
        padding: 18px 25px;
    }
    
    .quiz-main::before, .quiz-main::after {
        font-size: 100px;
    }
    
    /* Задачи */
    input[type="text"] {
        font-size: 16px;
        padding: 12px;
    }
    
    button {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    /* Видео */
    video {
        height: auto !important;
    }
    
    /* Футер */
    #podvalnavbar {
        flex-direction: column;
        height: auto;
        padding: 20px;
        text-align: center;
    }
    
    #footer-left, #footer-right {
        padding: 15px;
        text-align: center;
    }
    
    .footer-item {
        font-size: 13px;
    }
}

/* Телефоны (320px - 480px) - СКРЫВАЕМ БОКОВОЕ МЕНЮ */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .navbar {
        height: 60px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    /* СКРЫВАЕМ боковое меню на телефонах */
    #sidebar, #sidebart {
        display: none;
    }
    
    /* Убираем отступ слева, центрируем контент */
    .hero-section, .hero-sectiont, .hero-sectionteor, .hero-sectiontzada, .hero-sectionopit {
        margin-left: 0;
        padding: 20px 10px;
    }
    
    #teortable {
        width: 98%;
        padding: 20px 12px;
        border-radius: 15px;
    }
    
    #glavzagolovok, #glavzagol {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    #popularzagolovok {
        font-size: 24px;
    }
    
    #teorzagolovok {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    #teortext {
        font-size: 15px;
        line-height: 1.6;
    }
    
    #textnaglav {
        font-size: 14px;
    }
    
    /* Популярные разделы */
    #pp {
        width: 95%;
        height: 200px;
        padding: 25px;
    }
    
    .pp-title {
        font-size: 18px;
    }
    
    /* Преимущества */
    .feature-item {
        width: 95%;
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    .feature-item h3 {
        font-size: 18px;
    }
    
    .feature-item p {
        font-size: 14px;
    }
    
    /* Кнопки */
    .custom-btn {
        width: 95%;
        padding: 14px 25px;
        font-size: 15px;
    }
    
    .glass-btn {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    /* Викторина */
    .quiz-topic-btn {
        font-size: 15px;
        padding: 15px 20px;
    }
    
    .quiz-main::before, .quiz-main::after {
        font-size: 80px;
    }
    
    .quiz-question-text {
        font-size: 16px;
    }
    
    .quiz-answer-option {
        font-size: 15px;
        padding: 10px 15px;
    }
    
    .quiz-answer-input {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    /* Задачи */
    input[type="text"] {
        font-size: 15px;
        padding: 10px;
        width: 100%;
    }
    
    button {
        font-size: 15px;
        padding: 10px 20px;
    }
    
    /* Изображения */
    #teorphoto {
        width: 150px;
        height: 200px;
    }
    
    figure.effect-text-three {
        width: 100%;
        margin: 10px 0;
    }
    
    /* Таблицы */
    #measurementtable {
        font-size: 13px;
    }
    
    #measurementtable th, #measurementtable td {
        padding: 8px 10px;
    }
    
    /* Футер */
    #podvalnavbar {
        height: auto;
        padding: 15px;
        margin-top: 40px;
    }
    
    .footer-item {
        font-size: 12px;
        margin: 5px 0;
    }
    
    /* Фоновые круги - уменьшаем на телефонах */
    .bg-circle {
        width: 250px;
        height: 250px;
    }
    
    .bg-circle-2 {
        width: 300px;
        height: 300px;
    }
    
    /* Подсказки */
    .tooltiped .tooltip .tooltip-content {
        min-width: 200px;
        max-width: 280px;
        font-size: 12px;
        padding: 10px 12px;
    }
    
    /* Опыты */
    .tabls {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
        font-size: 14px;
    }
    
    /* Навигация между главами */
    #navcontainer {
        flex-direction: column;
        gap: 10px;
    }
    
    #navleft, #navcenter, #navright {
        text-align: center;
    }
}

/* Очень маленькие телефоны (до 320px) */
@media (max-width: 320px) {
    .navbar {
        height: 55px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    #glavzagolovok, #glavzagol {
        font-size: 20px;
    }
    
    #teorzagolovok {
        font-size: 16px;
    }
    
    #teortext {
        font-size: 14px;
    }
    
    .quiz-topic-btn {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .custom-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Большие экраны (1920px и больше) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    #teortable {
        max-width: 1800px;
    }
    
    #glavzagolovok {
        font-size: 52px;
    }
    
    #popularzagolovok {
        font-size: 38px;
    }
    
    #pp {
        width: 500px;
        height: 350px;
    }
    
    .feature-item {
        width: 350px;
        padding: 40px;
    }
}

/* Ландшафтная ориентация на телефонах */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        height: 50px;
    }
    
    .hero-section, .hero-sectiont {
        padding: 20px 10px;
    }
    
    #glavzagolovok, #glavzagol {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .quiz-main {
        min-height: 50vh;
    }
    
    #podvalnavbar {
        margin-top: 30px;
    }
}

/* Исправление для iOS Safari */
@supports (-webkit-touch-callout: none) {
    input[type="text"] {
        font-size: 16px !important;
    }
}
