@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Oswald:wght@500;700&display=swap');

:root {
    --bg: #f5f3ed;
    --surface: #ffffff;
    --surface-soft: #ece7de;
    --text: #1f2529;
    --muted: #5c6971;
    --brand: #d65f14;
    --brand-dark: #9d450d;
    --line: #d4cdc2;
    --ok: #2f7d32;
    --error: #b42318;
    --shadow: 0 16px 40px rgba(38, 44, 48, 0.09);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Trebuchet MS', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 90% 10%, rgba(214, 95, 20, 0.08), transparent 35%),
        radial-gradient(circle at 10% 20%, rgba(58, 83, 105, 0.12), transparent 30%),
        var(--bg);
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(245, 243, 237, 0.9);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}

.logo {
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--text);
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-weight: 600;
}

.nav a:hover {
    background: var(--surface-soft);
}

.page {
    padding: 2.2rem 0 3rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.2rem;
    align-items: stretch;
}

.hero h1 {
    margin-top: 0;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-family: 'Oswald', sans-serif;
    line-height: 1.05;
}

.hero p {
    color: var(--muted);
    max-width: 60ch;
}

.hero-panel {
    background: linear-gradient(150deg, #fff, #f0e9dc);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: var(--shadow);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.72rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 8px 24px rgba(157, 69, 13, 0.35);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.section {
    margin-top: 2rem;
}

.section h1,
.section h2 {
    margin: 0 0 0.8rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.02em;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.link-more,
.link-back {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 700;
}

a {
    color: var(--brand-dark);
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.product-card,
.profile-card,
.product-detail,
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.service-card h3,
.product-card h3 {
    margin-top: 0;
}

.product-card p,
.product-detail p {
    color: var(--muted);
}

.price {
    margin-bottom: 0.7rem;
    font-weight: 800;
}

.price-box {
    margin: 1rem 0;
    padding: 0.9rem;
    border-radius: 12px;
    background: #f0e9dc;
    font-weight: 800;
}

.lead {
    font-size: 1.06rem;
}

.auth-wrap {
    max-width: 560px;
}

.form-card {
    display: grid;
    gap: 0.85rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.65rem 0.72rem;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(214, 95, 20, 0.35);
    border-color: var(--brand);
}

td form {
    margin: 0;
}

.field-error {
    color: var(--error);
    font-size: 0.93rem;
}

.alert {
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.alert-success {
    background: #dff3e0;
    border: 1px solid #a8d9aa;
    color: #1f5f23;
}

.alert-error {
    background: #ffe7e5;
    border: 1px solid #f6b9b3;
    color: #8f2018;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}

th,
td {
    padding: 0.72rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f0e9dc;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.footer {
    border-top: 1px solid var(--line);
    background: #e9e3d8;
}

.footer-wrap {
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: #3b4348;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1rem;
    align-items: stretch;
}

.map-embed {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    min-height: 380px;
}

.map-embed iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nav-wrap {
        min-height: auto;
        padding: 0.7rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
