/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C5F8D;
    --accent-color: #FF6B35;
    --dark-color: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--white);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 12px;
    color: #666;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.schedule {
    font-size: 12px;
    color: #666;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3d5e 100%);
    color: var(--white);
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.hero h1 {
    color: var(--white);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-text {
    display: flex;
    flex-direction: column;
}

.benefit-text strong {
    font-size: 16px;
    margin-bottom: 5px;
}

.benefit-text span {
    font-size: 14px;
    opacity: 0.9;
}

/* Hero Form */
.hero-form {
    background: var(--white);
    padding: 40px;
    border: 2px solid var(--accent-color);
}

.hero-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-privacy {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.form-privacy a {
    color: var(--primary-color);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.service-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
}

.service-badge.urgent {
    background: #DC3545;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--light-gray);
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.info-item .label {
    color: #666;
}

.info-item .value {
    font-weight: 700;
    color: var(--primary-color);
}

.service-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Materials Section */
.materials {
    padding: 80px 0;
    background: var(--white);
}

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

.material-card {
    background: var(--light-gray);
    padding: 30px;
    border: 2px solid var(--border-color);
    position: relative;
}

.material-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3d5e 100%);
    color: var(--white);
    border-color: var(--accent-color);
}

.material-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
}

.material-card h3 {
    margin-top: 10px;
}

.material-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 15px 0;
}

.material-card.featured .material-price {
    color: var(--white);
}

.material-features {
    list-style: none;
    margin: 20px 0;
}

.material-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.material-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.material-card.featured .material-features li::before {
    color: var(--white);
}

.material-brands {
    font-size: 14px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.material-info {
    font-size: 14px;
    line-height: 1.8;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: var(--light-gray);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.step {
    background: var(--white);
    padding: 30px 20px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.step:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-content p {
    font-size: 14px;
    line-height: 1.6;
}

/* Advantages Section */
.advantages {
    padding: 80px 0;
    background: var(--white);
}

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

.advantage-card {
    background: var(--light-gray);
    padding: 30px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.advantage-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    background: var(--white);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.advantage-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* Calculator Section */
.calculator {
    padding: 80px 0;
    background: var(--light-gray);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border: 2px solid var(--border-color);
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.calc-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 16px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-label input,
.checkbox-label input {
    width: auto;
    margin: 0;
}

.calc-result {
    background: var(--light-gray);
    padding: 30px;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.calc-result h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 16px;
}

.result-row.total {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.result-divider {
    height: 2px;
    background: var(--border-color);
    margin: 15px 0;
}

.calc-result .btn {
    margin-top: 20px;
}

.result-note {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: var(--white);
}

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

.portfolio-card {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3d5e 100%);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.portfolio-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.portfolio-work {
    font-size: 15px;
    margin-bottom: 15px;
}

.portfolio-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.portfolio-review {
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
}

.portfolio-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.review-card {
    background: var(--white);
    padding: 30px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.review-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-rating {
    color: #FFC107;
    font-size: 18px;
}

.review-date {
    font-size: 12px;
    color: #666;
}

.review-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.review-project {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-color);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 2px solid var(--border-color);
    margin-bottom: 15px;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-gray);
    font-weight: 600;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--white);
    color: var(--accent-color);
}

.faq-icon {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 20px 25px;
    line-height: 1.8;
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
    background: var(--light-gray);
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-block h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-link {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.contact-block p {
    font-size: 15px;
    line-height: 1.8;
}

.contact-block.geography ul {
    list-style: none;
    margin: 10px 0;
}

.contact-block.geography li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.contact-block.geography li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border: 2px solid var(--border-color);
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-docs {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contacts li {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    margin-bottom: 10px;
}

.footer-contacts a {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-links-bottom a:hover {
    color: var(--accent-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--dark-color);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 25px;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--white);
    padding: 18px 30px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.floating-btn:hover {
    background: #E55A2B;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.floating-btn-icon {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid,
    .materials-grid,
    .advantages-grid,
    .portfolio-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-content,
    .calculator-wrapper,
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header-contact .btn {
        display: none;
    }

    .services-grid,
    .materials-grid,
    .advantages-grid,
    .portfolio-grid,
    .reviews-grid,
    .process-steps,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
    }

    .calc-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
