/* Основные стили */
:root {
    --primary-color: #28a745;
    --secondary-color: #fff;
    --text-color: #333;
    --accent-color: #ff6f61;
    --background-gradient:linear-gradient(118deg, #f0f8ff 0%, #26b14e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-gradient);
    color: var(--text-color);
    line-height: 1.6;
}

/* Хедер */
.header {
   
    background: #28a745;
    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: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
   
    padding: 0.5rem 1rem;

    position: absolute;
    left: 50%;
    transform: translateX(-50%) ;

}

.nav-menu a {
    color: #ffffff;
    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: #ff6f61;
    transform: scale(1.05);
}

.burger {
    display: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Общие стили для секций */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}


/* Геройский блок */
.hero-section {
    padding: 8rem 0;
    position: relative;

    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-content .btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Секция About */
.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.about-item {
 
    padding: 2rem;
    border-radius: 15px;
  
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-item img {
    width: 100%;
    max-height: 500px;
    height: 100%;
    object-fit: cover;
    max-width: 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;
}

/* Секция Skills */
.skills-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-item h3 {
    font-size: 1.2rem;
}

.skill-bar {
    flex: 1;
    margin: 0 1rem;
    background: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar div {
    height: 100%;
    background: var(--primary-color);
    transition: width 1s ease-in-out;
}

.skill-item span {
    font-weight: bold;
}

/* Секция Experience */
.experience-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-item {
    margin-bottom: 2rem;
}

.experience-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Секция Newsletter */
.newsletter-section {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 3rem 2rem;
}

.newsletter-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

/* Секция Services */
.services-section {
    width: 100%;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 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: 4rem;
    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;
    flex-direction: column;
}

.portfolio-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.portfolio-item img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.portfolio-item img:hover {
    transform: scale(1.05);
}

.slider-nav {
    position: absolute;
    top: 50%;
    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: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-color);
}

/* Секция 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;
    max-width: 600px;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-item .author {
    font-weight: bold;
}

/* Секция Contact */
.contact-section {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 5rem 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.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;
    flex: 1;
}

/* Футер */
.footer {
    background: #333;
    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;
    transition: color 0.3s ease;
}

.footer-grid a:hover {
    color: var(--accent-color);
}

.footer-grid h3 {
    margin-bottom: 1rem;
}

.footer-grid .logo img {
    height: 40px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .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;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .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;
}
.about-section {
    display: flex
;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    flex-direction: column;
}
i.fas.fa-bars {
    color: #000;
}
.services-grid ,
.about-section {
    display: flex
;
  
    flex-direction: column;
}
}