:root {
  --green: #08762b;
  --green-dark: #055c21;
  --ink: #121212;
  --muted: #62666a;
  --line: #e7e7e7;
  --paper: #fff;
  --soft: #f6f7f6;
  --shadow: 0 10px 35px rgba(18, 31, 23, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
h1, h2, h3 { font-family: 'Oswald', Arial, Helvetica, sans-serif; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; color: #fff; background: var(--green); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid #f0f0f0; }
.header-row { min-height: 118px; display: flex; align-items: center; gap: 40px; }
.logo { width: 148px; flex: 0 0 auto; }
.logo img { width: 100%; height: auto; }
.brand-lockup { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.brand-description { max-width: 135px; padding-left: 18px; color: #8a8d8f; border-left: 1px solid #d9d9d9; font-size: 12px; line-height: 1.45; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.nav-list a { position: relative; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--green); transition: right .2s; }
.nav-list a:hover::after, .nav-list a:focus-visible::after, .nav-list a[aria-current="page"]::after { right: 0; }
.header-contact { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.contact-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; }
.phone-icon { display: inline-block; width: 21px; height: 21px; background-color: currentColor; -webkit-mask: url('../img/icon_phone.svg') center/contain no-repeat; mask: url('../img/icon_phone.svg') center/contain no-repeat; }
.contact-icon .phone-icon { width: 21px; height: 21px; color: #fff; background-color: #fff; }
.header-phone { display: block; font-size: 21px; font-weight: 800; white-space: nowrap; }
.header-hours { margin-top: 5px; color: #3d3d3d; font-size: 13px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; margin-left: auto; background: transparent; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 6px 0; background: #111; transition: .2s; }

.hero { position: relative; min-height: 250px; display: flex; align-items: center; overflow: hidden; background: #f3f4f3 url('../img/hero_bg.png') center/cover no-repeat; }
.hero-content { padding: 52px 0; }
.hero h1 { max-width: 760px; margin: 0 0 16px; font-family: 'Oswald', Arial, Helvetica, sans-serif; font-size: clamp(32px, 4vw, 50px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; text-transform: uppercase; }
.hero p { margin: 0; color: #5d6165; font-size: clamp(18px, 2.2vw, 25px); }

.booking-section { padding: 34px 0 40px; }
.booking-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.booking-head { margin-bottom: 25px; }
.booking-head h2 { margin: 0 0 10px; font-size: 30px; }
.booking-head p { margin: 0; color: #3e4245; }
.booking-widget { width: 100%; overflow: hidden; text-align: center; }
.booking-widget iframe { display: block; width: 727px; max-width: 100%; height: 964px; margin: 0 auto; border: 0; }

.benefits { padding: 0 0 52px; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 28px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.benefit { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 4px 26px; }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit svg { width: 52px; height: 52px; color: var(--green); stroke-width: 1.7; }
.benefit h3 { margin: 2px 0 10px; font-size: 16px; line-height: 1.3; }
.benefit p { margin: 0; color: #555a5e; font-size: 14px; line-height: 1.55; }

.placeholder { min-height: 500px; padding: 88px 0; background: linear-gradient(135deg, #f5f8f5, #fff); }
.placeholder h1 { max-width: 750px; margin: 0 0 20px; font-size: clamp(38px, 6vw, 72px); line-height: 1; }
.placeholder p { max-width: 650px; color: var(--muted); font-size: 20px; line-height: 1.6; }
.route-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 16px 24px; color: #fff; background: var(--green); border-radius: 10px; font-weight: 700; }
.route-link:hover { background: var(--green-dark); }

.site-footer { border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr 1fr 1.05fr; gap: 38px; padding: 55px 0 45px; }
.footer-brand .logo { width: 150px; margin-bottom: 22px; }
.footer-brand p { max-width: 190px; color: #474b4e; font-size: 14px; line-height: 1.65; }
.footer-column h3 { margin: 5px 0 25px; font-size: 14px; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin-bottom: 17px; color: #3f4346; font-size: 14px; }
.footer-column a:hover { color: var(--green); }
.footer-contact a, .footer-contact li > span { display: flex; align-items: center; gap: 12px; }
.footer-contact svg { width: 17px; min-width: 17px; height: 17px; color: var(--green); }
.footer-phone-icon { min-width: 17px; width: 17px; height: 17px; color: var(--green); background-color: var(--green); }
.contact-small-icon { display: inline-block; flex: 0 0 17px; width: 17px; height: 17px; background-color: var(--green); }
.mail-icon { -webkit-mask: url('../img/icon_mail.svg') center/contain no-repeat; mask: url('../img/icon_mail.svg') center/contain no-repeat; }
.pointer-icon, .mini-pointer { -webkit-mask: url('../img/icon_pointer.svg') center/contain no-repeat; mask: url('../img/icon_pointer.svg') center/contain no-repeat; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.social { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; color: #fff; border-radius: 50%; }
.social img { width: 100%; height: 100%; object-fit: contain; }
.social.vk { background: #1876d2; }
.social.max { overflow: hidden; background: #fff; }
.social.max img { width: 100%; height: 100%; object-fit: contain; }
.content-page { padding: 58px 0 80px; background: var(--soft); }
.content-card { max-width: 920px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.content-card h1 { margin: 0 0 34px; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; }
.content-card h2 { margin: 38px 0 16px; font-size: 24px; }
.content-card h3 { margin: 30px 0 12px; font-size: 19px; }
.content-card p, .content-card li { color: #3f4447; font-size: 16px; line-height: 1.7; }
.content-card a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.content-card ul, .content-card ol { padding-left: 24px; }
.passenger-sections { display: grid; gap: 22px; }
.info-section { padding: 28px; border: 1px solid var(--line); border-radius: 14px; }
.info-section h2 { margin-top: 0; }
.notice { padding: 16px 18px; background: #edf8ef; border-left: 4px solid var(--green); border-radius: 7px; }
.home-hero { min-height: 390px; display: flex; align-items: center; background: #f2f4f2 url('../img/hero_bg.png') center/cover no-repeat; }
.home-hero-content { padding: 65px 0; }
.home-hero h1 { margin: 0 0 24px; font-family: 'Oswald', Arial, sans-serif; font-size: clamp(45px, 5.5vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; text-transform: uppercase; }
.home-hero h1 span { color: var(--green); }
.home-hero p { margin: 0; color: #50565a; font-size: 17px; }
.home-routes { padding: 42px 0 34px; }
.section-title { margin: 0 0 30px; font-family: 'Oswald', Arial, sans-serif; font-size: 32px; font-weight: 600; text-transform: uppercase; }
.route-cards { display: grid; gap: 20px; }
.route-card { display: grid; grid-template-columns: 122px minmax(270px, 1.8fr) .65fr .6fr .65fr .9fr; align-items: center; gap: 22px; min-height: 142px; padding: 8px 24px 8px 8px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(18,31,23,.08); }
.route-photo { width: 122px; height: 122px; border-radius: 12px; background-position: center; background-size: cover; }
.route-photo-out { background-image: url('../img/to_ruskeale.png'); }
.route-photo-back { background-image: url('../img/to_petrozavodsk.png'); }
.route-summary h3 { display: flex; align-items: center; gap: 13px; margin: 0 0 8px; font-size: 20px; }
.bus-mark { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 14px; }
.bus-mark img { width: 22px; height: 22px; }
.route-summary h3 a { transition: color .2s; }
.route-summary h3 a:hover, .route-summary h3 a:focus-visible { color: var(--green); }
.route-days { display: block; margin-left: 51px; font-size: 14px; }
.route-summary p { display: flex; align-items: center; gap: 8px; margin: 14px 0 0 51px; color: #4c5154; font-size: 13px; }
.mini-pointer { display: inline-block; width: 14px; height: 17px; background-color: var(--green); }
.route-time { text-align: center; }
.route-time strong { display: block; color: var(--green); font-size: 22px; }
.route-time span { display: block; margin-top: 8px; color: #4f5457; font-size: 13px; }
.route-arrow { text-align: center; }
.route-arrow span { display: block; color: #4d5357; font-size: 30px; }
.route-arrow small { display: block; margin-top: 16px; color: #4d5357; white-space: nowrap; }
.route-book { text-align: right; }
.route-book > div { margin-bottom: 18px; font-size: 22px; font-weight: 800; white-space: nowrap; }
.route-book > div span { color: #a4a7a8; font-size: 14px; }
.route-book a { display: inline-block; padding: 14px 20px; color: #fff; background: var(--green); border-radius: 9px; font-weight: 700; }
.route-book a:hover { background: var(--green-dark); }
.home-benefits { padding-top: 20px; padding-bottom: 32px; }
.social-banner { padding: 0 0 52px; }
.social-banner-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 32px; background: linear-gradient(90deg,#eaf5ec,#f6faf6); border-radius: 14px; }
.banner-message { display: flex; align-items: center; gap: 22px; }
.banner-message strong { display: block; margin-bottom: 5px; font-size: 17px; }
.banner-message p { margin: 0; }
.mail-tile { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 8px; }
.mail-tile .mail-icon { width: 24px; height: 24px; background-color: #fff; }
.social-banner-inner > a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--green); background: #fff; border-radius: 8px; font-weight: 700; }
.social-banner-inner > a img { width: 22px; height: 22px; }
.error-page { min-height: 560px; display: grid; place-items: center; text-align: center; background: var(--soft); }
.error-content { padding: 70px 0; }
.error-code { color: var(--green); font-size: clamp(90px, 17vw, 180px); line-height: .8; font-weight: 900; opacity: .15; }
.error-page h1 { margin: -15px 0 15px; font-size: clamp(32px, 5vw, 52px); }
.error-page p { color: var(--muted); font-size: 18px; }
.footer-bottom { color: #fff; background: var(--green-dark); }
.footer-bottom-row { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 13px; }
.legal-links { display: flex; gap: 38px; }

@media (max-width: 1050px) {
  .header-row { min-height: 92px; gap: 25px; }
  .nav-list { gap: 20px; }
  .nav-list a { font-size: 12px; }
  .header-contact { display: none; }
  .brand-description { display: none; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(3) { border-left: 0; }
  .benefit:nth-child(n+3) { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
  .footer-main { grid-template-columns: 1.2fr repeat(2, 1fr); }
  .route-card { grid-template-columns: 110px 1.5fr .7fr .45fr .7fr; }
  .route-photo { width: 110px; height: 110px; }
  .route-book { grid-column: 2 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
  .route-book > div { margin: 0; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 30px, 1180px); }
  .header-row { min-height: 76px; }
  .logo { width: 120px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 76px 0 0; visibility: hidden; opacity: 0; margin: 0; padding: 22px 20px; background: #fff; transition: .2s; }
  .menu-open .main-nav { visibility: visible; opacity: 1; }
  .nav-list { align-items: stretch; flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 18px 4px; font-size: 16px; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { min-height: 285px; background-position: 61% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.83) 50%, rgba(255,255,255,.05) 100%); }
  .hero-content { position: relative; z-index: 1; padding: 44px 0; }
  .hero h1 { max-width: 92%; font-size: clamp(30px, 9vw, 40px); }
  .hero p { max-width: 70%; font-size: 17px; }
  .booking-section { padding-top: 22px; }
  .booking-card { padding: 20px 12px; border-radius: 14px; }
  .booking-head { margin: 0 8px 20px; }
  .booking-head h2 { font-size: 26px; }
  .booking-widget iframe { height: 1050px; }
  .benefit-grid { grid-template-columns: 1fr; padding: 18px; }
  .benefit { padding: 18px 4px; }
  .benefit + .benefit, .benefit:nth-child(3), .benefit:nth-child(n+3) { margin: 0; border-left: 0; border-top: 1px solid var(--line); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 40px; }
  .home-hero { min-height: 330px; position: relative; background-position: 60% center; }
  .home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.75) 65%,rgba(255,255,255,.05)); }
  .home-hero-content { position: relative; padding: 50px 0; }
  .home-hero h1 { max-width: 90%; font-size: clamp(38px, 12vw, 56px); }
  .home-hero p { max-width: 65%; font-size: 15px; }
  .route-card { grid-template-columns: 82px 1fr 1fr; gap: 14px; padding: 12px; }
  .route-photo { width: 82px; height: 100%; min-height: 118px; grid-row: span 2; }
  .route-summary { grid-column: 2 / -1; }
  .route-summary h3 { font-size: 17px; }
  .route-days, .route-summary p { margin-left: 0; }
  .route-time { text-align: left; }
  .route-arrow { display: none; }
  .route-book { grid-column: 1 / -1; justify-content: space-between; }
  .route-book a { padding: 12px 16px; }
  .social-banner-inner { align-items: stretch; flex-direction: column; }
  .social-banner-inner > a { justify-content: center; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-row { align-items: flex-start; flex-direction: column; padding: 20px 0; }
  .legal-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 460px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-column h3 { margin-bottom: 16px; }
}
