/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #654321;
    --accent-color: #D2691E;
    --text-dark: #2C2C2C;
    --text-light: #666;
    --bg-light: #F8F6F4;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.about .container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Шапка */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}



.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.logo-container > a:not(:first-child) {
    padding-left: 15px;
    font-size: 150%;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 100%;
    transition: var(--transition);
    transition: font-size 0.5s;
    position: relative;
}

.nav-link:hover {
    font-size: 125%;
} 

.nav-link:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-link.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-link.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Главный слайдер */
.hero-slider {
    position: relative;
    height: 100vh;
    margin-top: 80px;
    overflow: hidden;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;
    max-width: 100vw;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0%;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 100vw;
}

.slide.active {
    opacity: 125%;
    z-index: 1;
}

.slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(101, 67, 33, 0.9)),
                url('slider1.jpg') center/cover;
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(101, 67, 33, 0.9)),
                url('slider2.jpg') center/cover;
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(101, 67, 33, 0.9)),
                url('slider3.jpg') center/cover;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.slide-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.slide-description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Секции */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Обо мне */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    grid-auto-rows: 1fr;
}

.about-image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 15px;
    overflow: hidden;
    align-self: start;
    display: flex;
    align-items: flex-start;
    height: fit-content;
    max-height: fit-content;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 600px;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: contain;
    object-position: top center;
}

.about-text {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    overflow: visible;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    box-sizing: border-box;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Портфолио */
.portfolio {
    background: var(--bg-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Преимущества */
.benefits {
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Форма заказа */
.order {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.order .section-title,
.order .section-subtitle {
    color: white;
}

.order-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.checkbox-label a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.checkbox-label input[type="checkbox"]:invalid {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}

.order-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Контакты */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.social-links-large {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link-large:hover {
    background: var(--secondary-color);
    transform: translateY(-3px) scale(1.1);
}

.social-link-large svg {
    width: 24px;
    height: 24px;
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-form-element .btn {
    width: 100%;
}

/* Футер */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideDown 0.3s;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.8;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
/* Планшеты и маленькие ноутбуки */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Планшеты */
@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 999;
    }

    .nav.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-description {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }

    .about-image {
        align-self: start;
    }

    .about .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .about-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 2rem;
    }

    .about-image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        overflow: visible;
    }

    .about-image img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        object-fit: contain;
    }

    .about-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0;
        overflow: visible;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .order-form {
        padding: 2.5rem;
    }
}

/* Мобильные устройства (портретная ориентация) */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        margin-top: 70px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .header-content {
        padding: 0.8rem 0;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .logo {
        height: 50px;
        max-width: 120px;
    }

    .logo-container {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .logo-container > a:not(:first-child) {
        font-size: 0.9rem;
        padding-left: 8px;
        white-space: normal;
        line-height: 1.2;
    }

    .slide-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .slide-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-item {
        padding: 2rem;
    }

    .order-form {
        padding: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .about .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .about-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 1.5rem;
    }

    .about-image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 2rem;
        overflow: visible;
    }

    .about-image img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        margin-bottom: 0;
        object-fit: contain;
    }

    .about-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 1.5rem;
        padding: 0;
        overflow: visible;
    }

    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .social-links {
        gap: 0.75rem;
        flex-wrap: wrap;
        width: 100%;
    }

    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        flex: 1 1 auto;
        min-width: fit-content;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    .slider-btn.prev {
        left: 5px;
    }

    .slider-btn.next {
        right: 5px;
    }

    .slider-dots {
        bottom: 20px;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .header-content {
        padding: 0.6rem 0;
    }

    .logo {
        height: 40px;
        max-width: 100px;
    }

    .logo-container > a:not(:first-child) {
        font-size: 0.75rem;
        padding-left: 5px;
        line-height: 1.1;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }

    .about-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 1.5rem;
    }

    .about-image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .about-image img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        object-fit: contain;
    }

    .about-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .about-text h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .social-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 1.5rem;
    }

    .social-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        flex: 1 1 auto;
        min-width: fit-content;
        gap: 0.4rem;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .features-list {
        font-size: 0.9rem;
    }

    .order-form,
    .contact-form {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo img {
        height: 50px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 968px) and (orientation: landscape) {
    .hero-slider {
        height: 80vh;
    }

    .nav {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Выделение для редактирования контента */
[contenteditable="true"] {
    outline: 2px dashed var(--primary-color);
    outline-offset: 4px;
}

/* Утилиты для изменения контента */
.editable {
    cursor: text;
    position: relative;
}

.editable:hover {
    background: rgba(139, 69, 19, 0.05);
}
