/* Стили для общих компонентов сайта */

/* Шапка сайта */
.main-header {
    background-color: white;
    box-shadow: 0 2px 15px var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    /*background: linear-gradient(135deg, var(--green-light), var(--green-medium));*/
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-img img {
    width: 100%;
}
.logo-smalltext {
    float: left;
    position: absolute;
    margin: 35px 0px 0px 70px;
    font-size: 10px;
}

.logo-img span {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}
@media (max-width: 800px) {
	.logo-img {
    width: 30px;
    height: 30px;
	margin-right: 3px;
}
	.logo-smalltext {
		float: left;
		position: absolute;
		margin: 40px 0px 0px 0px;
		font-size: 8px;
		margin-bottom: 5px;
}
	.phone {
		font-size: 14px!important;
}
	.phone-time {
		margin-top: -5px!important;
}
	.address {
		font-size: 11px!important;
}
	.logo {
		font-size: 16px!important;
		line-height: 1;
}

}

.nav-menu {
    /*display: flex;*/
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--green-medium);
}

.nav-link.active {
    color: var(--green-dark);
    font-weight: 600;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--green-light);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green-dark);
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.phone:hover {
    color: var(--earth-brown);
}

.address {
    font-size: 0.9rem;
    color: var(--text-medium);
}
.phone-time {
    font-size: 10px;
    color: var(--green-dark);
	margin-top: -10px;
}

/*.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--green-dark);
    cursor: pointer;
}*/

/* Футер сайта */
.main-footer {
    background-color: var(--green-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--green-light);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Формы */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-medium);
    border: 1px solid var(--primary-green);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    margin-bottom: 10px;
    color: var(--green-medium);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--green-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
    background-color: var(--primary-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(162, 197, 35, 0.1);
    background-color: white;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input {
    margin-right: 8px;
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

.form-notice {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 15px;
}

/* Адаптивность компонентов */
@media (max-width: 992px) {
    /*.nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }*/
    
    .header-container {
        flex-direction: row;
    }
    
    .contact-info {
        align-items: flex-end;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: initial;
        gap: 15px;
        /*text-align: center;*/
		height: 70px;
    }
    
    .contact-info {
        text-align: left;
        display: block;
		left: -12px;
        position: relative;
    }
}