/* Плавный переход для смены темы */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

header, section, footer {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Основные стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
}

.dark-theme {
    background-color: #1a1a1a;
    color: #fff;
}

header {
    background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.dark-theme header {
    background-color: #2a2a2a;
    border-bottom: 1px solid #444;
}

.logo {
    width: 100px;
    height: auto;
}

header h1 {
    font-size: 2.5em;
    margin: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #6200ea;
    font-weight: bold;
    font-size: 1.2em;
}

nav ul li a:hover {
    color: #3700b3;
}

.dark-theme nav ul li a {
    color: #bb86fc;
}

.dark-theme nav ul li a:hover {
    color: #3700b3;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #6200ea;
}

.dark-theme .theme-toggle {
    color: #bb86fc;
}

section {
    padding: 50px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

section p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.dark-theme footer {
    background-color: #2a2a2a;
    border-top: 1px solid #444;
}

/* Стили для баннера */
.banner-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Стили для секции "О нас" */
#about {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.dark-theme #about {
    background-color: #2a2a2a;
}

#about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Стили для тарифов */
.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.pricing-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
    opacity: 1;
}

.dark-theme .pricing-card {
    background-color: #333;
    color: #fff;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.pricing-card p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.pricing-card ul li {
    font-size: 1em;
    margin-bottom: 10px;
}

.order-btn {
    background-color: #6200ea;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease;
}

.order-btn:hover {
    background-color: #3700b3;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.dark-theme .modal-content {
    background-color: #333;
    color: #fff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 10px;
}

.modal-content select,
.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.dark-theme .modal-content select,
.dark-theme .modal-content input {
    background-color: #444;
    border-color: #555;
    color: #fff;
}

.modal-content button {
    background-color: #6200ea;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #3700b3;
}

/* Стили для секции "Примеры работ" */
#portfolio {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.dark-theme #portfolio {
    background-color: #2a2a2a;
}

#portfolio h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
    opacity: 1;
}

.dark-theme .portfolio-item {
    background-color: #333;
    color: #fff;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.portfolio-item p {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.portfolio-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Стили для формы обратной связи */
.contact-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dark-theme .contact-form {
    background-color: #333;
}

.contact-form h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.dark-theme .contact-form input,
.dark-theme .contact-form textarea {
    background-color: #444;
    border-color: #555;
    color: #fff;
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.submit-btn {
    background-color: #6200ea;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #3700b3;
}

.form-success {
    text-align: center;
    color: #28a745;
    font-size: 1.2em;
    opacity: 0;
    transform: translateY(20px);
}

/* Плавающее окошко с контактами */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.contact-toggle {
    background-color: #6200ea;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.contact-toggle:hover {
    background-color: #3700b3;
}

.contact-toggle i {
    font-size: 1.2em;
}

.contact-popup {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    text-align: left;
}

.dark-theme .contact-popup {
    background-color: #333;
    color: #fff;
}

.contact-popup h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.contact-popup p {
    font-size: 1em;
    margin-bottom: 10px;
}

.contact-popup a {
    color: #6200ea;
    text-decoration: none;
}

.dark-theme .contact-popup a {
    color: #bb86fc;
}

.contact-popup a:hover {
    text-decoration: underline;
}

.close-popup {
    background-color: #6200ea;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    width: 100%;
}

.close-popup:hover {
    background-color: #3700b3;
}

/* Плавающий значок Telegram */
.telegram-icon {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #0088cc;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.telegram-icon:hover {
    background-color: #006699;
}