/* Shared visual layer; loaded after the existing component styles. */
:root {
  --main-bg: #faf8f3;
  --second-bg: #e5e8dc;
  --accent-color: #456451;
  --text-color: #293c32;
  --muted: #667168;
  --line: #dce1d6;
  --paper: #fffefa;
  --transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
html { scroll-padding-top: 110px; }
body { background: var(--main-bg); color: var(--text-color); }
body.dialog-open { overflow: hidden; }
.container { width: min(1180px, calc(100% - 64px)); }
.container.narrow { max-width: 860px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 4px; }
[hidden] { display: none !important; }
img { height: auto; }
h1, h2, .section-title, .section-title-left, .centered-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; color: var(--text-color); }
h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.12; }
h2, .section-title, .section-title-left, .centered-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.35; font-weight: 500; }
p { line-height: 1.75; }
.section, .ethics-section, .home-blog, .contacts-page { padding: 72px 0; }
.section-title, .centered-title { margin-bottom: 32px; }
.section-subtitle { color: var(--muted); max-width: 580px; margin: -12px auto 36px; }
.eyebrow { display: block; color: var(--accent-color); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.btn, .btn-service, .btn-submit { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 14px 24px; border: 1px solid var(--accent-color); border-radius: 999px; background: var(--accent-color); color: #fff; font-weight: 500; line-height: 1.3; box-shadow: none; }
.btn:hover, .btn-service:hover, .btn-submit:hover { background: #304c3d; border-color: #304c3d; color: #fff; transform: translateY(-2px); }
.btn.other, .btn-outline-small { border: 1px solid var(--line); color: var(--text-color); background: transparent; border-radius: 999px; padding: 13px 24px; }
.btn.other:hover, .btn-outline-small:hover { background: var(--second-bg); border-color: var(--accent-color); }
button:disabled { cursor: default; opacity: .65; transform: none !important; }
.full-width { width: 100%; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 11000; padding: 14px 20px; background: var(--paper); border: 2px solid var(--accent-color); }
.skip-link:focus { top: 12px; }
.main-header { background: rgba(250,248,243,.97); backdrop-filter: blur(12px); padding: 18px 0; border-bottom: 1px solid var(--line); }
.header-wrapper { gap: 28px; }
.logo { flex-shrink: 0; }
.logo a { display: flex; flex-direction: column; }
.brand-name { font-family: Georgia, serif; font-size: 23px; letter-spacing: -.03em; }
.brand-caption { font-size: 10px; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); margin-top: 3px; }
.main-nav { gap: 22px; }
.main-nav a { font-size: 14px; font-weight: 400; }
.main-nav a[aria-current='page'] { color: var(--accent-color); text-decoration: underline; text-underline-offset: 7px; }
.header-actions { gap: 12px; }
.header-contact, .header-social { display: none; }
.nav-cabinet { margin: 0; padding: 8px 12px; border-color: var(--line); background: transparent; border-radius: 999px; }
.dropdown-content { min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px #293c3210; }
.dropdown:focus-within .dropdown-content { display: block; }
.dropdown-content a { padding: 12px 18px; }
.mobile-menu-toggle { display: none; background: transparent; width: 44px; height: 44px; padding: 10px; }
.preview-note { font-size: 13px; color: #66543f; background: #f2ebde; border: 1px solid #e7dcca; border-radius: 12px; padding: 12px 18px; margin: 20px auto; line-height: 1.6; }
.hero { min-height: 0; padding: 50px 0 80px; }
.hero-wrapper { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; text-align: left; padding: 0; }
.hero-content h1 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.1; margin-bottom: 24px; }
.hero-content h1 em { font: inherit; font-style: italic; color: var(--accent-color); }
.hero-content > p { font-size: 17px; max-width: 470px; color: var(--muted); margin-bottom: 28px; }
.hero .buttons { flex-wrap: wrap; gap: 12px; }
.hero-offer { display: block; background: transparent; padding: 0; border: 0; margin: 0 0 28px; }
.hero-offer p { font-size: 13px; color: var(--muted); margin: 0; }
.hero-image { position: relative; display: block; width: 100%; max-width: 420px; justify-self: center; background: #e9e7dc; border-radius: 28px; padding: 12px 12px 0; overflow: hidden; }
.hero-portrait { position: relative; aspect-ratio: 591 / 888; overflow: hidden; border-radius: 20px; }
/* Hide the supplied photo's black bands (196 px above, 196 px below) without editing the original. */
.hero-image .hero-portrait img { position: absolute; top: -22.073%; left: 0; width: 100%; max-width: none; height: 144.145%; object-fit: fill; border-radius: 0; margin: 0; }
.hero-signature { position: relative; padding: 18px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hero-signature span { font-family: Georgia, serif; font-size: 21px; }
.hero-signature small { font-size: 12px; color: var(--muted); }
.services { border-top: 1px solid var(--line); background: #f1f3ec; }
.services .section-title { text-align: left; }
.services .hero-offer { display: block; text-align: left; margin-left: 0; width: auto; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; box-shadow: none; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.service-card:hover { border-color: #94aa94; box-shadow: 0 16px 30px #293c3209; transform: translateY(-5px); }
.service-icon, .ethics-icon { width: 52px; height: 52px; display: grid; place-items: center; background: #edf0e7; border-radius: 50%; font-size: 27px; margin-bottom: 28px; }
.service-card h3 { font-family: Georgia, serif; font-size: 26px; margin-bottom: 16px; }
.service-card p { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.service-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); width: 100%; }
.service-price { font-size: 17px; color: var(--accent-color); }
.service-link-arrow { border-radius: 50%; font-size: 24px; }
.about-wrapper { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.about-lead { font-size: 21px; line-height: 1.65; }
.about-text p { color: var(--muted); margin-top: 18px; }
.about-experience { display: block; padding: 0; background: transparent; }
.about-experience img { border-radius: 24px; width: 100%; }
.about-experience > p { color: var(--muted); font-size: 13px; margin-top: 14px; }
.about-features { margin-top: 24px; }
.feature-item { font-size: 14px; margin: 10px 0; }
.feature-dot { background: var(--accent-color); }
.faq { background: #f1f3ec; }
.faq-list { max-width: 850px; margin: auto; }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid #d3dccf; border-radius: 0; margin: 0; box-shadow: none; }
.faq-question { background: transparent; padding: 24px 0; width: 100%; text-align: left; gap: 24px; color: var(--text-color); font-size: 17px; }
.faq-icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #bacab9; border-radius: 50%; font-size: 23px; }
.faq-item .faq-answer, .faq-item.active .faq-answer { max-height: none; padding: 0; overflow: visible; }
.faq-answer { background: transparent; }
.faq-answer p { padding: 0 48px 24px 0; color: var(--muted); font-size: 15px; }
.ethics-section { background: var(--main-bg); }
.ethics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.ethics-item { background: transparent; border: 0; border-radius: 0; text-align: left; padding: 12px 0; box-shadow: none; }
.ethics-item h3 { font-size: 17px; margin-bottom: 14px; }
.ethics-item p { color: var(--muted); font-size: 14px; }
.ethics-icon { margin: 0 0 20px; }
.contacts-page { background: #e9eee4; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contacts-info h1, .contacts-info h2 { font-size: 44px; }
.contacts-subtitle { color: var(--muted); font-size: 16px; margin-top: 20px; max-width: 420px; }
.info-list { margin-top: 34px; }
.info-item { align-items: flex-start; margin-bottom: 26px; }
.info-item h3 { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.info-icon { background: #f8faf4; width: 42px; height: 42px; border-radius: 50%; font-size: 20px; }
.contacts-form-box { background: var(--paper); padding: 36px; border-radius: 24px; box-shadow: none; border: 1px solid var(--line); }
.contacts-form-box h2 { font-size: 30px; margin-bottom: 12px; }
.contacts-form-box > p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.modal-form .form-group { margin-bottom: 18px; }
.field-label { display: block; }
.field-label > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.modal-form input:not([type='checkbox']):not([type='hidden']) { width: 100%; background: #fafbf7; border: 1px solid #cbd4c6; border-radius: 12px; padding: 14px 16px; height: 50px; color: var(--text-color); }
.modal-form input::placeholder { color: #7a827a; }
.modal-form .custom-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.modal-form .custom-checkbox input[type='checkbox'] { appearance: auto; position: static; opacity: 1; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; accent-color: var(--accent-color); }
.modal-form .checkmark { display: none; }
.modal-form .privacy-check p, .modal-form > p { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 0 0 12px; }
.modal-form a { text-decoration: underline; text-underline-offset: 3px; }
.modal-form .form-status:not(:empty) { padding: 12px 16px; background: #eaf1e6; border-radius: 10px; color: #2d5137; font-size: 14px; }
.modal-form .form-status.is-error { color: #87382d; background: #f8eae5; }
.home-blog { background: var(--main-bg); }
.section-header-flex { gap: 24px; margin-bottom: 32px; }
.home-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-post-card, .post-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: none; }
.home-post-image { height: auto; aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.home-post-image a { display: block; height: 100%; }
.home-post-image img, .post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.home-post-card:hover img { transform: scale(1.035); }
.home-post-content, .post-content { padding: 26px; }
.home-post-content h3 { font-family: Georgia, serif; font-size: 25px; margin: 12px 0; }
.home-post-content p, .post-content p { font-size: 14px; color: var(--muted); }
.post-tag, .post-category, .cat-pill { color: var(--accent-color); background: #edf1e7; border-radius: 999px; font-size: 12px; }
.post-tag { position: absolute; top: auto; bottom: 16px; left: 16px; padding: 7px 12px; }
.post-date { color: var(--muted); font-size: 12px; }
.main-footer { background: #293f34; color: #f4f5ed; padding: 58px 0 24px; }
.footer-wrapper { gap: 44px; grid-template-columns: 1.3fr .8fr 1fr 1fr; }
.footer-brand > a { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-brand p { color: #c5d0c3; font-size: 14px; margin-top: 20px; }
.footer-brand .brand-caption { color: #c5d0c3; }
.main-footer h4 { color: #f4f5ed; font-size: 13px; letter-spacing: .06em; margin-bottom: 20px; }
.main-footer a, .footer-contact > span { color: #d6dfd3; font-size: 14px; }
.main-footer .brand-name { color: #fff; font-size: 26px; }
.main-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #ffffff25; margin-top: 44px; padding-top: 24px; gap: 20px; }
.footer-bottom p, .footer-bottom a { font-size: 12px; color: #c5d0c3; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 36px; flex-wrap: wrap; }
.breadcrumb a, .breadcrumb span { font-size: inherit; }
.about-page, .services-page, .faq-page, .blog-page, .service-detail, .post-detail { padding: 40px 0 80px; }
.services-header, .faq-header, .blog-header { max-width: 720px; margin-bottom: 48px; }
.services-header p, .faq-header p, .blog-header p { color: var(--muted); font-size: 17px; margin-top: 20px; }
.service-wide-card, .service-promo-card, .sticky-card, .faq-cta, .post-author-card { border: 1px solid var(--line); box-shadow: none; border-radius: 24px; background: var(--paper); }
.service-wide-card { overflow: hidden; }
.service-image { background: #e9eee2; }
.service-info { padding: 32px; }
.service-info h2 { font-size: 30px; }
.service-info p, .service-features li { color: var(--muted); }
.service-promo-card, .faq-cta { background: #e9eee2; padding: 40px; }
.faq-cta p { margin: 16px 0 24px; }
.service-detail-header h1, .post-header h1 { font-size: clamp(32px, 4vw, 50px); }
.service-lead { color: var(--muted); margin-top: 22px; }
.service-main-content h2 { font-size: 30px; margin-bottom: 22px; }
.service-description p, .post-content-body p { line-height: 1.85; margin-bottom: 22px; color: #4d5c52; }
.sticky-card { top: 110px; padding: 32px; }
.s-feature { color: var(--muted); font-size: 13px; }
.step-num { background: var(--second-bg); color: var(--accent-color); }
.about-intro { gap: 64px; }
.about-image-main img { border-radius: 160px 160px 24px 24px; }
.about-greeting h1 { font-size: clamp(32px, 3.6vw, 48px); }
.about-values, .about-education { margin-top: 70px; }
.value-item { background: #eff2e9; border-radius: 20px; }
.post-featured-image { border-radius: 24px; overflow: hidden; height: auto; }
.post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-content-body { max-width: 720px; margin: 40px auto; }
.post-content-body h2 { font-size: 30px; margin: 36px 0 20px; }
.post-author-card { padding: 30px; gap: 24px; }
.post-author-card .author-avatar { width: 80px; height: 80px; flex-shrink: 0; object-fit: cover; }
.author-info p { color: var(--muted); font-size: 14px; margin: 12px 0 20px; }
.privacy-policy h1 { font-size: clamp(32px, 4vw, 48px); overflow-wrap: anywhere; }
.privacy-policy .policy-content { background: var(--paper); padding: 36px; border: 1px solid var(--line); border-radius: 20px; }
.privacy-policy h2 { font-size: 27px; }
.privacy-policy h3 { font-size: 17px; margin: 24px 0 12px; }
.privacy-policy a { text-decoration: underline; text-underline-offset: 3px; }
.modal-overlay { padding: 24px; background: #172c2477; }
.modal-content { width: 100%; max-width: 520px; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 24px; padding: 40px; animation: none; }
.modal-header { text-align: left; margin-bottom: 24px; padding-right: 12px; }
.modal-header h2 { font-size: 32px; }
.modal-header p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.modal-close { top: 10px; right: 10px; width: 44px; height: 44px; opacity: 1; font-size: 28px; border-radius: 50%; }
.modal-close:hover { transform: none; background: var(--second-bg); }
#back-to-top { background: var(--accent-color); border-radius: 50%; width: 44px; height: 44px; right: 20px; bottom: 20px; color: #fff; box-shadow: 0 5px 16px #293c3220; }
@media (max-width: 1100px) {
  .header-wrapper { gap: 16px; flex-wrap: wrap; }
  .main-header nav.content { order: 3; width: 100%; }
  .main-nav { justify-content: center; }
  .header-actions { margin-left: auto; }
  .hero-wrapper { gap: 36px; }
  .services-grid, .ethics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-grid, .about-wrapper { gap: 40px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .section, .ethics-section, .home-blog, .contacts-page { padding: 48px 0; }
  .main-header { padding: 12px 0; }
  .brand-name { font-size: 21px; }
  .brand-caption { font-size: 9px; }
  .mobile-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; order: 4; }
  .mobile-menu-toggle span { width: 24px; height: 2px; background: var(--text-color); transition: transform .2s ease; }
  .mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-actions .btn { font-size: 12px; min-height: 40px; padding: 10px 14px; }
  .main-header nav.content { width: auto; order: initial; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; height: auto; max-height: calc(100dvh - 80px); overflow-y: auto; background: var(--main-bg); padding: 20px; box-shadow: 0 20px 25px #293c3215; border-bottom: 1px solid var(--line); gap: 4px; align-items: stretch; }
  .main-nav.active { display: flex; right: 0; }
  .main-nav a { display: flex; padding: 12px; font-size: 16px; }
  .dropdown-content { display: none !important; }
  .hero { padding: 28px 0 48px; }
  .hero-wrapper { grid-template-columns: 1fr; text-align: left; gap: 32px; }
  .hero-content h1 { font-size: clamp(34px, 8vw, 48px); }
  .hero-content > p { font-size: 16px; }
  .hero-image { max-width: 360px; width: 100%; margin: auto; }
  .hero-signature { padding: 16px 4px; }
  .about-wrapper, .contacts-grid, .about-intro, .service-detail-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
  .home-blog-grid { grid-template-columns: 1fr; }
  .home-post-card { display: grid; grid-template-columns: .85fr 1fr; }
  .home-post-image { height: 100%; aspect-ratio: auto; }
  .home-post-content { padding: 22px; }
  .home-post-content h3 { font-size: 24px; }
  .section-header-flex { align-items: flex-start; flex-direction: column; }
  .contacts-form-box, .service-info, .sticky-card { padding: 26px; }
  .footer-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .privacy-policy .policy-content { padding: 22px; }
  .post-author-card { flex-direction: column; align-items: flex-start; }
  .modal-overlay { padding: 12px; }
  .modal-content { padding: 34px 24px 24px; max-height: calc(100dvh - 24px); }
}
@media (min-width: 761px) and (max-width: 992px) {
  .main-nav { display: flex; position: static; width: auto; height: auto; flex-direction: row; background: transparent; box-shadow: none; }
  .mobile-menu-toggle { display: none; }
  .hero-wrapper { text-align: left; }
}
@media (max-width: 480px) {
  .header-wrapper { gap: 8px; }
  .header-actions { display: none; }
  .mobile-menu-toggle { margin-left: auto; }
  .services-grid, .ethics-grid, .footer-wrapper { grid-template-columns: 1fr; }
  .service-card { padding: 26px; }
  .ethics-grid { gap: 14px; }
  .ethics-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
  .home-post-card { display: block; }
  .home-post-image { aspect-ratio: 3 / 2; }
  .hero .buttons { flex-direction: column; align-items: stretch; }
  .faq-question { font-size: 16px; }
  .faq-answer p { padding-right: 0; }
  .service-promo-card, .faq-cta { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Readability and spacing refinements across public pages. */
html { font-size: 17px; }
body { font-size: 17px; }
p, li, label { font-size: 17px; }
.container { width: min(1360px, calc(100% - 80px)); }
.container.narrow { max-width: 960px; }
.main-nav a { font-size: 16px; }
.hero-content > p, .services-header p, .faq-header p, .blog-header p, .contacts-subtitle { font-size: 18px; }
.service-card p, .home-post-content p, .post-content p, .ethics-item p,
.contacts-form-box > p, .modal-header p, .author-info p, .service-features li { font-size: 17px; }
.service-card h3 { font-size: 28px; }
.feature-item, .feature-item span, .info-item h3, .service-duration { font-size: 16px; }
.hero-offer p, .post-date, .post-tag, .post-category, .home-post-content .post-date { font-size: 14px; }
.modal-form .field-label > span { font-size: 16px; }
.modal-form input:not([type='checkbox']):not([type='hidden']) { font-size: 17px; height: 54px; }
.modal-form .privacy-check p, .modal-form > p,
.modal-form .privacy-check a, .modal-form > p a { font-size: 15px; line-height: 1.7; }
.modal-form .privacy-check p { margin: 0; }
.modal-form .privacy-check { margin: 22px 0 18px; }
.modal-form .custom-checkbox { gap: 12px; }
.modal-form .custom-checkbox input[type='checkbox'] { width: 20px; height: 20px; flex-basis: 20px; margin-top: 3px; }
.modal-form .form-status:not(:empty) { font-size: 16px; }
.value-item { padding: 34px; border: 1px solid var(--line); background: #f0f3eb; border-radius: 22px; }
.value-item h3 { font-size: 24px; margin-bottom: 18px; }
.value-item p { font-size: 17px; color: #4d5c52; }
.values-grid { gap: 24px; align-items: stretch; }
.ethics-grid { gap: 22px; }
.ethics-item { padding: 32px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.ethics-icon { width: 56px; height: 56px; background: #e8eee2; border: 1px solid #dce5d4; color: #3e624b; margin-bottom: 24px; }
.line-icon { width: 28px; height: 28px; }
.ethics-item h3 { font-size: 22px; margin-bottom: 16px; }
.ethics-item p { line-height: 1.8; }
.service-process { margin-top: 52px; }
.process-steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.process-steps .step { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 30px; border: 1px solid #d9e2d2; border-radius: 22px; background: #f0f4eb; }
.process-steps .step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fffefa; border: 1px solid #d6dfcf; font-size: 17px; font-weight: 500; color: #456451; flex-shrink: 0; }
.step-copy h4 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.step-copy p { font-size: 17px; line-height: 1.8; color: #4d5c52; }
.services-list-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.service-wide-card { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(0,1.6fr); align-items: stretch; margin: 0; }
.service-image { display: block; width: auto; height: auto; min-height: 300px; padding: 0; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-info { padding: 38px 42px; min-width: 0; }
.service-info h2 { font-size: 36px; }
.service-info > p { font-size: 17px; }
.service-bottom { gap: 20px; flex-wrap: wrap; }
.service-price-group { display: flex; flex-direction: column; gap: 4px; }
.service-price-group .price-tag { font-size: 28px; font-weight: 500; }
.service-duration { color: #55664f; }
.service-promo-card { background: #e9eee2; color: #293c32; padding: 42px; }
.service-promo-card h3 { color: #293c32; font-size: 30px; }
.service-promo-card p { color: #4d5c52; font-size: 17px; }
.service-promo-card .btn { background: #456451; color: #fff; border-color: #456451; }
.service-promo-card .btn:hover { background: #304c3d; border-color: #304c3d; color: #fff; }
.faq-list, .faq-container { max-width: 1000px; }
.faq-item { margin-bottom: 14px; border: 1px solid #d5dece; border-radius: 18px; background: #fffefa; overflow: hidden; }
.faq-question { padding: 25px 28px; font-size: 18px; line-height: 1.6; background: #fffefa; color: #293c32; }
.faq-question:hover, .faq-item.active .faq-question { background: #edf2e7; color: #293c32; }
.faq-question:focus-visible { outline-offset: -4px; border-radius: 18px; }
.faq-item .faq-answer, .faq-item.active .faq-answer { background: #fffefa; padding: 0; }
.faq-answer p { padding: 22px 28px 28px; margin: 0; font-size: 17px; color: #4d5c52; }
.faq-icon { color: #456451; background: #f4f7ef; }
.faq-category { margin-bottom: 44px; }
.faq-category h2 { margin-bottom: 24px; }
.cabinet-main { min-width: 0; }
.session-details p, .time-details p, .profile-stats p { font-size: 17px; }
.session-toggle { padding: 24px; }
.session-toggle .session-date, .session-toggle .session-type { font-size: 17px; }
.details-content { padding: 28px; }
.detail-section p { line-height: 1.8; }
@media (max-width: 1200px) {
 .main-nav { gap: 12px; }
 .main-nav a { font-size: 15px; }
 .ethics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
 .service-info { padding: 30px; }
}
@media (max-width: 900px) {
 .service-wide-card { grid-template-columns: 1fr; }
 .service-image { height: 280px; min-height: 0; width: 100%; }
 .values-grid { display: grid; grid-template-columns: 1fr; }
 .process-steps { grid-template-columns: 1fr; }
 .process-steps .step { flex-direction: row; gap: 20px; }
}
@media (max-width: 760px) {
 .container { width: calc(100% - 36px); }
 .hero-content > p, .contacts-subtitle { font-size: 17px; }
 .hero-signature { flex-wrap: wrap; gap: 4px; }
 .main-nav a { font-size: 17px; }
 .value-item, .ethics-item { padding: 28px; }
 .faq-question { padding: 22px; font-size: 17px; gap: 16px; }
 .faq-answer p { padding: 20px 22px 24px; font-size: 17px; }
 .service-info { padding: 26px; }
 .service-info h2 { font-size: 30px; }
 .service-promo-card { padding: 30px 24px; }
 .upcoming-card { flex-wrap: wrap; gap: 20px; }
 .session-main-info { flex-wrap: wrap; gap: 10px; }
 .cabinet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
 .ethics-grid { grid-template-columns: 1fr; }
 .service-image { height: 220px; }
 .service-bottom { align-items: flex-start; flex-direction: column; }
 .service-bottom .btn-service { width: 100%; }
 .process-steps .step { padding: 24px; flex-direction: column; }
 .session-toggle { padding: 18px; }
 .details-content { padding: 20px; }
}

/* Session text must never be clipped when expanded. */
.session-details, .session-item.active .session-details { max-height: none; overflow: visible; transition: none; }

/* All page sections share the same outer alignment. */
.container.narrow, .privacy-policy .container.narrow { max-width: none; }
.breadcrumb { width: 100%; max-width: none; margin: 0 0 36px; padding: 0; text-align: left; opacity: 1; font-size: 14px; line-height: 1.7; }
.faq-list, .faq-container, .post-content-body, .service-detail-header,
.services-header, .faq-header, .blog-header, .post-header,
.faq-header p, .blog-header p, .services-header p, .section-subtitle { width: 100%; max-width: none; }
.faq-header, .blog-header, .services-header { margin: 0 0 48px; text-align: center; }
.faq-category h2 { text-align: center; padding-bottom: 20px; }
.post-content-body { margin: 40px 0; }
.faq-icon { position: relative; display: block; flex: 0 0 34px; width: 34px; height: 34px; margin: 0; padding: 0; line-height: 1; transform: none; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.active .faq-icon { transform: none; }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.btn-logout { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 18px; padding: 12px 18px; border: 1px solid #bdcdb7; border-radius: 12px; background: #eef3e9; color: #304c3d; font-size: 16px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.btn-logout:hover { background: #dce7d4; border-color: #456451; color: #293c32; }
.blog-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 36px; }
.blog-categories .cat-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; font-size: 17px; line-height: 1.5; text-align: center; }
.blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; align-items: stretch; }
.blog-grid .post-card { display: flex; flex-direction: column; min-width: 0; border-radius: 22px; }
.blog-grid .post-image { display: block; flex: none; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: 3 / 2; }
.blog-grid .post-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-grid .post-content { display: flex; flex-direction: column; flex: 1; padding: 30px; }
.post-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.post-card-meta .post-category { display: inline-block; margin: 0; padding: 6px 12px; font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.blog-grid .post-card h2 { margin: 0 0 20px; font-size: 30px; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.post-card h2 a, .post-card h3 a, .home-post-content h3 a { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }
.blog-grid .post-card p { font-size: 17px; line-height: 1.8; margin: 0 0 28px; opacity: 1; }
.blog-grid .post-footer { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 22px; }
.post-footer .read-time, .post-footer a { font-size: 15px; line-height: 1.6; }
.post-footer a { font-weight: 500; color: #304c3d; }
.post-header h1 { line-height: 1.22; margin-top: 24px; }
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
 .blog-grid { grid-template-columns: 1fr; gap: 24px; }
 .blog-grid .post-content { padding: 26px; }
 .blog-grid .post-card h2 { font-size: 28px; }
 .blog-categories { gap: 10px; justify-content: flex-start; }
 .blog-categories .cat-pill { min-height: 48px; padding: 10px 18px; font-size: 16px; }
 .faq-category h2 { font-size: 28px; }
 .breadcrumb { font-size: 13px; margin-bottom: 28px; }
}

/* Keep the article illustration compact without cropping its composition. */
.post-featured-image { width: 100%; height: auto; max-height: none; background: #edf0e7; padding: 16px; }
.post-featured-image img { display: block; width: 100%; height: clamp(220px, 30vw, 380px); aspect-ratio: auto; object-fit: contain; border-radius: 12px; }
@media (max-width: 760px) {
 .post-featured-image { padding: 10px; border-radius: 18px; }
 .post-featured-image img { height: clamp(180px, 55vw, 280px); }
}

/* Article introduction: real image proportions alongside the heading. */
.article-intro-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; align-items: center; margin: 0 0 44px; }
.article-intro-grid .post-header { margin: 0; text-align: left; }
.article-intro-grid .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.article-intro-grid .post-category { margin: 0; padding: 6px 12px; font-size: 13px; }
.article-intro-grid h1 { font-size: clamp(30px,3.3vw,46px); line-height: 1.2; margin: 22px 0; }
.article-intro-grid .post-intro { margin: 0; color: #57685b; font-size: 18px; line-height: 1.8; }
.article-intro-grid .post-featured-image { width: 100%; height: auto; margin: 0; padding: 0; background: transparent; border-radius: 22px; overflow: visible; }
.article-intro-grid .post-featured-image img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; aspect-ratio: auto; border-radius: 22px; }
/* HTML entered in admin, including all elements in apps/content/helps.py. */
.rich-text { color: #3f5146; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.rich-text p { font-size: inherit; line-height: 1.85; margin: 0 0 22px; }
.rich-text h2 { font-family: Georgia, serif; font-size: 30px; font-weight: 400; line-height: 1.3; margin: 40px 0 20px; letter-spacing: -.02em; }
.rich-text h3 { font-size: 23px; line-height: 1.4; margin: 30px 0 16px; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { display: block; padding: 0 0 0 28px; margin: 20px 0 28px; }
.rich-text ul { list-style: disc outside; }
.rich-text ol { list-style: decimal outside; }
.rich-text li { display: list-item; padding-left: 8px; font-size: inherit; line-height: 1.85; margin: 10px 0; }
.rich-text ul li::before { content: none; }
.rich-text li::marker { color: #456451; font-weight: 600; }
.rich-text blockquote { margin: 30px 0; padding: 26px 32px; border: 1px solid #dce5d4; border-left: 4px solid #73916b; border-radius: 0 18px 18px 0; background: #eef3e8; color: #344e3b; font-family: Georgia, serif; font-size: 21px; font-style: normal; line-height: 1.75; }
.rich-text blockquote p { font-family: inherit; font-size: inherit; color: inherit; }
.rich-text blockquote > :last-child { margin-bottom: 0; }
.rich-text a { color: #34553f; text-decoration: underline; text-underline-offset: 4px; font-size: inherit; }
.rich-text strong, .rich-text b { font-size: inherit; font-weight: 650; }
.rich-text em, .rich-text i { font-size: inherit; font-style: italic; }
.rich-text img { display: block; width: auto; height: auto; max-width: 100%; max-height: 480px; margin: 28px auto; border-radius: 18px; }
.home-post-card { display: flex; flex-direction: column; min-width: 0; height: auto; }
.home-post-image { flex: none; height: auto; aspect-ratio: 3 / 2; }
.home-post-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.home-post-content p { margin: 0 0 22px; line-height: 1.75; opacity: 1; }
.home-post-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: auto; }
.home-post-footer span, .home-post-footer a { font-size: 14px; line-height: 1.6; }
.home-post-footer a { font-weight: 500; color: #34553f; }
@media (max-width: 900px) {
 .article-intro-grid { grid-template-columns: 1fr; gap: 26px; }
 .article-intro-grid .post-featured-image img { max-height: 340px; }
}
@media (max-width: 760px) {
 .home-post-card { display: flex; flex-direction: column; height: auto; }
 .home-post-image { height: auto; aspect-ratio: 3 / 2; }
 .home-post-content { padding: 24px; }
 .home-post-content h3 { font-size: 25px; line-height: 1.35; margin: 14px 0; }
 .home-post-content p { display: block; font-size: 16px; }
 .rich-text h2 { font-size: 26px; margin-top: 30px; }
 .rich-text blockquote { padding: 22px; font-size: 19px; }
 .rich-text ul, .rich-text ol { padding-left: 24px; }
}

/* Personal home hero: one composition with an early portrait on mobile. */
.hero-personal { padding: 28px 0 52px; }
.hero-personal .hero-wrapper { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding: 48px 52px; border-radius: 32px; background: #edf0e7; }
.hero-personal .hero-content { min-width: 0; }
.hero-personal .eyebrow { font-size: 13px; letter-spacing: .18em; margin-bottom: 24px; }
.hero-personal h1 { font-size: clamp(48px, 5.7vw, 80px); line-height: 1.02; letter-spacing: -.055em; margin-bottom: 24px; }
.hero-personal h1 em { display: block; }
.hero-personal .hero-intro { font-family: Georgia, serif; font-size: clamp(23px, 2.3vw, 32px); line-height: 1.3; color: var(--text-color); opacity: 1; margin: 0 0 24px; }
.hero-personal .hero-details > p { max-width: 430px; font-size: 16px; line-height: 1.75; margin: 0 0 28px; color: var(--muted); }
.hero-personal .buttons { align-items: center; gap: 20px; }
.hero-personal .btn { padding: 17px 24px; }
.hero-personal .btn span { margin-left: 12px; font-size: 21px; }
.hero-about-link { font-size: 14px; padding: 10px 0; border-bottom: 1px solid #aab7a6; color: var(--text-color); }
.hero-about-link span { margin-left: 8px; }
.hero-format { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.hero-format > span { width: 6px; height: 6px; border-radius: 50%; background: #789474; }
.hero-personal .hero-image { max-width: 420px; padding: 0; border-radius: 140px 24px 24px 24px; background: #45281f; align-self: stretch; }
.hero-personal .hero-portrait { height: 100%; min-height: 530px; aspect-ratio: auto; border-radius: 0; }
.hero-personal .hero-portrait img { height: auto; min-height: 144.145%; width: 100%; top: 50%; transform: translateY(-50%); object-fit: cover; }
.hero-personal .hero-signature { position: absolute; bottom: 0; left: 0; right: 0; padding: 56px 24px 24px; background: linear-gradient(transparent, #241c18c9); color: #fffaf1; }
.hero-personal .hero-signature span { font-size: 20px; font-style: italic; }
@media (max-width: 1100px) and (min-width: 761px) {
 .hero-personal .hero-wrapper { padding: 32px; gap: 28px; }
 .hero-personal .hero-portrait { min-height: 530px; }
 .hero-personal .hero-portrait img { width: auto; min-width: 100%; height: 144.145%; max-width: none; left: 50%; transform: translate(-50%, -50%); }
}
@media (max-width: 760px) {
 .hero-personal { padding: 16px 0 32px; }
 .hero-personal .hero-wrapper { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 24px; border-radius: 24px; }
 .hero-personal .hero-content { display: contents; }
 .hero-personal .hero-heading { order: 0; }
 .hero-personal .eyebrow { font-size: 11px; margin-bottom: 14px; }
 .hero-personal h1 { font-size: clamp(42px, 12vw, 66px); margin-bottom: 16px; }
 .hero-personal .hero-intro { font-size: 23px; margin: 0; }
 .hero-personal .hero-image { order: 1; width: 100%; max-width: none; border-radius: 80px 18px 18px 18px; }
 .hero-personal .hero-portrait { min-height: 0; height: auto; aspect-ratio: 1 / 1.04; }
 .hero-personal .hero-portrait img { width: 100%; height: auto; min-height: 0; top: 56%; }
 .hero-personal .hero-signature { padding: 40px 18px 18px; }
 .hero-personal .hero-signature span { font-size: 18px; }
 .hero-personal .hero-details { order: 2; }
 .hero-personal .hero-details > p { font-size: 15px; margin-bottom: 20px; }
 .hero-personal .buttons { gap: 10px; }
 .hero-personal .hero-about-link { align-self: center; }
 .hero-personal .hero-format { font-size: 11px; margin-top: 18px; }
}

/* About: personal introduction and a portrait using the unmodified original. */
.about-personal { padding-top: 28px; }
.about-personal .about-intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); margin-top: 32px; padding: 40px; background: #edf0e7; border-radius: 32px; text-align: left; }
.about-personal .about-image-main { margin: 0; min-width: 0; width: 100%; max-width: 420px; justify-self: center; }
.about-portrait { position: relative; aspect-ratio: 591 / 830; overflow: hidden; border-radius: 140px 24px 24px 24px; background: #45281f; }
.about-personal .about-portrait img { position: absolute; width: 100%; height: auto; top: 50%; left: 0; transform: translateY(-50%); border-radius: 0; box-shadow: none; display: block; }
.about-image-main figcaption { font-family: Georgia, serif; font-style: italic; font-size: 18px; color: var(--accent-color); margin-top: 18px; text-align: center; }
.about-personal .eyebrow { font-size: 11px; margin-bottom: 18px; }
.about-personal .about-greeting h1 { font-size: clamp(44px, 4.5vw, 66px); line-height: 1.08; margin-bottom: 24px; }
.about-personal h1 em { font: inherit; font-style: italic; color: var(--accent-color); }
.about-personal .about-greeting .lead { font-family: Georgia, serif; font-size: clamp(22px, 2vw, 28px); line-height: 1.4; color: var(--text-color); font-weight: 400; margin-bottom: 20px; }
.about-story > p:not(.lead) { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.about-invitation { border-left: 2px solid #a9b9a0; padding-left: 18px; margin: 24px 0; }
.about-invitation > span { font-size: 15px; font-weight: 600; color: var(--accent-color); }
.about-invitation p { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.about-story .btn { gap: 22px; }
.about-personal .about-values { padding: 0; margin: 72px 0; background: transparent; border-radius: 0; }
.about-personal .about-values .centered-title { text-align: left; margin-bottom: 28px; }
.about-personal .values-grid { gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-personal .value-item { padding: 28px; border: 1px solid var(--line); background: var(--paper); border-radius: 20px; }
.about-personal .value-item h3 { font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.about-personal .value-item p { font-size: 16px; color: var(--muted); }
.about-personal .about-education { margin: 0 0 60px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-personal .education-pending { color: var(--muted); }
.about-personal .edu-list { margin-top: 24px; }
.about-personal .faq-cta h3 { font-family: Georgia, serif; font-size: clamp(28px, 3vw, 40px); font-weight: 400; }
@media (max-width: 1000px) {
 .about-personal .about-intro { padding: 28px; gap: 32px; }
 .about-personal .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
 .about-personal { padding-top: 20px; }
 .about-personal .about-intro { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 24px; margin-top: 24px; border-radius: 24px; }
 .about-personal .about-greeting { display: contents; }
 .about-personal .about-heading { order: 0; }
 .about-personal .about-greeting h1 { margin-bottom: 0; font-size: clamp(42px, 11vw, 58px); }
 .about-personal .eyebrow { font-size: 10px; line-height: 1.7; }
 .about-personal .about-image-main { order: 1; }
 .about-personal .about-story { order: 2; }
 .about-portrait { aspect-ratio: 1 / 1.12; border-radius: 80px 18px 18px 18px; }
 .about-personal .about-portrait img { top: 56%; }
 .about-image-main figcaption { font-size: 15px; margin-top: 12px; }
 .about-story > p:not(.lead) { font-size: 15px; }
 .about-story .btn { width: 100%; }
 .about-personal .about-values { margin: 44px 0; }
 .about-personal .about-education { margin-bottom: 40px; }
}

/* Public consent forms, independent of the client account. */
.consent-heading { max-width: 820px; margin: 32px 0 40px; }
.consent-heading h1 { margin-bottom: 24px; }
.consent-heading > p, .consent-card-description { color: var(--muted); }
.consent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.consent-card { background: var(--paper); border: 1px solid var(--line); padding: 36px; border-radius: 24px; min-width: 0; }
.consent-card h2 { font-size: 30px; margin-bottom: 12px; }
.consent-card-description { font-size: 15px; margin-bottom: 28px; }
.consent-field { margin-bottom: 20px; }
.consent-field label { display: block; margin-bottom: 8px; font-size: 15px; }
.consent-field input { display: block; width: 100%; min-width: 0; height: 52px; border: 1px solid #b9c5b4; border-radius: 12px; padding: 12px 14px; color: var(--text-color); background: #fff; font: inherit; }
.consent-field input[aria-invalid='true'] { border-color: #a84636; }
.consent-checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent-checkbox input { appearance: auto; position: static; opacity: 1; width: 20px; height: 20px; flex: 0 0 20px; margin: 3px 0 0; accent-color: var(--accent-color); }
.consent-checkbox span { font-size: 15px; line-height: 1.65; }
.consent-checkbox-field { margin: 20px 0; }
.consent-document-link { display: inline-block; color: var(--accent-color); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.consent-link-hint { font-size: 12px; }
.consent-form .btn { margin-top: 8px; }
.consent-success { border: 1px solid #a1b798; border-radius: 16px; padding: 20px; background: #edf3e7; margin-bottom: 28px; }
.consent-errors { padding: 16px; background: #fbefeb; color: #8f382c; border-radius: 12px; margin-bottom: 20px; }
.consent-form .errorlist { margin: 8px 0; padding: 0; list-style: none; color: #8f382c; }
.consent-form .errorlist li { font-size: 14px; }
.consent-footnote { margin-top: 28px; max-width: 850px; font-size: 14px; color: var(--muted); }
.consent-footnote a { text-decoration: underline; }
.consent-document .eyebrow { margin-top: 36px; }
.consent-document h1 { margin: 24px 0; }
.consent-document-body p { margin-bottom: 24px; }
.consent-document-note { padding: 18px; background: #edf0e7; border-radius: 12px; margin-bottom: 28px; }
.consent-version { margin-top: 32px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 850px) {
 .consent-grid { grid-template-columns: minmax(0, 1fr); }
 .consent-card { padding: 26px 22px; }
 .consent-card h2 { font-size: 27px; }
 .consent-heading h1 { font-size: clamp(30px, 7vw, 44px); }
}

.spam-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.modal-form select { width: 100%; max-width: 100%; height: 54px; padding: 12px 14px; font: inherit; color: var(--text-color); background: #fff; border: 1px solid #b9c5b4; border-radius: 12px; }
.modal-header h2 { padding-right: 40px; }

/* Shared public form controls: booking, consent and account forms. */
body input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='submit']),
body select, body textarea {
  border: 1px solid #b9c5b4; border-radius: 12px; background: #fff;
  color: var(--text-color); font: inherit; padding: 12px 14px; min-height: 54px;
  caret-color: var(--accent-color);
}
body input:focus, body select:focus, body textarea:focus,
body input:active, body select:active, body textarea:active {
  border-color: var(--accent-color) !important; outline: 2px solid var(--accent-color) !important;
  outline-offset: 2px; box-shadow: 0 0 0 4px rgba(86, 110, 81, .12) !important;
}
body input[type='checkbox'], body input[type='radio'] { accent-color: var(--accent-color); }
body input[aria-invalid='true'] { border-color: #a84636; }

/* Contact links remain visible at every header breakpoint. */
.main-header .header-contact { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.main-header .header-contact a { font-size: 13px; line-height: 1.4; white-space: nowrap; color: var(--accent-color); }
@media (max-width: 1200px) {
  .main-header .header-wrapper { flex-wrap: wrap; }
  .main-header .header-actions { display: flex; }
}
@media (max-width: 900px) {
  .main-header .header-actions { width: 100%; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
  .main-header .header-contact { text-align: left; }
  .main-header .header-actions .btn { padding: 10px 14px; font-size: 14px; }
}

@media (max-width: 760px) { .main-header .mobile-menu-toggle { order: 0; margin-left: auto; } .main-header .header-actions { order: 2; } }

.cookie-banner[hidden] { display: none; }
.cookie-banner { position: fixed; z-index: 1200; bottom: 20px; left: 20px; right: 20px; max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--text-color); box-shadow: 0 8px 40px #293c3226; max-height: 80dvh; overflow: auto; }
.cookie-banner h2 { font-size: 23px; margin: 0 0 8px; }
.cookie-banner p { font-size: 14px; line-height: 1.6; margin: 0; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { font-size: 13px; padding: 12px 16px; white-space: nowrap; }
.cookie-settings { background: none; border: 0; padding: 8px 0; color: inherit; font: inherit; text-decoration: underline; }
@media (max-width: 900px) { .cookie-banner { flex-direction: column; align-items: stretch; gap: 16px; } }
@media (max-width: 480px) { .cookie-banner { bottom: 10px; left: 10px; right: 10px; padding: 18px; } .cookie-actions { flex-direction: column; } }

.cookie-banner { padding-right: 52px; }
.cookie-close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--text-color); font-size: 26px; line-height: 1; }
.cookie-close:hover { background: var(--second-bg); }
@media (max-width: 480px) { .cookie-banner { padding: 38px 18px 18px; } }

/* Education and consistent contact pictograms. */
.contacts-info .info-icon { width: 40px; height: 40px; background: #e9eee2; color: var(--accent-color); border: 1px solid var(--line); }
.contacts-info .info-icon svg { width: 20px; height: 20px; }
.contacts-info .info-item { gap: 16px; }
.contacts-info .info-item > div { min-width: 0; }
.contacts-info .info-item p { overflow-wrap: anywhere; }
.contacts-info a[href^="tel:"] { display: inline-block; font-size: 22px; line-height: 1.4; white-space: nowrap; letter-spacing: -.02em; padding: 5px 0; }
.contacts-info .mini-socials a { padding: 8px 0; }
.education-heading { max-width: 760px; margin: 36px 0 48px; }
.education-heading h1 { margin-bottom: 24px; }
.education-heading > p { color: var(--muted); font-size: 18px; }
.education-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; padding: 40px; margin-bottom: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.education-date { display: block; font-size: 13px; color: var(--accent-color); line-height: 1.6; margin-bottom: 16px; }
.education-card h2 { font-size: clamp(28px, 3vw, 38px); }
.education-details h3 { font-size: 20px; margin-bottom: 8px; }
.education-details > p, .education-summary-item p { color: var(--muted); }
.education-details dt { font-size: 13px; color: var(--muted); margin: 22px 0 6px; }
.education-details dd { margin: 0; line-height: 1.75; }
.education-diploma { grid-column: 1 / -1; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.education-diploma img { display: block; width: 100%; max-width: 860px; height: auto; margin: auto; border: 1px solid var(--line); border-radius: 8px; }
.education-diploma figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.education-diploma figcaption a { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.education-current { background: #edf1e7; }
.education-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.education-summary-item h3 { font-size: 22px; margin-bottom: 14px; }
.education-link { display: inline-flex; gap: 16px; margin-top: 24px; }
@media (max-width: 760px) {
  .main-header .header-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 12px 8px; }
  .main-header .logo { grid-column: 1; grid-row: 1; }
  .main-header .header-actions { grid-column: 1 / -1; grid-row: 2; order: initial; width: 100%; margin: 0; padding: 0; border: 0; justify-content: space-between; }
  .main-header .header-contact { text-align: left; }
  .main-header .header-contact .phone { font-size: 17px; }
  .main-header .header-contact .email { font-size: 12px; }
  .main-header .mobile-menu-toggle { grid-column: 2; grid-row: 1; order: initial; margin: 0; width: 44px; height: 44px; padding: 10px; align-items: center; justify-self: end; }
  .main-header nav.content { position: static; width: 0; height: 0; }
  .contacts-info .info-item { flex-direction: row; align-items: flex-start; gap: 12px; text-align: left; }
  .contacts-info .info-item h3 { font-size: 14px; }
  .contacts-info a[href^="tel:"] { font-size: 21px; }
  .contacts-info .info-item p { font-size: 15px; }
  .education-heading { margin: 28px 0 32px; }
  .education-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px; border-radius: 20px; }
  .education-summary { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .education-diploma { padding-top: 20px; }
}
