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

:root {
    --color-bg: #f4efe7;
    --color-surface: rgba(255, 250, 244, 0.82);
    --color-surface-strong: #fffaf4;
    --color-text: #201714;
    --color-text-soft: #6a554c;
    --color-line: rgba(103, 66, 47, 0.12);
    --color-accent: #c46a3d;
    --color-accent-deep: #9e4e26;
    --color-accent-soft: #f0ddcf;
    --color-brand: #315f72;
    --color-brand-soft: #d8e5eb;
    --shadow-lg: 0 28px 70px rgba(32, 23, 20, 0.12);
    --shadow-md: 0 18px 40px rgba(32, 23, 20, 0.08);
    --shadow-sm: 0 10px 24px rgba(32, 23, 20, 0.06);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container-max: 1240px;
    --content-max: 760px;
    --sidebar-max: 340px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background:
        radial-gradient(circle at top left, rgba(196, 106, 61, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(49, 95, 114, 0.14), transparent 24%),
        linear-gradient(180deg, #fbf6f0 0%, #f4efe7 52%, #efe7dc 100%);
    color: var(--color-text);
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    line-height: 1.72;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 80%);
    opacity: 0.35;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-accent-deep);
    text-decoration: none;
    transition: var(--transition);
}

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

ul,
ol {
    padding-left: 1.3rem;
}

.container {
    width: min(100%, var(--container-max));
    margin: 0 auto;
    padding: 0 24px;
}

header {
    position: static;
    padding: 0;
    backdrop-filter: none;
}

header .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.header {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 0 0 32px 32px;
    background: rgba(255, 250, 244, 0.8);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.header__top {
    display: grid;
    grid-template-columns: minmax(340px, 1.45fr) minmax(520px, 1fr);
    gap: 22px;
    align-items: center;
    padding: 12px 24px 14px;
    border-bottom: 1px solid var(--color-line);
}

.header__left {
    min-width: 0;
}

.header__logo a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    color: var(--color-text);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 2.8vw, 2.9rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.95;
    word-break: break-word;
}

.header__logo img {
    max-height: 48px;
    width: auto;
}

.header__right {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.header__address,
.header__phone,
.header__email,
.header__social {
    min-height: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(103, 66, 47, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.header__address,
.header__phone,
.header__email {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header__city,
.header__phone a,
.header__email a {
    font-weight: 700;
    color: var(--color-text);
}

.header__phone a,
.header__email a {
    display: inline-block;
}

.header__secondary-text {
    color: var(--color-text-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

.header__social {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.header__social-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0e6db);
    box-shadow: 0 8px 18px rgba(32, 23, 20, 0.08);
}

.header__social-item img {
    width: 18px;
    height: 18px;
}

.menu {
    padding: 0 16px 16px;
}

.menu nav ul {
    list-style: none;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 18px;
    background: rgba(49, 95, 114, 0.08);
    overflow-x: auto;
    scrollbar-width: thin;
}

.menu nav li {
    flex: 0 0 auto;
}

.menu nav a,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.menu nav a {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.menu nav a:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(32, 23, 20, 0.08);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-deep) 100%);
    box-shadow: 0 14px 30px rgba(158, 78, 38, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(158, 78, 38, 0.34);
}

.btn img {
    width: 18px;
    height: 18px;
}

main {
    padding: 24px 0 80px;
}

.wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, var(--sidebar-max));
    gap: 28px;
    align-items: start;
}

.content {
    min-width: 0;
}

.text-section {
    position: relative;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: clamp(24px, 4vw, 38px);
    background:
        linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(255, 248, 241, 0.9)),
        rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.text-section::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 106, 61, 0.16), transparent 68%);
    pointer-events: none;
}

.text-section::after {
    content: "";
    position: absolute;
    bottom: -110px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49, 95, 114, 0.14), transparent 70%);
    pointer-events: none;
}

.text-section > * {
    position: relative;
    z-index: 1;
}

.text-section > img:first-of-type {
    width: 100%;
    aspect-ratio: 16 / 8.2;
    object-fit: cover;
    margin: 0 0 34px;
    border-radius: calc(var(--radius-xl) - 4px);
    box-shadow: var(--shadow-md);
}

h1,
h2,
h3 {
    color: var(--color-text);
    font-family: 'Cormorant Garamond', serif;
    line-height: 0.98;
    letter-spacing: -0.015em;
}

h1 {
    max-width: 14ch;
    margin-bottom: 26px;
    font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
    margin: 56px 0 20px;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
}

h3 {
    margin: 38px 0 16px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

p,
li {
    color: var(--color-text-soft);
}

p {
    margin-bottom: 1.3rem;
}

strong,
b {
    color: var(--color-text);
}

.text-section ul,
.text-section ol {
    margin: 0 0 1.8rem 0;
}

.text-section li {
    margin-bottom: 0.8rem;
    padding-left: 0.2rem;
}

.navigation {
    margin: 0 0 28px;
    padding: 22px 24px 22px 42px;
    border: 1px solid rgba(49, 95, 114, 0.12);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(216, 229, 235, 0.6), rgba(255, 255, 255, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.navigation li {
    color: var(--color-brand);
    font-weight: 700;
}

.text-section blockquote {
    margin: 2rem 0;
    padding: 20px 24px;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(240, 221, 207, 0.55);
    color: var(--color-text);
}

.text-section table {
    width: 100%;
    margin: 1.8rem 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
}

.text-section th,
.text-section td {
    padding: 14px 16px;
    border: 1px solid rgba(103, 66, 47, 0.1);
    text-align: left;
}

.text-section th {
    color: var(--color-text);
    background: rgba(216, 229, 235, 0.5);
}

.right-panel {
    position: sticky;
    top: 132px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(49, 95, 114, 0.08), rgba(255, 255, 255, 0.88)),
        rgba(255, 250, 244, 0.82);
    box-shadow: var(--shadow-md);
}

.right-panel h3 {
    margin: 0 0 18px;
    font-size: 2rem;
}

.right-panel ul {
    list-style: none;
    padding: 0;
}

.right-panel li + li {
    margin-top: 10px;
}

.right-panel a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(103, 66, 47, 0.08);
}

.right-panel a:hover {
    transform: translateX(4px);
    border-color: rgba(196, 106, 61, 0.28);
    background: #fff;
}

footer {
    padding: 0 0 36px;
}

.footer {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--radius-xl);
    background: rgba(34, 29, 26, 0.94);
    box-shadow: var(--shadow-md);
}

.footer .menu {
    padding: 0;
    margin-bottom: 22px;
}

.footer .menu nav ul {
    background: rgba(255, 255, 255, 0.08);
}

.footer .menu nav a,
.footer .menu .btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.footer__links a {
    min-height: 100%;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 250, 244, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mask {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(24, 17, 15, 0.45);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mask.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: min(88vw, 360px);
    height: 100vh;
    padding: 96px 24px 32px;
    background: linear-gradient(180deg, #fff8f1 0%, #f3ebe1 100%);
    box-shadow: -16px 0 40px rgba(32, 23, 20, 0.18);
    transform: translateX(100%);
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li + li {
    margin-top: 10px;
}

.mobile-menu a {
    display: block;
    padding: 15px 18px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(103, 66, 47, 0.08);
}

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

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

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

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

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

    .right-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .header {
        border-radius: 0 0 24px 24px;
    }

    .header__top {
        padding: 16px 16px 14px;
        gap: 14px;
    }

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

    .menu {
        padding: 0 12px 12px;
    }

    .menu nav ul {
        padding: 8px;
    }

    .menu nav li {
        display: none;
    }

    .menu nav .menu-btn {
        width: 100%;
    }

    main {
        padding-top: 18px;
    }

    .wrap {
        gap: 20px;
    }

    .text-section {
        padding: 24px 18px;
        border-radius: 26px;
    }

    .text-section > img:first-of-type {
        margin-bottom: 24px;
        aspect-ratio: 16 / 10;
        border-radius: 22px;
    }

    h1 {
        max-width: none;
    }

    .right-panel,
    .footer {
        padding: 22px 18px;
    }

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

@media (min-width: 861px) {
    .menu-btn {
        display: none;
    }
}
