/* ===================
   ОБЩИЕ СТИЛИ
=================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.container,
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.yellow {
    color: #fbd303;
}

/* ===================
   ШАПКА САЙТА
=================== */
.header-top {
    background: #111;
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
}

.header-top-inner {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-top div {
    cursor: pointer;
    transition: color 0.3s;
}

.header-top a {
    color: inherit;
    text-decoration: none;
}

.header-top a.active {
    color: #fbd303;
}

.header-top div:hover,
.header-top a:hover {
    color: #fbd303;
}

.header-main {
    background: #f9f9f9;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 40px;
    font-weight: bold;
    flex: 0 0 auto;
    font-family: Verdana;
    color: #111;
    text-decoration: none;
}

.logo-first-letter {
    color: #fbd303;
}

.info-block {
    text-align: left;
    font-size: 13px;
    color: #444;
    flex: 1 1 auto;
}

.phones {
    font-size: 14px;
    font-weight: bold;
    text-align: right;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phones a {
    color: inherit;
    text-decoration: none;
}

/* ===================
   НАВИГАЦИЯ
=================== */
.main-nav-bar {
    background: #fbd303;
}

.main-nav-bar-inner {
    position: relative;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
}

.nav-toggle-icon {
    width: 18px;
    height: 2px;
    background: #111;
    position: relative;
    display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #111;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.main-nav {
    background: #fbd303;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 8px 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #000;
    padding: 4px 10px;
    transition: background 0.3s, color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: #111;
    color: #fff;
}

/* ===================
   ФУТЕР
=================== */
.footer {
    background: #222;
    color: #fff;
    padding: 50px 0 20px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    padding-right: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.footer-slogan,
.footer-registry,
.social-title {
    color: #aaa;
    font-size: 14px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fbd303;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #fbd303;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-list a:hover {
    color: #fbd303;
}

.footer-contacts,
.footer-address,
.footer-company,
.footer-brand {
    margin-bottom: 25px;
    font-size: 15px;
}

.footer-contacts a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: #fbd303;
}

.contact-item,
.company-item,
.address-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
}

.contact-icon,
.company-icon,
.address-icon,
.payment-icon,
.map-link-icon {
    flex-shrink: 0;
    margin-right: 12px;
    color: #fbd303;
}

.company-icon,
.payment-icon {
    width: 16px;
    height: 16px;
}

.address-icon {
    margin-top: 2px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbd303;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 12px;
    background: rgba(251, 211, 3, 0.1);
    border-radius: 4px;
}

.map-link:hover {
    background: rgba(251, 211, 3, 0.2);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.footer-social,
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.social-link:hover {
    background: #fbd303;
    color: #222;
    transform: translateY(-2px);
}

.social-link svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* ===================
   СПОСОБЫ ОПЛАТЫ
=================== */
.payments-title {
    font-size: 14px;
    margin: 25px 0 12px;
    font-weight: normal;
    color: #aaa;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #ddd;
}

/* ===================
   МЕДИА-ЗАПРОСЫ
=================== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo {
        font-size: 32px;
    }

    .info-block,
    .phones {
        width: 100%;
        text-align: left;
    }

    .header-top-inner {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 2px;
    }

    .header-top-inner div {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0 8px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 10px 14px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-logo {
        font-size: 24px;
    }

    .payment-methods {
        gap: 10px;
    }

    .payment-method {
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .container,
    .site-container {
        padding: 0 12px;
    }

    .logo {
        font-size: 28px;
    }
}

/* ===================
   АНИМАЦИЯ
=================== */
.footer-logo:hover .logo-first-letter {
    text-shadow: 0 0 8px rgba(251, 211, 3, 0.7);
    transform: rotate(-5deg);
}

/* =================== КНОПКИ =================== */
.action-btn {
    background: #fbd303;
    color: #111;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-icon {
    background: #111;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-icon:hover {
    background: #fbd303;
    color: #111;
    transform: translateY(-2px);
}

/* =================== МОДАЛЬНОЕ ОКНО =================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    padding: 25px 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeInUp 0.4s ease;
}

.modal-content h2.modal-title {
    color: #111;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #111;
    transition: color 0.3s;
}

.modal-content .close:hover {
    color: #fbd303;
}

.form-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-row input,
.form-row textarea,
.form-row select {
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: none;
    transition: all 0.3s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: #fbd303;
    box-shadow: 0 0 6px rgba(251, 211, 3, 0.3);
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
    color: #111;
}

.total-price .currency {
    font-size: 14px;
    color: #666;
}

button.action-btn[type="submit"] {
    width: 100%;
    text-align: center;
}

/* Анимация появления модального окна */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 576px) {
    .modal-content {
        padding: 20px;
    }

    .form-row input,
    .form-row textarea,
    .form-row select {
        font-size: 13px;
    }

    .total-price {
        font-size: 14px;
    }
}

/* =================== МОДАЛЬНОЕ ОКНО =================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* по умолчанию скрыто */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    padding: 25px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeInUp 0.4s ease;
}

/* Заголовок */
.modal-content h2.modal-title {
    color: #111;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
    font-weight: 700;
}

/* Кнопка закрытия */
.modal-content .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #111;
    transition: color 0.3s;
}

.modal-content .close:hover {
    color: #fbd303;
}

/* =================== ФОРМА =================== */
#orderForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-row input,
.form-row textarea,
.form-row select {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    outline: none;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: #fbd303;
    box-shadow: 0 0 6px rgba(251, 211, 3, 0.3);
}

/* Итоговая цена */
.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #111;
}

.total-price .currency {
    font-size: 14px;
    color: #666;
}

/* Кнопка отправки */
button.action-btn[type="submit"] {
    background: #fbd303;
    color: #111;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

button.action-btn[type="submit"]:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.info-block {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f5f5f5;
    border-left: 4px solid #e6c200;
    border-radius: 6px;
}

.info-block h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.info-block ul {
    margin: 15px 0;
    padding-left: 20px;
}

.info-block li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-block hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* Анимация появления */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 576px) {
    .modal-content {
        padding: 20px;
    }

    .form-row input,
    .form-row textarea,
    .form-row select {
        font-size: 13px;
    }

    .total-price {
        font-size: 14px;
    }
}

/* Форма заказа: honeypot и маска телефона */
.order-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.phone-by-mask {
    font-family: inherit;
    letter-spacing: 0.02em;
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

.modal-content button.close {
    border: none;
    background: none;
    padding: 0;
}

.order-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.order-form-actions .action-btn {
    flex: 1;
    text-align: center;
}

.order-btn-cancel {
    background: #eee;
    color: #333;
}

.order-btn-cancel:hover {
    background: #ddd;
    box-shadow: none;
    transform: none;
}

/* ===================
   СТРАНИЦА 404
=================== */
.error-404 {
    max-width: 720px;
    margin: 60px auto 80px;
    padding: 40px 24px;
    text-align: center;
}

.error-404-code {
    font-size: 96px;
    line-height: 1;
    font-weight: 700;
    color: #fbd303;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.error-404 h1 {
    font-size: 32px;
    color: #111;
    margin-bottom: 12px;
}

.error-404 p {
    font-size: 16px;
    color: #555;
    margin-bottom: 28px;
}

.error-404-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.error-404-links .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.error-404-link-secondary {
    background: #111;
    color: #fff;
}

.error-404-link-secondary:hover {
    background: #333;
    color: #fff;
}

@media (max-width: 600px) {
    .error-404 {
        margin: 32px auto 48px;
        padding: 24px 8px;
    }

    .error-404-code {
        font-size: 72px;
    }

    .error-404 h1 {
        font-size: 24px;
    }

    .error-404-links .action-btn {
        width: 100%;
    }
}
