:root {
    --primary-color: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --light-text: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f8f0;
    color: var(--text-color);
    line-height: 1.6;
    box-sizing: border-box;
}


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

/* Header Styles */
header {
    /*background-color: var(--primary-color);*/
    background-color: #fff;
    color: var(--text-color);
    padding: 15px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 150px;
    width: auto;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.2rem;
    /*font-weight: bold;*/
}

.logo-text p{font-size: 24px;}

/*.contact-info {*/
/*    text-align: right;*/
/*}*/

.contact-info p {
    margin: 5px 0;
}

.contact-info a {color: inherit;}

/* Navigation */
nav {
    background-color: var(--primary-dark);
    padding: 10px 0;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #a5d6a7;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/medicinskoe_oborudovanie.jpg') no-repeat center center/cover;
    /*background: url('../images/medicinskoe_oborudovanie.jpg') center/cover no-repeat;*/
    color: var(--light-text);
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

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

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

.section-title {
    font-size: 33px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.about {
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    width: 30%;
    padding-right: 30px;
}

.about-text p{margin-bottom: 12px;}
.about-text ul{padding-left: 0px;}
.about-text li{display: inline;padding-left: 0;}

.about-image {
    flex: 1;
    width: 70%;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
}

/* Services */
.services-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
    grid-template-columns: repeat(auto-fit, minmax(1000px, 1fr));
    gap: 30px;
}

.service-card {padding: 12px;
    background-color: var(--light-text);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    /*transform: translateY(-5px);*/
}

.service-image {
    min-height: 350px;
    max-height: 580px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.service-card:hover .service-image{
    /*height: auto;*/
    max-height: none;
}

.service-image img {
    /*width: 100%;*/
    /*height: 100%;*/
    width: 24%;height: auto;border: 5px solid #fff;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    /*transform: scale(1.02);*/
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    font-size: 27px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* Equipment Categories */
.categories {
    background-color: var(--secondary-color);
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    background-color: var(--light-text);
    margin: 0 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(25% - 15px), 1fr));
    gap: 20px;
}

.equipment-item {
    background-color: var(--light-text);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.equipment-image {
    height: 250px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.equipment-name {
    padding: 10px;
    text-align: center;
    font-weight: bold;
}
.category-comment{padding-left: 24px;padding-top: 24px;}

/* Why Us */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 20px;
}

.why-us-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Contact */
.contact {
    background-color: var(--secondary-color);
}
.contact .container{position: relative;}
.print{position: absolute;right: 0;bottom: -25px;}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info, .contact-form {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 10px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--light-text);
    padding: 40px 0 20px;
}

footer a{color: inherit;}
footer a:hover{text-decoration: none}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-light);
}

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

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

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #a5d6a7;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    .about-text{width: 100%;}
    .about-image{width: 100%;}
    .container{width: 100%;box-sizing: border-box}

    .service-content{width: 100%;box-sizing: border-box}
    .service-card{width: 100%;padding: 0;box-sizing: border-box;margin-bottom: 24px;}
    .service-image{width: 100%;}
    .services-grid{overflow: hidden;display: block}
    .logo {
        justify-content: center;
        margin-bottom: 15px;
    }
    .equipment-grid{grid-template-columns: repeat(auto-fill, minmax(calc(50% - 30px), 1fr))}
    .service-image img{width: calc(50% - 10px);}

    .contact-info {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
}