:root {
--primary-color: #E63946;
--secondary-color: #F1FAEE;
--accent-color: #A8DADC;
--dark-color: #1D3557;
--text-dark: #2B2D42;
--text-light: #6c757d;
--white: #FFFFFF;
--light-color: #F8F9FA;
--success: #28a745;
--danger: #E63946;
--border-radius: 12px;
--box-shadow: 0 4px 20px rgba(0,0,0,0.1);
--transition: all 0.3s ease;
}

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

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-dark);
background: var(--white);
}

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

.main-header {
background: var(--white);
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}

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

.logo-section {
display: flex;
align-items: center;
gap: 15px;
}

.logo-img {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
}

.site-title {
font-size: 1.5rem;
color: var(--dark-color);
font-weight: 700;
}

.primary-nav ul {
display: flex;
list-style: none;
gap: 30px;
}

.nav-link {
text-decoration: none;
color: var(--text-dark);
font-weight: 600;
transition: var(--transition);
padding: 8px 0;
position: relative;
}

.nav-link:hover,
.nav-link.active {
color: var(--primary-color);
}

.nav-link.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 3px;
background: var(--primary-color);
}

.hero-banner {
background: linear-gradient(135deg, rgba(29, 53, 87, 0.95), rgba(230, 57, 70, 0.95)), url('images/1.jpg') center/cover;
padding: 120px 0;
text-align: center;
color: var(--white);
}

.hero-title {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 20px;
animation: fadeInDown 1s;
}

.hero-subtitle {
font-size: 1.5rem;
margin-bottom: 40px;
opacity: 0.95;
animation: fadeInUp 1s;
}

.hero-cta {
display: flex;
gap: 20px;
justify-content: center;
animation: fadeIn 1.5s;
}

.btn-primary,
.btn-secondary {
padding: 15px 35px;
border-radius: 30px;
text-decoration: none;
font-weight: 600;
transition: var(--transition);
display: inline-block;
}

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

.btn-primary:hover {
background: #d62839;
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
background: var(--white);
color: var(--primary-color);
border: 2px solid var(--white);
}

.btn-secondary:hover {
background: transparent;
color: var(--white);
transform: translateY(-3px);
}

.stats-section {
padding: 80px 0;
background: var(--light-color);
}

.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
}

.stat-card {
text-align: center;
padding: 35px;
background: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
transition: var(--transition);
}

.stat-card:hover {
transform: translateY(-8px);
box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-icon {
font-size: 3.5rem;
margin-bottom: 15px;
}

.stat-number {
font-size: 2.5rem;
color: var(--primary-color);
font-weight: 800;
margin-bottom: 10px;
}

.stat-label {
color: var(--text-light);
font-size: 1rem;
}

.intro-section {
padding: 100px 0;
}

.intro-content {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 60px;
align-items: center;
}

.intro-text h2 {
font-size: 2.5rem;
color: var(--dark-color);
margin-bottom: 25px;
font-weight: 700;
}

.intro-text p {
color: var(--text-light);
margin-bottom: 20px;
line-height: 1.8;
font-size: 1.05rem;
}

.feature-list {
list-style: none;
margin-top: 30px;
}

.feature-list li {
padding: 12px 0 12px 35px;
position: relative;
color: var(--text-dark);
font-weight: 500;
}

.feature-list li::before {
content: '✓';
position: absolute;
left: 0;
color: var(--primary-color);
font-weight: bold;
font-size: 1.3rem;
}

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

.featured-posts {
padding: 100px 0;
background: var(--light-color);
}

.section-heading {
text-align: center;
font-size: 2.5rem;
color: var(--dark-color);
margin-bottom: 60px;
font-weight: 700;
}

.posts-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 35px;
}

.post-card {
background: var(--white);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--box-shadow);
transition: var(--transition);
}

.post-card:hover {
transform: translateY(-10px);
box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.post-image {
overflow: hidden;
height: 220px;
}

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

.post-card:hover .post-image img {
transform: scale(1.1);
}

.post-content {
padding: 30px;
}

.post-title {
font-size: 1.4rem;
color: var(--dark-color);
margin-bottom: 15px;
line-height: 1.4;
}

.post-excerpt {
color: var(--text-light);
margin-bottom: 20px;
line-height: 1.7;
}

.read-more {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
transition: var(--transition);
}

.read-more:hover {
color: var(--dark-color);
}

.calculator-section {
padding: 100px 0;
}

.calculator-intro {
text-align: center;
color: var(--text-light);
font-size: 1.2rem;
margin-bottom: 50px;
margin-top: -30px;
}

.calculator-wrapper {
max-width: 800px;
margin: 0 auto;
background: var(--white);
padding: 50px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
}

.calculator-form {
display: flex;
flex-direction: column;
gap: 25px;
}

.calc-question {
display: flex;
flex-direction: column;
gap: 10px;
}

.calc-label {
font-weight: 600;
color: var(--dark-color);
font-size: 1.05rem;
}

.calc-input {
padding: 12px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 1rem;
transition: var(--transition);
}

.calc-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.calc-submit-btn {
background: var(--primary-color);
color: var(--white);
padding: 15px;
border: none;
border-radius: 8px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
margin-top: 10px;
}

.calc-submit-btn:hover {
background: #d62839;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.calc-result {
margin-top: 40px;
padding: 40px;
background: var(--light-color);
border-radius: var(--border-radius);
text-align: center;
}

.result-title {
font-size: 1.8rem;
color: var(--dark-color);
margin-bottom: 25px;
}

.result-score {
font-size: 4rem;
font-weight: 800;
margin-bottom: 20px;
}

.score-value {
color: var(--primary-color);
}

.score-max {
font-size: 2.5rem;
color: var(--text-light);
}

.result-message {
font-size: 1.3rem;
margin-bottom: 25px;
padding: 20px;
border-radius: 8px;
font-weight: 600;
}

.result-recommendations {
text-align: left;
background: var(--white);
padding: 25px;
border-radius: 8px;
margin-top: 20px;
}

.result-recommendations ul {
margin-left: 20px;
}

.result-recommendations li {
margin-bottom: 10px;
line-height: 1.7;
}

.safety-tips {
padding: 100px 0;
background: var(--light-color);
}

.tips-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}

.tip-card {
background: var(--white);
padding: 35px;
border-radius: var(--border-radius);
text-align: center;
box-shadow: var(--box-shadow);
transition: var(--transition);
}

.tip-card:hover {
transform: translateY(-8px);
box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.tip-icon {
font-size: 3.5rem;
margin-bottom: 20px;
display: block;
}

.tip-card h3 {
font-size: 1.4rem;
color: var(--dark-color);
margin-bottom: 15px;
}

.tip-card p {
color: var(--text-light);
line-height: 1.7;
}

.cta-section {
padding: 100px 0;
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.cta-content {
text-align: center;
color: var(--white);
}

.cta-content h2 {
font-size: 2.8rem;
margin-bottom: 20px;
}

.cta-content p {
font-size: 1.3rem;
margin-bottom: 35px;
opacity: 0.95;
}

.main-footer {
background: var(--dark-color);
color: var(--white);
padding: 60px 0 20px;
}

.footer-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 40px;
margin-bottom: 40px;
}

.footer-col h4 {
font-size: 1.3rem;
margin-bottom: 20px;
}

.footer-col p {
opacity: 0.9;
line-height: 1.7;
margin-bottom: 20px;
}

.footer-links {
list-style: none;
}

.footer-links li {
margin-bottom: 12px;
}

.footer-links a {
color: var(--white);
text-decoration: none;
opacity: 0.85;
transition: var(--transition);
}

.footer-links a:hover {
opacity: 1;
color: var(--accent-color);
}

.footer-contact {
list-style: none;
}

.footer-contact li {
margin-bottom: 15px;
opacity: 0.9;
line-height: 1.6;
}

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

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

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

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

.cookie-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--dark-color);
color: var(--white);
padding: 25px;
z-index: 9999;
box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-content {
max-width: 1200px;
margin: 0 auto;
}

.cookie-content h3 {
margin-bottom: 15px;
font-size: 1.3rem;
}

.cookie-content p {
margin-bottom: 20px;
opacity: 0.95;
line-height: 1.6;
}

.cookie-content a {
color: var(--accent-color);
text-decoration: underline;
}

.cookie-buttons {
display: flex;
gap: 15px;
flex-wrap: wrap;
}

.cookie-btn {
padding: 12px 25px;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}

.cookie-btn.accept {
background: var(--primary-color);
color: var(--white);
}

.cookie-btn.customize {
background: var(--accent-color);
color: var(--dark-color);
}

.cookie-btn.reject {
background: transparent;
color: var(--white);
border: 2px solid var(--white);
}

.cookie-btn:hover {
transform: translateY(-2px);
opacity: 0.9;
}

.cookie-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
}

.cookie-modal-content {
background: var(--white);
padding: 40px;
border-radius: var(--border-radius);
max-width: 500px;
width: 90%;
}

.cookie-modal-content h3 {
color: var(--dark-color);
margin-bottom: 25px;
font-size: 1.5rem;
}

.cookie-options {
display: flex;
flex-direction: column;
gap: 15px;
margin-bottom: 25px;
}

.cookie-option {
display: flex;
align-items: center;
gap: 10px;
padding: 12px;
background: var(--light-color);
border-radius: 8px;
cursor: pointer;
}

.cookie-option input {
width: 20px;
height: 20px;
cursor: pointer;
}

.cookie-modal-buttons {
display: flex;
gap: 15px;
justify-content: flex-end;
}

@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

@media (max-width: 992px) {
.main-header .container-fluid {
flex-direction: column;
gap: 20px;
}

.primary-nav ul {
flex-direction: column;
gap: 15px;
text-align: center;
}

.hero-title {
font-size: 2.5rem;
}

.hero-subtitle {
font-size: 1.2rem;
}

.stats-grid,
.posts-grid,
.tips-grid,
.footer-grid {
grid-template-columns: repeat(2, 1fr);
}

.intro-content {
grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
.stats-grid,
.posts-grid,
.tips-grid,
.footer-grid {
grid-template-columns: 1fr;
}

.hero-cta {
flex-direction: column;
align-items: center;
}

.calculator-wrapper {
padding: 30px 20px;
}

.cookie-buttons {
flex-direction: column;
}
}