:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 8px;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.1);
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(to right, #fff, #ecf0f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}


/* меню */
.menu-btn {
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 1100;
    position: relative;
    transition: transform 0.3s ease;
}

.menu-btn:hover {
    transform: scale(1.1);
}

.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: var(--dark-color);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.3s;
    will-change: transform;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.side-menu.show {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    backdrop-filter: blur(3px);
}

.side-menu.show + .menu-overlay {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 5px;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.menu-links {
    flex-grow: 1;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(20px);
    will-change: transform, opacity;
}

.menu-link i {
    width: 24px;
    text-align: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.menu-link:hover, .menu-link.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.menu-link.active {
    background: var(--primary-color);
}

.side-menu.show .menu-link {
    opacity: 1;
    transform: translateX(0);
}

.side-menu.show .menu-link:nth-child(1) { transition-delay: 0.1s; }
.side-menu.show .menu-link:nth-child(2) { transition-delay: 0.15s; }
.side-menu.show .menu-link:nth-child(3) { transition-delay: 0.2s; }
.side-menu.show .menu-link:nth-child(4) { transition-delay: 0.25s; }
.side-menu.show .menu-link:nth-child(5) { transition-delay: 0.3s; }
.side-menu.show .menu-link:nth-child(6) { transition-delay: 0.35s; }

.menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--primary-color);
}

.phone-link i {
    margin-right: 10px;
}

.call-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 5px;
}

.messenger-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.messenger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.messenger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.messenger-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}
.messenger-btn img {
    margin-right: 8px;
    font-size: 1.2rem;
}

.messenger-btn.whatsapp {
    background-color: #25d366;
}

.messenger-btn.whatsapp:hover {
    filter: brightness(90%); 
}

.messenger-btn.telegram {
    background-color: #0088cc;
}

.messenger-btn.telegram:hover {
    filter: brightness(90%); 
}

.messenger-btn.MAX{
    background-color: #b746fa;
}

.messenger-btn.MAX:hover {
    filter: brightness(90%); 
}

.messenger-btn.IMO{
    background-color: #344abb;
}

.messenger-btn.IMO:hover {
    filter: brightness(90%); 
}

/* основное содержимое */
main {
    flex: 1;
    margin-top: 80px;
}

a:focus, button:focus, input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/hero-bg.webp') no-repeat center center/cover;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(1px);
}

/* services section */
.services-section {
    background-color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: var(--text-light);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(15deg) scale(1.1);
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.service-list li {
    padding: 10px 0;
    position: relative;
    padding-left: 30px;
    border-bottom: 1px dashed #eee;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    top: 10px;
}

.service-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.service-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* advantages section */
.advantages-section {
    background-color: #f5f7fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantage-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.advantage-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-card:hover::after {
    transform: scaleX(1);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.advantage-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.advantage-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* gallery section */
.gallery-section {
    background-color: #f5f7fa;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
    will-change: transform;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.gallery-overlay p {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: 0 15px;
}

.gallery-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    margin: 2rem auto 0;
    padding: .75rem 2rem;
    background: var(--primary-color);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 99px;
    box-shadow: 0 4px 14px rgba(52, 152, 219, .35);
    transition: var(--transition);
    /* центрируем в grid-контейнере галереи */
    grid-column: 1 / -1;
    justify-self: center;
}
.gallery-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, .45);
}


/* about section */
.about-section {
    background-color: #f5f7fa;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 20px;
    align-items: center;
}

.about-text {
    text-align: left;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.about-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.about-text a:hover {
    text-decoration: underline;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    will-change: transform;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.stat-text {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* contacts section */
.contacts-section {
    background-color: var(--text-light);
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

.contacts-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-card a, .contact-card p {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 5px;
}

.contact-card a:hover {
    color: var(--primary-color);
}

.contacts-map {
    height: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* footer */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 4rem 0 0;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.footer-section p i {
    margin-right: 10px;
    width: 20px;
}

.callback-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    width: 100%;
}

.callback-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
 
.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    text-decoration: none;
}

footer .social-links a {
    color: white;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background-color: #333;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    transform: scale(1.1);
}

footer .social-links a[aria-label="whatsapp"] {
    background-color: #25d366;
}

footer .social-links a[aria-label="telegram"] {
    background-color: #0088cc;
}

footer .social-links a[aria-label="MAX"] {
    background-color: #b746fa;
}

footer .social-links a[aria-label="IMO"] {
    background-color: #344abb;
}


/* back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* success modal */
.success-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

/* loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* error state */
input.error {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2) !important;
}

.error-message {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

input.error + .error-message {
    display: block;
}


/* анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* медиа-запросы */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .contacts-container {
        grid-template-columns: 1fr;
    }

    .contacts-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .contacts-info {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .header-container {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 80vh;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .services-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
    .service-card, .advantage-card, .gallery-item, .stat-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Стили для страницы отзывов */
.reviews-section {
    background-color: #f5f7fa;
    min-height: 60vh;
}

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

/* Добавьте в конец файла style.css */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Дополнительные стили для исправления */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

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

.service-card-link .service-card {
    height: 100%;
    transition: box-shadow 0.3s ease;
}

/* Улучшенные alt для изображений */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Исправление для мобильного меню */
@media (max-width: 768px) {
    .side-menu {
        max-width: 85%;
    }
}

/* Улучшение читаемости цен */
.service-card p:last-of-type {
    margin-top: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Стили для формы обратной связи */
.callback-form-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.callback-form-section input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Стили для карточек отзывов */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
