/* --------------------------------------------------
  RESET & NORMALIZE (mobile first)
-------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F9F7F4;
}

body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #23292E;
  background: #F1EDE6;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

main, section, aside, nav, footer, header {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: #23292E;
  text-decoration: none;
  transition: color 0.2s;
}

a:focus, button:focus {
  outline: 2px solid #7E9E92;
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------
  TYPOGRAPHY
-------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  color: #23292E;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  line-height: 1.25;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1rem;
}

p, li, label, input, textarea {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #23292E;
  line-height: 1.7;
}
strong {
  font-weight: bold;
}

blockquote {
  border-left: 3px solid #7E9E92;
  margin-left: 0;
  padding-left: 20px;
  font-style: italic;
  color: #55605c;
}

/* --------------------------------------------------
  CONTAINER & LAYOUT
-------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(125,138,120,0.06);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 9px 0 rgba(125,138,120,0.07);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 28px 0 rgba(125,138,120,0.15);
  transform: translateY(-2px) scale(1.015);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #F1EDE6;
  border-left: 5px solid #7E9E92;
  color: #23292E;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(38,42,45,0.04);
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #23292E;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #7E9E92;
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Classic button styles */
.cta-btn {
  display: inline-block;
  background: #23292E;
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  padding: 12px 40px;
  border-radius: 28px;
  font-weight: bold;
  margin-top: 16px;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: 0 1px 8px 0 rgba(125,138,120,0.10);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.11s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #7E9E92;
  color: #23292E;
  box-shadow: 0 4px 24px 0 rgba(38,42,45,0.10);
  transform: translateY(-1px) scale(1.03);
}

/* --------------------------------------------------
  HEADER + NAVIGATION
-------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E5E2DD;
  box-shadow: 0 1px 6px 0 rgba(185,185,176,0.06);
  padding: 0;
  position: relative;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
header img[alt="Ostry Punkt"] {
  height: 56px;
  width: auto;
  margin-right: 32px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
header nav a {
  display: inline-block;
  color: #23292E;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 16px 8px 0;
  border-radius: 0;
  transition: color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #7E9E92;
  text-decoration: underline;
}

/* --------------------------------------------------
  FOOTER
-------------------------------------------------- */
footer {
  background: #23292E;
  color: #F1EDE6;
  padding: 40px 0 10px 0;
  border-top: 1px solid #dddad3;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  flex: 3 1 240px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
footer nav a {
  color: #F1EDE6;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 0;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: #7E9E92;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 2 1 220px;
  font-size: 0.97rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.footer-contact a {
  color: #F1EDE6;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 100px;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  filter: grayscale(30%) brightness(1.14);
  transition: filter 0.18s, transform 0.13s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: grayscale(0%) brightness(1.22);
  transform: translateY(-2px) scale(1.08);
}

/* --------------------------------------------------
  COMMON COMPONENTS (PRODUCT GRID, SERVICE LIST, ETC.)
-------------------------------------------------- */

.product-grid, .service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

/* Accessibility for links in text-section */
.text-section a {
  color: #7E9E92;
  text-decoration: underline;
  transition: color 0.16s, border-bottom 0.18s;
}
.text-section a:hover, .text-section a:focus {
  color: #23292E;
  border-bottom: 2px solid #7E9E92;
}

/* --------------------------------------------------
  RESPONSIVE LAYOUT (FLEXBOX ONLY)
-------------------------------------------------- */
@media (min-width: 600px) {
  .product-grid, .service-list {
    gap: 40px;
    justify-content: space-between;
  }
  .service-list > * {
    min-width: 180px;
    flex: 1 1 0;
  }
  .product-grid > * {
    min-width: 230px;
    flex: 1 1 0;
  }
}

@media (min-width: 800px) {
  .content-wrapper {
    gap: 40px;
  }
  .text-image-section {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 11px;
  }
  .footer-social {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .content-wrapper, .footer .content-wrapper, .footer-contact, .text-image-section {
    flex-direction: column !important;
    gap: 20px !important;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
  nav {
    display: none;
  }
  .cta-btn {
    padding: 12px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.11rem; }
  h3 { font-size: 1rem; }
  .container { padding: 0 7px; }
  .section { padding: 28px 5px; }
  .footer .container { padding: 0 5px; }
}

/* --------------------------------------------------
  MOBILE MENU
-------------------------------------------------- */
.mobile-menu-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1201;
  width: 46px;
  height: 46px;
  background: #23292E;
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 2px 8px 0 rgba(37,38,38,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #7E9E92;
  color: #23292E;
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #23292E;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1), box-shadow 0.18s;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  box-shadow: 16px 0 30px -6px rgba(0,0,0,0.22);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #F1EDE6;
  color: #23292E;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 20px 0 0 20px;
  align-self: flex-start;
  transition: background 0.15s, color 0.16s, transform 0.09s;
  z-index: 1202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #7E9E92;
  color: #fff;
  transform: rotate(90deg);
}

.mobile-nav {
  display: flex !important;
  flex-direction: column;
  margin: 62px 0 0 26px;
  gap: 16px;
}
.mobile-nav a {
  color: #F1EDE6;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.12rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #393E42;
  min-width: 180px;
  transition: color 0.18s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #7E9E92;
  background: rgba(241, 237, 230, 0.09);
  border-radius: 8px 8px 0 0;
}

/* main navigation hide/show - for scripts */
@media (max-width: 768px) {
  nav {
    display: none !important;
  }
}

/* --------------------------------------------------
  COOKIE CONSENT BANNER + MODAL
-------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #23292E;
  color: #F1EDE6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 26px 24px 20px 24px;
  z-index: 2000;
  box-shadow: 0 -2px 14px 0 rgba(37,38,38,0.08);
  border-radius: 20px 20px 0 0;
  animation: cookieSlideIn 0.65s cubic-bezier(.77,0,.18,1);
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
@keyframes cookieSlideIn {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  font-size: 1rem;
  color: #F1EDE6;
  margin-bottom: 12px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  border: none;
  border-radius: 25px;
  padding: 10px 28px;
  margin: 0 2px;
  cursor: pointer;
  font-weight: 600;
  background: #7E9E92;
  color: #fff;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.09s;
  box-shadow: 0 1px 6px 0 rgba(125,138,120,0.13);
}
.cookie-banner .btn-accept {
  background: #23292E;
  color: #fff;
  border: 2px solid #7E9E92;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #7E9E92;
  color: #23292E;
}
.cookie-banner .btn-settings {
  background: #F1EDE6;
  color: #23292E;
  border: 2px solid #7E9E92;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #7E9E92;
  color: #fff;
}
.cookie-banner .btn-reject {
  background: #fff;
  color: #23292E;
  border: 2px solid #7E9E92;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #7E9E92;
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,33,33,0.41);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.33s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #23292E;
  padding: 40px 30px 28px 30px;
  border-radius: 23px;
  max-width: 410px;
  width: 94vw;
  box-shadow: 0 9px 38px 0 rgba(37,38,38,0.16);
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.cookie-modal section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: inherit;
  color: #23292E;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal input[type=checkbox][disabled] {
  accent-color: #777;
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #F1EDE6;
  color: #23292E;
  font-size: 1.3rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #7E9E92;
  color: #fff;
}

/* --------------------------------------------------
  MISC ELEMENTS
-------------------------------------------------- */
::-webkit-scrollbar {
  width: 9px;
  background: #F1EDE6;
}
::-webkit-scrollbar-thumb {
  background: #D9DED9;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B9BDB7;
}

hr {
  border: 0;
  border-top: 1px solid #e3e0da;
  margin: 32px 0;
}

/* --------------------------------------------------
  FORMS AND INPUTS (Classic)
-------------------------------------------------- */
input, textarea, select {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #23292E;
  border-radius: 7px;
  border: 1px solid #d3cfc4;
  background: #fff;
  padding: 9px 13px;
  margin-bottom: 14px;
  transition: border 0.19s, box-shadow 0.16s;
  box-shadow: 0 1px 6px 0 rgba(125,138,120,0.05);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #7E9E92;
  box-shadow: 0 1px 12px 0 rgba(125,138,120,0.15);
}

/* --------------------------------------------------
  LISTS
-------------------------------------------------- */
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.section ul li, .content-wrapper ul li, .product-grid ul li, .text-section ul li {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.65;
  color: #23292E;
  position: relative;
}
.section ul li::before, .content-wrapper ul li::before, .product-grid ul li::before, .text-section ul li::before {
  content: '\2022';
  color: #7E9E92;
  font-weight: bold;
  display: inline-block; 
  width: 1em;
  margin-left: -1em;
}
li > strong {
  color: #23292E;
}

/* --------------------------------------------------
  ANIMATIONS & INTERACTIONS
-------------------------------------------------- */
.card, .testimonial-card, .cta-btn, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close, .footer-social a img {
  transition: box-shadow 0.18s, transform 0.13s, background 0.16s, color 0.16s;
}

/* Elevate cards on hover */
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(125,138,120,0.17);
}

/* Subtle scale for feature list items and testimonial hover */
.feature-item:hover, .testimonial-card:hover {
  transform: scale(1.015);
}

/* Microinteraction on button click (down) */
.cta-btn:active, .cookie-banner button:active {
  transform: scale(0.96);
}

/* --------------------------------------------------
  UTILITIES
-------------------------------------------------- */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.w-100 { width: 100% !important; }
.mt-2 { margin-top: 2px; }
.mb-8 { margin-bottom: 8px; }
.mb-20 { margin-bottom: 20px; }
.mt-24 { margin-top: 24px; }
.text-center { text-align: center; }

/* --------------------------------------------------
  Z-INDEX STACKING
-------------------------------------------------- */
header, .mobile-menu-toggle { z-index: 101; }
.mobile-menu, .mobile-menu.open { z-index: 1200; }
.cookie-banner { z-index: 2000; }
.cookie-modal-backdrop { z-index: 2100; }

/* --------------------------------------------------
  PRINT STYLES
-------------------------------------------------- */
@media print {
  body { background: #fff !important; color: #23292E !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  .section, .card, .testimonial-card { box-shadow: none !important; background: #fff !important; }
}
