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

:root {
    --bg: #f7f5f1;
    --bg-muted: #ece9e2;
    --bg-dark: #34332f;

    --ink: #252522;
    --muted: #77756e;
    --light: #f5f2ec;
    --muted-light: #cbc7bf;

    --line: #dedbd4;
    --accent: #8a7563;

    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-header {
    position: absolute;
    z-index: 10;
    width: 100%;
    padding: 28px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 16px;
    font-weight: 600;
}

nav {
    display: flex;
    gap: 28px;
    font-size: 16px;
}

nav a {
    color: var(--muted);
}

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

.hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    padding: 110px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 90px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 22px;
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--accent);
    font-weight: 600;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
}

h1 {
    font-size: clamp(48px, 6vw, 80px);
    line-height: .92;
    letter-spacing: -.045em;
    margin: 0 0 38px;
}

.lead {
    max-width: 510px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 38px;
}

.lead p {
    margin: 0 0 10px;
}

.lead p:last-child {
    margin-bottom: 0;
}

.button {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid var(--ink);
    font-size: 13px;
    transition: .2s ease;
}

.button:hover {
    background: var(--ink);
    color: var(--bg);
}

.portrait {
    width: 100%;
    max-width: 360px;
    height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

.section {
    padding: 125px 0;
}

.section-muted {
    background: var(--bg-muted);
}

.two-col {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}

h2 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -.035em;
    margin: 0 0 35px;
}

.text {
    max-width: 680px;
    font-size: 17px;
    color: var(--muted);
}

.text p+p {
    margin-top: 28px;
}

.timeline {
    margin-top: 70px;
    border-top: 1px solid var(--line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 50px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.year {
    color: var(--accent);
    font-size: 14px;
}

.timeline-item h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 6px;
}

.timeline-item p {
    color: var(--muted);
    margin: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 65px;
}

.card {
    background: var(--bg);
    padding: 45px;
    min-height: 240px;
}

.card span {
    color: var(--accent);
    font-size: 12px;
}

.card h3 {
    margin: 28px 0 12px;
    font-size: 22px;
    font-weight: 500;
}

.card p {
    max-width: 430px;
    color: var(--muted);
    margin: 0;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--light);
}

.section-dark .text {
    color: var(--muted-light);
}

.price {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 100px;
}

.price-value {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1;
}

.price p {
    color: var(--muted);
    margin: 15px 0 0;
}

.contacts {
    background: var(--bg-muted);
    padding: 120px 0;
}

.contacts h2 {
    max-width: 700px;
}

.contact-intro {
    color: var(--muted);
    font-size: 17px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 45px;
}

.contact-links a {
    padding-bottom: 5px;
    border-bottom: 1px solid var(--muted);
}

footer {
    padding: 25px 0;
    color: var(--muted);
    font-size: 12px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

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

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

@media(max-width:800px) {
    .container {
        width: min(calc(100% - 32px), var(--max));
    }

    .site-header {
        position: relative;
        padding: 20px 0;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 75px 0 70px;
    }

    .hero-grid,
    .two-col,
    .price {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-text {
        margin: 0 auto;
    }

    .portrait {
        height: 360px;
        margin: 0 auto;
    }

    .section,
    .contacts {
        padding: 80px 0;
    }

    .timeline {
        margin-top: 40px;
    }

    .timeline-item {
        grid-template-columns: 65px 1fr;
        gap: 20px;
    }

    .cards {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .card {
        padding: 32px;
    }

    footer .container {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


.document-page {
  padding: 150px 0 100px;
}

.document {
  width: min(calc(100% - 48px), 800px);
  margin: 0 auto;
}

.document h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  margin-bottom: 25px;
}

.document-date {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 80px;
}

.document section {
  margin-bottom: 60px;
}

.document section h2 {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}

.document section p,
.document li {
  font-size: 16px;
  line-height: 1.8;
  color: #595750;
}

.document ul {
  padding-left: 25px;
}

.document li + li {
  margin-top: 8px;
}

.document-footer {
  padding-top: 35px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 800px) {
  .document-page {
    padding: 80px 0 60px;
  }

  .document {
    width: min(calc(100% - 32px), 800px);
  }

  .document-date {
    margin-bottom: 55px;
  }

  .document section {
    margin-bottom: 45px;
  }
}