/* Ovchar Tax Solutions — shared editorial design system */
:root {
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --navy: #263746;
  --muted: #535f65;
  --terracotta: #9c4937;
  --terracotta-hover: #803b2d;
  --neutral: #eee9e1;
  --line: #d4cec4;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-space: clamp(44px, 5vw, 68px);
  --grid-gap: clamp(32px, 5vw, 72px);
  --body-size: clamp(16px, 1.2vw, 17px);
  --h1-size: clamp(32px, 3.25vw, 44px);
  --h2-size: clamp(27px, 2.5vw, 34px);
  --h3-size: clamp(23px, 2vw, 27px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--cream); color: var(--navy); font: var(--body-size)/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 5px; }
::selection { background: #e7c7b9; }
p { margin: 0 0 20px; }
h1, h2, h3 { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; text-wrap: pretty; }
h1 { font-size: var(--h1-size); line-height: 1.17; letter-spacing: -.9px; }
h2 { font-size: var(--h2-size); line-height: 1.22; letter-spacing: -.5px; }
h3 { font-size: var(--h3-size); line-height: 1.25; }
.container { width: calc(100% - var(--gutter) * 2); max-width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { color: var(--terracotta); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 1.65px; text-transform: uppercase; margin-bottom: 18px; }
/* Header: wordmark, navigation and actions share a centered baseline. */
.site-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; min-height: 100px; padding: 20px max(var(--gutter), calc((100% - var(--container)) / 2)); border-bottom: 1px solid var(--line); }
.wordmark { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: 1.8px; text-transform: uppercase; }
.header-wordmark { display: inline-flex; flex-direction: column; gap: 8px; justify-self: start; line-height: 1; font-weight: 400; white-space: nowrap; }
.wordmark-primary { font-family: var(--serif); font-size: 38px; line-height: .95; letter-spacing: 2px; }
.wordmark-secondary { font-family: var(--sans); font-size: 14px; line-height: 1.2; font-weight: 600; letter-spacing: 5.3px; }
.header-wordmark > span { align-self: flex-start; }
.site-header nav { display: flex; align-items: center; justify-content: space-evenly; gap: clamp(14px, 1.5vw, 26px); white-space: nowrap; font-size: 15.5px; }
.site-header nav a { padding-block: 8px; }
.site-header nav a:hover, footer nav a:hover { color: var(--terracotta); }
.site-header nav a[aria-current='page'], footer nav a[aria-current='page'] { color: var(--terracotta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.languages { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.languages button { border: 0; padding: 6px 3px; background: transparent; color: var(--muted); font-size: 13px; }
.languages button[aria-pressed='true'] { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--terracotta); }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px; border: 1px solid var(--terracotta); background: var(--terracotta); color: white; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 1.1px; text-transform: uppercase; transition: background .15s; }
.button:hover { background: var(--terracotta-hover); border-color: var(--terracotta-hover); }
.button:disabled { opacity: .65; cursor: wait; }
.header-cta { min-height: 44px; padding: 12px 20px; white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 1px; line-height: 1.5; text-transform: uppercase; color: var(--navy); }
.text-link:hover { color: var(--terracotta); border-color: var(--terracotta); }
.text-link span:last-child { font-size: 19px; line-height: 1; }
/* Home: factual introduction and uncropped portrait, with controlled height. */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: var(--grid-gap); padding-block: 50px 42px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(33px, 3.5vw, 46px); line-height: 1.16; letter-spacing: -1px; max-width: 640px; margin-bottom: 22px; }
:lang(ru) .hero h1 { font-size: clamp(30px, 3.2vw, 42px); }
.hero-description { font-size: var(--body-size); line-height: 1.7; max-width: 600px; color: var(--muted); margin-bottom: 18px; }
.language-line { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.portrait { margin: 0; width: 100%; max-width: 460px; justify-self: end; }
.portrait img { display: block; width: 100%; height: auto; }
.portrait figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 12px; }
.portrait figcaption span:first-child { color: var(--navy); font-weight: 600; }
.trust-strip { display: grid; grid-template-columns: 1fr 1fr 1.25fr; padding-block: 22px; border-block: 1px solid var(--line); }
.trust-strip p { margin: 0; padding-inline: 24px; border-right: 1px solid var(--line); font-size: 15px; line-height: 1.55; text-align: center; }
.trust-strip p:last-child { border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-weight: 500; }
.trust-strip span { font-size: 14px; color: var(--muted); margin-top: 3px; }
.home-preview { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--grid-gap); align-items: start; }
.home-preview > div:last-child { color: var(--muted); padding-top: 32px; }
.home-preview p { max-width: 640px; }
.home-preview h2 { max-width: 480px; margin-bottom: 0; }
.home-about { border-top: 1px solid var(--line); }
.preview-links { display: flex; flex-wrap: wrap; gap: 16px 28px; }
/* Interior pages use the same column alignment and heading rhythm. */
.pricing-layout, .faq-layout, .contact-layout, .about-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: var(--grid-gap); align-items: start; }
.section-intro { min-width: 0; }
.section-intro > p:not(.eyebrow) { color: var(--muted); max-width: 480px; }
.section-intro > :last-child { margin-bottom: 0; }
/* Services spread across the page rather than leaving a tall empty sidebar. */
.services-layout .section-intro { display: grid; grid-template-columns: .95fr 1.05fr; column-gap: var(--grid-gap); margin-bottom: 36px; }
.services-layout .section-intro .eyebrow { grid-column: 1 / -1; }
.services-layout .section-intro h1 { margin-bottom: 0; }
.services-layout .section-intro > p:last-child { align-self: center; max-width: 660px; }
.service-list { border-top: 1px solid var(--line); }
.service-list article { display: grid; grid-template-columns: 36px 1fr; gap: 18px; padding-block: 27px; border-bottom: 1px solid var(--line); }
.number { padding-top: 6px; font-size: 14px; letter-spacing: 1px; color: var(--terracotta); }
.service-list article > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px 44px; }
.service-heading { grid-column: 1; grid-row: 1 / 3; font-size: var(--h3-size); line-height: 1.3; letter-spacing: -.25px; margin: 0; }
.service-list p { grid-column: 2; color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0; }
.service-list .service-detail { font-size: 16px; }
.pricing-section, .contact-section { background: var(--neutral); }
.price-list { margin: 0; border-top: 1px solid var(--line); }
.price-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.price-list dt { font-size: 16px; line-height: 1.5; }
.price-list dd { margin: 0; font-size: 22px; line-height: 1.5; text-align: right; white-space: nowrap; }
.price-list dd span { font-size: 13px; color: var(--muted); }
.price-list > div:last-child dd { font-size: 17px; }
.fine-print { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.about-layout { grid-template-columns: .95fr 1.05fr; }
.about-statement { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.about-copy { padding-top: 36px; color: var(--muted); }
.about-copy p { max-width: 660px; }
.founder-note { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; font-size: 16px; }
.founder-note span:last-child { font-size: 13px; color: var(--muted); }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--navy); font-size: 14px; line-height: 1.6; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 19px 36px 19px 0; font-size: 16px; font-weight: 500; line-height: 1.55; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 2px; top: 17px; color: var(--terracotta); font-size: 23px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin: 0 0 22px; padding-right: 28px; font-size: 16px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { min-width: 0; }
.field label { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; margin-bottom: 8px; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #aaa79e; border-radius: 0; background: var(--paper); color: var(--navy); font-size: 16px; }
.field textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.privacy-warning { margin-block: 20px; padding-left: 14px; border-left: 2px solid var(--terracotta); font-size: 14px; line-height: 1.6; color: var(--muted); }
.form-notice { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; }
#form-status { margin: 15px 0 0; font-size: 15px; }
/* A restrained, shared end-of-page transition. */
.page-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line); padding-block: 32px; }
.page-cta h2 { font-size: 27px; margin-bottom: 8px; }
.page-cta p { font-size: 16px; color: var(--muted); max-width: 760px; margin: 0; }
.page-cta > .button { flex-shrink: 0; }
footer.container { padding-block: 36px 22px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: start; gap: 40px; padding-bottom: 26px; }
.footer-top > div { max-width: 510px; }
.footer-top p { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: flex-end; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { max-width: 710px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 10px 20px; background: var(--navy); color: white; }
.skip-link:focus { top: 10px; }
/* Tablet retains all navigation links in an intentional second row. */
@media (min-width: 641px) and (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; gap: 16px 24px; padding-block: 18px 12px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: clamp(16px, 3vw, 30px); border-top: 1px solid var(--line); padding-top: 9px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .hero { gap: 32px; }
  .hero h1 { font-size: 36px; }
  .trust-strip p { padding-inline: 16px; }
}
@media (max-width: 900px) {
  .pricing-layout, .faq-layout, .contact-layout { grid-template-columns: .8fr 1.2fr; gap: 32px; }
  .price-list > div { grid-template-columns: 1fr; gap: 5px; }
  .price-list dd { text-align: left; }
  .service-list article > div { gap: 8px 26px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-top nav { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .pricing-layout, .faq-layout, .contact-layout, .about-layout { grid-template-columns: 1fr; gap: 30px; }
  .section-intro > p:not(.eyebrow) { max-width: 620px; }
  .about-copy { padding-top: 0; }
  .services-layout .section-intro { grid-template-columns: 1fr; gap: 0; }
  .services-layout .section-intro h1 { margin-bottom: 18px; }
  .services-layout .section-intro .eyebrow { grid-column: auto; }
  .service-list article > div { display: block; }
  .service-heading { margin-bottom: 12px; }
  .service-list p + p { margin-top: 10px; }
  .trust-strip { grid-template-columns: 1fr 1fr 1fr; }
  .trust-strip p { font-size: 14px; padding-inline: 12px; }
  .trust-strip span { font-size: 13px; }
  .home-preview { gap: 30px; }
  .home-preview > div:last-child { padding-top: 0; }
  .page-cta { align-items: flex-start; flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
/* Mobile uses a compact header and purposeful single-column content. */
@media (max-width: 640px) {
  :root { --h1-size: 32px; --h2-size: 28px; --section-space: 40px; }
  .site-header { display: flex; flex-wrap: wrap; gap: 12px; min-height: 88px; padding-block: 18px; }
  .header-wordmark { gap: 7px; margin-right: auto; }
  .wordmark-primary { font-size: 30px; letter-spacing: 1.5px; }
  .wordmark-secondary { font-size: 11.5px; letter-spacing: 3.95px; }
  .header-actions { gap: 0; }
  .header-cta { display: none; }
  .languages { gap: 4px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); background: transparent; color: var(--navy); font-size: 13px; }
  .menu-toggle::before { content: '☰'; font-size: 14px; }
  .site-header nav { display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; border-top: 1px solid var(--line); white-space: normal; }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding-block: 9px; font-size: 15px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 30px; }
  .hero h1 { font-size: 34px; letter-spacing: -.65px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 1.25px; }
  .hero-description { line-height: 1.65; }
  .language-line { margin-bottom: 20px; }
  .portrait { justify-self: start; max-width: 460px; }
  .portrait figcaption { font-size: 13.5px; }
  .trust-strip { grid-template-columns: 1fr; padding-block: 0; }
  .trust-strip p { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3px 12px; padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .trust-strip p:last-child { border-bottom: 0; }
  .trust-strip span { margin-top: 0; }
  .home-preview { grid-template-columns: 1fr; gap: 22px; }
  .home-preview h2 { margin-bottom: 0; }
  .service-list article { grid-template-columns: 24px 1fr; gap: 12px; padding-block: 23px; }
  .price-list > div { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .price-list dd { text-align: right; font-size: 21px; }
  .price-list dd span { display: block; font-size: 12px; }
  .price-list > div:last-child { grid-template-columns: 1fr; gap: 6px; }
  .price-list > div:last-child dd { text-align: left; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .credentials { grid-template-columns: 1fr; gap: 10px; }
  .footer-top .wordmark { font-size: 15px; }
  .footer-top nav { gap: 12px 22px; }
}
@media (max-width: 360px) {
  .wordmark-primary { font-size: 27px; }
  .wordmark-secondary { font-size: 10.75px; letter-spacing: 3.3px; }
  .menu-toggle { padding-inline: 7px; }
  .languages button { padding-inline: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
