/* Основные стили */
:root {
    --primary-color:#197d26;
    --secondary-color: #fff;
    --text-color: #333;
    --accent-color: #ff5252;
    --background-gradient: linear-gradient(45deg, #e0f7fa 0%, #102f2c 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #c9c9c9;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

/* Хедер */
.header {
    background: var(--primary-color);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
}

.nav-menu {
    .nav-menu {
        display: flex
    ;
        align-items: center;
        gap: 1.5rem;
        /* background: rgba(255, 255, 255, 0.2); */
        padding: 0.5rem 1rem;
        /* border-radius: 50px; */
        /* transform: rotate(-5deg); */
        position: relative;
        /* top: -10px; */
    }
}

.nav-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-menu a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.burger {
    display: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Общие стили для секций */
section {

    padding: 7rem 2rem 2rem;
 
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin: 0;
    margin-bottom: 2rem;
    position: relative;
}


/* Геройский блок (слайдер) */
.hero-section {
    padding-top: 6rem;
    position: relative;

}

.hero-slider {
    position: relative;
}

.hero-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 4rem 0rem;
    background-size: cover;
    background-position: center;
    color: var(--secondary-color);
    text-align: center;
}

.hero-slide img {
    min-height: 300px;
    max-height: 300px;
    max-width: 700px;
    width: 100%;
    height: 100%;
    object-fit: cover;
 
    clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
    margin-bottom: 1rem;
}

.hero-slide h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-slide p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-slide .btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slide .btn:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.slider-nav {
    position: absolute;
    top: 50%;
    display: none;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

.slider-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dot.active {
    background: var(--primary-color);
}

/* Секция About */
.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.about-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-item img {
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    height: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.about-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-item h4 {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.about-item p {
    margin-bottom: 1rem;
}

.about-item .btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
}

/* Секция Education & Experience */
.education-experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.education-experience h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.education-experience ul {
    list-style: none;
}

.education-experience li {
    background: var(--secondary-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Секция Skills */
.skills-section {
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.skill-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.skill-bar {
    background: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar div {
    height: 100%;
    background: var(--primary-color);
}

/* Секция Services */
.services-section {
    width: 100%;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Секция Portfolio (слайдер) */
.portfolio-section {
    text-align: center;
}

.portfolio-slider {
    position: relative;
    overflow: hidden;
}

.portfolio-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.portfolio-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0rem;
}

.portfolio-item img {
    width: 100%;
    max-height: 500px;
    height: 100%;
    object-fit: cover;
 
    border-radius: 10px;
}

/* Секция Testimonials */
.testimonials-section {
    text-align: center;
}

.testimonial-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    margin-bottom: 20px;
    max-width: 600px;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-item .author {
    font-weight: bold;
}

.blog-section {
    text-align: center;
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.blog-item {

    padding: 1rem;
    border-radius: 10px;
 
}

.blog-item img {
    width: 100%;
    border-radius: 10px;
    max-height: 350px;
    height: 100%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Секция Contact */
.contact-section {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    display: flex
;
   gap: 10px;
    flex-wrap: wrap;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
    width: 90%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.contact-info {
    margin-top: 2rem;
}

/* Футер */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 2rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-grid a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--accent-color);
}

.footer-grid h3 {
    margin-bottom: 1rem;
}

.footer-grid .logo img {
    height: 50px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-section{
        flex-direction: column;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 1rem;
        transform: translate(0, 0);
    }

    .nav-menu.active {
        display: flex;
    }

    .burger {
        display: block;
        margin-right: 50px;
    }

    .hero-slide h1 {
        font-size: 2rem;
    }

    .hero-slide p {
        font-size: 1rem;
    }

    .education-experience {
        grid-template-columns: 1fr;
    }

    .portfolio-slide {
        grid-template-columns: 1fr;
    }
}

html,body{
    display: flex;
    flex-direction: column;
    height: 100%;
}
a{
    text-decoration: none;
}
.f{
    display: flex;
}
.f-col{
   flex-direction: column;
}
.f-wrap{
    display: flex;
    flex-wrap: wrap;
}
.f-star{
    align-items:flex-start
}
.b.f {
    display: flex
;

    justify-content: space-around;
}
@media screen and (max-width:768px) {
    .f{
       flex-wrap: wrap;
    }
    .map img{
width: 100%;
}
.map p{
width: 100%;
}
.b.f{
    flex-direction: column;
}
.blog-grid ,
.services-grid,
.about-section{
    display: flex;
    flex-direction: column;
}
.services-section {
    width: fit-content;
    text-align: center;
}
.blog-section {
    text-align: center;
    width: fit-content;
}
.service-item {

    width: auto;
 
}
.blog-item img {

    max-height: 250px;

}
}