/*
Theme Name: Edman Modern
Theme URI: https://www.edmancooling.com/
Author: Edman Cooling
Description: Edman Cooling için modern, hızlı ve mobil uyumlu kurumsal tema.
Version: 1.2.6
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: edman-modern
*/

:root {
  --ink: #17344d;
  --ink-2: #284e69;
  --blue: #006fba;
  --blue-2: #0097c7;
  --cyan: #50c5cf;
  --mist: #edf7fa;
  --mist-2: #f6fafb;
  --line: #dbe9ee;
  --white: #fff;
  --shadow: 0 22px 55px rgba(20, 62, 86, .14);
  --radius: 24px;
  --wrap: min(1280px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: absolute;
  z-index: 30;
  top: 26px;
  left: 0;
  right: 0;
}
.admin-bar .site-header { top: 58px; }
.nav-shell {
  min-height: 94px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(12, 43, 64, .16);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; font-weight: 800; letter-spacing: -.035em; }
.brand img { width: auto; max-width: 190px; max-height: 62px; }
.brand-mark { width: 46px; height: 46px; position: relative; flex: 0 0 auto; transform: rotate(45deg); background: linear-gradient(135deg, var(--blue), var(--cyan)); border-radius: 9px; box-shadow: inset -10px -10px 0 rgba(0,0,0,.07); }
.brand-mark::after { content: ""; position: absolute; width: 18px; height: 18px; right: 6px; bottom: 6px; background: rgba(255,255,255,.78); border-radius: 4px; }
.brand-copy { display: flex; flex-direction: column; line-height: .9; font-size: 24px; }
.brand-copy small { font-size: 10px; letter-spacing: .22em; margin-top: 8px; color: var(--blue-2); }
.primary-menu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { display: block; padding: 34px 0; font-weight: 650; font-size: 15px; white-space: nowrap; transition: color .2s ease; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--blue); }
.header-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; color: #fff; background: var(--blue); font-weight: 750; font-size: 14px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 28px; padding: 8px; cursor: pointer; }
.language-switcher { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--mist-2); }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; color: #5b7180; font-size: 14px; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.language-switcher a:hover, .language-switcher a.is-active { color: var(--ink); background: #fff; box-shadow: 0 4px 14px rgba(20,62,86,.12); }
.language-switcher b { font-size: 9px; letter-spacing: .04em; }

.hero {
  min-height: 850px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #062a43 0%, #084c6f 54%, #087faa 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,33,52,.96) 0%, rgba(4,45,68,.78) 44%, rgba(4,45,68,.16) 78%); z-index: 1; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; background: var(--hero-image) center/cover no-repeat; z-index: 0; }
.hero-video { position: absolute; z-index: 0; inset: 0; overflow: hidden; background: #073a57; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); min-width: 100%; min-height: 100%; border: 0; pointer-events: none; transform: translate(-50%, -50%) scale(1.05); }
.hero-wave { position: absolute; z-index: 2; left: -6%; right: -6%; bottom: -120px; height: 250px; border-radius: 50% 50% 0 0 / 55% 55% 0 0; background: #fff; transform: rotate(-2deg); }
.hero .wrap { position: relative; z-index: 3; padding-top: 105px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.hero .eyebrow { color: #86e2e4; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1 { max-width: 820px; margin: 22px 0 24px; font-size: clamp(48px, 6.2vw, 92px); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 680px; margin: 0; font-size: clamp(18px, 1.7vw, 24px); color: rgba(255,255,255,.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-flex; min-height: 54px; padding: 0 24px; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--ink); background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.btn-accent { color: #fff; background: var(--blue); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.46); }

.section { padding: 105px 0; }
.section-soft { background: var(--mist-2); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-heading h2 { max-width: 780px; margin: 10px 0 0; font-size: clamp(36px, 4.7vw, 64px); line-height: 1.04; letter-spacing: -.045em; }
.section-heading p { max-width: 520px; margin: 0; color: #5b7180; }
.text-link { display: inline-flex; gap: 9px; align-items: center; color: var(--blue); font-weight: 800; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(5px); }

.category-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.category-card { grid-column: span 4; min-height: 410px; position: relative; overflow: hidden; border-radius: var(--radius); background: #d9edf1; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.category-card:nth-child(4), .category-card:nth-child(5) { grid-column: span 6; min-height: 360px; }
.category-card .card-media { position: absolute; inset: 0; background: linear-gradient(135deg, #d6eef2, #9bcfd8); }
.category-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.category-card:hover .card-media img { transform: scale(1.05); }
.category-card .card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,42,61,.02) 28%, rgba(8,40,59,.9) 100%); }
.category-card .card-content { position: absolute; z-index: 2; inset: auto 28px 27px; color: #fff; }
.category-card h3 { margin: 0 0 8px; font-size: clamp(23px, 2vw, 32px); line-height: 1.08; letter-spacing: -.03em; }
.category-card p { margin: 0; color: rgba(255,255,255,.76); font-size: 15px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; min-height: 420px; background: #fff; border: 1px solid var(--line); border-radius: 22px; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-image { height: 255px; background: linear-gradient(135deg, #edf8fa, #dceff2); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.product-body h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.18; letter-spacing: -.02em; }
.product-body p { margin: 0 0 22px; color: #637986; font-size: 14px; }
.product-body .text-link { margin-top: auto; font-size: 14px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; height: 620px; min-height: 620px; border-radius: 32px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.split-media { height: 620px; min-height: 0; overflow: hidden; background: linear-gradient(135deg, #0f7096, #4fc5ce); }
.split-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.split-copy { padding: clamp(48px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.split-copy h2 { margin: 12px 0 22px; font-size: clamp(37px, 4vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.split-copy p { color: rgba(255,255,255,.72); }
.split-copy .text-link { color: #80e2e2; margin-top: 18px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { padding: 30px; border-top: 3px solid var(--cyan); background: var(--mist-2); }
.news-card time { display: block; color: #6c818c; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { margin: 16px 0 12px; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.news-card p { margin: 0 0 22px; color: #657984; font-size: 15px; }

.contact-band { position: relative; overflow: hidden; padding: 88px 0; color: #fff; background: linear-gradient(110deg, #006cae, #0099bb 65%, #42c5c8); }
.contact-band::after { content: ""; position: absolute; width: 420px; height: 420px; border: 65px solid rgba(255,255,255,.1); border-radius: 50%; right: -80px; top: -175px; }
.contact-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.contact-row h2 { margin: 0 0 10px; font-size: clamp(38px, 4vw, 60px); line-height: 1.02; letter-spacing: -.045em; }
.contact-row p { margin: 0; color: rgba(255,255,255,.8); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { padding: 70px 0 26px; color: #d4e1e8; background: #112b3d; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 60px; }
.site-footer .brand { color: #fff; margin-bottom: 22px; }
.site-footer p { color: #a9bdc9; font-size: 14px; }
.site-footer h3 { margin: 0 0 18px; color: #fff; font-size: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 11px; }
.footer-links a { color: #b9cbd4; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 58px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #8da6b4; font-size: 13px; }

.page-hero { padding: 220px 0 95px; color: #fff; background: linear-gradient(120deg, #0a314b, #08769b); }
.page-hero .eyebrow { color: #82dfe1; }
.page-hero h1 { max-width: 920px; margin: 14px 0 0; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -.05em; }
.content-wrap { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 85px 0 110px; }
.entry-content { color: #405a6b; }
.entry-content h2, .entry-content h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.03em; }
.entry-content h2 { font-size: 38px; margin-top: 52px; }
.entry-content h3 { font-size: 28px; margin-top: 38px; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content img { border-radius: 18px; margin-block: 26px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 12px; text-align: left; }

.contact-page { padding: 100px 0 115px; background: var(--mist-2); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; align-items: stretch; }
.contact-card, .map-card { border-radius: 30px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.contact-card { padding: clamp(38px, 5vw, 72px); }
.contact-card h2 { margin: 14px 0 18px; font-size: clamp(38px, 4vw, 58px); line-height: 1.04; letter-spacing: -.045em; }
.contact-card > p { margin: 0 0 34px; color: #637986; }
.contact-details { display: grid; gap: 14px; }
.contact-detail { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: 18px; background: var(--mist-2); }
.contact-detail-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-size: 20px; font-weight: 800; }
.contact-detail strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 14px; }
.contact-detail span, .contact-detail a { color: #58717f; font-size: 15px; }
.map-card { position: relative; min-height: 620px; }
.map-card iframe { width: 100%; height: 100%; min-height: 620px; border: 0; display: block; }
.map-link { position: absolute; left: 24px; bottom: 24px; z-index: 2; display: inline-flex; align-items: center; min-height: 50px; padding: 0 20px; border-radius: 999px; color: #fff; background: var(--ink); box-shadow: 0 12px 30px rgba(10, 41, 61, .28); font-size: 14px; font-weight: 800; }

.gallery-section { padding: 86px 0 115px; background: var(--mist-2); }
.gallery-intro { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 36px; }
.gallery-intro h2 { max-width: 720px; margin: 10px 0 0; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.045em; }
.gallery-intro p { max-width: 480px; margin: 0; color: #637986; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 105px; grid-auto-flow: dense; gap: 16px; }
.gallery-card { position: relative; grid-column: span 4; grid-row: span 3; overflow: hidden; border-radius: 24px; background: #dceef2; box-shadow: 0 12px 34px rgba(18, 58, 82, .1); }
.gallery-card:nth-child(7n + 1) { grid-column: span 8; grid-row: span 5; }
.gallery-card:nth-child(7n + 4) { grid-column: span 4; grid-row: span 5; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.gallery-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 36, 54, .78)); opacity: .78; transition: opacity .25s ease; }
.gallery-card:hover img { transform: scale(1.045); }
.gallery-card:hover::after { opacity: 1; }
.gallery-card-overlay { position: absolute; z-index: 2; left: 22px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 13px; font-weight: 750; letter-spacing: .02em; }
.gallery-card-overlay b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: 22px; }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; z-index: 99999; inset: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 36px; background: rgba(5, 25, 38, .94); backdrop-filter: blur(12px); }
.gallery-lightbox-image { display: block; max-width: min(1320px, 100%); max-height: calc(100vh - 72px); margin: auto; border-radius: 20px; box-shadow: 0 26px 80px rgba(0,0,0,.45); }
.gallery-lightbox button { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; font-size: 28px; }
.gallery-lightbox-close { position: absolute; top: 24px; right: 24px; }
.gallery-lightbox-prev, .gallery-lightbox-next { justify-self: center; }
.references-page { padding: 100px 0 115px; background: var(--mist-2); }
.references-intro { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 44px; }
.references-intro h2 { max-width: 760px; margin: 12px 0 0; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.045em; }
.references-intro p { max-width: 470px; margin: 0; color: #637986; }
.references-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.reference-card { display: grid; min-height: 220px; place-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(18,58,82,.07); transition: transform .25s ease, box-shadow .25s ease; }
.reference-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.reference-card img { display: block; width: 100%; max-width: 190px; height: 130px; object-fit: contain; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 75px 0 110px; }
.pagination { grid-column: 1 / -1; margin-top: 30px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--mist); }
.pagination .current { color: #fff; background: var(--blue); }
.empty-state { grid-column: 1 / -1; padding: 60px; text-align: center; background: var(--mist); border-radius: var(--radius); }

.about-page { padding: 100px 0 115px; background: var(--mist-2); }
.about-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.about-intro h2, .about-panel h2 { margin: 14px 0 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.03; letter-spacing: -.05em; }
.about-intro p { margin: 0; color: #58717f; font-size: 20px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 58px; }
.about-stats strong { display: grid; min-height: 140px; place-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--blue); text-align: center; font-size: 20px; box-shadow: 0 12px 34px rgba(18,58,82,.07); }
.about-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; margin-top: 72px; padding: clamp(42px, 6vw, 80px); border-radius: 32px; color: #fff; background: linear-gradient(120deg, #112f43, #066d95); box-shadow: var(--shadow); }
.about-panel .eyebrow { color: #83e2e4; }
.about-panel p { color: rgba(255,255,255,.74); }
.about-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.about-list li { position: relative; padding: 18px 20px 18px 54px; border: 1px solid rgba(255,255,255,.15); border-radius: 17px; background: rgba(255,255,255,.07); }
.about-list li::before { content: "✓"; position: absolute; left: 20px; top: 17px; color: #83e2e4; font-weight: 900; }

@media (max-width: 1050px) {
  :root { --wrap: min(100% - 36px, 960px); }
  .nav-shell { min-height: 80px; }
  .menu-toggle { display: block; }
  .header-contact { display: none; }
  .language-switcher { margin-left: auto; }
  .site-nav { display: none; position: absolute; left: 18px; right: 18px; top: 88px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px 24px; }
  .site-nav.is-open { display: block; }
  .primary-menu { display: block; }
  .primary-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .category-card { grid-column: span 6; }
  .category-card:nth-child(5) { grid-column: span 12; }
  .product-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .map-card, .map-card iframe { min-height: 500px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
  .gallery-card, .gallery-card:nth-child(7n + 1), .gallery-card:nth-child(7n + 4) { grid-column: span 1; grid-row: span 1; }
  .gallery-card:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
  .references-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-intro, .about-panel { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  :root { --wrap: calc(100% - 28px); }
  body { font-size: 16px; }
  .site-header { top: 14px; }
  .admin-bar .site-header { top: 60px; }
  .nav-shell { padding: 0 16px; border-radius: 14px; }
  .language-switcher { gap: 1px; padding: 4px; }
  .language-switcher a { min-width: 29px; height: 31px; padding: 0 3px; }
  .language-switcher b { display: none; }
  .brand-copy { font-size: 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: 760px; }
  .hero .wrap { padding-top: 120px; }
  .hero h1 { font-size: 48px; }
  .hero-wave { bottom: -160px; }
  .section { padding: 76px 0; }
  .section-heading { display: block; }
  .section-heading p, .section-heading .text-link { margin-top: 18px; }
  .category-grid, .product-grid, .news-grid, .archive-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:nth-child(4), .category-card:nth-child(5) { grid-column: 1; min-height: 355px; }
  .product-grid, .news-grid { gap: 16px; }
  .split { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .split-media { height: 320px; min-height: 320px; }
  .split-copy { padding: 42px 28px; }
  .contact-row { display: block; }
  .contact-links { margin-top: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { display: block; }
  .page-hero { padding: 185px 0 72px; }
  .content-wrap { width: calc(100% - 28px); padding: 60px 0 85px; }
  .contact-page { padding: 70px 0 85px; }
  .contact-card { padding: 34px 22px; }
  .map-card, .map-card iframe { min-height: 420px; }
  .gallery-section { padding: 62px 0 85px; }
  .gallery-intro { display: block; }
  .gallery-intro p { margin-top: 16px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 310px; gap: 12px; }
  .gallery-card, .gallery-card:nth-child(7n + 1), .gallery-card:nth-child(7n + 4), .gallery-card:nth-child(5n + 1) { grid-column: 1; grid-row: span 1; border-radius: 18px; }
  .gallery-lightbox { grid-template-columns: 48px minmax(0, 1fr) 48px; padding: 18px; }
  .gallery-lightbox button { width: 44px; height: 44px; }
  .references-page { padding: 70px 0 85px; }
  .references-intro { display: block; margin-bottom: 30px; }
  .references-intro p { margin-top: 16px; }
  .references-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .reference-card { min-height: 170px; padding: 22px; border-radius: 18px; }
  .reference-card img { height: 105px; }
  .about-page { padding: 70px 0 85px; }
  .about-intro p { font-size: 17px; }
  .about-stats { grid-template-columns: 1fr; margin-top: 36px; }
  .about-stats strong { min-height: 100px; }
  .about-panel { margin-top: 48px; padding: 38px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card img { transition: none; }
}
