* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
 } 
 :root {
     --primary: #5A7863;
     --primary-light: #90AB8B;
     --primary-dark: #3B4953;
     --secondary: #EBF4DD;
 }
html, body {
    height: 100%;
}
 body {
     display: flex;
     flex-direction: column;
     background-color: var(--secondary);
     color: var(--primary-dark);
 }

 .header {
     background-color: var(--primary);
     padding: 12px 0;
     flex-shrink: 0;
     height: 55px;
     position: relative;
 }


 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 10px;
     width: 100%;
 }
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header a {
    text-decoration: none;
}
.header .title {
    color: var(--secondary);
    font-size: 22px;
    font-weight: bold;
}

.menu-btn {
    background:none;
    border: none;
    color: var(--secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    transition: 0.4s;
    display: block;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}
.menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}
nav {
    display: none;
    position: absolute;
    right: 0;
    left: 0;
    top: 55px;
    flex-direction: column;
    padding: 15px;
    background-color: var(--primary);
    z-index: 1000;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0, 0.1);
    transition: 0.6s;
}
.nav.active {
    display: flex;
}

 nav a {
     color: var(--secondary);
     padding: 10px 0;
     text-align: center;
     transition: color 0.3s;
 }

 nav a:hover {
     color: var(--primary-dark)
 }
 .main-content {
     flex: 1;
     padding: 20px 0;
     line-height: 1.7;
 }
 
.main-content .container {
    min-height: 200px;
}
.main-content h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    font-size: 26px;
    margin: 10px 0;
}
.main-content h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    font-weight: 700;
    padding-bottom: 5px;
    margin: 10px 0;
}
.main-content h3 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    margin: 10px 0;
}
.post p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
}
.post ul,
.post ol {
    margin-bottom: 10px;
    padding-left: 24px;
}
.post h2, .post h3 {
    margin-top: 15px;
}
.post li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
}
.post img {
    max-width: 100%;
    height: auto;
    border-radius: 1px;
    margin 14px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    display: block;
}
.post hr {
    border: none;
    border-top: 2px solid var(--primary-dark);
    margin: 30px 0;
}
.post strong,
.post b {
    font-weight: 700;
}
.post em,
.post i {
    font-style: italic;
}
.faq-item {
    margin-bottom: 12px;
    margin-top: 20px;
    border: 1px solid var(--primary-dark);
    border-radius: 5px;
    overflow: hidden;
}
.faq-question {
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-question:hover {
    background: var(--primary-light);
}
.faq-question h4 {
    margin:0;
    font-size: 1rem;
}
.icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.faq-item.active .icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height:0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-answer p {
    padding: 12px;
    line-height: 1.6;
}
 .footer {
     background-color: var(--primary-dark);
     color: var(--secondary);
     padding: 15px 0;
     text-align: center;
     flex-shrink: 0;
     margin-top: auto;
     font-size: 14px;
 }

 .calculator {
     display: flex;
     flex-direction: column;
     gap: 24px;
     margin: 24px 0;
 }
 
.calc-input, .calc-result {
    background-color: var(--primary-light);
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}
.calc-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-dark);
}

.result-item {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    border-left: 4px solid #4a6b5a;
    background-color: rgba(255,255,255, 0.95);
}
 @media (min-width: 768px) {
          .container {
         padding: 0 20px;
     }
         
     .header .title {
         font-size: 24px;
     }
    
    .menu-btn {
        display: none;
    }
    .nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        gap: 30px;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    .nav a {
        font-size: 16px;
        padding: 0;
        text-align: left;
    }
    .nav a:hover {
        background-color: transparent;
    }
 }
 @media (min-width: 1024px) {
     .container {
         padding: 0 30px;
     }
     .header {
         height: 60px;
     }
     .header .title {
         font-size: 28px;
     }
     .nav a {
         font-size: 18px;
     }
}
