/* Shared responsive layout for the public website. */
:root { --feniks-navy: #0f1341; --feniks-blue: #03a9f5; --header-height: 200px; --nav-height: 106px; }
html { scroll-padding-top: calc(var(--nav-height) + 16px); }
body { font-size: 16px; }
img, video, iframe { max-width: 100%; }
img[hidden] { display: none !important; }
[class*="col-"], .media-body, .service-text, .pftext { min-width: 0; }
h1, h2, h3, h4, h5 { overflow-wrap: break-word; line-height: 1.35; }
p, a { overflow-wrap: break-word; }
input, select, textarea { max-width: 100%; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea, button, .btn { font-size: 16px; }
textarea.form-control { resize: vertical; max-height: none; }
.form-control, .btn, input[type="submit"], button[type="submit"] { min-height: 44px; }
.btn { white-space: normal; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--feniks-blue); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100001; padding: 12px 20px; color: #fff; background: var(--feniks-navy); transform: translateY(-160%); }
.skip-link:focus { transform: none; color: #fff; }

/* Navigation uses its measured height instead of page-specific offsets. */
.heading .container { flex-wrap: wrap; gap: 0 16px; }
.heading .logo { flex: 0 0 auto; }
.heading .logo img { display: block; width: 160px; height: auto; padding: 0; }
.button-menu { min-width: 44px; min-height: 44px; padding: 8px; margin: 0; }
.header-top .container { gap: 12px; }
.header-top .top-info { flex-wrap: wrap; gap: 8px 20px; min-width: 0; }
.header-top p { margin-right: 0; }
.header-top .social-icons { display: flex; align-items: center; gap: 8px; }
.header-top .social-icons a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.header-top .social-icons i { margin: 0; }
.language-switch img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
#main-menu ul { margin: 0; }
#main-menu ul a { min-height: 44px; }
.heading.sticky { animation: none; }

.home-slider { position: relative; height: clamp(440px, 60vw, 720px); background: var(--feniks-navy); color: #fff; touch-action: pan-y; }
.home-slide { position: absolute; inset: 0; }
.home-slide[hidden] { display: none; }
.home-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.home-slide-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-slide-content { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; padding-top: calc(var(--header-height) + 20px); padding-bottom: 90px; }
.home-slide h1 { color: #fff; width: 800px; max-width: 100%; font-size: clamp(1.6rem, 4vw, 3.75rem); line-height: 1.25; margin: 0; }
.slider-controls { position: absolute; z-index: 2; bottom: 20px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slider-controls button { color: #fff; background: rgba(15, 19, 65, .88); border: 1px solid rgba(255, 255, 255, .6); width: 44px; height: 44px; font-size: 28px; border-radius: 4px; cursor: pointer; }
.slider-counter { font-size: 14px; text-shadow: 0 1px 3px #000; }
.slider-controls button:hover { background: var(--feniks-navy); }
.inner-pages .headings { height: auto; min-height: 0; padding: calc(var(--header-height) + 32px) 0 40px; }
.inner-pages .headings .text-heading { height: auto; }
.inner-pages .headings h1 { margin: 0 0 16px; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; }
.inner-pages .headings h2 { margin: 0; line-height: 1.7; }
.sec-title { max-width: 100%; }
.sec-title p { margin-inline: auto; }
.sec-title h2 span { color: #0876ab; }
.info-help h3 { line-height: 1.6; }
.info-help .btn-pro { background: #0876ab; color: #fff; }

/* Service and news cards grow with their text, with visible touch controls. */
.what-we .cons { display: flex; margin-bottom: 30px; }
.what-we .offer-inner { display: flex; flex-direction: column; position: relative; overflow: hidden; width: 100%; }
.what-we .offer-img { height: auto; aspect-ratio: 4 / 3; flex: 0 0 auto; }
.what-we .offer-details, .what-we .offer-inner:hover .offer-details { position: static; top: auto; height: auto; flex: 1; display: flex; flex-direction: column; padding: 20px; border: 0; }
.what-we .offer-details { background-color: #0876ab; }
.what-we .offer-details h3 { font-size: 1.15rem; line-height: 1.5; margin: 0 0 12px; }
.what-we .offer-details h3 a { display: flex; gap: 12px; justify-content: space-between; }
.what-we .offer-details h3 a span { float: none; flex: 0 0 auto; }
.what-we .offer-details .readmore { align-self: flex-start; margin: auto 0 0; top: 0; min-height: 44px; padding: 10px 24px 10px 0; }
.what-we .offer-details .readmore::before { right: 4px; }
.what-we .offer-inner:focus-within .offer-details { background: rgba(59, 82, 107, .96); }
.blog-section .news-wrap > .row, .portfolio-items { row-gap: 30px; }
.blog-section .news-wrap > .row > div { display: flex; }
.blog-section .news-item { width: 100%; height: auto; margin-bottom: 0; display: flex; flex-direction: column; }
.blog-section .news-img-link { display: block; }
.blog-section .news-item-img { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-section .news-item-img img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-section .news-item-text { min-width: 0; padding: 24px; }
.blog-section .news-item h3 { line-height: 1.5; }
.blog-section .news-item-bottom { margin-top: auto; }
.blog-section .news-link { display: inline-flex; align-items: center; min-height: 44px; }
.blog-section .news-item .news-link { justify-content: center; color: #fff; background: #0876ab; }
.blog-section .news-item .news-link:hover { color: #fff; background: var(--feniks-navy); }
.blog-section .news-item-descr { height: auto; }
.blog-section .news-item-sm { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); }
.blog-section .news-item-sm .news-img-link { flex-basis: auto; }
.blog-section .news-item-sm .news-img-link .news-item-img,
.inner-pages .blog-section .news-item-sm .news-img-link .news-item-img { position: relative; inset: auto; display: grid; padding: 0; height: 100%; aspect-ratio: 16 / 10; }
.blog-section .news-item.details .news-item-img { aspect-ratio: auto; }
.blog-section .news-item.details .news-item-img img { height: auto; object-fit: contain; }

/* Project and publication captions no longer require hover. */
.portfolio .portfolio-items > .item { display: flex; margin: 0; padding-bottom: 0; }
.portfolio .project-single, .portfolio .project-inner { display: flex; flex-direction: column; width: 100%; height: 100%; }
.portfolio .project-head { aspect-ratio: 4 / 3; width: 100%; overflow: hidden; }
.portfolio .project-head::before { display: none; }
.portfolio .project-head img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portfolio .project-bottom { position: static; margin: 0; padding: 16px; background: var(--feniks-navy); }
.portfolio .project-bottom:empty { display: none; }
.portfolio .project-bottom h4 { visibility: visible; opacity: 1; font-size: 1.15rem; line-height: 1.5; margin: 0; text-transform: none; }
.portfolio .button { position: static; transform: none; visibility: visible; opacity: 1; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px; background: var(--feniks-navy); border-radius: 0; }
.portfolio .button .btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0; border-radius: 4px; }
.portfolio .button .btn .fa::before { color: var(--feniks-navy); }
.portfolio .button a:not(.btn) { display: inline-flex; align-items: center; color: #fff; min-height: 44px; }
.portfolio .button a[aria-disabled="true"] { opacity: .45; cursor: default; }
.portfolio .project-bottom, .portfolio .button { flex: 0 0 auto; }
.team .team-head { aspect-ratio: 4 / 5; }
.team .team-head img { width: 100%; height: 100%; object-fit: cover; }
.team .team-hover { opacity: 1; visibility: visible; }

/* Editor content stays within the article; wide tables scroll locally. */
.service-text, .pftext { overflow-wrap: anywhere; }
.service-text img, .pftext img, .img-details > img { max-width: 100% !important; height: auto !important; }
.service-info iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.service-text table, .pftext table { display: block; max-width: 100%; overflow-x: auto; }
.service-text pre, .pftext pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.inner-pages .who-we-are .who img { height: auto; object-fit: contain; }
.business-service a { min-height: 44px; white-space: normal; }
.media-unavailable { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; aspect-ratio: 16 / 10; min-height: 140px; padding: 20px; color: #4a5265; background: #eef0f5; text-align: center; font-size: 18px; overflow-wrap: anywhere; }
.media-unavailable small { display: block; font-size: 14px; }
.portfolio .project-head .media-unavailable, .news-item-img .media-unavailable { height: 100%; min-height: 0; aspect-ratio: auto; }

.contact-layout { row-gap: 32px; }
.contact-layout .faq-contact { padding-top: 0; }
.contact-layout .property-location.info { margin-top: 0; }
.contact-layout h3 { margin: 0 0 20px; }
.contact-layout #map-contact { height: clamp(280px, 35vw, 440px); margin: 0; }
#map-contact iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-form textarea { min-height: 160px; }
.request.service-details { background: #f5f6ff; color: #333; }
.contact-layout .contact-form input.form-control,
.contact-layout .contact-form textarea.form-control { background: #fff; color: #333; border-color: #a4adbd; }
.contact-layout .contact-form input.form-control { height: 50px; }
.contact-layout .contact-form textarea.form-control { min-height: 160px; max-height: none; }
.request .contact-form .form-control::placeholder { color: #626977; opacity: 1; }
.contact-form .btn.btn-primary.btn-lg,
.career-fields .btn.btn-primary.btn-lg { width: 100%; min-height: 48px; padding: 12px 20px; background: #2b3281; color: #fff; }
.contact-form .btn.btn-primary.btn-lg:hover,
.career-fields .btn.btn-primary.btn-lg:hover { background: var(--feniks-navy); }
.contact-details-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.inner-pages .c_details_item { width: 100%; height: 100%; padding: 24px; }
.inner-pages .c_details_item .media { align-items: center; }
.inner-pages .c_details_item .media .media-left { padding-right: 16px; flex: 0 0 auto; }
.inner-pages .c_details_item .media .media-body p { max-width: none; }
.inner-pages .c_details_item .media .media-body a { padding-block: 10px; overflow-wrap: anywhere; }
.career-form { width: 100%; max-width: 900px; margin: 0 auto; padding: 56px 20px; }
.career-form > h2 { text-align: center; margin: 0 0 32px; }
.career-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 24px; }
.career-fields .form-group { margin: 0; }
.career-fields .form-full { grid-column: 1 / -1; }
.career-fields input[type="file"] { height: auto; min-height: 48px; padding: 10px; }

.first-footer .top-footer > .container > .row { row-gap: 36px; }
.first-footer .quick-links-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.first-footer .widget .quick-links-list a { display: flex; align-items: center; min-height: 44px; padding-bottom: 0; }
.first-footer .bloq-email { display: block; width: 100%; }
.first-footer .bloq-email .email { width: 100%; height: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.first-footer .bloq-email .email input[type="email"] { min-width: 0; flex: 1 1 160px; width: 100%; margin: 0; }
.first-footer .bloq-email button { flex: 0 1 auto; margin: 0; padding: 12px 18px; color: #fff; background: #0876ab; border: 0; cursor: pointer; }
.first-footer .bloq-email button:hover { background: #2b3281; }
.second-footer .container { gap: 16px; }
.second-footer { background: #0876ab; }
.second-footer p { margin: 0; }
.second-footer p a { color: #fff; }
.first-footer .netsocials { flex-wrap: wrap; gap: 8px; }
.first-footer .netsocials a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.go-up { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 44px; height: 44px; align-items: center; justify-content: center; z-index: 100; }
.go-up.is-visible { display: inline-flex; }

/* Short feedback on controls; hover movement is reserved for precise pointers. */
@media (prefers-reduced-motion: no-preference) {
  .slider-controls button, .button-menu, .contact-form button, .career-fields button, .info-help .btn-pro {
    transition: transform 180ms ease-out, background-color 180ms ease-out;
  }
  .slider-controls button:active, .button-menu:active, .contact-form button:active, .career-fields button:active, .info-help .btn-pro:active { transform: scale(.97); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .what-we .offer-inner, .portfolio .project-inner { transition: transform 240ms cubic-bezier(.22, 1, .36, 1); }
  .what-we .offer-inner:hover, .portfolio .project-inner:hover { transform: translateY(-4px); }
  .blog-section .news-item-img img { transition: transform 420ms cubic-bezier(.22, 1, .36, 1); }
  .blog-section .news-img-link:hover .news-item-img img { transform: scale(1.035); }
}

@media (min-width: 768px) {
  .blog-section .news-wrap > .row > div { flex: 0 0 50%; max-width: 50%; }
  .career-fields, .contact-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-details-grid .address-card { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  .blog-section .news-wrap > .row > div { flex: 0 0 33.333333%; max-width: 33.333333%; }
  #main-menu { margin-left: auto; }
  #main-menu > ul > li > a { margin: 0; padding-inline: 10px; }
  .contact-details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-details-grid .address-card { grid-column: auto; }
}
@media (max-width: 1199px) { .what-we .cons { flex: 0 0 50%; max-width: 50%; } }
@media (min-width: 992px) and (max-width: 1199px) {
  .heading .logo img { width: 130px; }
  #main-menu > ul > li > a { font-size: 13px; padding-inline: 8px; }
  .header-top .top-info { gap: 8px 12px; }
  .header-top p { font-size: 12px; }
}
@media (max-width: 991px) {
  .header-top { display: none; }
  .heading, .heading.sticky { padding: 12px 0; background: var(--feniks-navy); }
  .heading .container { padding-inline: 20px; }
  .heading .logo img { padding: 0; }
  .heading .button-menu { padding: 8px; margin: 0 !important; }
  #main-menu { flex: 0 0 100%; order: 3; max-height: calc(100dvh - var(--nav-height)); overflow-y: auto; }
  #main-menu ul a { padding: 12px 20px; text-align: left; }
  .inner-pages main aside { margin-top: 32px; }
  .first-footer .newsletters h3, .first-footer .quick-link h3 { margin-top: 0; }
  .info-head > div { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767px) {
  .heading .logo img { width: 140px; }
  .inner-pages .headings h1 { font-size: 1.7rem; }
  .what-we, .blog-section, .request, .inner-pages .service-details, .inner-pages section.who-we-are, .inner-pages .contact-us, main > section.portfolio, main > section.project-single { padding-block: 48px; }
  .first-footer .top-footer, .info-help { padding-block: 48px; }
  .info-help h3 { font-size: 1.4rem; }
  .info-help br { display: none; }
  .inner-pages .c_details_item { padding: 20px; }
  .second-footer p { text-align: center; }
  .blog-section .news-item-sm { display: flex; flex-direction: column; }
  .inner-pages .blog-section .news-item-sm .news-img-link .news-item-img { height: auto; }
  .blog-section .news-item-sm .news-item-text { flex-basis: auto; padding: 20px; }
}
@media (max-width: 575px) {
  .what-we .cons { flex: 0 0 100%; max-width: 100%; }
  .blog-section .news-item-text { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .heading, .what-we .offer-details, .blog-section .news-item *, .go-up { transition: none; animation: none; }
}
