/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('../images/fonstola.ru_267806.jpg') no-repeat center center fixed;
    background-size: cover;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 24px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #3498db;
}

.language-switcher {
    display: flex;
    gap: 5px;
}

.share-btn {
    background: #3498db;
    border: 2px solid #3498db;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin-right: 15px;
}

.share-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: scale(1.1);
}

.share-btn svg {
    display: block;
}

.lang-btn {
    padding: 8px 15px;
    border: 2px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    background-color: #f0f0f0;
}

.lang-btn.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-decorative-words {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-decorative-words .word {
    position: absolute;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.4;
}

.word-1 {
    top: 15%;
    left: 10%;
    transform: rotate(-15deg);
    font-size: 42px;
    color: #FFD700;
}

.word-2 {
    top: 20%;
    right: 12%;
    transform: rotate(12deg);
    font-size: 38px;
    color: #87CEEB;
}

.word-3 {
    top: 45%;
    left: 5%;
    transform: rotate(-8deg);
    font-size: 36px;
    color: #98FB98;
}

.word-4 {
    top: 50%;
    right: 8%;
    transform: rotate(18deg);
    font-size: 40px;
    color: #FFB6C1;
}

.word-5 {
    top: 70%;
    left: 15%;
    transform: rotate(10deg);
    font-size: 34px;
    color: #DDA0DD;
}

.word-6 {
    top: 75%;
    right: 18%;
    transform: rotate(-12deg);
    font-size: 36px;
    color: #F0E68C;
}

.word-7 {
    top: 85%;
    left: 35%;
    transform: rotate(5deg);
    font-size: 32px;
    color: #ADD8E6;
}

.word-8 {
    top: 10%;
    left: 45%;
    transform: rotate(-10deg);
    font-size: 38px;
    color: #FFE4B5;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    padding: 15px 40px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.services-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4));
    color: #fff;
}

.service-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Modal for service details */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 900px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.5s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.modal.show .modal-content img {
    transform: scale(1);
}

.modal-text {
    padding: 30px;
}

.modal-text h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.modal-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    background: rgba(255, 0, 0, 0.7);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(155, 89, 182, 0.15) 100%);
}

.about-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    font-weight: 500;
}

/* Page Content */
.page-content {
    padding: 80px 0;
    min-height: 60vh;
    background-color: rgba(255, 255, 255, 0.2);
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
    text-align: center;
}

/* Services List */
.services-list {
    display: grid;
    gap: 30px;
}

.service-detail {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-detail h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #3498db;
}

.service-detail p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    font-weight: 500;
}

/* Pricing Table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.price-card {
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.price-card .price-description {
    font-size: 16px;
    color: #777;
    margin-bottom: 15px;
    min-height: 40px;
}

.price-card .price {
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 30px;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
    font-weight: 500;
}

/* Contact Form Section on Homepage */
.contact-form-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-form-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.contact-info-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.contact-detail {
    margin-bottom: 30px;
}

.contact-detail h3 {
    font-size: 20px;
    color: #3498db;
    margin-bottom: 10px;
}

.contact-detail p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.contact-link {
    font-size: 22px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
}

.contact-link:hover {
    color: #3498db;
}

.contact-form-section .contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 18px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #3498db;
}

.footer-info p {
    margin: 8px 0;
    font-size: 16px;
}

.footer-copy {
    text-align: right;
}

.footer-copy p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        position: relative;
    }

    .nav {
        flex-direction: column;
        gap: 20px;
    }

    .menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .menu a {
        font-size: 20px;
    }

    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-decorative-words .word {
        font-size: 20px !important;
        opacity: 0.25;
    }

    .word-1, .word-2, .word-4, .word-6, .word-8 {
        font-size: 24px !important;
    }

    .services-section h2,
    .about-section h2,
    .contact-form-section h2,
    .page-content h1 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 250px;
    }

    .about-content p {
        font-size: 16px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .pricing-table {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-copy {
        text-align: center;
    }

    .btn-primary {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }

    .menu a {
        font-size: 18px;
    }

    .hero {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-decorative-words .word {
        font-size: 16px !important;
    }

    .services-section h2,
    .about-section h2,
    .contact-form-section h2,
    .page-content h1 {
        font-size: 24px;
    }

    .service-overlay h3 {
        font-size: 18px;
    }

    .footer-info h3 {
        font-size: 20px;
    }

    .footer-info p {
        font-size: 14px;
    }
}
