:root {
    --ink: #404041;
    --black: #000;
    --paper: #fff;
    --section: #eee;
    --header: #f2f2f2;
    --link: #ff8562;
    --email: #7de0f6;
    --container: 1200px;
    --font: 'Montserrat', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--ink); outline-offset: 5px;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.skip-link {
    position: fixed; top: -100px; left: 20px; z-index: 1100; padding: 12px;
    color: var(--ink); background: var(--paper);
}
.skip-link:focus { top: 8px; }
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100; height: 75px; background: var(--header);
}
.header-inner {
    max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand { flex: 0 0 160px; display: block; margin-right: 30px; }
.brand img { display: block; width: 160px; height: auto; }
.site-header nav ul { display: flex; align-items: center; gap: 34px; list-style: none; }
.site-header nav a {
    color: var(--ink); font-size: 11px; font-weight: 600; text-transform: uppercase; white-space: nowrap;
}
.header-home nav a { font-size: 12px; }
.header-home nav li:first-child a { opacity: .5; text-decoration: underline; }
.section-title { font-size: 42px; font-weight: 600; line-height: 1.23; text-align: center; }
.services { color: var(--black); padding: 90px 0 60px; }
.services .section-title { margin: 0 20px 90px; }
.services-list { width: 760px; margin-left: 220px; list-style: none; }
.services-list li { display: flex; align-items: center; min-height: 65px; gap: 30px; }
.services-list li + li { margin-top: 65px; }
.services-list img { flex: 0 0 65px; width: 65px; height: 65px; }
.services-list h2 { font-size: 20px; line-height: 1.35; font-weight: 600; }
.directions { padding: 60px 0; background: var(--section); color: var(--black); }
.directions .section-title { margin: 0 20px 105px; }
.directions-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 70px 40px;
    list-style: none; margin: 0 20px;
}
.directions-list li { display: flex; align-items: flex-start; gap: 16px; }
.directions-list img { flex: 0 0 35px; width: 35px; height: 35px; }
.directions-list h3 { font-size: 18px; line-height: 1.35; font-weight: 600; text-align: justify; }
.contacts { padding: 150px 0; background: var(--section); color: var(--black); }
.contacts-grid { display: grid; grid-template-columns: 460px 660px; gap: 40px; padding: 0 20px; }
.contact-copy { display: flex; flex-direction: column; justify-content: center; }
.contact-copy h2 { font-size: 28px; line-height: 1.17; font-weight: 600; margin-bottom: 30px; }
.contact-copy > div { font-size: 20px; font-weight: 300; line-height: 1.55; }
.contact-copy strong { font-weight: 700; }
.contact-copy a { color: #0000ff; }
.map-wrap { height: 400px; box-shadow: 0 0 20px #0000001a; background: #e5e3df; }
.map-fallback { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; }
.contact-map { display: block; height: 100%; width: 100%; border: 0; }
.site-footer { background: var(--ink); padding-bottom: 15px; }
.footer-copy {
    margin: 0 20px; padding: 40px 0 10px; text-align: center; font-size: 14px;
    line-height: normal; font-weight: 400; color: var(--paper); opacity: .7;
}
.footer-copy p:first-child a { color: var(--paper); }
.footer-copy a[href^='mailto:'] { color: var(--email); }
.article-heading { padding: 105px 20px 0; max-width: 1000px; margin: 0 auto; text-align: center; }
.blog-label { padding: 8px 0 3px; font-size: 38px; font-weight: 700; line-height: 1.23; }
.article-heading h1 { margin-top: 30px; padding: 8px 0 3px; font-size: 24px; line-height: 1.23; }
.article-content { padding: 83px 0 81px; }
.article-flow { width: 960px; margin-left: 220px; display: flow-root; }
.article-image {
    float: right; width: 490px; margin: 0; padding: 6px 0 30px 30px;
    font-family: 'Times New Roman', serif; font-size: 16px; line-height: normal;
}
.article-image img { display: inline; width: 460px; height: auto; border-radius: 50px; }
.article-text { width: 760px; color: #000; font-size: 20px; line-height: 1.55; font-weight: 300; text-align: justify; }
.article-text strong { font-weight: 700; }
.article-text ul { padding-left: 20px; margin: 0 0 10px; }
.article-text ol { padding-left: 22px; margin: 0 0 10px; }
.image-credit { font-family: 'Times New Roman', serif; font-size: 16px; color: #000; }
.image-credit span { font-size: 10px; }
.agreement { max-width: 1000px; margin: 0 auto; padding: 98px 20px 66px; }
.agreement-content { font-size: 20px; line-height: 1.55; font-weight: 300; text-align: justify; color: #000; }
.agreement-content h1 { font-size: inherit; line-height: inherit; font-weight: inherit; text-align: center; }
.agreement-content strong { font-weight: 700; }
.page-error { display: flex; flex-direction: column; min-height: 100svh; padding-top: 75px; }
.page-error #content { display: grid; align-items: center; flex: 1; }
.page-error .header-home nav li:first-child a { opacity: 1; text-decoration: none; }
.not-found { width: 100%; max-width: 760px; margin: 0 auto; padding: 60px 20px; text-align: center; }
.not-found-code { font-size: 160px; line-height: 1; font-weight: 700; letter-spacing: -.06em; }
.not-found-code span { color: var(--link); }
.not-found h1 { margin: 30px 0 20px; }
.not-found-description { max-width: 540px; margin: 0 auto; font-size: 18px; line-height: 1.55; }
.not-found-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; margin-top: 30px;
}
.not-found-actions a {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 50px; padding: 12px 30px; color: var(--ink); font-size: 16px; font-weight: 600;
}
.not-found-home { border: 2px solid var(--link); border-radius: 50px; background: var(--link); }
.not-found-home:hover { background: var(--paper); }
.not-found-blog:hover { text-decoration: underline; }
@media (max-width: 980px) {
    .page-error { padding-top: 0; }
}
@media (max-width: 640px) {
    .not-found { padding: 40px 20px; }
    .not-found-code { font-size: 120px; }
    .not-found-description { font-size: 16px; }
    .not-found-actions { gap: 12px; }
    .not-found-actions a { padding-left: 20px; padding-right: 20px; }
}

.blog-index { padding: 105px 20px 81px; }
.blog-index .section-title { margin-bottom: 60px; }
.blog-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 40px; list-style: none;
}
.blog-card a { display: block; color: var(--ink); }
.blog-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 50px; }
.blog-card h2 { margin-top: 20px; font-size: 20px; line-height: 1.35; font-weight: 600; }
.blog-card a:hover h2, .blog-card a:focus-visible h2 { text-decoration: underline; }

@media (max-width: 1200px) {
    :root { --container: 960px; }
    .section-title { font-size: 38px; }
    .services .section-title, .directions .section-title { margin-left: 10px; margin-right: 10px; }
    .services-list { width: 620px; margin-left: 170px; }
    .services-list h2 { font-size: 18px; }
    .directions-list { gap: 70px 20px; margin: 0 10px; }
    .directions-list h3 { font-size: 16px; }
    .contacts-grid { grid-template-columns: 380px 540px; gap: 20px; padding: 0 10px; }
    .contact-copy h2 { font-size: 26px; }
    .contact-copy > div { font-size: 18px; }
    .article-heading { max-width: 820px; }
    .article-flow { width: 780px; margin-left: 170px; }
    .article-image { width: 410px; }
    .article-image img { width: 380px; }
    .article-text { width: 620px; font-size: 18px; }
    .agreement { max-width: 820px; }
    .agreement-content { font-size: 18px; }
    .footer-copy { margin: 0 10px; }
}
@media (max-width: 980px) {
    .blog-index { padding-top: 40px; }
    .site-header { position: relative; height: auto; }
    .header-inner { padding: 0; display: block; max-width: none; }
    .brand { padding: 40px 20px; margin: 0; }
    .brand img { margin: 0 auto; }
    .site-header nav { padding: 20px 0; }
    .site-header nav ul { display: block; }
    .site-header nav li { padding: 10px; text-align: center; line-height: 18px; }
    html { scroll-padding-top: 10px; }
}
@media (max-width: 960px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
    .blog-card h2 { font-size: 18px; }
    :root { --container: 640px; }
    .services .section-title, .directions .section-title { margin: 0 20px 45px; }
    .services-list { width: auto; margin: 0 20px; }
    .services-list li { gap: 20px; min-height: 60px; }
    .services-list li + li { margin-top: 40px; }
    .services-list img { width: 60px; height: 60px; flex-basis: 60px; }
    .directions-list { display: block; margin: 0 20px; }
    .directions-list li { margin-bottom: 40px; }
    .contacts-grid { display: block; padding: 0 20px; }
    .contact-copy { height: 400px; padding: 40px; }
    .article-heading { max-width: 640px; }
    .article-flow { width: auto; margin: 0 20px; }
    .article-image { float: none; width: 100%; }
    .article-image img { width: 100%; }
    .article-text { width: 100%; padding: 0 20px; }
    .agreement { max-width: 640px; }
    .footer-copy { margin: 0 20px; }
}
@media (max-width: 750px) {
    .contact-copy { height: auto; padding: 30px 20px; }
    .contact-copy h2 { margin-bottom: 24px; }
    .map-wrap { height: 300px; }
}
@media (max-width: 640px) {
    .blog-index .section-title { margin-bottom: 40px; }
    .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .section-title { font-size: 30px; }
    .services-list li { min-height: 50px; }
    .services-list img { width: 50px; height: 50px; flex-basis: 50px; }
    .services-list h2 { font-size: 16px; }
    .directions-list h3 { font-size: 14px; }
    .contact-copy h2 { font-size: 24px; }
    .contact-copy > div { font-size: 16px; line-height: 1.45; }
    .article-image { padding-left: 0; }
    .article-text { padding: 0; font-size: 16px; line-height: 1.45; }
    .agreement-content { font-size: 16px; line-height: 1.45; }
}
@media (max-width: 480px) {
    .contacts { padding: 90px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
