
:root{--chalk:#f0ece4;--gold:#cba06b;--muted:#c8c2b7;--line:rgba(240,236,228,.34)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#1d1414;color:var(--chalk);font-family:Georgia,'Times New Roman',serif;line-height:1.48}

a{color:inherit;text-decoration:none}a:focus-visible{outline:2px solid var(--gold);outline-offset:5px}img{max-width:100%}.wrap{width:min(1180px,calc(100% - 80px));margin-inline:auto}
.nav{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:33px 0 20px;border-bottom:1px solid var(--line);position:relative}.nav:after{content:"";width:78px;height:3px;position:absolute;bottom:-2px;left:0;background:var(--gold);transform:rotate(-1deg)}.logo img{width:clamp(205px,23vw,300px);height:auto;display:block}.links{display:flex;gap:34px;flex-wrap:wrap}.links a{font-style:italic;font-size:19px;position:relative}.links a:hover,.links a:focus-visible{color:var(--gold)}
.hero{display:grid;grid-template-columns:1.12fr .88fr;gap:35px;align-items:center;min-height:390px;padding-top:45px;padding-bottom:28px}.hero h1{font-weight:normal;font-style:italic;font-size:clamp(53px,6.3vw,88px);line-height:1.03;letter-spacing:-.035em;margin:0 0 29px;text-shadow:0 1px 1px #333}.hero h1 em{color:var(--gold);font-weight:normal}.hero p{border-left:2px solid var(--gold);padding-left:22px;font-size:clamp(21px,2.2vw,28px);font-style:italic;line-height:1.32;max-width:600px;margin:0}.ratio{width:100%;max-width:460px;justify-self:end;opacity:.94;display:block;object-fit:contain;mix-blend-mode:screen}.ratio .gridline{stroke:#d8d5cd;stroke-width:.8;opacity:.26;fill:none;stroke-dasharray:4 6}.ratio .gridstrong{stroke:#eeeae1;stroke-width:1;opacity:.55;fill:none}.ratio .gold{stroke:var(--gold);stroke-width:2.4;fill:none;stroke-linecap:round}.ratio .small{stroke:var(--gold);stroke-width:1;fill:none;opacity:.75}.ratio .dot{fill:var(--gold)}
.section-heading{display:flex;align-items:center;gap:26px;justify-content:center;margin:5px 0 30px}.section-heading:before,.section-heading:after{content:"";height:1px;background:var(--line);flex:1;max-width:210px}.section-heading h2{font-size:clamp(37px,4vw,53px);font-weight:normal;font-style:italic;line-height:1.1;margin:0;white-space:nowrap}
.services{padding:6px 0 52px}.service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.service{min-width:0;padding:0 16px 5px;text-align:center;position:relative}.service:not(:last-child):after{content:"";position:absolute;right:0;top:13px;height:138px;width:1px;background:var(--gold);opacity:.6}.service img{height:92px;width:116px;object-fit:contain;display:block;margin:0 auto 7px;filter:drop-shadow(0 0 1px rgba(255,255,255,.35))}.service h3{font-size:clamp(19px,2vw,25px);font-style:italic;font-weight:normal;line-height:1.14;margin:0}.service .accent{width:39px;height:2px;background:var(--gold);margin:17px auto 0;transform:rotate(-2deg)}
.work{padding:10px 0 64px}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:21px}.work-card{min-width:0}.paper{background:#e8e0d1;padding:8px;box-shadow:2px 5px 11px rgba(0,0,0,.42);transform:rotate(-1.8deg);position:relative}.work-card:nth-child(2) .paper{transform:rotate(1.4deg)}.work-card:nth-child(3) .paper{transform:rotate(-1deg)}.work-card:nth-child(4) .paper{transform:rotate(1.8deg)}.paper:before{content:"";position:absolute;z-index:2;width:65px;height:22px;background:rgba(197,161,111,.65);top:-11px;left:50%;transform:translateX(-50%) rotate(3deg);box-shadow:0 1px 2px #0003}.paper img,.paper .empty{display:block;width:100%;aspect-ratio:1.2;object-fit:cover;background:#d7d0c2}.paper .empty{display:grid;place-items:center;color:#71675c;text-align:center;font:italic 20px Georgia,serif;padding:12px;border:1px solid #c0b6a5}.work-card h3{text-align:center;font-weight:normal;font-style:italic;font-size:18px;margin:19px 0 0}.note{font:13px/1.5 Arial,sans-serif;color:#c6c0b7;text-align:center;margin:28px 0 0}
.about{border-top:1px solid var(--line);padding:35px 0;display:grid;grid-template-columns:1fr 2fr;gap:30px}.about h2{font:italic 35px Georgia,serif;margin:0}.about p{font-size:18px;margin:0;color:var(--muted)}.contact{text-align:center;padding:48px 0 75px;border-top:1px solid var(--line)}.contact h2{font:italic clamp(37px,5vw,59px) Georgia,serif;margin:0 0 12px}.contact p{font-size:18px;color:var(--muted)}.contact a{display:inline-block;color:var(--gold);border-bottom:1px solid var(--gold);padding-bottom:4px;font-size:20px}footer{display:flex;justify-content:space-between;gap:20px;padding:19px 0 25px;border-top:1px solid var(--line);font:12px Arial,sans-serif;color:#c2bcb2}
@media(max-width:800px){.wrap{width:min(100% - 44px,700px)}.hero{grid-template-columns:1fr;padding-top:48px}.ratio{width:min(75%,370px);justify-self:center}.gallery{grid-template-columns:repeat(2,1fr);row-gap:34px}.service-grid{grid-template-columns:repeat(2,1fr);row-gap:28px}.service:nth-child(2):after{display:none}.about{grid-template-columns:1fr}}
@media(max-width:510px){.nav{align-items:flex-start;flex-direction:column}.links{gap:20px}.links a{font-size:16px}.hero h1{font-size:clamp(46px,12vw,67px)}.hero p{font-size:21px}.ratio{width:100%}.section-heading{gap:10px}.section-heading h2{font-size:36px}.service{padding-inline:5px}.service img{height:76px;width:90px}.service h3{font-size:19px}.service:not(:last-child):after{height:112px}.gallery{gap:14px}.work-card h3{font-size:15px}.paper{padding:5px}.paper .empty{font-size:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Centrinė kreidos lenta: trečdalis ekrano, pilki kraštai */
.board{width:33.333333vw;min-width:420px;max-width:100%;min-height:100vh;margin:0 auto;background-color:#171717;background-image:url('images/chalkboard.webp');background-position:center top;background-size:100% auto;background-repeat:repeat-y;box-shadow:0 0 30px #0004;overflow:hidden}
.board .wrap{width:calc(100% - 42px)}
.board .nav{flex-direction:column;align-items:flex-start;gap:16px;padding-top:25px}
.board .logo img{width:min(300px,100%)}
.board .links{gap:15px 19px}
.board .links a{font-size:16px}
.board .hero{grid-template-columns:1fr;gap:12px;min-height:0;padding-top:38px}
.board .hero h1{font-size:clamp(42px,4vw,58px)}
.board .hero p{font-size:19px}
.board .ratio{width:85%;max-width:320px;justify-self:center}
.board .service-grid,.board .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 10px}
.board .service{padding-inline:5px}
.board .service:nth-child(2):after{display:none}
.board .service img{width:100px;height:76px}
.board .service h3{font-size:18px}
.board .section-heading{gap:10px}
.board .section-heading h2{font-size:clamp(30px,3vw,39px)}
.board .about{grid-template-columns:1fr}
.board .paper .empty{font-size:16px}
.board .work-card h3{font-size:15px}
@media(max-width:700px){.board{width:100%;min-width:0;box-shadow:none}.board .hero h1{font-size:clamp(42px,10vw,58px)}}

/* Siauras, ilgas vieno stulpelio maketas kaip mokykliniame pavyzdyje */
.board{width:33.333vw;max-width:460px;min-width:340px}
.board .wrap{width:calc(100% - 48px)}
.board .hero{display:flex;flex-direction:column;align-items:stretch;gap:26px}
.board .hero h1{font-size:clamp(38px,3.2vw,52px);overflow-wrap:break-word}
.board .hero p{font-size:18px}
.board .ratio{align-self:center;width:100%;max-width:310px}
.board .service-grid,.board .gallery{grid-template-columns:1fr;gap:36px}
.board .service{padding:0 10px 14px}
.board .service:nth-child(2):after{display:block}
.board .service img{width:125px;height:100px}
.board .service h3{font-size:22px}
.board .gallery{max-width:310px;margin-inline:auto}
.board .work-card h3{font-size:18px}
.board .section-heading h2{font-size:clamp(29px,3vw,38px)}
.board footer{flex-direction:column}
@media(max-width:700px){.board{width:100%;max-width:none;min-width:0}.board .wrap{width:calc(100% - 44px)}}

/* Galutiniai siauro puslapio nustatymai */
body { background: #777; }
.board {
  width: min(460px, 33.333vw);
  min-width: 340px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #202020;
  background-image: url("images/chalkboard.webp");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
  box-shadow: 0 0 22px rgba(0,0,0,.18);
}
.board .wrap { width: calc(100% - 52px); }
.board .hero { display:flex; flex-direction:column; align-items:stretch; gap:26px; }
.board .service-grid, .board .gallery { display:grid; grid-template-columns:1fr; gap:36px; }
.board .ratio { width:100%; max-width:310px; align-self:center; }
@media (max-width:700px) {
  .board { width:100%; min-width:0; max-width:none; }
  .board .wrap { width:calc(100% - 44px); }
}
/* Pašalinamos visos linijos tarp paslaugų */
.board .service::after {
  content: none !important;
}
.board .logo img {
  filter: brightness(0) saturate(100%) invert(94%) sepia(8%) saturate(183%) hue-rotate(343deg);
}
.board .about p {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}
.board .about p {
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
  font-weight: normal;
  line-height: 1.6;
  color: var(--chalk);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}
body {
  background: #1f1d17;
}

/* Paslaugų aprašymai */

.board .service-description {
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: normal;
  font-weight: normal;
  line-height: 1.6;
  color: var(--muted);

  max-width: 310px;
  margin: 18px auto 0;
  padding: 0 8px;

  text-align: center;
}

/* Tarpai tarp paslaugų */

.board .service-grid {
  row-gap: 48px;
}

/* Pašalintos skiriamosios linijos */

.board .service::after {
  content: none !important;
}
.board .service-description {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--muted);

  max-width: 310px;
  margin: 18px auto 0;
  padding: 0 8px;
  text-align: center;
}
/* Ryškesnės horizontalios skiriamosios linijos */
.board .about,
.board .contact,
.board footer {
  border-top: 2px solid rgba(240, 236, 228, 0.65);
}
/* Ryškesnės linijos abipus „Paslaugos“ */
.board .section-heading::before,
.board .section-heading::after {
  height: 2px;
  background: rgba(240, 236, 228, 0.75);
}
.board .contact h2 em {
  color: var(--gold);
  font-weight: normal;
}
/* Platesnė lenta kompiuterio ekrane */
@media (min-width: 701px) {
  .board {
    width: min(620px, 90vw);
    min-width: 0;
    max-width: 620px;
  }
}
/* Platesnis KURIBIS maketas kompiuteryje */
@media (min-width: 701px) {
  .board {
    width: min(900px, 94vw);
    max-width: 900px;
    min-width: 0;
  }

  .board .wrap {
    width: calc(100% - 100px);
  }

  .board .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 55px;
  }

  .board .service-description {
    max-width: 330px;
    font-size: 14px;
  }

  .board .ratio {
    max-width: 400px;
  }
}

/* Telefonuose išlieka vienas stulpelis */
@media (max-width: 700px) {
  .board {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .board .wrap {
    width: calc(100% - 44px);
  }

  .board .service-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 701px) {
  .board .hero h1 {
    font-size: 52px;
    white-space: normal;
  }
}
/* KURIBIS logotipo dydis */
.board .logo img {
  width: 200px;
  max-width: 100%;
  height: auto;
}