/* Визуальный ритм, портфолио, направления и контактное завершение страницы. */
:root { --contact-surface: #f0e8dc; }
.portfolio-section { margin-top: 72px; padding-block: 78px; background: var(--soft); }
.project-card { position: relative; isolation: isolate; border: 1px solid transparent; border-radius: 4px; background: var(--surface); box-shadow: none; overflow: visible; }
.project-card::before, .direction-card::before { content: ''; position: absolute; z-index: -1; inset: -8px; border: 1px solid #cdbba7; border-radius: 4px; background: var(--surface); box-shadow: 0 3px 12px rgb(56 41 32 / 3%); transition: border-color var(--motion-medium) ease, box-shadow var(--motion-medium) ease, background var(--motion-medium) ease; }
.project-trigger { height: 100%; }
.project-trigger .project-card-photo { border-radius: 3px 3px 0 0; }
.project-card-topline { align-items: center; margin: 0; padding: 20px 18px 0; }
.project-card-title { font-size: 19px; }
.project-card-arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 2px; font-size: 20px; }
.project-card-meta { margin: 14px 18px 18px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 2px; display: grid; gap: 4px; font-size: 11px; }
.project-card-meta span + span::before { content: none; }
.project-trigger:focus-visible { outline-offset: -4px; }
.project-card:focus-within::before { border-color: var(--bronze); }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover::before, .direction-card:hover::before { border-color: #ad8d6b; box-shadow: 0 9px 26px rgb(56 41 32 / 8%); }
  .project-trigger:hover .project-card-arrow { background: var(--ink); color: var(--surface); border-color: var(--ink); }
}
.directions-heading { align-items: end; }
.directions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.direction-card { position: relative; isolation: isolate; display: block; padding: 0; border: 0; min-width: 0; background: var(--surface); }
.direction-photo { aspect-ratio: 4 / 3; }
.direction-photo { background: #f4efe7; }
.direction-photo img { object-position: 50% 50%; object-fit: contain; }
.direction-copy { padding: 22px 18px 20px; }
.direction-card h3 { font-size: clamp(19px, 1.65vw, 23px); line-height: 1.3; letter-spacing: -.035em; }
.direction-card p { margin-top: 12px; max-width: 360px; font-size: 13px; line-height: 1.75; }
.directions-caption { margin-top: 26px; font-size: 10px; color: var(--muted); }
.material-types { border: 1px solid #cdbba7; border-radius: 3px; padding: 20px; background: rgb(252 249 244 / 35%); }
.conversation-topics { border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.conversation-topics .topic { padding-inline: 20px; }
.conversation-topics .topic:last-child { border-bottom: 0; }
.request-details { border: 1px solid var(--line); border-radius: 3px; padding-inline: 14px; }

.contact-section { margin-top: 0; padding-block: 84px; background: var(--contact-surface); }
.contact-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 38px; }
.contact-heading .section-title { margin-top: 14px; }
.contact-heading .section-title .accent { display: inline; white-space: nowrap; }
.contact-description { max-width: 380px; margin: 0; font-size: 14px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr); gap: 0; border: 1px solid #cebca8; border-radius: 4px; overflow: hidden; }
.contact-information { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 35px; background: rgb(252 249 244 / 35%); }
.contact-information .eyebrow { font-size: 9px; }
.contact-city { margin-top: 12px; font-family: 'Cormorant Garamond Roman', Georgia, serif; font-size: 36px; line-height: 1; }
.contact-address { margin-top: 9px; font-size: 14px; }
.contact-phone { display: inline-block; margin-top: 9px; font-family: 'Manrope', Arial, sans-serif; font-size: clamp(21px, 2.05vw, 28px); line-height: 1.3; letter-spacing: -.04em; white-space: nowrap; }
.contact-hours { margin-top: 9px; font-size: 12px; color: var(--muted); }
.contact-map { position: relative; min-height: 375px; background: var(--photo); border-left: 1px solid #cebca8; }
.map-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 34px; text-align: center; }
.map-placeholder .eyebrow { font-size: 10px; }
.map-place { font-family: 'Cormorant Garamond Roman', Georgia, serif; font-size: 32px; line-height: 1.15; }
.map-note { max-width: 360px; font-size: 11px; color: var(--muted); }
.map-load { min-height: 46px; padding: 11px 20px; font-size: 12px; margin-top: 4px; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--photo); }
.map-close { position: absolute; z-index: 2; right: 12px; top: 12px; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-size: 10px; }
.map-status { position: absolute; z-index: 1; left: 12px; bottom: 12px; padding: 9px 12px; background: var(--surface); font-size: 11px; color: var(--muted); }
.contact-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #cebca8; border-top: 0; border-radius: 0 0 4px 4px; }
.contact-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 15px; min-height: 98px; padding: 22px 24px; }
.contact-action + .contact-action { border-left: 1px solid #cebca8; }
.contact-action-name { font-size: 12px; font-weight: 500; }
.contact-action .arrow { grid-column: 2; grid-row: 1 / 3; }
.contact-action small { font-size: 10px; color: var(--muted); }
.contact-action:hover { background: var(--surface); }
.contact-action:focus-visible { outline-offset: -4px; }
.contact-map-footnote { margin-top: 13px; font-size: 10px; color: var(--muted); }
.contact-map-footnote a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer { padding: 62px 0 25px; background: var(--ink); color: #f3eadf; }
.footer-layout { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 70px; }
.footer-name { display: inline-block; font-family: 'Cormorant Garamond Roman', Georgia, serif; font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -.032em; }
.footer-description { margin-top: 17px; max-width: 330px; font-size: 11px; line-height: 1.8; color: #cfbda9; }
.footer-navigation { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 12px; }
.footer-contact-phone { display: inline-block; font-size: 19px; letter-spacing: -.025em; }
.footer-contacts p { margin-top: 12px; font-size: 11px; color: #cfbda9; }
.footer-social { display: inline-block; margin-top: 14px; font-size: 12px; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgb(243 234 223 / 22%); font-size: 10px; color: #cfbda9; }
.footer-credit { color: #f3eadf; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px 30px; margin-top: 19px; font-size: 10px; color: #cfbda9; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-legal-links a { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:hover { color: white; }
.site-footer a:focus-visible { outline-color: #f3eadf; }
@media (max-width: 1190px) {
  .contact-heading { gap: 35px; }
  .contact-information { padding: 28px; }
  .contact-action { padding: 20px; }
  .footer-layout { gap: 42px; }
}
@media (max-width: 900px) {
  .portfolio-section { margin-top: 54px; padding-block: 58px; }
  .directions-grid { gap: 20px; }
  .direction-card h3 { font-size: 18px; }
  .direction-card p { font-size: 12px; }
  .contact-section { padding-block: 60px; }
  .contact-heading { display: block; }
  .contact-description { max-width: 550px; margin-top: 24px; font-size: 13px; }
  .contact-grid { grid-template-columns: minmax(250px, .85fr) minmax(0, 1.15fr); }
  .contact-information { padding: 24px; }
  .contact-map { min-height: 360px; }
  .contact-phone { font-size: 22px; }
  .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-action:nth-child(3) { border-left: 0; }
  .contact-action:nth-child(n+3) { border-top: 1px solid #cebca8; }
  .footer-layout { grid-template-columns: 1.15fr .85fr; gap: 35px; }
  .footer-contacts { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 28px; }
  .footer-contacts p, .footer-social { margin: 0; }
}
@media (max-width: 760px) {
  .directions-grid { grid-template-columns: 1fr; gap: 34px; }
  .direction-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; }
  .direction-copy { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-information { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 25px; padding: 28px; }
  .contact-information > div:first-child { grid-row: 1 / 3; }
  .contact-map { min-height: 340px; border-left: 0; border-top: 1px solid #cebca8; }
}
@media (max-width: 640px) {
  .portfolio-section { margin-top: 44px; padding-block: 44px; }
  .project-card-topline { padding: 17px 16px 0; gap: 12px; }
  .project-card-title { font-size: 18px; }
  .featured-grid .project-card-title { font-size: 18px; }
  .project-card-meta { padding: 0 16px 17px; font-size: 11px; }
  .direction-card { display: block; }
  .direction-copy { padding-top: 19px; }
  .direction-card h3 { font-size: 22px; }
  .direction-card p { font-size: 13px; max-width: none; }
  .directions-caption { font-size: 10px; line-height: 1.7; }
  .contact-section { padding-block: 44px; }
  .contact-heading { margin-bottom: 28px; }
  .contact-heading .section-title { font-size: 37px; }
  .contact-heading .section-title .accent { display: block; }
  .contact-information { grid-template-columns: 1fr; padding: 25px 22px; gap: 23px; }
  .contact-information > div:first-child { grid-row: auto; }
  .contact-city { font-size: 34px; }
  .contact-phone { font-size: 26px; }
  .contact-map { min-height: 320px; }
  .map-placeholder { padding: 25px; }
  .map-place { font-size: 29px; }
  .map-close { min-height: 44px; }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-action { min-height: 84px; padding: 18px 22px; }
  .contact-action + .contact-action { border-left: 0; border-top: 1px solid #cebca8; }
  .contact-action-name { font-size: 13px; }
  .contact-action small { font-size: 11px; }
  .site-footer { padding-top: 45px; }
  .footer-layout { grid-template-columns: 1fr; gap: 30px; }
  .footer-name { font-size: clamp(30px, 8.5vw, 38px); }
  .footer-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-contacts { grid-column: auto; display: block; }
  .footer-contacts p { margin-top: 12px; }
  .footer-social { margin-top: 14px; }
  .footer-meta, .footer-legal { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-meta { margin-top: 30px; }
  .footer-legal-links { flex-direction: column; gap: 14px; }
}
