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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lang-btn:hover {
    background: #f5f5f5;
    border-color: #d5d5d5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-code {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.language-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1a1a1a;
    transition: background 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option .lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-name {
    font-weight: 400;
}

.theme-toggle {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-toggle:hover {
    background: #f5f5f5;
    border-color: #d5d5d5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.theme-toggle i {
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    min-height: 100vh;
    background: #ffffff;
}

.header {
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.photo-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.name {
    font-size: 42px;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.title {
    font-size: 16px;
    color: #666666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.about {
    font-size: 14px;
    color: #666666;
    font-weight: 300;
    line-height: 1.6;
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.services h2 {
    font-size: 14px;
    color: #666666;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    background: #ffffff;
    padding: 35px 25px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #1a1a1a;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}

.service-item:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-item h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.service-item p {
    font-size: 13px;
    color: #666666;
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
    flex: 1;
}

.soon-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    padding: 4px 15px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    transform: rotate(45deg) translate(25%, -50%);
    transform-origin: center;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.footer {
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.contacts {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.contact-link:hover {
    border-bottom-color: #1a1a1a;
    color: #1a1a1a;
}

.contact-icon {
    font-size: 16px;
    opacity: 0.7;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    width: 18px;
    text-align: center;
}

.contact-icon i {
    font-size: 16px;
}

.contact-link:hover .contact-icon {
    opacity: 1;
}

.request-btn {
    cursor: pointer;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    color: #1a1a1a;
    background: #f5f5f5;
}

.modal-title {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    padding-right: 40px;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.form-submit:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-submit:active {
    transform: translateY(0);
}

.privacy-link {
    font-size: 12px;
    color: #666666;
    text-decoration: underline;
    margin-top: -10px;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: #1a1a1a;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #666666;
    cursor: pointer;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox a {
    color: #1a1a1a;
    text-decoration: underline;
}

.form-checkbox a:hover {
    text-decoration: none;
}

.form-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Dark theme */
body.dark-theme {
    background: #0e1118;
    color: #f5f5f5;
}

body.dark-theme .container {
    background: #101522;
}

body.dark-theme .header,
body.dark-theme .footer {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .name {
    color: #ffffff;
}

body.dark-theme .title {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .about {
    color: rgba(255, 255, 255, 0.75);
}

body.dark-theme .services h2 {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-theme .service-item {
    background: #141b2d;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.dark-theme .service-item::before {
    background: #4b7bec;
}

body.dark-theme .service-item h3 {
    color: #ffffff;
}

body.dark-theme .service-item p {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .soon-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

body.dark-theme .contacts {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .contact-link {
    color: #ffffff;
}

body.dark-theme .contact-link:hover {
    border-bottom-color: #ffffff;
    color: #ffffff;
}

body.dark-theme .contact-icon {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

body.dark-theme .contact-link:hover .contact-icon {
    opacity: 1;
    color: #ffffff;
}

body.dark-theme .request-btn {
    color: #ffffff;
}

body.dark-theme .request-btn:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

body.dark-theme .lang-btn,
body.dark-theme .theme-toggle {
    background: #141b2d;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: none;
}

body.dark-theme .lang-btn:hover,
body.dark-theme .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .lang-dropdown {
    background: #141b2d;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-theme .lang-option {
    color: #ffffff;
}

body.dark-theme .lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-theme .modal-content {
    background: #141b2d;
    color: #ffffff;
}

body.dark-theme .modal-title {
    color: #ffffff;
}

body.dark-theme .modal-close {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-theme .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-theme .form-input,
body.dark-theme .form-textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body.dark-theme .form-input::placeholder,
body.dark-theme .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-theme .form-input:focus,
body.dark-theme .form-textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4b7bec;
    box-shadow: 0 0 0 3px rgba(75, 123, 236, 0.2);
    color: #ffffff;
}

body.dark-theme .form-submit {
    background: #4b7bec;
}

body.dark-theme .form-submit:hover {
    background: #6b8dff;
}

body.dark-theme .form-message-success {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    color: #9be7a4;
}

body.dark-theme .form-message-error {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.4);
    color: #ffb4ab;
}

body.dark-theme .form-group label {
    color: #ffffff;
    font-weight: 500;
}

body.dark-theme .form-checkbox {
    color: #ffffff;
}

body.dark-theme .form-checkbox input[type="checkbox"] {
    accent-color: #4b7bec;
}

body.dark-theme .form-checkbox a,
body.dark-theme .privacy-link {
    color: #6b8dff;
    text-decoration: underline;
}

body.dark-theme .form-checkbox a:hover,
body.dark-theme .privacy-link:hover {
    color: #8ba3ff;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .container {
        padding: 50px 60px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 40px 40px;
    }

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

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .lang-flag {
        font-size: 16px;
    }

    .lang-dropdown {
        min-width: 130px;
    }

    .container {
        padding: 40px 30px;
        gap: 40px;
    }

    .header {
        padding-bottom: 30px;
    }

    .name {
        font-size: 32px;
    }

    .title {
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-item {
        padding: 25px 20px;
        text-align: left;
    }

    .contacts {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .contact-link {
        font-size: 13px;
    }

    .photo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
    }

    .lang-flag {
        font-size: 14px;
    }

    .lang-dropdown {
        min-width: 120px;
    }

    .lang-option {
        padding: 8px 10px;
        font-size: 13px;
    }

    .container {
        padding: 30px 20px;
        gap: 30px;
    }

    .name {
        font-size: 28px;
    }

    .title {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .services h2 {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .service-item {
        padding: 20px 15px;
        text-align: left;
    }

    .service-item h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .service-item p {
        font-size: 12px;
    }

    .photo {
        width: 100px;
        height: 100px;
    }
}
