/* webandseo.co.uk – statyczna strona (zastępuje WordPress/Enfold) */

@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-latin-ext.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-latin.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #c3512f;
  --text: #666;
  --heading: #222;
  --border: #e1e1e1;
  --light: #f2f2f2;
  --wrap: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 14px/1.75 "Open Sans", Arial, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: #8f3519; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.3; font-weight: 600; }
a[href^="tel:"] { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 10px 22px; border-radius: 3px; font: 600 14px/1.4 "Open Sans", sans-serif;
}
.btn:hover { background: #a23f22; color: #fff; }

/* --- nagłówek --- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.logo img { width: 46px; height: auto; }
.logo span { font-size: 22px; letter-spacing: -.5px; }
.logo b { color: var(--accent); font-weight: 700; }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav li { position: relative; }
.nav a, .nav .sub-toggle {
  display: block; padding: 0 13px; line-height: 70px; color: #666; text-decoration: none;
  background: none; border: 0; font: 600 14px/70px "Open Sans", sans-serif; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.nav > ul > li > a:hover, .nav .sub-toggle:hover { color: var(--heading); }
.nav > ul > li.active > a, .nav > ul > li.active > .sub-toggle { color: var(--heading); border-bottom-color: var(--accent); }
.nav .sub {
  list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-top: 2px solid var(--accent); box-shadow: 0 6px 16px rgba(0,0,0,.08); display: none;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { line-height: 1.4; padding: 9px 18px; font-weight: 400; border: 0; }
.nav .sub a:hover, .nav .sub a[aria-current="page"] { background: #f7f7f7; color: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid #ccc; border-radius: 4px; background: none; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: #333; margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* --- pasek tytułu --- */
.title-bar { background: #fcfcfc; border-bottom: 1px solid var(--border); }
.title-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.title-bar h1 { margin: 0; font-size: 18px; font-weight: 400; color: #555; }
.breadcrumbs { font-size: 11px; color: #999; }
.breadcrumbs a { color: #999; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* --- strona główna --- */
.slider-box { padding-top: 30px; padding-bottom: 30px; }
.slider { position: relative; }
.slider .track { position: relative; aspect-ratio: 940 / 430; overflow: hidden; background: #eee; }
.slider .track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.slider .track img.active { opacity: 1; }
.slider .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 60px; border: 0; background: rgba(0,0,0,.25); color: #fff; font-size: 26px; cursor: pointer; }
.slider .arrow:hover { background: rgba(0,0,0,.5); }
.slider .prev { left: 0; } .slider .next { right: 0; }
.slider .dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.slider .dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); padding: 0; cursor: pointer; }
.slider .dots button.active { background: #fff; }

.band { background: var(--light); border-bottom: 1px solid var(--border); padding: 40px 0 30px; }
.band-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: center; }
.band h2 { text-transform: uppercase; font-weight: 400; font-size: 26px; margin: 0 0 10px; }
.band strong { color: var(--accent); }
.band blockquote { margin: 0; font-size: 24px; line-height: 1.25; text-transform: uppercase; color: var(--heading); }
.band blockquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; text-transform: none; color: #999; }

.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 45px; padding-bottom: 10px; }
.cols4 h3 { font-size: 19px; margin: 0 0 10px; }
.cols4 h3 a { color: var(--heading); text-decoration: none; }
.cols4 h3 a:hover { color: var(--accent); }
.more { font-weight: 600; text-decoration: none; }

.why-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-top: 30px; padding-bottom: 55px; }
.why-grid h3 { font-size: 19px; margin: 0 0 10px; }
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { padding-left: 26px; position: relative; margin-bottom: 4px; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* --- podstrony --- */
.layout { display: grid; grid-template-columns: 1fr 290px; }
.content { padding: 45px 50px 50px 0; min-width: 0; }
.content p { margin: 0 0 1.2em; }
.content h2 { font-size: 21px; margin: 1.4em 0 .5em; }
.content h2:first-child { margin-top: 0; }
.content ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.content img.right { float: right; margin: 5px 0 15px 25px; max-width: 34%; }
.content h2 { clear: both; }
.content::after { content: ""; display: table; clear: both; }
.dropcap { float: left; font-size: 52px; line-height: .9; margin: 6px 8px 0 0; color: var(--accent); font-weight: 600; }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 25px 0; }

.sidebar { padding: 45px 0 50px 45px; border-left: 1px solid var(--border); }
.sidebar h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.sidebar section { margin-bottom: 35px; }
.sidebar ul.links { list-style: none; margin: 0; padding: 0; }
.sidebar ul.links a { display: block; padding: 7px 0; border-bottom: 1px solid #eee; color: #777; text-decoration: none; }
.sidebar ul.links a:hover { color: var(--accent); }
.sidebar .badge { text-align: center; }

/* cennik hostingu */
.promo { font-size: 34px; text-transform: uppercase; font-weight: 400; margin: 1em 0 .2em; }
.promo span { color: #e00; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
table.pricing { width: 100%; border-collapse: collapse; text-align: center; min-width: 520px; }
table.pricing th, table.pricing td { border: 1px solid var(--border); padding: 9px 10px; }
table.pricing th { text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; color: var(--heading); background: #fafafa; }
table.pricing td:first-child { text-align: left; color: #444; }
table.pricing tr:nth-child(even) td { background: #fcfcfc; }
table.pricing .yes { color: #5aa52c; font-weight: 700; font-size: 17px; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; padding-top: 45px; padding-bottom: 55px; }
.contact-grid h2 { font-size: 22px; margin: 0 0 10px; }
address { font-style: normal; line-height: 1.9; }
.contact-form label { display: block; font-weight: 600; font-size: 13px; color: #444; margin: 14px 0 5px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 9px 10px; font: inherit; color: #333; background: #fcfcfc; border: 1px solid var(--border); border-radius: 2px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #e8a58f; background: #fff; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .btn { margin-top: 18px; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 15px; border-radius: 3px; }
.form-msg.ok { background: #eaf5e1; color: #3b6b14; }
.form-msg.err { background: #fbeaea; color: #a00; }

/* --- stopka --- */
.site-footer { background: #222; color: #999; }
.fcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 45px; padding-bottom: 35px; }
.site-footer h3 { color: #919191; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0 0 15px; padding: 0; }
.site-footer li { margin-bottom: 3px; }
.site-footer a { color: #eee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: #ddd; margin: 0 0 12px; }
.site-footer .badge { display: block; width: 120px; margin-left: 60px; }
.socket { background: #333; font-size: 12px; padding: 16px 0; color: #aaa; }

/* --- tablet / telefon --- */
@media (max-width: 1050px) {
  .nav a, .nav .sub-toggle { padding: 0 8px; font-size: 13px; }
}
@media (max-width: 989px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; }
  .nav a, .nav .sub-toggle { line-height: 1.4; padding: 13px 24px; width: 100%; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
  .nav > ul > li.active > a, .nav > ul > li.active > .sub-toggle { border-bottom-color: #f0f0f0; border-left: 3px solid var(--accent); }
  .nav .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .layout { grid-template-columns: 1fr; }
  .content { padding: 35px 0; }
  .sidebar { padding: 30px 0; border-left: 0; border-top: 1px solid var(--border); }
  .cols4 { grid-template-columns: repeat(2, 1fr); }
  .band-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 25px; }
  .fcols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cols4, .fcols { grid-template-columns: 1fr; }
  .title-bar .wrap { flex-direction: column; align-items: flex-start; gap: 2px; }
  .content img.right { float: none; display: block; max-width: 100%; margin: 0 0 15px; }
  .promo { font-size: 26px; }
  .band blockquote { font-size: 20px; }
}
